[issue29469] AST-level Constant folding

2017-07-25 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +2909 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31003] IDLE: Add tests for help sources on configdialog general tab

2017-07-25 Thread Terry J. Reedy
New submission from Terry J. Reedy: Bugs discovered while testing for tests; fix in followup that also streamlines layout. Size vars are StringVars and write text strings that give invalid warning when read. Use IntVars and enforce minimum at least 1? Test what tk allows. Will IntVar reject

[issue29512] regrtest refleak: implement bisection feature

2017-07-25 Thread Pierre Quentel
Pierre Quentel added the comment: Maybe it's me who is doing things wrong, but when I run Lib/test/test_httpservers.py I get this strange error : Traceback (most recent call last): File "C:\cpython\Lib\test\test_httpservers.py", line 7, in from http.server import BaseHTTPRequestHandler,

[issue31003] IDLE: Add tests for help sources on configdialog general tab

2017-07-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2910 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31018] _tracemalloc frame_t packing optimization not working in Windows x64

2017-07-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue30576] http.server should support HTTP compression (gzip)

2017-07-25 Thread Pierre Quentel
Pierre Quentel added the comment: In the latest version of the Pull Request (https://github.com/python/cpython/pull/2078/commits/6466c93555bec521860c57e832b691fe7f0c6c20) : - compression is disabled by default (compressed_types is set to []) - as suggested by Chris Barker in the discussion on p

[issue31021] Clarify programming faq.

2017-07-25 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue29512] regrtest refleak: implement bisection feature

2017-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are many ways of running tests, and some of them are broken now. $ ./python Lib/test/test_bisect.py == ERROR: test_backcompatibility (__main__.TestBi

[issue31018] _tracemalloc frame_t packing optimization not working in Windows x64

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 39243779f4c97ec6f700fa73c007ca66dfa9408e by Victor Stinner (Segev Finer) in branch 'master': bpo-31018: Switch to #pragma pack from __declspec(align) (#2848) https://github.com/python/cpython/commit/39243779f4c97ec6f700fa73c007ca66dfa9408e -

[issue31018] _tracemalloc frame_t packing optimization not working in Windows x64

2017-07-25 Thread STINNER Victor
Changes by STINNER Victor : -- versions: -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29512] regrtest refleak: implement bisection feature

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: Workarounds: * ./python -m test test_httpservers * ./python -I Lib/test/test_httpservers.py > Maybe it's me who is doing things wrong, but when I run > Lib/test/test_httpservers.py I get this strange error : ... File "c:\python36\lib\random.py", line 48, in

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

2017-07-25 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2911 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client (CVE-2016-5699)

2017-07-25 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2912 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-07-25 Thread Bernát Gábor
New submission from Bernát Gábor: Hello, typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv which means that Sphinx fails to find these. Thanks, -- components: Library (Lib) messages: 299048 nosy: Bernát Gábor priority: normal severity: norma

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client (CVE-2016-5699)

2017-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the difference between PR 2817 and PR 2861? -- ___ Python tracker ___ ___ Python-bugs-list

[issue31009] test_multiprocessing_spawn hangs randomly on AMD64 Windows10 3.x and AMD64 Windows8 3.x

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: test_multiprocessing_spawn hangs on running test_child_fd_inflation(). Child processes call test.support.fd_count(). But in a debug build, if the fd is invalid, os.dup(fd) kills immediately the process without letting Python to handle the error. It seems like

[issue26732] multiprocessing sentinel resource leak

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: The newly added test now hangs on almost all Windows buildbots, see: http://bugs.python.org/issue31009#msg299050 -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue26732] multiprocessing sentinel resource leak

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: By the way, 3.6 is marked as affected, but the change wasn't backported to 3.6? -- ___ Python tracker ___ __

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client (CVE-2016-5699)

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: > What is the difference between PR 2817 and PR 2861? Oh crap, I didn't know that you already created a PR. I compared the two PR: * My PR adds \A at the start of: _is_legal_header_name = re.compile(rb'\A[^:\s][^:\r\n]*\Z').match * My PR uses blurb, yours m

[issue31025] io.BytesIO: no way to get the length of the underlying buffer without copying data

2017-07-25 Thread Arthur Darcet
New submission from Arthur Darcet: If I'm not mistaken, a BytesIO buffer can be in three states: (1) `b = BytesIO(b'data')` -> free of any constraints (2) `d = b'data'; b = BytesIO(d)` -> cannot modify the underlying bytes without copying them (3) `b = BytesIO(b'data'); d = b.getbuffer()` ->

[issue31026] test_bisect fails when run directly

2017-07-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python Lib/test/test_dbm.py ..BDB0004 fop_read_meta: @test_29975_tmp_ndbm.db: unexpected file type or format ..EBDB3028 @test_29975_tmp.db: unable to flush: No such file or directory ..EBDB3028 @test_29975_tmp.db: unable to flush: No such file or director

[issue31009] test_multiprocessing_spawn hangs randomly on AMD64 Windows10 3.x and AMD64 Windows8 3.x

2017-07-25 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2913 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31026] test_dbm fails when run directly

2017-07-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: test_bisect fails when run directly -> test_dbm fails when run directly ___ Python tracker ___ ___

[issue31025] io.BytesIO: no way to get the length of the underlying buffer without copying data

2017-07-25 Thread Martin Panter
Martin Panter added the comment: Can’t you use b.seek(0, SEEK_END)? -- nosy: +martin.panter versions: -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker

[issue31027] test_listcomps fails when run directly

2017-07-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python Lib/test/test_listcomps.py doctest (test.test_listcomps) ... 33 tests with zero failures Traceback (most recent call last): File "Lib/test/test_listcomps.py", line 148, in test_main(verbose=True) File "Lib/test/test_listcomps.py", line 14

[issue31026] test_dbm fails when run directly

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: On my Linux (Fedora 25), "./python Lib/test/test_dbm.py" and "./python -m test test_dbm" both succeed. -- nosy: +haypo ___ Python tracker ___ _

[issue31028] test_pydoc fails when run directly

2017-07-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python Lib/test/test_pydoc.py ... == ERROR: test_mixed_case_module_names_are_lower_cased (__main__.PydocDocTest) -- Tra

[issue31025] io.BytesIO: no way to get the length of the underlying buffer without copying data

2017-07-25 Thread Arthur Darcet
Arthur Darcet added the comment: it's a tiny bit slow, but that works, thank you. I guess we can close this % python -m timeit -s "import io; b = io.BytesIO(b'0' * 2 ** 30)" "p = b.tell(); b.seek(0, 2); b.tell(); b.seek(p)" 100 loops, best of 3: 0.615 usec per loop % python -m timeit -s

[issue31026] test_dbm fails when run directly

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: Which dbm implementation are you using? Do you have the following modules? haypo@selma$ ./python Python 3.7.0a0 (heads/master:3924377, Jul 25 2017, 14:17:41) [GCC 6.3.1 20161221 (Red Hat 6.3.1-1)] on linux Type "help", "copyright", "credits" or "license" for m

[issue31029] test_tokenize fails when run directly

2017-07-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python Lib/test/test_tokenize.py Traceback (most recent call last): File "Lib/test/test_tokenize.py", line 1607, in unittest.main() NameError: name 'unittest' is not defined -- components: Tests keywords: easy messages: 299062 nosy: serhiy

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @stefan In fact I could create the PR for the backports, but I have again the same issues for the rest of CPython. I have checked your code, and in my case 'gcc' is in the cc string, 'gcc -pthread' and you have fixed for libmpdec. But for the other modules

[issue31028] test_pydoc fails when run directly

2017-07-25 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2914 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31029] test_tokenize fails when run directly

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: fixed, I am going to push my branch -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list

[issue31029] test_tokenize fails when run directly

2017-07-25 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +2915 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue31030] sys.executable can be not normalized

2017-07-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: test_executable in Lib/test/test_sys.py tests that sys.executable is absolute. But this test is too strong, it fails if sys.executable is not normalized. $ Lib/../python -m test test_sys Run tests sequentially 0:00:00 load avg: 0.39 [1/1] test_sys test test

[issue31029] test_tokenize fails when run directly

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Serhiy you are free to merge my PR, and I will do the backport for 3.6 -- ___ Python tracker ___ __

[issue31030] sys.executable can be not normalized

2017-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: test_venv fails for the same cause. $ Lib/../python -m test -m test_defaults test_venv Run tests sequentially 0:00:00 load avg: 0.31 [1/1] test_venv test test_venv failed -- Traceback (most recent call last): File "/home/serhiy/py/cpython/Lib/test/test_venv.

[issue31030] sys.executable can be not normalized

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: Technically, /home/serhiy/py/cpython/Lib/../python is absolute and is a valid path. I'm not sure that it's possible to normalize sys.executable early in the Python initialization. If we modify the site module to normalize sys.executable, it would mean that sy

[issue31031] Unify duplicate bits_in_digit and bit_length

2017-07-25 Thread Niklas Fiekas
New submission from Niklas Fiekas: My previous patch to optimize bits_in_digit was rejected: http://bugs.python.org/issue29782 This leaves this issue open (mathmodule.c): /* XXX: This routine does more or less the same thing as * bits_in_digit() in Objects/longobject.c. Someday it would be ni

[issue31031] Unify duplicate bits_in_digit and bit_length

2017-07-25 Thread Niklas Fiekas
Changes by Niklas Fiekas : -- pull_requests: +2916 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: Hum, I don't think that it's worth it to backport changes which only fix warnings. Usually, we first focus on fixing all warnings on master. -- nosy: +haypo ___ Python tracker ___

[issue22928] HTTP header injection in urrlib2/urllib/httplib/http.client (CVE-2016-5699)

2017-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: \A is not needed. match() always matches from the start. -- ___ Python tracker ___ ___ Python-bugs

[issue31031] Unify duplicate bits_in_digit and bit_length

2017-07-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: yep, currently, 3.6 and 3.5 are in 'bug fix' mode, and in this case, it's not a bug. -- ___ Python tracker ___ ___

[issue31026] test_dbm fails when run directly

2017-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >>> import _gdbm Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named '_gdbm' >>> import _dbm >>> -- ___ Python tracker

[issue27099] IDLE: turn builting extensions into regular modules

2017-07-25 Thread Charles Wohlganger
Charles Wohlganger added the comment: Unfortunately, it looks like config deletes settings for extensions when they are not found - which is what will happen with this patch. One solution would be to have separate config files for 2 and 3. -- ___ Py

[issue31032] test_ssl

2017-07-25 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: Last commit on master commit ccfdb60af7b2db578c1aceb7742cec033077 (HEAD -> master, upstream/master, upstream/HEAD) Fedora 26 openssl-libs-1.1.0f-7.fc26.x86_64 openssl-devel-1.1.0f-7.fc26.x86_64 openssl-1.1.0f-7.fc26.x86_64 ``` Run tests sequentially

[issue31032] test_ssl

2017-07-25 Thread Christian Heimes
Christian Heimes added the comment: Duplicate of #30714 -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_ssl fails with openssl 1.1.0f: test_alpn_protocols() ___ Python tracker

[issue31032] test_ssl

2017-07-25 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: This is a duplicate of http://bugs.python.org/issue30714 -- nosy: +cstratak ___ Python tracker ___ __

[issue30714] test_ssl fails with openssl 1.1.0f: test_alpn_protocols()

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Dear Christian, Have you found a solution for this issue ? -- nosy: +matrixise ___ Python tracker ___ ___

[issue31033] Add argument to .cancel() of Task and Future

2017-07-25 Thread Марк Коренберг
New submission from Марк Коренберг: History: First, I tried to debug code around asyncio.Task() cancelling. So I wrote: = try: ... except Exception as e: print(e) = When task was cancelled, an empty string printed. I wondered why. So I change the code to print(repr(e))

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-07-25 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg185785 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue31029] test_tokenize fails when run directly

2017-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 90addd6d1c1fde4ec12a6b554d1deacfac6a879c by Serhiy Storchaka (Stéphane Wirtel) in branch 'master': bpo-31029: test_tokenize Add missing import unittest (#2865) https://github.com/python/cpython/commit/90addd6d1c1fde4ec12a6b554d1deacfac6a879c -

[issue31029] test_tokenize fails when run directly

2017-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Stéphane. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue31029] test_tokenize fails when run directly

2017-07-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue31021] Clarify programming faq.

2017-07-25 Thread Charles Wohlganger
Charles Wohlganger added the comment: Modulo is defined mathematically as the remainder of Euclidian division. I.E. a positive r where a % b = r is equivalent to a = b * x + r. I think it confuses the issue to say "-190 % 12 were the mathematical equivalent -10", when that is technically incor

[issue31033] Add argument to .cancel() of Task and Future

2017-07-25 Thread Yury Selivanov
Yury Selivanov added the comment: Well, don't use "print(e)" when you are printing errors in in Python. This is pretty standard behaviour for all Python code, not just asyncio. A lot of code in stdlib raises exceptions, almost none allows to customize them. --

[issue25910] Fixing links in documentation

2017-07-25 Thread Jim Ferrara
Changes by Jim Ferrara : -- pull_requests: +2917 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31033] Add argument to .cancel() of Task and Future

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: you could use gdb or pdb for the debugging. -- nosy: +matrixise ___ Python tracker ___ ___ Python-b

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-07-25 Thread Stefan Krah
Stefan Krah added the comment: Well, it's not a bug, but perhaps it is annoying for users of this gcc version if they compile 3.6 often. Actually, I think gcc should not include this warning in -Wextra. It's something that could be run manually before a release. I'd vote for making -Wno-im

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Stefan, ask on python-dev ml, or we have to ask to Ned Deily for this version ? -- ___ Python tracker ___ _

[issue30848] test_multiprocessing_forkserver hangs on AMD64 FreeBSD CURRENT Debug 3.x

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: AMD64 FreeBSD 10.x Shared 3.x: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.x/builds/621/steps/test/logs/stdio ... 0:11:00 load avg: 2.57 [403/406] test_asyncio passed -- running: test_concurrent_futures (31 sec), test_multiproce

[issue30576] http.server should support HTTP compression (gzip)

2017-07-25 Thread Martin Panter
Martin Panter added the comment: I think chunked encoding is only meant to be used for HTTP 1.1. For HTTP 1.0, you have to either send Content-Length, or shut down the connection after sending the body. See also Issue 21224 about improving HTTP 1.1 support. Maybe you should add a “Vary: accept

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: I'm ok to kill warnings, but I would suggest to first fix most GCC7 warnings because starting to discuss backports. I expect that it will require multiple changes. -- ___ Python tracker

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I am not for a backport, it's not a security fix or a bug fix. for my case, I just want to "kill" the warnings, maybe we could check the version of gcc and add "-Wimplicit-fallthrough=0". Here is a good explanation of the 'fallthrough' in gcc7 https://develo

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-07-25 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Yeah the warnings are quit annoying when compiling the master and 3.6 branch. Fedora 26 currently includes gcc 7 which emits those warnings, other distros will follow up when they update gcc, so I'd think it would be better to fix it. -- __

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-07-25 Thread Stefan Krah
Stefan Krah added the comment: We can check for the version, but all versions of gcc that I tested accept and ignore -Wno-implicit-fallthrough, even though they don't actually have -Wimplicit-fallthrough. Of course they choke on -Wimplicit-fallthrough=0. -- ___

[issue30923] Add -Wimplicit-fallthrough=0 to Makefile ?

2017-07-25 Thread Stefan Krah
Stefan Krah added the comment: I think the fall-through blog notes are slightly overstated. :-) "The switch fallthrough has been widely considered a design defect in C." It's an important feature. -- ___ Python tracker

[issue31034] test_subprocess_send_signal() of test_asyncio hangs if SIGHUP is ignored

2017-07-25 Thread STINNER Victor
New submission from STINNER Victor: A colleague reported me that the Python test suite hangs on running test_subprocess_send_signal() of test_asyncio. After analysing the issue, it seems like the test hangs becaues the RPM package builder ignores SIGHUP using something like: def daemonize():

[issue31035] Document order of firing callbacks added with Future.add_done_callback()

2017-07-25 Thread Марк Коренберг
New submission from Марк Коренберг: Please document these two things: * Order of callbacks firing is not specified. (Is it True?) * All callbacks are called *BEFORE* await triggered: f = asyncio.Future() f.add_done_callback(xxx) f.add_done_callback(yyy) try: await f except

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread Matthias Klose
New submission from Matthias Klose: [Ned asked to submit that as a release blocker] the build of the documentation fails with at least the 3.5.4rc1. It adds a new build dependency (blurb), which is inconvenient to build on stable environments, or when pip is not available. Please could you co

[issue31034] test_subprocess_send_signal() of test_asyncio hangs if SIGHUP is ignored

2017-07-25 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2918 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31037] Results in section 4.4 break and continue

2017-07-25 Thread Lisabel Leon
New submission from Lisabel Leon: The first example of this section shows different results if typed into the Python interpreter. This is the documentation (documentation.png) and these are the results as I type it into my environment (testresults.jpg). -- assignee: docs@python compon

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread Ned Deily
Ned Deily added the comment: We should be able to fix the Makefile recipe to handle either case, i.e. when Misc/NEWS.d is not present (as in the release tarballs), don't try to run blurb. -- versions: -Python 3.3 ___ Python tracker

[issue31037] Results in section 4.4 break and continue

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: could you be more explicit? which section ? Thank you -- nosy: +matrixise ___ Python tracker ___ _

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: blurb should be only used when there is a release of python, and in this case, only by the release manager. -- ___ Python tracker ___

[issue31033] Add argument to .cancel() of Task and Future

2017-07-25 Thread Марк Коренберг
Марк Коренберг added the comment: Yes, I agree with you about my weird way of debugging. But anyway, changing API with adding ability to pass actual cause would be welcome. -- ___ Python tracker __

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread Ned Deily
Ned Deily added the comment: > blurb should be only used when there is a release of python, and in this > case, only by the release manager. No, that's not the case. Blurb needs to be used whenever the docs are built because the NEWS file is used in the Docs build to produce the changelog.htm

[issue31033] Add argument to .cancel() of Task and Future

2017-07-25 Thread Yury Selivanov
Yury Selivanov added the comment: > Yes, I agree with you about my weird way of debugging. But anyway, changing > API with adding ability to pass actual cause would be welcome. I'm not opposed to the idea, btw. If we do decide to add an argument to 'cancel', we probably should do the same for

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: It will be easier to decide if Misc/NEWS was generated or not when... Misc/NEWS will be removed from Git: https://github.com/python/cpython/pull/2719 No? -- nosy: +haypo ___ Python tracker

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ok, I understand. but blurb is an external tool (github.com/python/core-workflow). There will be a new dependency, excepted if we store it into the Tools/ directory. and if we add it into Tools, we have to add it to the old branches where blurb is supposed t

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: Thread on python-committers: https://mail.python.org/pipermail/python-committers/2017-July/004763.html -- ___ Python tracker ___ ___

[issue31033] Add argument to .cancel() of Task and Future

2017-07-25 Thread Марк Коренберг
Марк Коренберг added the comment: Hmmm task.set_exception(Exception('xxx')) Will it cancel whole chain of depending futures in a RIGHT way ? Or we must require exception passed here to be subclassed from CancelledError ? -- ___ Python tracker <

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread Ned Deily
Ned Deily added the comment: Unfortunately, updates to the Doc build process doc have not yet been made but the intended process is to provide blurb via the "make venv" Doc build recipe which now also pip-installs blurb from PyPI. It is the necessary to use that venv to build the docs: make

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: > There will be a new dependency, excepted if we store it into the Tools/ > directory. Please don't do that. I will be a mess to update our copy. It's already painful enough to embed our copy of libexpat, zlib and indirectly of OpenSSL (on Windows and macOS).

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: > I will be a mess to update our copy. typo, you should read: "It will be..." ;-) (It will be a mess to update our copy of blurb.) -- ___ Python tracker _

[issue31033] Add argument to .cancel() of Task and Future

2017-07-25 Thread Yury Selivanov
Yury Selivanov added the comment: > Will it cancel whole chain of depending futures in a RIGHT way ? I was thinking about this: def Future.set_exception(exc): if isinstance(exc, asyncio.CancelledError): return self._cancel(exc) # here goes old code def Future.cancel()

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: @haypo I don't want to add a new dependency, but it's an option. I prefer the suggestion of Ned. How do you imagine the patch ? -- ___ Python tracker ___

[issue31036] building the python docs requires the blurb module

2017-07-25 Thread Ned Deily
Ned Deily added the comment: Please let Larry have a chance to look at this before we spend a lot of energy here rehashing discussions. We'll fix it, it's not hard! -- ___ Python tracker _

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2017-07-25 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: @Matheus: What other languages support this? Is this (i.e. defaulting to Sunday, or Monday?) the default behavior there? -- ___ Python tracker __

[issue31009] test_multiprocessing_spawn hangs randomly on AMD64 Windows10 3.x and AMD64 Windows8 3.x

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 302bbbe9ba5c72559913e2ea006c921f698a729d by Victor Stinner in branch 'master': bpo-31009: Fix support.fd_count() on Windows (#2862) https://github.com/python/cpython/commit/302bbbe9ba5c72559913e2ea006c921f698a729d -- ___

[issue31037] Results in section 4.4 break and continue

2017-07-25 Thread Zachary Ware
Zachary Ware added the comment: Take a look at the statement immediately following the example: "(Yes, this is the correct code. Look closely: the else clause belongs to the for loop, not the if statement.)" The example is correct, and is introducing the concept of an 'else' clause on a for l

[issue31037] Results in section 4.4 break and continue

2017-07-25 Thread Lisabel Leon
Lisabel Leon added the comment: Thank you Zachary for such a speedy response. I'll paste text next time. Rgds! Lisabel On Tue, Jul 25, 2017 at 11:56 AM, Zachary Ware wrote: > > Zachary Ware added the comment: > > Take a look at the statement immediately following the example: > > "(Yes, this

[issue31038] test_runpy causes running all Python tests when run directly

2017-07-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python Lib/test/test_runpy.py ...== CPython 3.7.0a0 (heads/master-dirty:39243779f4, Jul 25 2017, 14:32:21) [GCC 6.3.0 20170406] == Linux-4.10.0-28-generic-i686-athlon-with-debian-stretch-sid little-endian == hash algorithm: siphash24

[issue31018] _tracemalloc frame_t packing optimization not working in Windows x64

2017-07-25 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2920 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31018] _tracemalloc frame_t packing optimization not working in Windows x64

2017-07-25 Thread Segev Finer
Changes by Segev Finer : -- pull_requests: +2919 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31038] test_runpy causes running all Python tests when run directly

2017-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After commenting out methods test_directory_error, test_zipfile_error and test_main_recursion_error, test_runpy is passed. -- nosy: +ncoghlan ___ Python tracker

[issue31034] test_subprocess_send_signal() of test_asyncio hangs if SIGHUP is ignored

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 830080913c22a9834d310294b9f7653234dc6a59 by Victor Stinner in branch 'master': bpo-31034: Reliable signal handler for test_asyncio (#2867) https://github.com/python/cpython/commit/830080913c22a9834d310294b9f7653234dc6a59 --

[issue31018] _tracemalloc frame_t packing optimization not working in Windows x64

2017-07-25 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the fix ;-) -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ __

  1   2   3   >