Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc/cheatsheet needs updating #49069

Closed
mdickinson opened this issue Jan 3, 2009 · 16 comments
Closed

Misc/cheatsheet needs updating #49069

mdickinson opened this issue Jan 3, 2009 · 16 comments
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@mdickinson
Copy link
Member

BPO 4819
Nosy @malemburg, @birkenfeld, @rhettinger, @mdickinson, @abalkin, @pitrou, @ezio-melotti, @merwok
Files
  • issue4819.diff
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-03-26.19:36:01.368>
    created_at = <Date 2009-01-03.13:16:33.727>
    labels = ['type-feature', 'docs']
    title = 'Misc/cheatsheet needs updating'
    updated_at = <Date 2018-03-26.19:36:01.367>
    user = 'https://github.com/mdickinson'

    bugs.python.org fields:

    activity = <Date 2018-03-26.19:36:01.367>
    actor = 'mark.dickinson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-03-26.19:36:01.368>
    closer = 'mark.dickinson'
    components = ['Documentation']
    creation = <Date 2009-01-03.13:16:33.727>
    creator = 'mark.dickinson'
    dependencies = []
    files = ['20476']
    hgrepos = []
    issue_num = 4819
    keywords = ['patch', 'gsoc']
    message_count = 16.0
    messages = ['78955', '79227', '115327', '126647', '126648', '126649', '126651', '126659', '126671', '126675', '126679', '126682', '126709', '140263', '140267', '314477']
    nosy_count = 9.0
    nosy_names = ['lemburg', 'georg.brandl', 'rhettinger', 'mark.dickinson', 'belopolsky', 'pitrou', 'ezio.melotti', 'eric.araujo', 'docs@python']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue4819'
    versions = ['Python 2.7']

    @mdickinson
    Copy link
    Member Author

    Misc/cheatsheet could do with an upgrade, both for the 2.x and 3.x branches.

    For 3.x, I guess the changes needed are quite extensive. I'm not sure
    how much needs to be changed or added for 2.x; at a quick
    glance, the 'with' statement, the 'x if b else y' construction, and the
    unified try-except-finally are missing.

    @mdickinson mdickinson added the docs Documentation in the Doc dir label Jan 3, 2009
    @abalkin
    Copy link
    Member

    abalkin commented Jan 6, 2009

    Some more for both 2. and 3.0:

    • 'as' is now a keyword
    • 'with' is now a keyword
    • @ is now a valid token
    • 0o for octal and 0b for binary numbers
    • sets
    • str.format
    • BaseException

    I am sure I missed a lot, but the core language sections should be
    fairly easy to update. The library part seems to be a major project.

    It would be nice to reformat it in ReST as well.

    @merwok merwok assigned docspython and unassigned birkenfeld Jul 17, 2010
    @merwok
    Copy link
    Member

    merwok commented Sep 1, 2010

    Merging nosy from duplicate report.

    @abalkin
    Copy link
    Member

    abalkin commented Jan 20, 2011

    Misc/cheatsheet has been removed in r88127. Should this be closed?

    @pitrou
    Copy link
    Member

    pitrou commented Jan 20, 2011

    Well, perhaps Marc-André wants to revive it. Otherwise, suggest closing indeed.

    @malemburg
    Copy link
    Member

    Updating the cheat sheet would be a great summer of code like project. We are considering using the cheat sheet as basis for a flyer in the PSF marketing material project.

    Please add it back and add a note to it, that it currently is missing a few language features (e.g. add Alexanders list to it).

    Thanks.

    @pitrou
    Copy link
    Member

    pitrou commented Jan 20, 2011

    Updating the cheat sheet would be a great summer of code like project.
    We are considering using the cheat sheet as basis for a flyer in the
    PSF marketing material project.

    IMO it's not only about updating. It's about converting it to some
    proper markup format, and being able to generate nicely laid out
    versions of it. See examples of nice non-Python cheat sheets:
    http://javascript-reference.info/
    http://www.gscottolson.com/weblog/2008/01/11/jquery-cheat-sheet/

    By the way the Python 3 transition means that it not only misses some
    features, but probably has lots of bogus constructs and examples, so
    putting it back as-is would do users a disservice.

    @rhettinger
    Copy link
    Contributor

    Perhaps the cheatsheet can be transferred to a wiki page and we can put out a comp.lang.python call for updates.

    Also, +1 on the summer of code idea.

    @ezio-melotti
    Copy link
    Member

    I agree that it would be nice to have a cheatsheet somewhere, possibly in the official doc and not as a plain txt file in Misc/.
    FWIW another cheatsheet updated to 2.6 can be found here: http://rgruet.free.fr/PQR26/PQR2.6.html

    @ezio-melotti ezio-melotti added the type-feature A feature request or enhancement label Jan 21, 2011
    @abalkin
    Copy link
    Member

    abalkin commented Jan 21, 2011

    FWIW, I updated the first couple of pages. If anyone finds my changes useful, here they are in bpo-4819.diff.

    @rhettinger
    Copy link
    Contributor

    Past experience has shown that a cheatsheet in the main repository gets neglected. How about we open it up via a wiki or somesuch so that the community if free to update it?

    @ezio-melotti
    Copy link
    Member

    Leaving it in the wiki for a while so that the community can update and improve it might be a good idea, but ultimately I think it should go in the doc.

    @malemburg
    Copy link
    Member

    Raymond Hettinger wrote:

    Raymond Hettinger <rhettinger@users.sourceforge.net> added the comment:

    Perhaps the cheatsheet can be transferred to a wiki page and we can put out a comp.lang.python call for updates.

    Good idea.

    I just want to prevent the text from being lost in SVN
    history somewhere... one of the things I liked about CVS was the Attic.
    With Subversion deleted files are simply gone and unless someone remembers
    them, they are lost.

    Also, +1 on the summer of code idea.

    @merwok
    Copy link
    Member

    merwok commented Jul 13, 2011

    I spent a few minutes updating the cheatsheet. I think that the document is an outdated duplicate of random parts of the docs (syntax, man page, library reference, etc.) that’s rather hard to maintain for little benefit. Is there any evidence that people used it?

    I’d like to propose that we delete the file in 2.7 (it’s already gone from 3.2+) and that we start anew on a real cheatsheet, i.e. one or two A4 pages, in HTML and PDF and t-shirts, which are a useful summary of commonly used things. I think one Python language cheatsheet and one standard library cheatsheet could be useful (one set for 2.7, another one for 3.2).

    Regarding process, I’m not sure using a wiki or a non-reST file not included in the real docs is the way to go. Maybe volunteers could work with the PSF team that’s producing a brochure? (http://brochure.getpython.info/ —I discovered it recently, and don’t know at all who works on it and how)

    @ezio-melotti
    Copy link
    Member

    Another idea might be to have a "cheatsheet" in the official docs with links to the right section and possibly a minimal description. It would be useful to get a quick overview of the features of the language and use the links to jump to the extended doc without having duplication.
    Otherwise the examples could be moved to an external file that gets included both in the cheatsheet and in the official doc.

    @mdickinson
    Copy link
    Member Author

    Given that Misc/cheatsheet doesn't exist any more in the Python 3 repo, and Python 2 is nearing end-of-life, I suspect this should just be closed.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    docs Documentation in the Doc dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    9 participants