[issue32075] Expose ZipImporter Type Object in the include header files.

2017-11-20 Thread Decorater
Decorater added the comment: Well since issue25711 might be for 3.7 and newer I guess this patch might actually be for 3.6.4 or something then. And then the rewrite would take over on 3.7 and newer depending on if the rewrite makes it in to 3.7. -- versions:

[issue32075] Expose ZipImporter Type Object in the include header files.

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is a plan of reimplementing zipimport in Python (see issue25711). What are you going to do with this? I think that C extensions should use a common import API. -- nosy: +brett.cannon, eric.snow, ncoghlan,

[issue32075] Expose ZipImporter Type Object in the include header files.

2017-11-20 Thread Decorater
Decorater added the comment: That is true, but Well, I am using this in a project of mine currently where it loads up encrypted scripts from a zip file. However I must have the import hook itself be in an C extension and subclass the current zipimporter. However

[issue32081] ipaddress should support fast IP lookups

2017-11-20 Thread Attila Nagy
New submission from Attila Nagy : It would be nice if ipaddress could support fast IP lookups, like this: https://github.com/jsommers/pytricia -- components: Library (Lib) messages: 306535 nosy: Attila Nagy priority: normal severity: normal status: open title:

[issue32075] Expose ZipImporter Type Object in the include header files.

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The C API cann't be changed in a bugfix release. Unless for fixing bugs, but even in that case we should be very very careful. There is no a bug. -- ___ Python tracker

[issue32082] atexit module: allow getting/setting list of handlers directly

2017-11-20 Thread Erik Bray
New submission from Erik Bray : In Python 2 it was possible to directly manipulate the list of registered atexit handlers through atexit._exithandlers. Obviously I'm not complaining that this went away, as it was an underscored attribute. But this possibility was

[issue32092] mock.patch with autospec does not consume self / cls argument

2017-11-20 Thread Claudiu Belu
Change by Claudiu Belu : -- components: +Library (Lib) ___ Python tracker ___

[issue32086] C API: Clarify which C functions are safe to be called before Py_Initialize()

2017-11-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ned.deily priority: normal -> release blocker ___ Python tracker ___

[issue12276] 3.x ignores sys.tracebacklimit=0

2017-11-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Bugs in PyTraceBack_Print() ___ Python tracker

[issue31687] test_semaphore_tracker() of test_multiprocessing_spawn fails randomly (race condition?)

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: Failure on x86 Gentoo Refleaks 3.6, two days ago: http://buildbot.python.org/all/#/builders/72/builds/41 == FAIL: test_semaphore_tracker

[issue32091] test_s_option() of test_site.HelperFunctionsTests failed on x86 Gentoo Refleaks 3.6

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: Same failure on x86 Gentoo Refleaks 2.7: FAIL: test_s_option (test.test_site.HelperFunctionsTests) -- Traceback (most recent call last): File

[issue32091] test_s_option() of test_site.HelperFunctionsTests failed on x86 Gentoo Refleaks 3.6

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue25711] Rewrite zipimport from scratch

2017-11-20 Thread Decorater
Decorater added the comment: So, after reviewing this it started to make me rethink about the zipimport.py file. So my question is how would that file work if it is an pyc file in python37.zip or something just to zipimport other modules? There is got to be some sort

[issue32092] mock.patch with autospec does not consume self / cls argument

2017-11-20 Thread Claudiu Belu
Claudiu Belu added the comment: Currently, the autospec=True argument can be passed to mock.patch, but when trying to make assertions on the call and its arguments, it can fail, as it expects an instance / class instance reference as the first argument (self /

[issue32050] Fix -x option documentation

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 60a376cf0023d1070329d0e861a5596637ff3275 by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-32050: Fix -x option documentation (GH-4475) (#4477)

[issue32050] Fix -x option documentation

2017-11-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't know either. Once of the Windows experts should review and revise. -- ___ Python tracker

[issue31897] Unexpected exceptions in plistlib.loads

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Opened issue32072 for infinite recursion and related issues. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32043] Add a new -X dev option: "developer mode"

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4415 ___ Python tracker ___ ___

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: _unixdll_getnode, _ifconfig_getnode, and _arp_getnode were changed recently. Are they still not working on AIX? -- nosy: +serhiy.storchaka versions: +Python 3.7 -Python 3.3, Python 3.4, Python 3.5

[issue32022] Python crashes with mutually recursive code

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: I don't think that we can fix this issue. I suggest to close it as WONTFIX. > sys.setrecursionlimit(3000) While Python does its best to catch stack overflow, the C implementation of CPython can exhaust the stack memory (8 MB in

[issue32094] _args_from_interpreter_flags() doesn't keep -X options

2017-11-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : `subprocess._args_from_interpreter_flags()` is used to control the flags passed to child Python processes, for example launched by multiprocessing. Unfortunately, not all flags are actually recognized by this function: $ ./python -X dev

[issue32050] Fix -x option documentation

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset c5a2071586f735d2a61d1756e7011cfbb6ce86c9 by Victor Stinner in branch 'master': bpo-32050: Fix -x option documentation (#4475) https://github.com/python/cpython/commit/c5a2071586f735d2a61d1756e7011cfbb6ce86c9

[issue32050] Fix -x option documentation

2017-11-20 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4414 ___ Python tracker ___

[issue32050] Fix -x option documentation

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: I removed the note from the documentation since it was outdated. Serhiy, Terry: Do you want to work on a patch to rephrase the "DOS specific hack only" sentence? > @py -3 -x %0 %* & exit /b I'm not a BATCH expert, so I don't know

[issue32093] macOS: implement time.thread_time() using thread_info()

2017-11-20 Thread STINNER Victor
New submission from STINNER Victor : bpo-32025 added time.thread_time() function. On macOS, CLOCK_THREAD_CPUTIME_ID is not available. I propose to add a macOS implementation using thread_info(): return the sum of user and system times. -- components: macOS

[issue32078] string result of str(bytes()) in Python3

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: Calling str(bytes) is wrong in Python 3: $ python3 -bb Python 3.6.2 (default, Oct 2 2017, 16:51:32) >>> str(b'abc') BytesWarning: str() on a bytes instance Just don't do that :-) Use repr(bytes) if you want the b'...' format: >>>

[issue32092] mock.patch with autospec does not consume self / cls argument

2017-11-20 Thread Claudiu Belu
New submission from Claudiu Belu : Currently, the autospec=True argument can be passed to mock.patch, but when trying to make assertions on the call and its arguments, it can fail, as it expects an instance / class instance reference as the first argument (self /

[issue32092] mock.patch with autospec does not consume self / cls argument

2017-11-20 Thread Claudiu Belu
Change by Claudiu Belu : -- type: -> behavior ___ Python tracker ___ ___

[issue32092] mock.patch with autospec does not consume self / cls argument

2017-11-20 Thread Claudiu Belu
Change by Claudiu Belu : -- keywords: +patch pull_requests: +4412 stage: -> patch review ___ Python tracker ___

[issue30587] Mock with spec object does not ensure method call signatures

2017-11-20 Thread Claudiu Belu
Change by Claudiu Belu : -- keywords: +patch pull_requests: +4411 stage: -> patch review ___ Python tracker ___

[issue32025] Add time.thread_time()

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: I opened bpo-32093 for macOS. I close this one. Nice enhancement, I already like this new clock ;-) -- components: +FreeBSD -Library (Lib) nosy: +koobs resolution: -> fixed stage: patch review -> resolved status: open ->

[issue32088] Display DeprecationWarning, PendingDeprecationWarning and ImportWarning in debug mode

2017-11-20 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 895862aa01793a26e74512befb0c66a1da2587d6 by Łukasz Langa (Victor Stinner) in branch 'master': bpo-32088: Display Deprecation in debug mode (#4474) https://github.com/python/cpython/commit/895862aa01793a26e74512befb0c66a1da2587d6

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-20 Thread Eric Snow
New submission from Eric Snow : (see the python-dev thread [1]) (related: issue #32086) When I consolidated the global runtime state into a single global, _PyRuntime, calls Py_DecodeLocale() started to break if the runtime hadn't been intialized yet. This is

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core versions: +Python 3.7 ___ Python tracker ___

[issue31630] math.tan has poor accuracy near pi/2 on OpenBSD and NetBSD

2017-11-20 Thread Tim Peters
Tim Peters added the comment: I have no opinion about any version of xxxBSD, because I've never used one ;-) If current versions of those do have this failure, has anyone opened a bug report on _their_ tracker(s)? I've seen no reason yet to imagine these failures are a

[issue32086] C API: Clarify which C functions are safe to be called before Py_Initialize()

2017-11-20 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: +531 elif sys.platform.startswith("aix"): +532 getters = [_netstat_getnode] LGTM. Do you want to write this a pull request? -- nosy: +vstinner ___ Python tracker

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-20 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +4418 stage: -> patch review ___ Python tracker ___

[issue32086] C API: Clarify which C functions are safe to be called before Py_Initialize()

2017-11-20 Thread Decorater
Decorater added the comment: Ah, I see now. -- ___ Python tracker ___ ___

[issue2504] Add gettext.pgettext() and variants support

2017-11-20 Thread Jonathan Schoonhoven
Jonathan Schoonhoven added the comment: Is there anything I can do to help get this into the codebase and out issue purgatory? We're not that far off from the 10 year anniversary of this issue. -- nosy: +Jonathan Schoonhoven

[issue32071] Add py.test-like "-k" test selection to unittest

2017-11-20 Thread Jonas H.
Jonas H. added the comment: > > 3) Is the approach of dynamically wrapping 'skip()' around to-be-skipped > > test cases OK? > I think this is the wrong approach. A test that isn't selected shouldn't be > skipped, it should not appear in the output at all. Another reason

[issue32071] Add py.test-like "-k" test selection to unittest

2017-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: If it helps, think of TestLoader as collecting tests, rather than simply loading Python modules. -- ___ Python tracker

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-20 Thread Decorater
Decorater added the comment: Interesting, on 3.6.3 on my embedded program it seems to work just fine. Did anything change in it since then? https://github.com/AraHaan/Els_kom_new/blob/master/PC/komextract_new.c -- nosy: +Decorater

[issue32086] C API: Clarify which C functions are safe to be called before Py_Initialize()

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: > For me, it looks like Py_DecodeLocal() is still safe (according to python > 3.6.3 unless anything changed in it). This issue is a regression in Python 3.7. -- ___ Python tracker

[issue32086] C API: Clarify which C functions are safe to be called before Py_Initialize()

2017-11-20 Thread Decorater
Decorater added the comment: For me, it looks like Py_DecodeLocal() is still safe (according to python 3.6.3 unless anything changed in it). -- nosy: +Decorater ___ Python tracker

[issue2504] Add gettext.pgettext() and variants support

2017-11-20 Thread Éric Araujo
Éric Araujo added the comment: The patch would need to be applied on top of the current master to make a pull request. Then, the tasks outlined in that message should be addressed: https://bugs.python.org/issue2504#msg122439 -- assignee: loewis ->

[issue32094] _args_from_interpreter_flags() doesn't keep -X options

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset f39b674876d2bd47ec7fc106d673b60ff24092ca by Victor Stinner in branch 'master': bpo-32094: Update subprocess for -X dev (#4480) https://github.com/python/cpython/commit/f39b674876d2bd47ec7fc106d673b60ff24092ca

[issue32071] Add py.test-like "-k" test selection to unittest

2017-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 21/11/2017 à 00:23, Jonas H. a écrit : > > - The loader code really only deals with loading (i.e., finding + importing) > tests. Yes it expects a file pattern like "test*.py" for identifying test > case files. But apart from that it didn't

[issue32089] In developer mode (-X dev), ResourceWarning is only emited once per line numbers

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4419 stage: -> patch review ___ Python tracker ___

[issue32071] Add py.test-like "-k" test selection to unittest

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: The internal Python test runner "regrtest" already implements the feature as the -m MATCH option and --matchfile FILENAME option. It's implemented in test.support._match_file(). See bpo-31324 for a recent issue on this feature:

[issue32095] AIX: ModuleNotFoundError: No module named '_ctypes' - make install fails

2017-11-20 Thread Michael Felt
Michael Felt added the comment: no. I'll install what I have atm. Too bad - as now it will have an install dependency. re: https://bugs.python.org/issue27976#msg274628 -- seems a warning that libffi is not available might be useful after all. Question: is ffi still

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of bpo-32086. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> C API: Clarify which C functions are safe to be called before Py_Initialize()

[issue32066] asyncio: Support pathlib.Path in create_unix_connection; sock arg should be optional

2017-11-20 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker

[issue32066] asyncio: Support pathlib.Path in create_unix_connection; sock arg should be optional

2017-11-20 Thread Yury Selivanov
New submission from Yury Selivanov : New changeset 423fd362f8e4d6c867a5afc8ac7cbeeb66cac19c by Yury Selivanov in branch 'master': bpo-32066: Support pathlib.Path in create_unix_connection; sock arg should be optional (#4447)

[issue32071] Add py.test-like "-k" test selection to unittest

2017-11-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: First, I should clarify that I'm not a unittest maintainer. However, as far as I can tell, the maintainers have not been very active lately. Also, this is a reasonably simple enhancement (at least conceptually), so I think can do without a

[issue32097] doctest does not consider \r\n a

2017-11-20 Thread Bert JW Regeer
New submission from Bert JW Regeer : doctest fails to consider `\r\n` as a blank line. -- components: Library (Lib) files: test.py messages: 306595 nosy: X-Istence priority: normal severity: normal status: open title: doctest does not consider \r\n a versions: Python

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2017-11-20 Thread Michael Felt
Michael Felt added the comment: On 11/20/2017 5:22 PM, Serhiy Storchaka wrote: > Serhiy Storchaka added the comment: > > _unixdll_getnode, _ifconfig_getnode, and _arp_getnode were changed recently. > Are they still not working on AIX? After

[issue32095] AIX: ModuleNotFoundError: No module named '_ctypes' - make install fails

2017-11-20 Thread Zachary Ware
Zachary Ware added the comment: Do you have libffi (and its development headers) installed where the compiler can find it? Python 3.7 no longer bundles a copy of libffi (see #27979). -- nosy: +zach.ware versions: -Python 3.8

[issue30855] [2.7] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The fix was made 2015-11-09. The tag core-8-5-15 was created 2013-09-16. I'm not well experienced with fossil and thought that 8.5.15 contains this fix, but now I see that this is not true. Yes, updating Tcl/Tk can help.

[issue32095] AIX: ModuleNotFoundError: No module named '_ctypes' - make install fails

2017-11-20 Thread Michael Felt
Michael Felt added the comment: FYI: version 3.6.3 compiles and builds without this issue. + make install DESTDIR=/var/aixtools/python/Python/3.6.3.0 > .buildaix/install.out + mkinstallp.ksh /var/aixtools/python/Python/3.6.3.0 > .buildaix/mkinstallp.out --

[issue28538] _socket module cross-compilation error on android-24

2017-11-20 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4416 ___ Python tracker ___ ___

[issue32095] AIX: ModuleNotFoundError: No module named '_ctypes' - make install fails

2017-11-20 Thread Michael Felt
New submission from Michael Felt : after git clone from master: make install fails to complete with: Important - python is not installed already. FYI: also note - build completes successfully with 2.7.14 (will download and check other python3 versions) if test

[issue32094] _args_from_interpreter_flags() doesn't keep -X options

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4417 stage: -> patch review ___ Python tracker ___

[issue32071] Add py.test-like "-k" test selection to unittest

2017-11-20 Thread Jonas H.
Jonas H. added the comment: Thanks Antoine. I will need some guidance as to what are the correct places to make these changes. I'm not quite sure about the abstractions here (runner, loader, suite, case, etc.) My PoC (see GitHub link in first post) uses a TestSuite

[issue30855] [2.7] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, this is Cygwin! This is a Tk bug (https://core.tcl.tk/tk/tktview?name=5ee8af61e5ef8e233158a43459624f4ecf58a6fe). It was fixed, but not completely. The fix doesn't work on Cygwin. --

[issue30855] [2.7] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-11-20 Thread Zachary Ware
Zachary Ware added the comment: > Ah, this is Cygwin! Hmm, no; Cygwin isn't installed on ware-win81-release. When was the fix made? 2.7 on Windows currently uses 8.5.15, we can bump it up to latest 8.5 if that will help. --

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Terry J. Reedy
New submission from Terry J. Reedy : The itertools roundrobin recipe has an outer loop executed a preset number of times. It is currently implemented with two assignments and a while loop. https://docs.python.org/3/library/itertools.html#itertools-recipes These can be

[issue32100] IDLE: PathBrowser isn't working

2017-11-20 Thread Cheryl Sabella
Change by Cheryl Sabella : -- keywords: +patch pull_requests: +4421 stage: -> patch review ___ Python tracker ___

[issue25711] Rewrite zipimport from scratch

2017-11-20 Thread Brett Cannon
Brett Cannon added the comment: zipimport.py would be frozen just like importlib, so there's no bootstrapping issue if that's what you're asking. -- ___ Python tracker

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Dubslow
Dubslow added the comment: Er, in my first message, make that "(yield from tup for tup in zip_longest(*iters, usefill=False))" -- ___ Python tracker

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___

[issue32101] Add PYTHONDEVMODE=1 to enable the developer mode

2017-11-20 Thread STINNER Victor
New submission from STINNER Victor : In the review of the PR 4478, Antoine Pitrou proposed to add an environment variable to enable the new Python "developer mode" to inherit the developer mode in child Python processes. I proposed to add PYTHONDEVMODE=1. Nick

[issue32043] Add a new -X dev option: "developer mode"

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-32101: Add PYTHONDEVMODE=1 to enable the developer mode. -- ___ Python tracker

[issue32101] Add PYTHONDEVMODE=1 to enable the developer mode

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +4423 stage: -> patch review ___ Python tracker ___

[issue32089] In developer mode (-X dev), ResourceWarning is only emited once per line numbers

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: Attached PR 4482 fixes warnings filters: haypo@selma$ ./python -X dev -c 'import warnings, pprint; pprint.pprint(warnings.filters)' [('ignore', None, , None, 0), ('always', None, , None, 0), ('default', None, , None, 0)]

[issue32089] In developer mode (-X dev), ResourceWarning is only emited once per line numbers

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pitrou ___ Python tracker ___ ___

[issue32094] _args_from_interpreter_flags() doesn't keep -X options

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the bug report Antoine, it's now fixed! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31672] string.Template should use re.ASCII flag

2017-11-20 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: @inada.naoki - I think changing this to ?a will make things more clear. I submitted a PR for that, and then once it lands, we can close this issue. -- ___ Python tracker

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4422 ___ Python tracker ___ ___

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Dubslow
Dubslow added the comment: Regarding the current bug more specifically, I think a few comments would go a long way to helping readers understand the code. And also, I do think the (1, +1, -1) is less readable, simply because it doesn't follow the most common usage patterns

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Dubslow
Dubslow added the comment: Perhaps the loop variable could be renamed to "len_minus_1" or some such something which is more semantic to the algorithm. -- ___ Python tracker

[issue32043] Add a new -X dev option: "developer mode"

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: While the discussion is not done, I close this issue to focus on other more specific issues. I completed the documentation and fixed warnings filters (bpo-32089). The option now also enables asyncio debug mode (bpo-32047). It was

[issue32098] Hardcoded value in Lib/test/test_os.py:L1324:URandomTests.get_urandom_subprocess()

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___

[issue31672] string.Template should use re.ASCII flag

2017-11-20 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- pull_requests: +4420 ___ Python tracker ___ ___

[issue32078] string result of str(bytes()) in Python3

2017-11-20 Thread Arno-Can Uestuensoez
Arno-Can Uestuensoez added the comment: I got your point, missed it before, sorry. So just for completeness. My issue was basically about the ambiguity of the str()-constructor and the str()-built-in-function. Therefore the len/type prints. It works with parameters:

[issue32078] string result of str(bytes()) in Python3

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: I'm sorry but the bug tracker is not the right place to ask such question. There are plenty of resources on the Internet explaining how to write code compatible with Python 2 and Python 3. --

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: IMO, George Sakkis's original version is better than the TJR's proposed revision which has three separate adjustments by one and adds to extraneous functions which aren't central to the example. Dubslow's alternative at least

[issue32098] Hardcoded value in Lib/test/test_os.py:L1324:URandomTests.get_urandom_subprocess()

2017-11-20 Thread hackan
New submission from hackan : The value of `count` is hardcoded to 16 in https://github.com/python/cpython/blob/6a55d09573e5c35c9e4a24a6f811120b41a2a994/Lib/test/test_os.py#L1324 -- messages: 306602 nosy: hackan priority: normal severity: normal status: open title:

[issue32100] IDLE: PathBrowser isn't working

2017-11-20 Thread Cheryl Sabella
New submission from Cheryl Sabella : Clicking on Path Browser in the File menu gives an error instead of opening the Path Browser. -- assignee: terry.reedy components: IDLE messages: 306606 nosy: csabella, terry.reedy priority: normal severity: normal status: open

[issue32089] In developer mode (-X dev), ResourceWarning is only emited once per line numbers

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue32086] C API: Clarify which C functions are safe to be called before Py_Initialize()

2017-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: Issue 32096 covers reverting the change to PyDecode_Locale specifically for 3.7. We can use this issue to ask the broader question "Do we want to *deprecate* our previously implied support for calling PyDecode_Locale() before

[issue32043] Add a new -X dev option: "developer mode"

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset bc9b6e29cb52f8da15613f9174af2f603131b56d by Victor Stinner in branch 'master': bpo-32043: Rephrase -X dev documentation (#4478) https://github.com/python/cpython/commit/bc9b6e29cb52f8da15613f9174af2f603131b56d

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Dubslow
Dubslow added the comment: Note that this follows a bit of discussion on python-ideas, in two threads: https://mail.python.org/pipermail/python-ideas/2017-November/047920.html https://mail.python.org/pipermail/python-ideas/2017-November/047989.html I agree the

[issue32089] In developer mode (-X dev), ResourceWarning is only emited once per line numbers

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 09f3a8a1249308a104a89041d82fe99e6c087043 by Victor Stinner in branch 'master': bpo-32089: Fix warnings filters in dev mode (#4482) https://github.com/python/cpython/commit/09f3a8a1249308a104a89041d82fe99e6c087043

[issue32096] Py_DecodeLocale() fails if used before the runtime is initialized.

2017-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: While they're definitely closely related, I don't think this and issue 32086 are actually duplicates: this issue is "fix the current Py_DecodeLocale regression in 3.7 by reverting back to the 3.6 behaviour", while issue 32086 is "Should we

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 25420fe290b98171e6d30edf9350292c21ef700e by Victor Stinner in branch 'master': bpo-32030: Add more options to _PyCoreConfig (#4485) https://github.com/python/cpython/commit/25420fe290b98171e6d30edf9350292c21ef700e

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Tim Peters
Tim Peters added the comment: I agree the current recipe strikes a very nice balance among competing interests, and is educational on several counts. s/pending/numactive/ # Remove the iterator we just exhausted from the cycle. numactive -= 1 nexts =

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +4424 stage: needs patch -> patch review ___ Python tracker

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually I tried to test if this implementation can cause a crash due to using deeply nested iterators (like in issue14010). For example in next(roundrobin(*([[]]*N + [[1]]))). But if there is such problem here, roundrobin()

[issue25144] 3.5 Win install fails with "TARGETDIR"

2017-11-20 Thread Felipe
Change by Felipe : -- nosy: -fov ___ Python tracker ___ ___ Python-bugs-list

  1   2   >