[issue9094] Make python-m pickletools do something useful

2010-07-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On the second thought, this is clearly not a bug fix. Not a backport candidate. -- status: pending -> closed ___ Python tracker ___ _

[issue9094] Make python-m pickletools do something useful

2010-07-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r82514. I don't think this appropriate for 3.1, but will not block it yet if someone thinks it should be merged. -- stage: patch review -> committed/rejected status: open -> pending ___ Python tr

[issue9094] Make python-m pickletools do something useful

2010-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: In 'run self-test suit', I suppose you mean 'suite'. Otherwise, looks ok. -- ___ Python tracker ___

[issue9094] Make python-m pickletools do something useful

2010-07-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would like to commit this. Any objections? Changes only affect running pickletools as __main__. Does this need to be documented in pickletools.rst? I noticed that dis.rst does not describe running dis.py from command line. Similarly, I cannot fi

[issue9094] Make python-m pickletools do something useful

2010-06-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Well, assuming you want to make it useful, I'd make that > behaviour depend on a command-line option, .. OK, Antoine, you asked for it. :-) issue9094.diff -- Added file: http://bugs.python.org/file17797/issue9094.diff

[issue9094] Make python-m pickletools do something useful

2010-06-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, assuming you want to make it useful, I'd make that behaviour depend on a command-line option, such that other actions can be added later. -- nosy: +pitrou ___ Python tracker

[issue9094] Make python-m pickletools do something useful

2010-06-28 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Good idea! You can remove the doctest behavior. I don't think it is useful. But if you remove it, make sure you add an usage message when no argument is given. -- ___ Python tracker

[issue9094] Make python-m pickletools do something useful

2010-06-27 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Attached patch makes python -m pickletools print symbolic disassembly of a pickle to stdout. If the idea is well received, I will add help option, usage string and possibly -o option to redirect output to a file. I am not sure that current "run doct