[issue29638] Spurious failures in test_collections in releak hunting mode after typing is imported

2017-03-05 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > Are typing.ChainMap and others actually abstract classes? They are abstract classes in the sense that they are instances of abc.ABCMeta. However, for some reasons inspect checks __flags__ attribute. The latter probably reflects the fact that Deque etc. do

Re: [RELEASE] Python 3.6.1rc1 is now available

2017-03-05 Thread D'Arcy Cain
On 2017-03-05 07:01 AM, Ned Deily wrote: On behalf of the Python development community and the Python 3.6 release team, I would like to announce the availability of Python 3.6.1rc1. 3.6.1rc1 is the first release candidate for Python 3.6.1, the first maintenance release of Python 3.6. 3.6.0 was

[issue29638] Spurious failures in test_collections in releak hunting mode after typing is imported

2017-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > So maybe we just need to add all ABC caches to typing._cleanups (just in > case). I don't know. Sorry, I didn't remember exactly reasons why I didn't move the clearing of all ABC caches into clear_caches(). Perhaps I suspected that this can have unwanted

[issue29615] SimpleXMLRPCDispatcher._dispatch mangles tracebacks when invoking RPC calls through _dispatch

2017-03-05 Thread Petr MOTEJLEK
Changes by Petr MOTEJLEK : -- pull_requests: +392 ___ Python tracker ___ ___

[issue29638] Spurious failures in test_collections in releak hunting mode after typing is imported

2017-03-05 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > why not add corresponding clearing methods obj._abc_cache.clear and > obj._abc_negative_cache.clear to typing._cleanups ? OK, this is another possible solution. I didn't think about this, because now typing._cleanups only clear generic caches (not ABC

[issue29615] SimpleXMLRPCDispatcher._dispatch mangles tracebacks when invoking RPC calls through _dispatch

2017-03-05 Thread Petr MOTEJLEK
Changes by Petr MOTEJLEK : -- pull_requests: +391 ___ Python tracker ___ ___

[issue29638] Spurious failures in test_collections in releak hunting mode after typing is imported

2017-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are problems with ABC caches of typing.ChainMap, typing.Counter, and typing.DefaultDict, why not add corresponding clearing methods obj._abc_cache.clear and obj._abc_negative_cache.clear to typing._cleanups ? Why there are problems only with ABC

[issue20774] collections.deque should ship with a stdlib json serializer

2017-03-05 Thread R. David Murray
R. David Murray added the comment: I disagree, I think a __json__ protocol is sensible. But this is why it needs to be discussed on python-dev or python-ideas first :) In the meantime adding deque support like we added enum support is reasonable, but IMO we shouldn't go to crazy adding

[issue29718] Fixed compile on cygwin.

2017-03-05 Thread STINNER Victor
STINNER Victor added the comment: Please remove TSS from the Cygwin patch in that case. -- ___ Python tracker ___

RE: [Python-Dev] [RELEASE] Python 3.6.1rc1 is now available

2017-03-05 Thread Steve Dower
I just want to emphasize that this is a *very* important release to test, as it is the first one made after migrating the project to github. Please spend a bit of time running it through your normal build/installation steps and let us know at https://bugs.python.org/ if anything seems off.

[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-05 Thread Ned Batchelder
Ned Batchelder added the comment: BTW, I don't know if this is relevant, but PyPy has added the current directory in this situation for a long time. -- ___ Python tracker

[issue16535] json encoder unable to handle decimal

2017-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The trick from msg176158 no longer works since issue26719. -- ___ Python tracker ___

[issue29723] 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py; previous versions did not

2017-03-05 Thread Ned Batchelder
New submission from Ned Batchelder: 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's __main__.py Previous versions, including 3.6.0, did not. Is this intentional? $ pwd /Users/ned/foo $ cat main361/__main__.py import pprint, sys pprint.pprint(sys.path) $ for ver in

Re: python-daemon and PID files

2017-03-05 Thread Ian Pilcher
On 03/04/2017 11:14 PM, Chris Angelico wrote: Why do you need a pidfile? When I get systemd to start a process, I just have it not fork. Much easier. Forget about python-daemon - just run your script in the simple and straight-forward way. Because forking daemons was good enough for my

ANN: psutil 5.2.0 with sensors_fans() was released

2017-03-05 Thread Giampaolo Rodola'
Hello all, I'm glad to announce the release of psutil 5.2.0: https://github.com/giampaolo/psutil About = psutil (process and system utilities) is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network) in Python. It is

[RELEASE] Python 3.6.1rc1 is now available

2017-03-05 Thread Ned Deily
On behalf of the Python development community and the Python 3.6 release team, I would like to announce the availability of Python 3.6.1rc1. 3.6.1rc1 is the first release candidate for Python 3.6.1, the first maintenance release of Python 3.6. 3.6.0 was released on 2017-12-22 to great interest

[issue29718] Fixed compile on cygwin.

2017-03-05 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: We should avoid to submit quickfix to official as much as we can. Especially the case of unofficial (or inarticulate) support platform, a patch for specific platform is probably rejected because the code won't be maintained. Thread Specific Storage API

[issue27362] json.dumps to check for obj.__json__ before raising TypeError

2017-03-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This feature already was proposed for simplejson (https://github.com/simplejson/simplejson/issues/52). Special __json__ method is used in wild in a number of projects for exactly this purpose. It looks to me the main disagreement in the past Python-Idea

[issue27362] json.dumps to check for obj.__json__ before raising TypeError

2017-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with David Murray that this should be kicked around on python-dev or python-ideas first. Also, we should ask Bob Ippolito for his thoughts. -- assignee: -> bob.ippolito nosy: +bob.ippolito, rhettinger

[issue20774] collections.deque should ship with a stdlib json serializer

2017-03-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: For now, just hardcoding deque support is fine. Support for a __json__ attribute or JSON array registry is a topic for another day. Even then, I don't think that within the standard library support for JSONification should have its responsibility shifted

[issue27476] Introduce a .github folder with PULL_REQUEST_TEMPLATE

2017-03-05 Thread Ned Deily
Ned Deily added the comment: Now that the transition has occurred, is it time to remove this file and its .github directory? -- nosy: +ned.deily resolution: fixed -> stage: resolved -> needs patch status: closed -> open versions: +Python 3.7 ___

<    1   2