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
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:
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 "
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
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@
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:/
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 =
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
_
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
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
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
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 _
12 matches
Mail list logo