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

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It considers `\r\n` as a blank line. It just doesn't consider `\r\n` as `\n` in a non-blank line. If add `\r` after `some text` the test will pass. Or use NORMALIZE_WHITESPACE. -- nosy: +serhiy.storchaka

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

2017-11-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Tests keywords: +easy stage: -> needs patch ___ Python tracker ___

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

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is there a *need* to break existing code? What is the benefit and how large it in comparison with the necessary of rewriting every code that embeds Python (and supporting both ways for long time)? -- nosy:

[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()

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that using binary tree would be excessively here. I just wondering if there is a simple way to get rid of the quadratic complexity. In any case this does not matter much until you work with many hundreds or thousands of

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- Removed message: https://bugs.python.org/msg306629 ___ Python tracker ___

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Serhiy, I think you're focusing on an irrelevant edge case and reading too much into the recipe. You could create an underlying binary tree with O(n) iteration and O(log n) deletion but then that completely misses the point of

[issue32099] Use range in itertools roundrobin recipe

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: roundrobin() has quadratic computational complexity. For example list(roundrobin(*([[1]]*N))). Is there a way to make it with linear complexity? -- nosy: +serhiy.storchaka ___ Python

[issue32102] Add "capture_output=True" option to subprocess.run

2017-11-20 Thread Nick Coghlan
New submission from Nick Coghlan : I'm hesitant to suggest adding yet-another-option to any subprocess API, but I'm thinking it may be worth it in this case. The idea is to make it possible to replace: result = subprocess.run(cmd, stdout=PIPE, stderr=PIPE) with:

[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

[issue25144] 3.5 Win install fails with "TARGETDIR"

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

[issue25144] 3.5 Win install fails with "TARGETDIR"

2017-11-20 Thread Steve Dower
Steve Dower added the comment: > Got the same issue with the 3.6 installer You've got a different issue, but I can't tell what it is without all of the logs. Can you look in your %TEMP% directory for the file you attached, and then also include those with the same

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

2017-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: Another argument against PYTHONXOPTIONS is that each implementation is free to decide which -X options it wants to support, and we don't really define what they're supposed to do with options they don't recognise. By contrast, there's an

[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
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

[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. --

[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

[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

[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 ___

[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
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

[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:

[issue32099] Use range in itertools roundrobin recipe

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

[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

[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

[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

[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 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

[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

[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

[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

[issue32030] PEP 432: Rewrite Py_Main()

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4422 ___ 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: 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

[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

[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 ___

[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

[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

[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 ___ ___

[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

[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 ___ ___

[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

[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 ___ ___

[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:

[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:

[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 ___

[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 ->

[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

[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

[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 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

[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

[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 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

[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)

[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()

[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 ___ ___

[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

[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 ___

[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

[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 ___

[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 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

[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

[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

[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 --

[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 ___

[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

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

2017-11-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What return commands `ifconfig`, `ifconfig -a`, `ifconfig -av`, `ip link list`, `arp -an`, `lanscan -ai` (if not error)? -- ___ Python tracker

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

2017-11-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: These changes are not needed anymore now that Unified Headers are supported by android-ndk-r14 (see issue 29040) -- resolution: fixed -> not a bug stage: resolved -> patch review status: closed -> open

[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 ___ ___

[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.

[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

[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. --

[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. --

[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

[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

[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

[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

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

2017-11-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4415 ___ 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 ->

[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

[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

[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: >>>

[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

[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

[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 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

[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

[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 ___

[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: New changeset c5a2071586f735d2a61d1756e7011cfbb6ce86c9 by Victor Stinner in branch 'master': bpo-32050: Fix -x option documentation (#4475) https://github.com/python/cpython/commit/c5a2071586f735d2a61d1756e7011cfbb6ce86c9

[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 ___

[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 /

[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 ___ ___

[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 ___

[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 ___ ___

  1   2   >