[issue29881] Add a new private API clear private variables, which are initialized once, at Python shutdown

2017-03-23 Thread Nick Coghlan
Nick Coghlan added the comment: For module level variables, I'd expect this API to need to be used in tandem with switching the module over to PEP 489 multi-phase initialization. By calling the new API in their _Py_mod_exec slot implementation, extension modules should be able to handle

[issue29881] Add a new private API clear private variables, which are initialized once, at Python shutdown

2017-03-23 Thread Nick Coghlan
Nick Coghlan added the comment: The main potential benefit I see to keeping the special variable declaration is that it may help avoid a certain category of error: calling _Py_ONCE_VAR_INIT on a stack local pointer reference (which would leave the global array with a reference to nonsense).

[issue29893] create_subprocess_exec doc doesn't match software

2017-03-23 Thread Torrin Jones
New submission from Torrin Jones: The documentation for asyncio.create_subprocess_exec says this is the definition . . . asyncio.create_subprocess_exec(*args, stdin=None, stdout=None, stderr=None, loop=None, limit=None, **kwds) The actual definition is this . . . def

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-03-23 Thread Xiang Zhang
Xiang Zhang added the comment: Another complaint from #29889. -- ___ Python tracker ___ ___ Python-bugs-list

[issue29889] test_asyncio fails always

2017-03-23 Thread Xiang Zhang
Xiang Zhang added the comment: > Then, when doing a 'make install', it builds the entire thing again and runs > another profile generation run which also fails, then a new profiled build. > Possibly because the first profile run failed? This is a known issue. Some build commands always clear

[issue29862] Fix grammar typo in importlib.reload() exception

2017-03-23 Thread Mandeep
Mandeep added the comment: Hi Brett, I'd like to take this on as my first contribution to CPython if that's okay with you. -- nosy: +mandeepb ___ Python tracker

[issue29882] Add an efficient popcount method for integers

2017-03-23 Thread Case Van Horsen
Case Van Horsen added the comment: I like the name bit_count and I'll gladly add it to gmpy2 with the appropriate changes to exceptions, etc. -- nosy: +casevh ___ Python tracker

[issue28041] Inconsistent behavior: Get st_nlink from os.stat() and os.scandir()

2017-03-23 Thread Josh Rosenberg
Josh Rosenberg added the comment: This is documented behavior. Per the docs for os.DirEntry's stat method (the objects yielded by os.scandir): >On Windows, the st_ino, st_dev and st_nlink attributes of the stat_result are >always set to zero. Call os.stat() to get these attributes. It might

[issue29892] change statement for open() is splited into two part in middle of sentence.

2017-03-23 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Indeed, nice catch! Submit a PR for it if you want to (if not, someone else will pick it up soon :-) -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker

[issue29892] change statement for open() is splited into two part in middle of sentence.

2017-03-23 Thread OSAMU NAKAMURA
New submission from OSAMU NAKAMURA: In https://docs.python.org/3.6/library/functions.html#open , Following sentence is wrongly separated by extra asterisk. ``` FileExistsError is now raised if the file opened in exclusive creation mode ('x') already exists. ``` This mistake is introduced by

[issue29890] Constructor of ipaddress.IPv*Interface does not follow documentation

2017-03-23 Thread Eric V. Smith
Eric V. Smith added the comment: This should be easy enough to fix, at least in IPv4Interface.__init__. It needs to copy some of IPv4Network.__init__, dealing with address[1] and calling _make_netmask(). Currently, it just calls int(address[1]). I haven't looked at IPv6Interface. Tests are

SNMP

2017-03-23 Thread Matt
What is easiest way to read and write SNMP values with Python? -- https://mail.python.org/mailman/listinfo/python-list

[issue29642] Why does unittest.TestLoader.discover still rely on existence of __init__.py files?

2017-03-23 Thread Ned Batchelder
Changes by Ned Batchelder : -- nosy: +nedbat ___ Python tracker ___ ___

[issue28041] Inconsistent behavior: Get st_nlink from os.stat() and os.scandir()

2017-03-23 Thread Mark Becwar
Changes by Mark Becwar : -- pull_requests: +700 ___ Python tracker ___ ___

[issue29889] test_asyncio fails always

2017-03-23 Thread Thomas Knox
Thomas Knox added the comment: The build succeeds, but the profile generation fails (only the test_asyncio portion fails), then does a new profiled build after the profiling run completes which succeeds. Then, when doing a 'make install', it builds the entire thing again and runs another

[issue29889] test_asyncio fails always

2017-03-23 Thread Zachary Ware
Zachary Ware added the comment: Does the build fail, or just the test in the profile generation? -- nosy: +zach.ware ___ Python tracker ___

[issue29889] test_asyncio fails always

2017-03-23 Thread Thomas Knox
Thomas Knox added the comment: I changed the configuration flags to be: pi@pi3:~/Source/Python-3.6.1 $ ./configure --enable-optimizations --enable-loadable-sqlite-extensions --disable-ipv6 --with-system-expat --with-system-ffi --with-threads The profiling filed again with: 0:04:47 [ 25/405]

[issue29804] test_ctypes test_pass_by_value fails on arm64 (aarch64) architecture

2017-03-23 Thread Ned Deily
Ned Deily added the comment: Technically speaking, we do not officially support arm64 in our release process as we have no arm64 buildbots nor an identified core developer for the platform; see PEP 11 for the policy details. So there is no place to test a fix if there was one identified.

[issue29891] urllib.request.Request accepts but doesn't check bytes headers

2017-03-23 Thread Maciej Szulik
Changes by Maciej Szulik : -- nosy: +maciej.szulik ___ Python tracker ___ ___

[issue29642] Why does unittest.TestLoader.discover still rely on existence of __init__.py files?

2017-03-23 Thread Andrei Fokau
Andrei Fokau added the comment: I was wrong. The ticket can be closed now. -- nosy: +Andrei Fokau2 ___ Python tracker ___

Re: Manager for project templates, that allows "incremental" feature addition

2017-03-23 Thread Lele Gaifax
Paul Moore writes: > Sadly, it doesn't support Windows, which is what I use. I'm sorry, there is little I can do on that front, but if you come up with an alternative library, please let me know. ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho

[issue29891] urllib.request.Request accepts but doesn't check bytes headers

2017-03-23 Thread Ezio Melotti
New submission from Ezio Melotti: urllib.request.Request allows the user to create a request object like: req = Request(url, headers={b'Content-Type': b'application/json'}) When calling urlopen(req, data), urllib will check if a 'Content-Type' header is present and fail to recognize

[issue29890] Constructor of ipaddress.IPv*Interface does not follow documentation

2017-03-23 Thread Ilya Kulakov
New submission from Ilya Kulakov: As per documentation, it should understand the same arguments as IPv*Network. Unfortunately it does not recognize netmask in string form. Hence the following code will fail: ipaddress.ip_interface(('192.168.1.10', '255.255.255.0')) while the following

[issue22962] ipaddress: Add optional prefixlen argument to ip_interface and ip_network

2017-03-23 Thread Ilya Kulakov
Ilya Kulakov added the comment: You can initialize ip_interface via a tuple of 2 elements: IP address and a prefix (prefixlen or string representation of a netmask). I believe the issue can be closed now. -- nosy: +Ilya.Kulakov ___ Python tracker

[issue29889] test_asyncio fails always

2017-03-23 Thread Ned Deily
Ned Deily added the comment: There have been other reports (e.g. Issue29712) of failures when using --enable-optimizations with --enable-shared. Can you see if removing --enable-shared makes a difference for your configurations? -- components: +asyncio -Tests nosy: +haypo, ned.deily,

[issue22005] datetime.__setstate__ fails decoding python2 pickle

2017-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +699 ___ Python tracker ___ ___

[issue29889] test_asyncio fails always

2017-03-23 Thread Thomas Knox
New submission from Thomas Knox: Downloaded Python 3.6.1 source code onto CentOS 7.3 (64 bit), Fedora 25 (64 bit), Ubuntu 16.10 (64 bit) and Raspberry Pi 8.0 (32 bit). Configured with ./configure --enable-shared --enable-optimizations --enable-loadable-sqlite-extensions --disable-ipv6

Re: Manager for project templates, that allows "incremental" feature addition

2017-03-23 Thread Paul Moore
On Thursday, 23 March 2017 15:56:43 UTC, Paul Moore wrote: > On Wednesday, 22 March 2017 09:41:21 UTC, Lele Gaifax wrote: > > This what I wrote and heavily use > > > > https://pypi.python.org/pypi/metapensiero.tool.tinject > > > > It seems to fit some, but not all, of your requested

[issue29881] Add a new private API clear private variables, which are initialized once, at Python shutdown

2017-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Some code (_PyUnicode_FromId, bool_repr, create_filter) could be simpler if make _PY_ONCEVAR_INIT returning the value (NULL in case of error). The signature of _PY_ONCEVAR_INIT() is the same as of _Py_SETREF(). If var == NULL both `_PY_ONCEVAR_INIT(var,

[issue16510] Using appropriate checks in tests

2017-03-23 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue20548] Use specific asserts in warnings and exceptions tests

2017-03-23 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue20554] Use specific asserts in optparse test

2017-03-23 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue29888] The link referring to "Python download page" is broken

2017-03-23 Thread Kinebuchi Tomohiko
New submission from Kinebuchi Tomohiko: The download page [1]_ contains a link intended to refer to the release page of the corresponding Python version [2]_. .. [1] `Download Python 2.7.13 Documentation `_ .. [2] e.g. `Python 2.7.8 Release

[issue29881] Add a new private API clear private variables, which are initialized once, at Python shutdown

2017-03-23 Thread STINNER Victor
STINNER Victor added the comment: I modified more modules to use the new API. I'm not sure that using the API in modules is safe. It's safe to use the API in functions which begins with trying to initialize the variable. In such case, if the variable is cleared, calling the function later

[issue29881] Add a new private API clear private variables, which are initialized once, at Python shutdown

2017-03-23 Thread STINNER Victor
Changes by STINNER Victor : -- title: Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit -> Add a new private API clear private variables, which are initialized once, at Python shutdown ___

[issue23699] Add a macro to ease writing rich comparisons

2017-03-23 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Sent a PR against the master branch. What do you think about it? Would it make sense as well for python 3.6 now? -- nosy: +cstratak ___ Python tracker

[issue23699] Add a macro to ease writing rich comparisons

2017-03-23 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- pull_requests: +698 ___ Python tracker ___ ___

[issue16510] Using appropriate checks in tests

2017-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +697 ___ Python tracker ___ ___

[issue20547] Use specific asserts in bigmem tests

2017-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +696 ___ Python tracker ___ ___

[issue29883] asyncio: Windows Proactor Event Loop UDP Support

2017-03-23 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +giampaolo.rodola, haypo ___ Python tracker ___ ___

[issue20552] Use specific asserts in bytes tests

2017-03-23 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: I think this should only go to 3.7 now. -- nosy: +Mariatta versions: +Python 3.7 -Python 3.5 ___ Python tracker ___

[issue20552] Use specific asserts in bytes tests

2017-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +695 ___ Python tracker ___ ___

[issue20550] Use specific asserts in collections tests

2017-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +694 ___ Python tracker ___ ___

[issue20545] Use specific asserts in unicode tests

2017-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +692 ___ Python tracker ___ ___

[issue20548] Use specific asserts in warnings and exceptions tests

2017-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +693 ___ Python tracker ___ ___

[issue20554] Use specific asserts in optparse test

2017-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +691 ___ Python tracker ___ ___

[issue29887] test_normalization doesn't work

2017-03-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It needs to fetch http://www.pythontest.net/unicode/9.0.0/NormalizationTest.txt (8.0.0 in 3.5) but get the 404 error. -- components: Tests messages: 290053 nosy: serhiy.storchaka priority: normal severity: normal status: open title:

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread STINNER Victor
STINNER Victor added the comment: About _PY_ONCEVAR_INIT() vs _Py_IDENTIFIER. Using _Py_IDENTIFIER works well if you have an API accepting directly a _Py_IDENTIFIER*. If you call functions requesting a PyObject*, you need to call _PyUnicode_FromId() and test for failure. If you start by

[issue29886] links between binascii.{un,}hexlify / bytes.{,to}hex

2017-03-23 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +689 ___ Python tracker ___

Re: Manager for project templates, that allows "incremental" feature addition

2017-03-23 Thread Paul Moore
On Wednesday, 22 March 2017 09:41:21 UTC, Lele Gaifax wrote: > This what I wrote and heavily use > > https://pypi.python.org/pypi/metapensiero.tool.tinject > > It seems to fit some, but not all, of your requested features. Thanks - it looks like it could be very useful. I'll certainly give

[issue29886] links between binascii.{un,}hexlify / bytes.{,to}hex

2017-03-23 Thread chrysn
New submission from chrysn: The function binascii.{un,}hexlify and bytes.{,to}hex do almost the same things (plus/minus details of whether they accept whitespace, and whether the hex-encoded data is accepted/returned as strings or bytes). I think that it would help users to point that out in

[issue21895] signal.pause() and signal handlers don't react to SIGCHLD in non-main thread

2017-03-23 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

Re: Recompilation of Python3.6.x

2017-03-23 Thread Grant Edwards
On 2017-03-23, Klaus Jantzen wrote: >>> And you would need tables showing which libraires are required for >>> which Python features: tkinter is optional, crypto is optional (or >>> at least used to be), etc. >> >> That's a good idea - that would make the simple table

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread STINNER Victor
STINNER Victor added the comment: 3rd round of the API: static PyObject *assertion_error = NULL; ... if (_PY_ONCEVAR_INIT(assertion_error, PyUnicode_InternFromString("AssertionError"))) { return 0; } ... (Not the best example,

Re: Recompilation of Python3.6.x

2017-03-23 Thread Thomas Nyberg
On 03/23/2017 03:45 AM, Klaus Jantzen wrote: The information must be somewhere because Python must have been compiled frequently and correctly for the various (important) OSs before making it available to the public. And I do not think that it is left up to "your luck" that the required packages

Re: Recompilation of Python3.6.x

2017-03-23 Thread Michael Torrie
On 03/23/2017 01:45 AM, Klaus Jantzen wrote: > The information must be somewhere because Python must have been compiled > frequently and correctly for the various (important) OSs before making > it available to the public. And I do not think that it is left up to > "your luck" that the required

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think we can get rid of _Py_ONCEVAR(). Just keep current declarations. _PY_ONCEVAR_INIT() can work even with non-static global variables. It could work even with non-PyObject pointers. -- ___ Python tracker

[issue29879] typing.Text not available in python 3.5.1

2017-03-23 Thread Charles Bouchard-Légaré
Changes by Charles Bouchard-Légaré : -- pull_requests: +688 ___ Python tracker ___ ___

PyDev 5.6.0 Released

2017-03-23 Thread Fabio Zadrozny
PyDev 5.6.0 Release Highlights - *Important* PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards. - PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars). - *Debugger* - *Performance* enhancements on the *debugger* (which should be *60%-100%* faster

Wing Python IDE 6.0.3 released

2017-03-23 Thread Wingware
Hi, We've just released Wing 6.0.3 which implements auto-completion in strings and comments, supports syntax highlighting and error indicators for f-strings, adds a How-To for Jupyter notebooks, allows concurrent update of recent menus from multiple instances of Wing, fixes Django template

ANN: Leo 5.5 released

2017-03-23 Thread Edward K. Ream
[Leo](http://leoeditor.com/) 5.5 is now available on [SourceForge]( http://sourceforge.net/projects/leo/files/Leo/) and on [GitHub]( https://github.com/leo-editor/leo-editor). Leo is an IDE, outliner and PIM, as described [here]( http://leoeditor.com/preface.html). Simulating Leo's features in

[issue29640] _PyThreadState_Init and fork race leads to inconsistent key list

2017-03-23 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- pull_requests: +687 ___ Python tracker ___ ___

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread STINNER Victor
STINNER Victor added the comment: About the pull request: to be clear, I know that some modified local variables should use _Py_IDENTIFIER() rather than _Py_ONCEVAR(), but I chose to use _Py_ONCEVAR() just to give examples of the API. -- ___ Python

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread STINNER Victor
STINNER Victor added the comment: > * do we ever declare non-statics this way? (OTOH, if we do, this could be an > opportunity to hide them behind read-only accessor functions) > * do we ever declare more specific types than PyObject * this way? (OTOH, if > that's the uncommon case, requiring

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread Nick Coghlan
Nick Coghlan added the comment: Passing var_decl was based on not knowing the answer to two questions: * do we ever declare non-statics this way? (OTOH, if we do, this could be an opportunity to hide them behind read-only accessor functions) * do we ever declare more specific types than

[issue26657] Directory traversal with http.server and SimpleHTTPServer on windows

2017-03-23 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +686 ___ Python tracker ___ ___

PyDev 5.6.0 Released

2017-03-23 Thread Fabio Zadrozny
PyDev 5.6.0 Release Highlights - *Important* PyDev now requires Java 8 and Eclipse 4.6 (Neon) onwards. - PyDev 5.2.0 is the last release supporting Eclipse 4.5 (Mars). - *Debugger* - *Performance* enhancements on the *debugger* (which should be *60%-100%* faster

[issue29854] Segfault when readline history is more then 2 * history size

2017-03-23 Thread Martin Panter
Martin Panter added the comment: Gnu Readline comes includes its own documentation (e.g. /usr/share/info/history.info.gz on my computer). It is also at . Perhaps the history_base value is relevant; see some of the comments starting

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The new API rather combines pthread_once() and pthread_cleanup_push(). -- ___ Python tracker ___

[issue20631] python readline module crashing on NULL access

2017-03-23 Thread Martin Panter
Changes by Martin Panter : -- superseder: -> Make libedit support more generic; port readline / libedit to FreeBSD ___ Python tracker

[issue20631] python readline module crashing on NULL access

2017-03-23 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue20631] python readline module crashing on NULL access

2017-03-23 Thread Martin Panter
Martin Panter added the comment: Closing in favour of Issue 13501, since the report was apparently about using a non-Apple Editline rather than Gnu Readline. However see also Issue 29854, where the same symptom is seen with Gnu Readline, and it will probably get the same fix. --

[issue6532] thread.get_ident() should return unsigned value

2017-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +685 ___ Python tracker ___ ___

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > "use gc_next/gc_refs for managing a linked list" Forgot about this idea. Not all objects have the GC header. But if they have it they could be removed from the GC list and added in the separate list since in any case the garbage collector shouldn't

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread STINNER Victor
STINNER Victor added the comment: I wrote a new different API: https://github.com/python/cpython/pull/780 New C API for variables only initialized once to be able to clear them at exit: New macro _Py_ONCEVAR(var) to declare a variable New macro _PY_ONCEVAR_INIT(var, expr) to initialize

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +684 ___ Python tracker ___ ___

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My apologies Victor. It seems that the browser on my netbook shown only the part of changes and I seen only the change in array_array___reduce_ex__(). I like Nick's idea for hiding the indirection, but passing var_decl doesn't look having much sense to me.

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "use gc_next/gc_refs for managing a linked list" I'm not sure that I understand your idea. These fields are already used internally by the garbage collector. If I modify one of these fields, it would corrupt the GC, no? Serhiy: "You can use a dynamic

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread STINNER Victor
STINNER Victor added the comment: #define _Py_ONCE_VAR(var_decl, var) \ var_decl var = NULL; static _Py_OnceVar var ## _once_meta = {.next = NULL, .obj_ref = (PyObject **) } Yeah, I had a similar idea, but I fear that it will increase the usage of the C stack memory. See the

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: "The patch contains an example of using _Py_STATICVAR(). But it doesn't use _PY_STATICVAR_INIT()." I'm not sure that I understand your comment. All modified code use _Py_STATICVAR() to declare the declare. All modified code use _PY_STATICVAR_INIT()

[issue25658] PyThread assumes pthread_key_t is an integer, which is against POSIX

2017-03-23 Thread STINNER Victor
STINNER Victor added the comment: Hi people working on the new TLS API: I would like your opinion on a related API, issue #29881: Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit ! -- ___ Python tracker

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread Nick Coghlan
Nick Coghlan added the comment: I like this idea in principle, and suspect it may be helpful in the implementation of the new thread-specific-storage API proposed in PEP 539 (also see http://bugs.python.org/issue25658 ). How would you feel about calling it _Py_ONCE_VAR? The use case here is

[issue16572] Bad multi-inheritance support in some libs like threading or multiprocessing

2017-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The _Verbose class and verbose arguments for threading classes and functions were removed in issue13550. Thus this is 2.7-only issue now. -- nosy: +haypo versions: -Python 3.3, Python 3.4 ___ Python tracker

[issue27572] Support bytes-like objects when base is given to int()

2017-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Created PR 779 for the deprecation. -- stage: -> patch review versions: +Python 3.7 -Python 3.6 ___ Python tracker

[issue27572] Support bytes-like objects when base is given to int()

2017-03-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +683 ___ Python tracker ___ ___

[issue21895] signal.pause() and signal handlers don't react to SIGCHLD in non-main thread

2017-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: That said, the pthread_kill() solution deserves testing as well. -- ___ Python tracker ___

[issue21895] signal.pause() and signal handlers don't react to SIGCHLD in non-main thread

2017-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Using set_wakeup_fd would fix them... except that it generates spurious > warning messages when the wakeup fd buffer is full, and there's no way to > stop it Are you using a pipe or a socket to set_wakeup_fd? Pipes have rather small buffers. In any case,

[issue29885] Allow GMT timezones to be used in datetime.

2017-03-23 Thread Martin Panter
Martin Panter added the comment: Does the “astimezone” method work for you? >>> from datetime import * >>> aedt = timezone(+timedelta(hours=11)) >>> local = datetime.now(aedt) >>> format(local) '2017-03-23

Re: Recompilation of Python3.6.x

2017-03-23 Thread Klaus Jantzen
On 03/23/2017 12:23 AM, Jon Ribbens wrote: On 2017-03-22, Grant Edwards wrote: On 2017-03-22, Thomas Nyberg wrote: On 03/22/2017 03:22 PM, Jon Ribbens wrote: A simple table with a list of the library names, the debian package names, and the rpm

[issue29885] Allow GMT timezones to be used in datetime.

2017-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Use pytz (https://pypi.python.org/pypi/pytz). -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue29881] Add a new private API for "static C variables" (_PyStaticVar) to clear them at exit

2017-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch contains an example of using _Py_STATICVAR(). But it doesn't use _PY_STATICVAR_INIT(). _PY_STATICVAR_INIT() can be used if extract the code of getting _array_reconstructor into separate function. I like the idea in general, but I want to see more

[issue29885] Allow GMT timezones to be used in datetime.

2017-03-23 Thread Decorater
New submission from Decorater: I noticed that there is no ways to convert local times to GMT if I realize that some other object (sometimes from a server) is using GMT and they happen to be ahead of my current time. As such it would be great if one can convert their current time that can be