[issue17102] tarfile extract can write files outside the destination path

2018-08-27 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> tarfile: Traversal attack vulnerability ___ Python tracker

[issue34516] httplib sets unbefitting "Host" in request header when requests an ipv6 format url.

2018-08-27 Thread chen wu
chen wu added the comment: Thanks so much for your reply. when httplib.HTTPConnection is inited with host [fc00::0a08::2] and port 35357, we can make a request normally. only the 'Host' set in header is wrong. I think the most simple way to fix this is adding judgement condition, maybe

[issue34525] smtplib's authobject return value wrongly documented

2018-08-27 Thread Sebastian Rittau
Change by Sebastian Rittau : -- keywords: +patch pull_requests: +8438 stage: -> patch review ___ Python tracker ___ ___

[issue34525] smtplib's authobject return value wrongly documented

2018-08-27 Thread Sebastian Rittau
New submission from Sebastian Rittau : smtplib's authobject() callback is supposed to return bytes, according to both the documentation at https://docs.python.org/3/library/smtplib.html as well as the docstring of SMTP.auth(). This does neither match the implementation of auth(), which

[issue34524] Format conversion documentation example don't match comment

2018-08-27 Thread Richard Evans
Change by Richard Evans : -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34524] Format conversion documentation example don't match comment

2018-08-27 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +8437 stage: -> patch review ___ Python tracker ___ ___

[issue34524] Format conversion documentation example don't match comment

2018-08-27 Thread Eric V. Smith
Eric V. Smith added the comment: Can you be more specific? -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list

[issue34524] Format conversion documentation example don't match comment

2018-08-27 Thread Richard Evans
New submission from Richard Evans : When reading the documentation for string formats I found that the conversion examples had comments that didn't match the example. -- assignee: docs@python components: Documentation messages: 324207 nosy: Richard Evans, docs@python priority: normal

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-27 Thread STINNER Victor
Change by STINNER Victor : -- title: Choose the filesystem encoding earlier in Python initialization (add _PyCoreConfig.filesystem_encoding) -> Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding) ___

[issue34523] Choose the filesystem encoding earlier in Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-27 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +8436 stage: -> patch review ___ Python tracker ___ ___

[issue34523] Choose the filesystem encoding earlier in Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-08-27 Thread STINNER Victor
New submission from STINNER Victor : Currently, the Python filesystem encoding is get in the middle of the Python initialization. initfsencoding() is only called when the import machinery is ready. Technically, only getting the Python codec name requires a working import machinery. We can

[issue34007] test_gdb fails in s390x SLES buildbots

2018-08-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Walking the stack up one by one only triggers the "PC not saved" when the stack goes into libc: (gdb) break builtin_id Breakpoint 1 at 0x139403c: file Python/bltinmodule.c, line 1182. (gdb) r Starting program: /home/linux1/cpython/python tester.py

[issue34007] test_gdb fails in s390x SLES buildbots

2018-08-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I need to do some more experimenting because those symbols are not available on other systems with the test passing. Something is corrupting/not saving the program counter but I do not know what. -- ___

[issue33635] OSError when using pathlib.Path.rglob() to list device files

2018-08-27 Thread miss-islington
miss-islington added the comment: New changeset 2cf33161f7cb4ca726c74fcfa2d6db27073953d8 by Miss Islington (bot) in branch '3.7': bpo-33635: Handling Bad file descriptor in Path.is_file and related. (GH-8542) https://github.com/python/cpython/commit/2cf33161f7cb4ca726c74fcfa2d6db27073953d8

[issue34487] enum _sunder_ names mix metaclass and enum class attributes

2018-08-27 Thread Ethan Furman
Ethan Furman added the comment: All those attributes live in the Enum class. If you use a non-existent attribute, such as _name, then the metaclass will be called to check if that name is actually an Enum member. -- assignee: docs@python -> ethan.furman nosy: +ethan.furman

[issue34482] datetime: Tests for potential crashes due to non-UTF-8-encodable strings

2018-08-27 Thread Paul Ganssle
Paul Ganssle added the comment: Somewhat related: #6697. Turns out there are already some tests here for this, specifically for the C version only: https://github.com/python/cpython/blob/master/Lib/test/datetimetester.py#L3328 -- ___ Python

[issue34007] test_gdb fails in s390x SLES buildbots

2018-08-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think I understand what is happening. The SLES buildbots do not have debugging symbols for glibc: (gdb) set verbose on (gdb) break builtin_id Reading in symbols for Python/bltinmodule.c...done. Breakpoint 1 at 0x139403c: file Python/bltinmodule.c,

[issue33635] OSError when using pathlib.Path.rglob() to list device files

2018-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +8435 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33635] OSError when using pathlib.Path.rglob() to list device files

2018-08-27 Thread Steve Dower
Steve Dower added the comment: New changeset 216b745eafa7cd4a683a8405dcfbd7f5567f504c by Steve Dower (Przemysław Spodymek) in branch 'master': bpo-33635: Handling Bad file descriptor in Path.is_file and related. (GH-8542)

[issue34454] datetime: NULL dereference in fromisoformat() on PyUnicode_AsUTF8AndSize() failure

2018-08-27 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +8434 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21109] tarfile: Traversal attack vulnerability

2018-08-27 Thread Philippe Godbout
Philippe Godbout added the comment: Lars, I think the suggested approach is great. Documentation for the tarfile class should be changed in order to direct user to the "safe" version with an relevant warning. A bit like what is done for PRNG safety. As stated by Eduardo an optional "safe"

[issue34200] importlib: python -m test test_pkg -m test_7 fails randomly

2018-08-27 Thread Vladimir Matveev
Vladimir Matveev added the comment: I've tried to repro this on Mac, Windows box and Windows VM - works fine for all cases. -- nosy: +v2m ___ Python tracker ___

[issue34403] test_utf8_mode.test_cmd_line() fails on HP-UX due to false assumptions

2018-08-27 Thread Michael Felt
Michael Felt added the comment: On 27/08/2018 15:22, Michael Osipov wrote: > Michael Osipov <1983-01...@gmx.net> added the comment: > > So I changed the test code to: > > diff --git a/Lib/test/test_utf8_mode.py b/Lib/test/test_utf8_mode.py > index 26e2e13ec5..d9f8a3ed8b 100644 > ---

[issue34522] PyTypeObject's tp_base initialization bug

2018-08-27 Thread Eddie Elizondo
Change by Eddie Elizondo : -- keywords: +patch pull_requests: +8432 stage: -> patch review ___ Python tracker ___ ___

[issue34522] PyTypeObject's tp_base initialization bug

2018-08-27 Thread Eddie Elizondo
New submission from Eddie Elizondo : >From the documentation, it says that PyType_Ready should be called on `ALL` >type objects to finish their initialization >(https://docs.python.org/3/c-api/type.html#c.PyType_Ready). This means that a >PyTypeObject's ob_type should always be set by

[issue34007] test_gdb fails in s390x SLES buildbots

2018-08-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I requested a SLES VM in https://linuxone20.cloud.marist.edu as indicated by @David Edelsohn (the builtbot maintainer) and I can reproduce the issue on master, 3.7, 3.6 and 3.5. So it seems that a change in gdb itself caused this. Interestingly, in

[issue34498] Python 3.7 breaks on singledispatch_function.register(pseudo_type), which Python 3.6 accepted

2018-08-27 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21109] tarfile: Traversal attack vulnerability

2018-08-27 Thread Tal Einat
Tal Einat added the comment: Lars, a huge +1 from me for your suggested approach and patch. I'd like to work this into a review-ready PR. The patch is a great step forward but still a ways from being ready for a PR: It is missing tests entirely and there are still several important methods

[issue1044] tarfile insecure pathname extraction

2018-08-27 Thread Tal Einat
Change by Tal Einat : -- Removed message: https://bugs.python.org/msg324192 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue1044] tarfile insecure pathname extraction

2018-08-27 Thread Tal Einat
Tal Einat added the comment: I suggest marking this as a duplicate of #21109, which is more general and includes most of the relevant discussion and patches. -- nosy: +taleinat ___ Python tracker

[issue17102] tarfile extract can write files outside the destination path

2018-08-27 Thread Tal Einat
Tal Einat added the comment: I suggest marking this as a duplicate of #21109, which is more general and includes most of the relevant discussion and patches. -- nosy: +taleinat ___ Python tracker

[issue34516] httplib sets unbefitting "Host" in request header when requests an ipv6 format url.

2018-08-27 Thread Prudvi RajKumar Maddala
Prudvi RajKumar Maddala added the comment: I don't think urllib module is part of core python library. It's a 3rd party library which we usually install using pip -- nosy: +prudvinit ___ Python tracker

[issue34514] assertEqual doesn't use maxDiff when comparing dictionaries

2018-08-27 Thread Prudvi RajKumar Maddala
Prudvi RajKumar Maddala added the comment: I see that maxDiff is applied correctly when comparing dictionaries. I don't think that's an issue. -- ___ Python tracker ___

[issue34521] test_socket.RecvmsgIntoSCMRightsStreamTest fails on AMD64 FreeBSD CURRENT Debug 3.x

2018-08-27 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : test_socket.RecvmsgIntoSCMRightsStreamTest fails on AMD64 FreeBSD CURRENT Debug 3.x: https://buildbot.python.org/all/#/builders/60/builds/248 == FAIL: testFDPassSeparateMinSpace

[issue34520] test_asyncio leaked [2, 2, 2] references, sum=6 in AMD64 Windows8.1 Refleaks 3.7

2018-08-27 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : test_asyncio is potentially leaking resources in AMD64 Windows8.1 Refleaks 3.7: https://buildbot.python.org/all/#/builders/132/builds/241 -- Ran 1782 tests in 115.342s OK

[issue34489] subprocess: execution of batch-files (.cmd/.bat) is vulnerable in python for windows / insufficient escape

2018-08-27 Thread Steve Dower
Steve Dower added the comment: Would you consider adding your test suite into the regression tests as well? Right now, this is a well known issue on all platforms, but there is no clear universal solution. If your approach works well for all platforms and does not adversely impact any of

[issue34470] windows msi in headless mode fails to install Script directory on reinstall if the python folder was deleted but not uninstalled

2018-08-27 Thread Steve Dower
Steve Dower added the comment: Also, if you could provide some instructions on how to validate the issue you are reporting. Right now, I'm not even sure what you are seeing that is the problem. -- ___ Python tracker

[issue34470] windows msi in headless mode fails to install Script directory on reinstall if the python folder was deleted but not uninstalled

2018-08-27 Thread Steve Dower
Steve Dower added the comment: Can you please provide the full set of logs for the Python 3.7 install? (They'll be in %TEMP%, and there will be quite a number of them.) -- versions: +Python 3.7 ___ Python tracker

[issue34502] Docs of sys.exit() mention utf8_mode for an unclear reason

2018-08-27 Thread STINNER Victor
STINNER Victor added the comment: Ah ok, in this case, everything is fine :-) -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue34502] Docs of sys.exit() mention utf8_mode for an unclear reason

2018-08-27 Thread Alexey Izbyshev
Alexey Izbyshev added the comment: Victor, but sys.flags docs *do* contain the note[1]: Changed in version 3.7: Added dev_mode attribute for the new -X dev flag and utf8_mode attribute for the new -X utf8 flag. I've tried to express that in msg324086, but obviously failed. [1]

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2018-08-27 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: Interesting is that the very same approach does not work for HP-UX even if I swap out the params for HP-UX: $ ./python -m test test_utf8_mode Run tests sequentially 0:00:00 [1/1] test_utf8_mode test test_utf8_mode failed -- Traceback

[issue14568] HP-UX local libraries not included

2018-08-27 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: Can someone review the PR for this? -- nosy: +michael-o versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker

[issue34519] Add additional aliases for HP Roman 8

2018-08-27 Thread Michael Osipov
Change by Michael Osipov <1983-01...@gmx.net>: -- keywords: +patch pull_requests: +8431 stage: -> patch review ___ Python tracker ___

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2018-08-27 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7ef1697be54a74314d5214d9ba0580d4e620694c by Victor Stinner (Michael Felt) in branch 'master': bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923) https://github.com/python/cpython/commit/7ef1697be54a74314d5214d9ba0580d4e620694c

[issue34519] Add additional aliases for HP Roman 8

2018-08-27 Thread Michael Osipov
New submission from Michael Osipov <1983-01...@gmx.net>: HP Roman 8 is also known as 'hp-roman8', 'cp1051' and 'ibm1051'. They are missing from the aliases.py. -- components: Library (Lib) messages: 324178 nosy: michael-o priority: normal severity: normal status: open title: Add

[issue13312] test_time fails: strftime('%Y', y) for negative year

2018-08-27 Thread STINNER Victor
STINNER Victor added the comment: Note for myself: Python 2.7 is not affected by this bug because it doesn't accept year < 1900. -- ___ Python tracker ___

[issue34403] test_utf8_mode.test_cmd_line() fails on HP-UX due to false assumptions

2018-08-27 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: Maybe Victor Stinner has some insights here. -- nosy: +vstinner ___ Python tracker ___

[issue34403] test_utf8_mode.test_cmd_line() fails on HP-UX due to false assumptions

2018-08-27 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: Maybe skipping the test is the best thing: diff --git a/Lib/test/test_utf8_mode.py b/Lib/test/test_utf8_mode.py index 26e2e13ec5..d6c4b321be 100644 --- a/Lib/test/test_utf8_mode.py +++ b/Lib/test/test_utf8_mode.py @@ -12,7 +12,7 @@ from

[issue34502] Docs of sys.exit() mention utf8_mode for an unclear reason

2018-08-27 Thread STINNER Victor
Change by STINNER Victor : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34502] Docs of sys.exit() mention utf8_mode for an unclear reason

2018-08-27 Thread STINNER Victor
STINNER Victor added the comment: Yes, it's a note for sys.flags. Can you please add it back to sys.flags? Sorry, I added the note at the wrong place. -- ___ Python tracker

[issue34403] test_utf8_mode.test_cmd_line() fails on HP-UX due to false assumptions

2018-08-27 Thread Michael Osipov
Michael Osipov <1983-01...@gmx.net> added the comment: So I changed the test code to: diff --git a/Lib/test/test_utf8_mode.py b/Lib/test/test_utf8_mode.py index 26e2e13ec5..d9f8a3ed8b 100644 --- a/Lib/test/test_utf8_mode.py +++ b/Lib/test/test_utf8_mode.py @@ -208,7 +208,7 @@ class

[issue34518] Documentation for coroutine objects

2018-08-27 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: That's exactly it, thanks! I have no idea how I missed it, despite looking (I thought) carefully. But yes, they should be linked from https://docs.python.org/3/library/stdtypes.html . Just as currently there is

[issue34516] httplib sets unbefitting "Host" in request header when requests an ipv6 format url.

2018-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34518] Documentation for coroutine objects

2018-08-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Is this what you are referring to that has docs for send, close and throw in coroutine objects ? Coroutine object docs : https://docs.python.org/3/reference/datamodel.html#coroutine-objects If the above is the one then I think we can improve on

[issue34518] Documentation for coroutine objects

2018-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34486] "RuntimeError: release unlocked lock" when starting a thread

2018-08-27 Thread STINNER Victor
STINNER Victor added the comment: cond_race.py: simplified example using threading.Lock and threading.Condition: the issue seems to be related to threading.Event which doesn't handle properly signals. -- nosy: +pitrou, serhiy.storchaka Added file:

[issue11192] test_socket error on AIX

2018-08-27 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +8430 stage: -> patch review ___ Python tracker ___ ___

[issue34355] SIGSEGV (Address boundary error)

2018-08-27 Thread INADA Naoki
INADA Naoki added the comment: I think so. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> int(s), float(s) and others may cause segmentation fault ___ Python tracker

[issue30858] Keyword can't be an expression?

2018-08-27 Thread Vedran Čačić
Vedran Čačić added the comment: Nick, thanks for validating my pain. :-| In the meantime, I found out Python already knows more finely what kind of expression something is, and uses that knowledge in the error messages. Look: >>> a + b = 4 SyntaxError: can't assign to operator

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

2018-08-27 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

2018-08-27 Thread miss-islington
miss-islington added the comment: New changeset fa3fd4cb181120007aefc408366c0cef6fb62f9d by Miss Islington (bot) in branch '3.7': bpo-34434: Update doc for bool(), float() and int() arguments (GH-8834) https://github.com/python/cpython/commit/fa3fd4cb181120007aefc408366c0cef6fb62f9d

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

2018-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +8429 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3692] improper scope in list comprehension, when used in class declaration

2018-08-27 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34434] Removal of kwargs for built-in types not covered with "changed in Python" note in documentation

2018-08-27 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 3fe89dac42809a7741d50ebf595be98833b79b97 by Xiang Zhang (Louis Sautier) in branch 'master': bpo-34434: Update doc for bool(), float() and int() arguments (GH-8834) https://github.com/python/cpython/commit/3fe89dac42809a7741d50ebf595be98833b79b97

[issue34487] enum _sunder_ names mix metaclass and enum class attributes

2018-08-27 Thread INADA Naoki
INADA Naoki added the comment: Is it really need to be documented? How is it important when using enum? If there are no problem, I prefer keeping it implementation detail and don't make document fatter. -- nosy: +inada.naoki ___ Python tracker

[issue26544] platform.libc_ver() returns incorrect version number

2018-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +8428 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26544] platform.libc_ver() returns incorrect version number

2018-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7d81e8f5995df6980a1a02923e224a481375f130 by Serhiy Storchaka in branch 'master': bpo-26544: Get rid of dependence from distutils in platform. (GH-8356) https://github.com/python/cpython/commit/7d81e8f5995df6980a1a02923e224a481375f130

[issue34171] Lib/trace.cover not removed by the clean target

2018-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +8427 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34171] Lib/trace.cover not removed by the clean target

2018-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b44a1d4f71daf4edb948b9878f82a60891e4a2e1 by Serhiy Storchaka in branch 'master': bpo-34171: Fix test_trace. (GH-8940) https://github.com/python/cpython/commit/b44a1d4f71daf4edb948b9878f82a60891e4a2e1 --

[issue34517] Error referencing local variables in dict comprehensions inside class definitions

2018-08-27 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34517] Error referencing local variables in dict comprehensions inside class definitions

2018-08-27 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: not a bug -> duplicate stage: -> resolved ___ Python tracker ___ ___ Python-bugs-list

[issue34517] Error referencing local variables in dict comprehensions inside class definitions

2018-08-27 Thread Mark Dickinson
Change by Mark Dickinson : -- superseder: -> improper scope in list comprehension, when used in class declaration ___ Python tracker ___

[issue34517] Error referencing local variables in dict comprehensions inside class definitions

2018-08-27 Thread Mark Dickinson
Mark Dickinson added the comment: [I wrote this before Serhiy posted his reply; sending it anyway, in case the doc links are useful.] This is documented, by-design behaviour. Essentially name resolution skips class scopes. See

[issue26694] Disasembler fall with Key Error while disassemble obfuscated code.

2018-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The dis module is not supposed to support invalid bytecode. This is a new feature, and 2.7 can give only bug fixes. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed

[issue32836] Symbol table for comprehensions (list, dict, set) still includes temporary _[1] variable

2018-08-27 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 ___ Python tracker ___

[issue34427] calling MutableSequence.extend on self produces infinite loop

2018-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agreed. Appending >2**31 items one by one to the collection with external storage is not very efficient, so such collection likely has specialized extend(). -- ___ Python tracker

[issue34517] Error referencing local variables in dict comprehensions inside class definitions

2018-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue3692. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> improper scope in list comprehension, when used in class declaration

[issue34517] Error referencing local variables in dict comprehensions inside class definitions

2018-08-27 Thread Alex Mashianov
Change by Alex Mashianov : -- versions: +Python 3.6 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34517] Error referencing local variables in dict comprehensions inside class definitions

2018-08-27 Thread Alex Mashianov
Alex Mashianov added the comment: Update: any class definition comprehension referencing local variables inside filtering block produces this error. -- ___ Python tracker

[issue34518] Documentation for coroutine objects

2018-08-27 Thread Hrvoje Nikšić
New submission from Hrvoje Nikšić : Coroutine objects have public methods such as send, close, and throw, which do not appear to be documented. For example, at https://stackoverflow.com/q/51975658/1600898 a StackOverflow user asks how to abort an already created (but not submitted) coroutine

[issue34517] Error referencing local variables in dict comprehensions inside class definitions

2018-08-27 Thread Alex Mashianov
New submission from Alex Mashianov : This code: class A: a = 1 b = {str(x): x for x in range(5) if x != a} Produces following error: Traceback (most recent call last): File "", line 1, in File "", line 3, in A File "", line 3, in NameError: name 'a' is not defined Which i

[issue34511] I suggest to add documentation about "method" parameter of urllib.request.Request class

2018-08-27 Thread harobed
harobed added the comment:  Mariatta Wijaya Thanks. Sorry for my bad issue. -- ___ Python tracker ___ ___ Python-bugs-list

[issue34515] lib2to3: support non-ASCII identifiers

2018-08-27 Thread monson
Change by monson : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34219] distutils: build_ext -D wrongly assume defining a symbol with no value

2018-08-27 Thread monson
Change by monson : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34487] enum _sunder_ names mix metaclass and enum class attributes

2018-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34334] QueueHandler logs exc_info twice

2018-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19217] Calling assertEquals for moderately long list takes too long

2018-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34514] assertEqual doesn't use maxDiff when comparing dictionaries

2018-08-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @victor I am little confused over the issue since you have said "`assertDictEqual()` "will be used by default to compare dictionaries in calls to assertEqual()" and "`maxDiff` doesn't apply to `assertEqual()` when comparing dictionaries" . Since

[issue34514] assertEqual doesn't use maxDiff when comparing dictionaries

2018-08-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @prudvinit Reference : https://docs.python.org/3.8/library/unittest.html#unittest.TestCase.maxDiff > This attribute controls the maximum length of diffs output by assert methods > that report diffs on failure. It defaults to 80*8 characters.

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-08-27 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed for Python 3.8. Thank you! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32968] Fraction modulo infinity should behave consistently with other numbers

2018-08-27 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset 393f1ff62e032f20adaed2613a9e2d2d6bcb1eb3 by Mark Dickinson (Elias Zamaria) in branch 'master': bpo-32968: Make modulo and floor division involving Fraction and float consistent with other operations (#5956)

[issue34515] lib2to3: support non-ASCII identifiers

2018-08-27 Thread monson
Change by monson : -- keywords: +patch pull_requests: +8426 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34025] SMTP EmailPolicy not using the correct line length for RCF 2045 encoded data (is 78, should be 76)

2018-08-27 Thread AldarisPale
AldarisPale added the comment: Hi! I hit this bug on python 3.4. For the reference here are two email sources. The first one works while the second one does not. Both were produced using smtplib the only difference being the workaround proposed by Douglas Thor. I hit this bug when using

[issue34516] httplib sets unbefitting "Host" in request header when requests an ipv6 format url.

2018-08-27 Thread chen wu
New submission from chen wu : when I tried to request a url like "https://[fc00:0a08::2]:35357", I got 400. The code is like: import requests requests.get("https://[fc00:0a08::2]:35357;, verify=False) And the apache logs: vhost.c(889): [client fc00:ac1c::9a5:58692] AH00550: Client

[issue34515] lib2to3: support non-ASCII identifiers

2018-08-27 Thread monson
New submission from monson : Python 3.0 introduces additional characters from outside the ASCII range (see PEP 3131). see https://docs.python.org/3/reference/lexical_analysis.html#identifiers But lib2to3 can't tokenize them corretly. ``` $ echo '中 = 1' | python3.7 -m lib2to3.pgen2.tokenize

[issue34427] calling MutableSequence.extend on self produces infinite loop

2018-08-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: > But a MutableSequence can represents a sequence that doesn't > fit in memory. It can provide an interface to a linear > on-disk store. In this case creating an on-memory copy > is not possible. This case is likely not worth worrying about. If a user

[issue34410] itertools.tee not thread-safe; can segfault interpreter when wrapped iterator releases GIL

2018-08-27 Thread Xiang Zhang
Xiang Zhang added the comment: I could. But currently I don't have a good idea how to fix it elegantly. If anyone else makes a PR, I'm willing to review it. -- stage: -> needs patch versions: +Python 3.8 ___ Python tracker