Cheat sheet

R

Riccardo T.

G

Gabriel Genellina

curious... maybe it's me, but I can't find a "What's New in Python" where
this is said...

See Misc/- Patch #1479181: split open() and file() from being aliases for each
other.
also, in 2.6 docs (and also in 2.5) remains this footer:
http://docs.python.org/dev/library/stdtypes.html#id14
http://www.python.org/doc/2.5/lib/bltin-file-objects.html#foot4449

file() is new in Python 2.2. The older built-in open() is an alias for
file().

I can't see that footer in the current docs. But in some places it says
"if the file was created with the open() built-in function, then..." that
now might be confusing.

Being open!=file, each one can have a different docstring. open() just
wraps file(), they have the same behavior [but open is a function and file
is a type]
 
R

Riccardo T.

Riccardo T. ha scritto:
I wrote a little cheat sheet for this wonderful language, but because of
my still little experience with it, I would like to have a feedback
Could you have a look at it and tell me what do you think about, please?

http://greyfox.imente.org/index.php?id=73

Thanks to all your advices, the new version is now available. There's a
new gif file with less graphic that you can download faster.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top