[issue22706] Idle extension configuration and key bindings

2014-12-28 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file37550/issue22706_1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22706

[issue19539] The 'raw_unicode_escape' codec buggy + not appropriate for Python 3.x

2014-12-28 Thread STINNER Victor
STINNER Victor added the comment: This issue is just a documentation issue. The do must be more explicit, explain that the codecs is only used internally by the pickle module, and that its output cannot be used anymore by eval(). -- ___ Python

[issue23125] Link to the nose project obsolete

2014-12-28 Thread Damien MariƩ
New submission from Damien MariƩ: The Nose project moved from Google Code to Github, the link in the unittest documentation didn't change. How to reproduce: - Go to https://docs.python.org/3.5/library/unittest.html - Click on nose (in the See also section) - See the Google Code project being

[issue23126] Add Python hook function to replace NameError

2014-12-28 Thread Chris Angelico
New submission from Chris Angelico: Creating an issue to keep track of a patch, but this probably wants to be discussed on python-ideas. The attached patch allows a Python function to be put into sys.__getglobal__, which then works like __getattr__ but for global names. This allows

[issue23125] Link to the nose project obsolete

2014-12-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a2bb697d1c3 by Berker Peksag in branch '3.4': Issue #23125: Update nose project page link. https://hg.python.org/cpython/rev/0a2bb697d1c3 New changeset 11fd71a37665 by Berker Peksag in branch 'default': Issue #23125: Update nose project page link.

[issue23125] Link to the nose project obsolete

2014-12-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 88de50c1696b by Berker Peksag in branch '2.7': Issue #23125: Update nose project page link. https://hg.python.org/cpython/rev/88de50c1696b -- ___ Python tracker rep...@bugs.python.org

[issue23125] Link to the nose project obsolete

2014-12-28 Thread Berker Peksag
Berker Peksag added the comment: Fixed. Thanks for the report, Damien. -- nosy: +berker.peksag resolution: - fixed stage: - resolved status: open - closed versions: +Python 2.7 -Python 3.2, Python 3.3, Python 3.6 ___ Python tracker

[issue19776] Provide expanduser() on Path objects

2014-12-28 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +steve.dower, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19776 ___ ___

[issue19776] Provide expanduser() on Path objects

2014-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Steve, would you like to give an opinion on the Windows aspects of this patch? Otherwise I will simply commit it soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19776

[issue11638] python setup.py sdist --formats tar* crashes if version is unicode

2014-12-28 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - fixed stage: needs patch - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11638 ___

[issue19776] Provide expanduser() on Path objects

2014-12-28 Thread Steve Dower
Steve Dower added the comment: I thought that USERPROFILE was the preferred environment variable and should be checked before HOME, but I could be wrong. Consistency with the existing expanduser function is more important probably. There's almost certainly an API to find an arbitrary user

[issue23111] ftplib.FTP_TLS's default constructor does not work with TLSv1.1 or TLSv1.2

2014-12-28 Thread varde
varde added the comment: Well, because the ssl_version parameter should have a purpose. If it doesn't, the least we could do is remove it from the docs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23111

[issue23123] Only READ support for Decimal in json

2014-12-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: It is unfortunate that there doesn't seem to be a way to round-trip Decimals. That would seem to be a fundamental capability that we should expect to support. I have a vague recollection that you used to be able to trick the encoder by returning a

[issue23123] Only READ support for Decimal in json

2014-12-28 Thread Ethan Furman
Ethan Furman added the comment: Enums (and other numeric subclasses), do not round-trip back to themselves. An IntEnum with the value of 4 is written as 4 and converted back from json as the integer 4 (not Settings.TabSpaces, or whatever). Given that json is multi-language format (or a

[issue3372] socket.setsockopt() is broken for multicast TTL and Loop options

2014-12-28 Thread Bertrand Janin
Bertrand Janin added the comment: This is still an issue as of OpenBSD 5.6. Here is an updated patch for the latest 2.7 branch: diff -r 88de50c1696b Modules/socketmodule.c --- a/Modules/socketmodule.cSun Dec 28 18:51:25 2014 +0200 +++ b/Modules/socketmodule.cSun Dec 28 21:24:41 2014

[issue23123] Only READ support for Decimal in json

2014-12-28 Thread Bob Ippolito
Bob Ippolito added the comment: simplejson has had a use_decimal flag for output since 2.1.0 and has been enabled by default since 2.2.0. simplejson 3.2.0 introduced a for_json argument that checks objects for a method of that name for serialization.

[issue23123] Only READ support for Decimal in json

2014-12-28 Thread Anders Rundgren
Anders Rundgren added the comment: I was actually hoping to implement the final part of this: https://openkeystore.googlecode.com/svn/resources/trunk/docs/jcs.html#Normalization_and_Signature_Validation It seems that the current Decimal implementation wouldn't save me anyway since it modifies

[issue23123] Only READ support for Decimal in json

2014-12-28 Thread Bob Ippolito
Bob Ippolito added the comment: I'm sure there's some hack that would allow you to preserve the input. I would try using parse_float and have it return some object that preserves the string and will be output in precisely the same way. It may need to be a Decimal subclass. I'm traveling for

[issue23123] Only READ support for Decimal in json

2014-12-28 Thread Anders Rundgren
Anders Rundgren added the comment: It would be great if I could use a sub-classed Decimal during parsing but since it doesn't appear to be a way to serialize the result using the json package I'm probably stuck with the current 99% solution. I have solved this in Java and JavaScript by

[issue23123] Only READ support for Decimal in json

2014-12-28 Thread Bob Ippolito
Bob Ippolito added the comment: Subclass Decimal and implement __str__ to return your own representation. Use parse_float to use your Decimal subclass. Should work with simplejson, a similar hack may be possible with the json module. -- ___ Python