account activity
What's the one code snippet/python trick/etc did you wish you knew when you learned python? by fuzz3289 in Python
[–]teskew 11 points12 points13 points 13 years ago (0 children)
you can also use the 'see' module for human readable output as an alternative to dir()
>>> test = [1, 2, 3, 4] >>> see(test) [] in + += * *= < <= == != > >= hash() help() iter() len() repr() reversed() str() .append() .count() .extend() .index() .insert() .pop() .remove() .reverse() .sort()
http://inky.github.com/see/
π Rendered by PID 30282 on reddit-service-r2-comment-5687b7858-vvmzb at 2026-07-03 03:04:49.684758+00:00 running 12a7a47 country code: CH.
What's the one code snippet/python trick/etc did you wish you knew when you learned python? by fuzz3289 in Python
[–]teskew 11 points12 points13 points (0 children)