Re: [wxPython-users] wxPython 2.8.11.0 release
On Mon, May 24, 2010 at 18:38, Robin Dunn wrote: ... > The 2.8.11.0 release of wxPython is now available for download at > http://wxpython.org/download.php. This release adds Python 2.7 builds, > PySlices, new pubsub implementation, lots of updates to AGW, and lots > of bugs fixed. A summary of changes is listed below and also at > http://wxpython.org/recentchanges.php. Has the port to python 3 problem been solved in the development line, or is help still looked for there? See this Nov 19, 2009 msg: http://groups.google.com/group/wxpython-users/browse_thread/thread/86f8b2513941d0f4/6d77c3d4ebd0e919?lnk=gst&q=python+3#6d77c3d4ebd0e919 Thanks, -Tom -- http://mail.python.org/mailman/listinfo/python-list
How to Customize the New 2.7 ArgumentParser Library Class (module argparse)?
I have converted from OptionParser to ArgumentParser (new in version 2.7) to great advantage, and I think it's a great improvement! But now I want to customize the help formatting just a bit. The documentation is sketchy here, but I started by subclassing ArgumentParser and attempted to redefine format_usage, but after looking at the detailed instructions with pydoc I see "the API of the formatter objects is still considered an implementation detail." I take that to mean I should abandon such efforts at the moment. So, using the defined class as is, and following instructions in the online docs, I have been able to get my output to look like this: ==> $ test_argparser.py -h usage: test_argparser.py [options] A program to manipulate user programs. optional arguments: -h, --help Show this help message and exit. -v, --version Show program's version number and exit. -s, --show Show a list of user post-processing programs. Version 2010-08-20.01 <== To beautify things I would like to change two strings which are auto-generated by the standard parser: 1. change "usage:" to "Usage:" # capitalize 'usage' 2. change "optional arguments:" to "Optional arguments:" # capitalize 'Optional' Does anyone know how to do it without modifying source code? Thanks, -Tom Thomas M. Browder, Jr. Niceville, Florida USA -- http://mail.python.org/mailman/listinfo/python-list
Python 2.7 Won't Build
I am trying to rebujild the 2.7 maintenance branch and get this error on Ubuntu 10.04.1 LTS: XXX lineno: 743, opcode: 0 Traceback (most recent call last): File "/usr/local/src/python-2.7-maint-svn/Lib/site.py", line 62, in import os File "/usr/local/src/python-2.7-maint-svn/Lib/os.py", line 743, in def urandom(n): SystemError: unknown opcode I installed it successfully once so I may be getting conflicts, but I can't figure it out. There were some similar bugs reported in previous versions but I didn't see a clear solution. I have unset my PYTHONPATH and LD_LIBRARY_PATH, but python2.7 is my default python. I guess my next step will be to manually remove python 2.7 unless I hear some solutions soon. Thanks, -Tom Thomas M. Browder, Jr. Niceville, Florida USA -- http://mail.python.org/mailman/listinfo/python-list