Skip to content

Commit

Permalink
How to show methods in an object
Browse files Browse the repository at this point in the history
  • Loading branch information
akkana committed Jan 10, 2017
1 parent 7989627 commit db41628
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python-cheatsheet.py
Expand Up @@ -3,6 +3,9 @@
# This is a file of reminders of various neat Python features
# that I always forget how to use.

# Show methods in an object
dir(obj)

# Split a long string over multiple lines in the source file
url1 = ( "http://www.crummy.com/software/BeautifulSoup/"
"bs3/documentation.html" )
Expand Down

0 comments on commit db41628

Please sign in to comment.