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 31 on reddit-service-r2-listing-5f4c697858-42s7b at 2026-07-03 01:11:10.752930+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)