I'm busy beavering away on the new Python cheat sheet, and hope to
release it this month. I'm interesting in getting your thoughts on
content for the content, especially if you have experience with
Python.
At the moment, I have added the following items to the cheat sheet
(although any of these could be removed if unnecessary or unhelpful):
Date formatting arguments
Indexes and Slices (see the indexes and slices reference at
http://wiki.python.org/moin/MovingToPythonFromOtherLanguages)
Regex Syntax (fairly standard for programming cheat sheets)
String Methods
Class Special Methods (__new__, __init__, etc)
Those fill a little over 2/3 of the available space, so there's at
least the balance of a column left to fill, and possibly more if any
of the above is removed.
A few of the other items I've thought about adding so far are:
* More methods (filesystem and array/list methods have proved useful
for other languages)
* Built-in object, functions or exceptions
* Data types
* Reserved Words
* Command line (invocation) options
* Attributes (http://rgruet.free.fr/PQR24/PQR2.4.html#typeAttributes)
* Operators (there seem to be more than is typical)
Any thoughts on the content list so far, and what should fill the
remaining space?
I'm hoping to get a preview release done by a week today, and will
release it to the group first to get some feedback, and then will
release is as soon as possible, depending on how much needs changing
and how long it takes me to write up the description of the content.
Dave
Thanks for your feedback and suggestions. I spent some time on this at
the weekend.
I've added a sys.argv section, but wanted to check something - did you
mean a sort of visual example of how vars are assigned from the
command line to sys.argv? I've added a block with a python command
line call with arguments and shown how they are assigned to sys.argv
below that.
I added an os variables section and a sys variables section. I did try
and add the methods, but there's no way to fit that in without either
arbitrarily removing many of the methods (managed to get it down to 83
items without removing anything but no further) or bumping at least 2
other sections.
Dave
--
AddedBytes.com - Web Marketing and Development