[Python-Dev] operator.attrgetter(attr[, args...]) etc.

2012-11-20 Thread Leo
does not match the python implementation in the doc. Leo ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] [BUG] Trailing spaces in pretty-printed JSON

2012-11-15 Thread Leo
On 2012-10-14 02:06 +0800, Xavier Morel wrote: > 1. Why didn't you report that on the tracker? Reported: http://bugs.python.org/issue16476 ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

[Python-Dev] [BUG] Trailing spaces in pretty-printed JSON

2012-10-13 Thread Leo
Use this script on a json file and observe all the trailing spaces generated. (screenshot attached.) #!/usr/bin/env python """ Pretty print json file. """ if __name__ == '__main__': import sys import json if '-h' in sys.argv or '--help' in sys.argv: print "Usage: ppjson "

[Python-Dev] webbrowser no longer support 'internet-config' on Mac

2012-04-18 Thread Leo
The doc says supported as in http://docs.python.org/library/webbrowser.html but the code has been deleted in http://hg.python.org/cpython/rev/66b3eda6283f Leo ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

[Python-Dev] Cannot use multiprocessing and zip together on windows

2011-12-21 Thread Leo Jay
rtionError: __main__ It seems that the situation described here is similar: http://bugs.python.org/issue10128 But the patch doesn't work for me. Anybody knows how to fix this? Thanks. -- Best Regards, Leo Jay ___ Python-Dev mailing list Python-Dev@

Re: [Python-Dev] [ANN] Python 2.5.6 Release Candidate 1

2011-04-17 Thread Leo Jay
ghts.html > > Enjoy this release, > Martin > > Martin v. Loewis > mar...@v.loewis.de > Python Release Manager > (on behalf of the entire python-dev team) -- Best Regards, Leo Jay ___ Python-Dev mailing list Python-Dev@python.org http:/

[Python-Dev] doc error in 2.6.2

2009-05-15 Thread Leo Jay
There is a syntax error in the client side code of "SocketServer.UDPServer Example" in http://docs.python.org/library/socketserver.html: import socket import sys HOST, PORT = "localhost" data = " ".join(sys.argv[1:]) Obviously, it should be: HOST, PORT =

Re: [Python-Dev] Python Virtual Machine Architecture

2008-08-08 Thread Leo Soto M.
r writing Python programs or > extending / writing modules. Is there any documentation (or papers) geared > towards understanding the core? Maybe <http://wiki.python.org/moin/CPythonVmInternals>? -- Leo Soto M. http://blog.leosoto.com _

Re: [Python-Dev] On __cmp__ specifications and implementation (to mimic it on Jython)

2008-08-06 Thread Leo Soto M.
On Tue, Aug 5, 2008 at 10:46 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Tue, Aug 5, 2008 at 5:56 PM, Leo Soto M. <[EMAIL PROTECTED]> wrote: > > But that's going to be easier if I understand the "why" and not only > > the "how". I can

Re: [Python-Dev] On __cmp__ specifications and implementation (to mimic it on Jython)

2008-08-05 Thread Leo Soto M.
On Tue, Aug 5, 2008 at 4:59 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > On Tue, Aug 5, 2008 at 1:56 PM, Leo Soto M. <[EMAIL PROTECTED]> wrote: >> On Tue, Aug 5, 2008 at 4:45 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: >>> Given that in Python 3.0 __c

Re: [Python-Dev] On __cmp__ specifications and implementation (to mimic it on Jython)

2008-08-05 Thread Leo Soto M.
ity with 2.5... Sure, it won't be a problem on Jython 3.0. But I'm doing this for the upcoming Jython 2.5, where we still have to live with __cmp__ -- Leo Soto M. http://blog.leosoto.com ___ Python-Dev mailing list Python-Dev@python.org http

[Python-Dev] On __cmp__ specifications and implementation (to mimic it on Jython)

2008-08-05 Thread Leo Soto M.
gt;> cmp(A(), B()) 1 (3): >>> class A(object): ...def __cmp__(self, other): return 1 ... >>> class B: ...def __cmp__(self, other): return 1 ... >>> cmp(A(), B()) -1 (4): >>> class A(object): ... def __coerce__(self, other): return 0, 0 ... def _