[issue9268] Add annotation option to pickletools.dis

2010-07-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Reopening as a documentation issue: - manual entry should have a versionchanged - use *arg* instead of 'arg' - add a ReST entry describing -m pickletools -- components: +Documentation nosy: +ezio.melotti status:

[issue9268] Add annotation option to pickletools.dis

2010-07-17 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9268 ___ ___ Python-bugs-list

[issue9268] Add annotation option to pickletools.dis

2010-07-17 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in r82931 with small changes based on comments here and on IRC: 1. Annotations are separated from disassembly by spaces without '|'. 2. Made a small improvement to the annotation alignment algorithm. Excessively

[issue9268] Add annotation option to pickletools.dis

2010-07-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- resolution: - fixed stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9268

[issue9268] Add annotation option to pickletools.dis

2010-07-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Perhaps the annotations should be wrapped at 78 chars/line, for improved readability? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9268

[issue9268] Add annotation option to pickletools.dis

2010-07-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Perhaps the annotations should be wrapped at 78 chars/line .. I don't know. With deeply nested pickles, annotations may not even start before column 80. I think further improvement in alignment and layout algorithms

[issue9268] Add annotation option to pickletools.dis

2010-07-15 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: Example: dis(pickle.dumps(T, 3), annotate=1) 0: \x80 PROTO 3 |