[issue36272] Recursive logging crashes Interpreter in Python 3

2019-03-14 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 65f64b1903ae85b97a30f514bbc1b7ce940c3af2 by Vinay Sajip (Rémi Lapeyre) in branch 'master': bpo-36272: Logging now propagates RecursionError (GH-12312) https://github.com/python/cpython/commit/65f64b1903ae85b97a30f514bbc1b7ce940c3af2 -- __

[issue36272] Recursive logging crashes Interpreter in Python 3

2019-03-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +12307 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30458] CRLF Injection in httplib

2019-03-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue36276 for a similar report. I think it's better to raise an error instead of encoding CRLF characters in URL similar to headers. I feel either of the issue and more preferably issue36276 closed as a duplicate o

[issue30040] new empty dict can be more small

2019-03-14 Thread Inada Naoki
Inada Naoki added the comment: > I do not like how much code is needed for such minor optimization. PR 12307 is +46 lines. Benefit is about 10ns when first insertion. $ cpython/python.opt -m perf timeit --compare-to master/python.opt --python-names master:empty-dict2 --duplicate 100 'd={};d

[issue36276] Python urllib CRLF injection vulnerability

2019-03-14 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: For reference an exact report on golang repo : https://github.com/golang/go/issues/30794 . This seemed to have been fixed in latest golang release 1.12 and commit https://github.com/golang/go/commit/829c5df58694b3345cb5ea41206783c8ccf5c3ca . The co

[issue36299] Deprecate 'u' type in array module

2019-03-14 Thread Inada Naoki
New submission from Inada Naoki : The doc says: > 'u' will be removed together with the rest of the Py_UNICODE API. > Deprecated since version 3.3, will be removed in version 4.0. > https://docs.python.org/3/library/array.html But DeprecationWarning is not raised yet. Let's raise it. * 3.8 -

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-14 Thread mental
Change by mental : -- type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36298] Lib/pyclbr.py crashes when the package spec cannot be determined by importlib

2019-03-14 Thread mental
New submission from mental : Hi folks! (apologies in advance if any of the code blocks come out irregular, this is my first issue) I was just exploring the `Lib` modules out of curiosity and I discovered `pyclbr` a peculiar artifact from the older days of the Python standard library. I noti

[issue36297] Remove unicode_internal codec

2019-03-14 Thread Inada Naoki
New submission from Inada Naoki : unicode_internal codec is deprecated since Python 3.3. It raises DeprecationWarning from 3.3. >>> "hello".encode('unicode_internal') __main__:1: DeprecationWarning: unicode_internal codec has been deprecated b'h\x00\x00\x00e\x00\x00\x00l\x00\x00\x00l\x00\x00\x0

[issue36286] Random failure in test_idle

2019-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am guessing that test_idle and hence this test have been run over 500 days X 20 runs/day (1 times) since merged. This is the first report I have seen, though failures that get retested would be masked. My guess is a sporadic timing delay such that th

[issue23216] IDLE grep/find/replace source code needs docstrings

2019-03-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are several minor things to fix after this (and multiple issues), including the difference between find in search and replace. It seems to me that is should be the same. We will definitely need to test changes on both Windows and Linux. The font col

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-14 Thread Jess
Jess added the comment: Nevermind, the hold over issue was from another bit. Updated the change request. -- versions: +Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker _

[issue36276] Python urllib CRLF injection vulnerability

2019-03-14 Thread ragdoll
ragdoll added the comment: OK -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mai

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-14 Thread Jess
Jess added the comment: Looks like the brackets are fine even in the bracket case Steve mentioned. @echo off if NOT DEFINED ABCDEF ( echo "all good" ) if NOT DEFINED ABCDE ( echo "all good2" ) set ABCDE= if NOT DEFINED ABCDE ( echo "sadness" ) if [%ABCDE%]==[] ( echo "all good3" )

[issue36245] PCBuild/build.bat errors, probably from space characters in paths

2019-03-14 Thread Jess
Jess added the comment: Alas, "IF NOT DEFINED PYTHON" isn't working - as it's even more possible to get into a state where PYTHON="" than it is for a bracket to be in the python name. Thus, the system would think it declared where we would have created it into an actual path otherwise.

[issue36296] distutils.version.StrictVersion objects cannot be compared with distutils.version.LooseVersionobjects

2019-03-14 Thread Éric Araujo
Éric Araujo added the comment: Hello! Are you seeing this problem when building or installing some package, or are you using the classes directly? If it’s the latter, I would recommand you to use https://pypi.org/project/packaging/ rather than distutils, which is not meant to be used as a g

[issue36296] distutils.version.StrictVersion objects cannot be compared with distutils.version.LooseVersionobjects

2019-03-14 Thread Harry Seeber
New submission from Harry Seeber : The self.version used in Version._cmp is a List in LooseVersion's implementation, a Tuple in StrictVersion's implementation. Attempting to compare Strict & Loose versions results in a TypeError. I'd like to PR a fix, but I'd like to know if I'm being stupid

[issue36295] Need to yield (sleep(0)) twice in asyncio

2019-03-14 Thread Zachary Ware
Change by Zachary Ware : -- components: +asyncio nosy: +asvetlov, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-14 Thread jt
jt added the comment: Yeah, having this in the NuGet version would be amazing! I have been too specific with the ticket with my narrow mind set on a solution, but NuGet + complete standard library (including venv and pip) is what I now believe I actually should be using. Not that I would mi

[issue36287] Make ast.dump() not output optional default fields

2019-03-14 Thread Brett Cannon
Brett Cannon added the comment: @eamanu tests are basically always necessary. :) -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue33944] Deprecate and remove pth files

2019-03-14 Thread Brett Cannon
Brett Cannon added the comment: We could also have a new namespace package which is *just* for startup injection so it wasn't such a hack to tie into the codecs startup code. -- ___ Python tracker _

[issue36276] Python urllib CRLF injection vulnerability

2019-03-14 Thread Brett Cannon
Brett Cannon added the comment: Yep, if it's the same problem then close this as a dupe and just poke the other issue. -- ___ Python tracker ___ _

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-14 Thread Paul Moore
Paul Moore added the comment: Ah, yes, you're right. I'd misremembered. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue36268] Change default tar format to modern POSIX 2001 (pax) for better portability/interop, support and standards conformance

2019-03-14 Thread C.A.M. Gerlach
C.A.M. Gerlach added the comment: Sure, in work now. Its my first contribution to CPython, so bear with me. I presume this is too trivial to go in the What's New in Python article, but does merit a NEWS entry so users are aware of the change? Aside from changing [this line](https://github.co

[issue34160] ElementTree not preserving attribute order

2019-03-14 Thread Diego Rojas
Change by Diego Rojas : -- pull_requests: +12306 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36295] Need to yield (sleep(0)) twice in asyncio

2019-03-14 Thread Assaf Dayan
New submission from Assaf Dayan : In asyncio, 'await asyncio.sleep(0)' is used to relinquish control and check for finished awaitables before continuing. In my example, an awaitable returns but is only handled if 'await asyncio.sleep(0)' is called twice (adjacently) and only then the returned

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-14 Thread Eryk Sun
Eryk Sun added the comment: > It appears that the venv module did not get added to the 3.7.3 rc1 > embedded distribution. Was that an oversight, or had I misunderstood > what was needed for this to have happened? I think it was supposed to be added to the nuget package: https://github.com/p

[issue36010] Please provide a .zip Windows release of Python that is not crippled/for embedding only

2019-03-14 Thread Paul Moore
Paul Moore added the comment: It appears that the venv module did not get added to the 3.7.3 rc1 embedded distribution. Was that an oversight, or had I misunderstood what was needed for this to have happened? -- ___ Python tracker

[issue34714] timeout in test_multiprocessing_spawn x86 Windows7 3.x buildbot

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: We should extend the timeout of this buildbot worker. More and more tests are failing randomly with the 15 min timeout: https://buildbot.python.org/all/#/builders/58/builds/2060 0:19:49 [ 36/420/1] test_zipfile crashed (Exit code 1) -- running: test_multipr

[issue18368] PyOS_StdioReadline() leaks memory when realloc() fails

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- pull_requests: +12305 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue36262] Coverity scan: Python/dtoa.c resource leak

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the report Charalampos. I fixed dtoa.c in 2.7, 3.7 and master branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36262] Coverity scan: Python/dtoa.c resource leak

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset b14057877fd897eaee7bc6626682fc6092b6bbd2 by Victor Stinner in branch '2.7': bpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) (GH-12332) https://github.com/python/cpython/commit/b14057877fd897eaee7bc6626682fc6092b6bbd2 ---

[issue36292] Coverity scan: Resource leaks in longobject.c

2019-03-14 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: This code is unreachable. Will mark it as such. -- ___ Python tracker ___ ___ Python-bugs-

[issue36292] Coverity scan: Resource leaks in longobject.c

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- versions: -Python 2.7, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue36262] Coverity scan: Python/dtoa.c resource leak

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9818360ed94b39c4605951077b73ae798cddbfb9 by Victor Stinner in branch '3.7': bpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) (GH-12331) https://github.com/python/cpython/commit/9818360ed94b39c4605951077b73ae798cddbfb9 ---

[issue35809] test_concurrent_futures.ProcessPoolForkExecutorDeadlockTest fails intermittently on Travis and passes in verbose mode

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: Another example: https://travis-ci.org/python/cpython/jobs/506338756 0:06:39 load avg: 4.23 [326/416/1] test_concurrent_futures failed -- running: test_multiprocessing_spawn (1 min 27 sec) Traceback: Thread 0x2b2b1c243700 (most recent call first): File

[issue36294] `io.BufferedIOBase` returns `None`

2019-03-14 Thread Cyker Way
New submission from Cyker Way : Document of [BufferedIOBase](https://docs.python.org/3/library/io.html#io.BufferedIOBase) says: > ...unlike their RawIOBase counterparts, they will never return None. But this example shows the above statement is not true: import io import os im

[issue36293] Nonblocking read sys.stdin raises error

2019-03-14 Thread Cyker Way
New submission from Cyker Way : This piece of code will raise an error: import os import sys os.set_blocking(sys.stdin.fileno(), False) sys.stdin.read() Error: > TypeError: can't concat NoneType to bytes Not sure if this is relevant (for a different version of Python): ht

[issue36292] Coverity scan: Resource leaks in longobject.c

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12304 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36289] [2.7] Coverity scan: Modules/_io/bufferedio.c leaked_storage: Variable "data" going out of scope leaks the storage it points to.

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks Charalampos, I merged your PR. Python 3.7 and master are not affected: _bufferedreader_read_all() has been refactored to add a "cleanup" label which clears all local data including the 'data' variable. -- resolution: -> fixed stage: patch re

[issue36289] [2.7] Coverity scan: Modules/_io/bufferedio.c leaked_storage: Variable "data" going out of scope leaks the storage it points to.

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2dd6e079ae71f3723fbea2582ac080be06a6968f by Victor Stinner (stratakis) in branch '2.7': [2.7] bpo-36289: Fix a possible reference leak in the io module (GH-12329) https://github.com/python/cpython/commit/2dd6e079ae71f3723fbea2582ac080be06a6968f

[issue34160] ElementTree not preserving attribute order

2019-03-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please do add an entry to WhatsNew. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue36262] Coverity scan: Python/dtoa.c resource leak

2019-03-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12303 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36262] Coverity scan: Python/dtoa.c resource leak

2019-03-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12302 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36292] Coverity scan: Resource leaks in longobject.c

2019-03-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36291] [2.7] Coverity Scan: Modules/_json.c: leaked_storage: Variable "numstr" going out of scope leaks the storage it points to.

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks Charalampos, I merged your PR. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36291] [2.7] Coverity Scan: Modules/_json.c: leaked_storage: Variable "numstr" going out of scope leaks the storage it points to.

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset fb3336acfde3204fd01ce519ef24cc18a94dfa3f by Victor Stinner (stratakis) in branch '2.7': [2.7] bpo-36291: Fix a possible reference leak in the json module (GH-12330) https://github.com/python/cpython/commit/fb3336acfde3204fd01ce519ef24cc18a94dfa3

[issue36291] [2.7] Coverity Scan: Modules/_json.c: leaked_storage: Variable "numstr" going out of scope leaks the storage it points to.

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: Note for myself: Python 3 isn't affected by this issue. The issue in Python 2 is in the _match_number_str() function which doesn't exist in Python 3. In Python 3, _parse_object_unicode() uses a very different code: it calls PyFloat_FromString() or PyLong_Fro

[issue36292] Coverity scan: Resource leaks in longobject.c

2019-03-14 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36292] Coverity scan: Resource leaks in longobject.c

2019-03-14 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : The coverity scan was run on python2, however the same defect seems to exist in python3 as well. Error: RESOURCE_LEAK (CWE-772): [#def69] Python-2.7.15/Objects/longobject.c:3793: alloc_fn: Storage is returned from allocation function "_PyLong_New".

[issue36212] [2.7] Coverity scan: Modules/_hotshot.c , Variable "s1" going out of scope leaks the storage it points to.

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2832ad53358e3fbc4bdc601b9f3fa04dd0deae46 by Victor Stinner (stratakis) in branch '2.7': [2.7] bpo-36212: Fix two possible reference leaks in the hotshot module (GH-12327) https://github.com/python/cpython/commit/2832ad53358e3fbc4bdc601b9f3fa04d

[issue36212] [2.7] Coverity scan: Modules/_hotshot.c , Variable "s1" going out of scope leaks the storage it points to.

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: Thanks Charalampos, I merged your PR. I made minor changes in your commit message. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36212] [2.7] Coverity scan: Modules/_hotshot.c , Variable "s1" going out of scope leaks the storage it points to.

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: Note for myself: Python 3 isn't affected, _hotshot module has been removed from Python 3. -- nosy: +vstinner ___ Python tracker ___

[issue36268] Change default tar format to modern POSIX 2001 (pax) for better portability/interop, support and standards conformance

2019-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a PR? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue36291] [2.7] Coverity Scan: Modules/_json.c: leaked_storage: Variable "numstr" going out of scope leaks the storage it points to.

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12301 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36291] [2.7] Coverity Scan: Modules/_json.c: leaked_storage: Variable "numstr" going out of scope leaks the storage it points to.

2019-03-14 Thread Julien Palard
Change by Julien Palard : -- assignee: -> matrixise nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue33002] Making a class formattable as hex/oct integer with printf-style formatting requires both __int__ and __index__ for no good reason

2019-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Resolved in issue36048. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__

[issue12974] array module: deprecate '__int__' conversion support for array elements

2019-03-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__ ___ Python tracker <

[issue36291] [2.7] Coverity Scan: Modules/_json.c: leaked_storage: Variable "numstr" going out of scope leaks the storage it points to.

2019-03-14 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Coverity reports a leak within the json module: Error: RESOURCE_LEAK (CWE-772): [#def26] Python-2.7.15/Modules/_json.c:1367: alloc_fn: Storage is returned from allocation function "PyString_FromStringAndSize". Python-2.7.15/Objects/stringobject.c:88:

[issue36290] _ast.ast_type_init does not handle args and kwargs correctly.

2019-03-14 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : While looking at issue 36287 I noticed that the argument parsing logic in _ast.ast_type_init is wrong, for example ast.Constant takes only one argument: ✗ ./python.exe Python 3.8.0a2+ (remotes/origin/HEAD-1-ged9b774cf3:ed9b774cf3, Mar 14 2019, 00:50:47) [Cl

[issue36289] [2.7] Coverity scan: Modules/_io/bufferedio.c leaked_storage: Variable "data" going out of scope leaks the storage it points to.

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12300 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36288] Incorrect answer when using round()

2019-03-14 Thread Zachary Ware
Change by Zachary Ware : -- components: -Build ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue36288] Incorrect answer when using round()

2019-03-14 Thread Zachary Ware
Zachary Ware added the comment: Please see the documentation for `round`, it explains this: https://docs.python.org/3/library/functions.html#round -- nosy: +zach.ware -remi.lapeyre resolution: -> not a bug stage: -> resolved status: open -> closed type: behavior -> ___

[issue36288] Incorrect answer when using round()

2019-03-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Thanks for submitting a report MeeranRizvi. This is the expected behavior, according to the IEEE 754 Python round to nearest even integer. This is called the bankers' rounding and is done (I think) to limitate the propagation of errors. I suggest we close this

[issue36289] [2.7] Coverity scan: Modules/_io/bufferedio.c leaked_storage: Variable "data" going out of scope leaks the storage it points to.

2019-03-14 Thread Charalampos Stratakis
New submission from Charalampos Stratakis : Coverity scan reports this for bufferedio.c : Error: RESOURCE_LEAK (CWE-772): [#def23] Python-2.7.15/Modules/_io/bufferedio.c:1353: alloc_fn: Storage is returned from allocation function "PyString_FromStringAndSize". Python-2.7.15/Objects/stringobjec

[issue36288] Incorrect answer when using round()

2019-03-14 Thread MeeranRizvi
New submission from MeeranRizvi : When using round() for calculation it gives the incorrect answer. For Example: round(1.5) >>2(Which is correct) But when we calculate: round(2.5) >>2(Should give 3 right?) -- components: Build messages: 337921 nosy: MeeranRizvi priority: normal severi

[issue33944] Deprecate and remove pth files

2019-03-14 Thread Nick Coghlan
Nick Coghlan added the comment: Just noting that https://bugs.python.org/issue14803 is probably our most comprehensive discussion of the coverage use case for arbitrary pre-__main__ code execution. Steve also made a comment above about potentially turning encodings into a namespace package:

[issue36287] Make ast.dump() not output optional default fields

2019-03-14 Thread Emmanuel Arias
Change by Emmanuel Arias : -- keywords: +patch pull_requests: +12299 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36287] Make ast.dump() not output optional default fields

2019-03-14 Thread Emmanuel Arias
Emmanuel Arias added the comment: Hi @serhiy.storchaka, I send a patch to Github to review. Let me know if is necessary unittest. Regards -- ___ Python tracker ___

[issue36263] test_hashlib.test_scrypt() fails on Fedora 29

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: I wrote a PR to fix OpenSSL: https://github.com/openssl/openssl/pull/8483 -- ___ Python tracker ___ _

[issue36266] Which module could not be found?

2019-03-14 Thread Steve Dower
Steve Dower added the comment: Okay, in that case we're just adding `shortname` into the formatted `message` in _PyImport_FindSharedFuncptrWindows in Python/dynload_win.c I've marked this as "easy (C)" as it seems like a good first contribution for someone. -- keywords: +easy (C) re

[issue34160] ElementTree not preserving attribute order

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: > Victor, I thought that the news changes were only for major changes. It's a backward incompatible change. It broke at least docutils. So it should be mentioned at least at: https://docs.python.org/dev/whatsnew/3.8.html#changes-in-the-python-api --

[issue34160] ElementTree not preserving attribute order

2019-03-14 Thread Diego Rojas
Diego Rojas added the comment: Victor, I thought that the news changes were only for major changes. In another hand, I could retake this bug in a few days with the issues that you mentioned. -- ___ Python tracker

[issue36202] Calling Py_DecodeLocale() before _PyPreConfig_Write() can produce mojibake

2019-03-14 Thread Nick Coghlan
Nick Coghlan added the comment: Victor and I were discussing the appropriate behaviour for the "What do we do if _Py_PreInitialize() hasn't been called?" case, and Victor pointed out that the potential for mojibake provides a solid rationale for going back to the Python 3.6 behaviour: disabl

[issue34160] ElementTree not preserving attribute order

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: This change broke docutils test suite: https://sourceforge.net/p/docutils/bugs/359/ Problems: * I cannot see the change documented anywhere in https://docs.python.org/dev/whatsnew/3.8.html * I don't see any simple workaround. It would be nice to add an opt-

[issue36212] [2.7] Coverity scan: Modules/_hotshot.c , Variable "s1" going out of scope leaks the storage it points to.

2019-03-14 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- keywords: +patch pull_requests: +12298 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue15749] cgitb prints html for text when display disabled.

2019-03-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Rémi, I think @r.david.murray would need to review the PR, based on his last comment. That's why I was asking whether the patch should be converted to a PR. There seemed to be a conflict between this and issue 12890 and I wasn't certain which parts of

[issue36231] no "proper" header files on macOS 10.14 Mojave

2019-03-14 Thread Ned Deily
Ned Deily added the comment: Thanks for the report and for the PR offer but let's hold off on that for the moment: I'm planning to merge a somewhat different approach. -- assignee: -> ned.deily ___ Python tracker

[issue35647] Cookie path check returns incorrect results

2019-03-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Got it, Larry. I wanted to track it and make sure you don't miss it. Looks like we have the PR from @xtreak for 3.4 and 3.5 branches. Thank you! -- ___ Python tracker

[issue36287] Make ast.dump() not output optional default fields

2019-03-14 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue36216] CVE-2019-9636: urlsplit does not handle NFKC normalization

2019-03-14 Thread STINNER Victor
Change by STINNER Victor : -- title: urlsplit does not handle NFKC normalization -> CVE-2019-9636: urlsplit does not handle NFKC normalization ___ Python tracker ___ _

[issue36276] Python urllib CRLF injection vulnerability

2019-03-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for this report. Should we make this a duplicate of this issue30458 - as they are both referring to the same problem with the underlying library? -- ___ Python tracker

[issue31904] Python should support VxWorks RTOS

2019-03-14 Thread STINNER Victor
STINNER Victor added the comment: Please stop to send new PRs which depend on other PRs which are not merged yet, it becomes too hard to follow :-( Let's focus on first PRs. -- ___ Python tracker __

[issue30040] new empty dict can be more small

2019-03-14 Thread Inada Naoki
Inada Naoki added the comment: New changeset 3fe7fa316f74ed630fbbcdf54564f15cda7cb045 by Inada Naoki in branch 'master': bpo-30040: update news entry (GH-12324) https://github.com/python/cpython/commit/3fe7fa316f74ed630fbbcdf54564f15cda7cb045 --

[issue36287] Make ast.dump() not output optional default fields

2019-03-14 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently ast.dump() outputs values for optional fields even if they are equal to defaults. This makes the output unnecessary verbose. For example (kind and type_comment are optional): >>> ast.dump(ast.parse('x = 1')) "Module(body=[Assign(targets=[Name(i

[issue30040] new empty dict can be more small

2019-03-14 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12297 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36231] no "proper" header files on macOS 10.14 Mojave

2019-03-14 Thread Dmitrii Pasechnik
Dmitrii Pasechnik added the comment: I won't mind to provide a PR for this. but it is not clear what the goal should be. Is it to build a working OSX Python with as few external to Xcode deps (it seems that only lzma is needed) as possible? -- ___

[issue33350] WinError 10038 is raised when loop.sock_connect is wrapped with asyncio.wait_for

2019-03-14 Thread yjq
yjq added the comment: I'm using python 3.7.2. And I met the same problem. -- nosy: +yjqiang ___ Python tracker ___ ___ Python-bugs

[issue36254] Fix invalid uses of %d in format strings in C

2019-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 783bed4c8daf65a2893d94761ea44af4e3718f4f by Serhiy Storchaka in branch '3.7': [3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322) https://github.com/python/cpython/commit/783bed4c8daf65a2893d94761ea44af4e371

[issue36127] Argument Clinic: inline parsing code for functions with keyword parameters

2019-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3191391515824fa7f3c573d807f1034c6a28fab3 by Serhiy Storchaka in branch 'master': bpo-36127: Argument Clinic: inline parsing code for keyword parameters. (GH-12058) https://github.com/python/cpython/commit/3191391515824fa7f3c573d807f1034c6a28f

[issue36254] Fix invalid uses of %d in format strings in C

2019-03-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +12296 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue30040] new empty dict can be more small

2019-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not like how much code is needed for such minor optimization. -- ___ Python tracker ___ __

[issue36254] Fix invalid uses of %d in format strings in C

2019-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2c0d3f454705bb5ccf5f6189f3cf77bbae4f056b by Serhiy Storchaka in branch 'master': bpo-36254: Fix yet one invalid use of %d in format string in C. (GH-12318) https://github.com/python/cpython/commit/2c0d3f454705bb5ccf5f6189f3cf77bbae4f056b ---

[issue30040] new empty dict can be more small

2019-03-14 Thread Inada Naoki
Inada Naoki added the comment: Benchmark result is here. https://github.com/methane/sandbox/tree/master/2019.01/empty-dict notes: * Overhead introduced by PR 1080 (https://bugs.python.org/issue30040#msg337778) is cancelled by first insert optimization. It is now faster than before. * PR 1

[issue31904] Python should support VxWorks RTOS

2019-03-14 Thread Peixing Xin
Change by Peixing Xin : -- pull_requests: +12295 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36254] Fix invalid uses of %d in format strings in C

2019-03-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +12294 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue31904] Python should support VxWorks RTOS

2019-03-14 Thread Yue Sun
Change by Yue Sun : -- pull_requests: +12293 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue36282] Not accurate error message for exact number of positional arguments

2019-03-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: behavior -> enhancement ___ Python tracker ___ __

[issue36284] importlib.import_module() not thread safe if Exception is raised (3.4, 3.5)

2019-03-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3.4 and 3.5 take only security fixes. The only solution of this problem is upgrading to 3.6 or 3.7. -- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tra

[issue36254] Fix invalid uses of %d in format strings in C

2019-03-14 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +12292 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

  1   2   >