[issue34560] Backport of uuid1() failure fix

2018-08-31 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34558] ctypes.find_library processing - missing parenthesis prevents subprocess from getting a returncode

2018-08-31 Thread miss-islington
miss-islington added the comment: New changeset 89c9043ee09d89c99f70e61d8fc0ba45e255b055 by Miss Islington (bot) in branch '3.7': bpo-34558: Add missing parentheses in _aix.py (GH-9017) https://github.com/python/cpython/commit/89c9043ee09d89c99f70e61d8fc0ba45e255b055 -- nosy:

[issue34558] ctypes.find_library processing - missing parenthesis prevents subprocess from getting a returncode

2018-08-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34558] ctypes.find_library processing - missing parenthesis prevents subprocess from getting a returncode

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

[issue34558] ctypes.find_library processing - missing parenthesis prevents subprocess from getting a returncode

2018-08-31 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 172a71f19bb5e9624651850b315f403c460b9699 by Mariatta (Michael Felt) in branch 'master': bpo-34558: Add missing parentheses in _aix.py (GH-9017) https://github.com/python/cpython/commit/172a71f19bb5e9624651850b315f403c460b9699 --

[issue25711] Rewrite zipimport from scratch

2018-08-31 Thread Brett Cannon
Brett Cannon added the comment: I'm personally in no rush and I assume Serhiy isn't either with 3.8 cut-off quite a ways out, so I see no rush. -- ___ Python tracker ___

[issue34561] Replace list sorting merge_collapse()?

2018-08-31 Thread Tim Peters
New submission from Tim Peters : The invariants on the run-length stack are uncomfortably subtle. There was a flap a while back when an attempt at a formal correctness proof uncovered that the _intended_ invariants weren't always maintained. That was easily repaired (as the researchers

[issue34546] Add encryption support to zipfile

2018-08-31 Thread 大野隆弘
大野隆弘 added the comment: Agree, we should not enhance weak encryption to the world. But unfortunately, MS Windows supports only this type of encryption as far as I researched. https://blogs.msdn.microsoft.com/oldnewthing/20180515-00/?p=98755 That is the my first motivation of Traditional

[issue25711] Rewrite zipimport from scratch

2018-08-31 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Not sure if I'll have time before the core sprints to check the implementation with shiv, but I can give it a try then. Do you mind waiting until then? -- ___ Python tracker

[issue34546] Add encryption support to zipfile

2018-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >From the official ZIP files specification: This form of encryption is considered weak by today's standards and its use is recommended only for situations with low security needs or for compatibility with older .ZIP applications. I think

[issue34007] test_gdb fails in s390x SLES buildbots

2018-08-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +8490 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34007] test_gdb fails in s390x SLES buildbots

2018-08-31 Thread miss-islington
miss-islington added the comment: New changeset 4da71814b327cb2ad47a01710360cd21ba636352 by Miss Islington (bot) in branch '3.7': bpo-34007: Skip traceback tests if the Program Counter is not available. (GH-9018)

[issue34007] test_gdb fails in s390x SLES buildbots

2018-08-31 Thread miss-islington
miss-islington added the comment: New changeset 5d594f3106aff6cea00234c88051427ae511cdd8 by Miss Islington (bot) in branch '2.7': bpo-34007: Skip traceback tests if the Program Counter is not available. (GH-9018)

[issue34560] Backport of uuid1() failure fix

2018-08-31 Thread Riccardo Mottola
New submission from Riccardo Mottola : Backport proposal of fix for closed issue 32502 The patch was directly adapted from https://github.com/python/cpython/commit/d69794f4df81de731cc66dc82136e28bee691e1e applied to 2.7 and tested working for me. Discussion ongoing MacPorts requested to

[issue18307] Relative path in co_filename for zipped modules

2018-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch for the Python implementation of zipimport (see issue25711) is much simpler (see the attached sample patch). But it requires adding a way of modifying co_filename. Currently code objects are immutable. This issue looks as a part of the larger

[issue34007] test_gdb fails in s390x SLES buildbots

2018-08-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34007] test_gdb fails in s390x SLES buildbots

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

[issue34007] test_gdb fails in s390x SLES buildbots

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

[issue34007] test_gdb fails in s390x SLES buildbots

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

[issue34559] multiprocessing AuthenticationError when nesting with non-default authkey

2018-08-31 Thread natedogith1
New submission from natedogith1 : If you nest shared objects on a manager that doesn't use the default authkey, you get an AuthenticationError. import multiprocessing.managers a = multiprocessing.managers.SyncManager(authkey=b'') a.start() b = a.list() b.append(a.list()) _ = b[0] --

[issue34007] test_gdb fails in s390x SLES buildbots

2018-08-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset f2ef51f8bec525b21e5290c8a029642795ed by Pablo Galindo in branch 'master': bpo-34007: Skip traceback tests if the Program Counter is not available. (GH-9018)

[issue34546] Add encryption support to zipfile

2018-08-31 Thread Brett Cannon
Change by Brett Cannon : -- title: Zipfile encryption function -> Add encryption support to zipfile ___ Python tracker ___ ___

[issue25711] Rewrite zipimport from scratch

2018-08-31 Thread Brett Cannon
Brett Cannon added the comment: I think Serhiy's PR is basically done, so now the question is do we want to merge it in and drop the C code? ;) I obviously say yes because this is I/O-bound code and so the switch shouldn't be enough of a performance hit to warrant blocking the gain in

[issue34408] possible null pointer dereference in pystate.c

2018-08-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 95d630e2213fb0ffc197ec440efa3ae3dbb74f8d by Pablo Galindo in branch 'master': bpo-34408: Prevent a null pointer dereference and resource leakage in `PyInterpreterState_New()` (GH-8767)

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

2018-08-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This error happens a lot in the same buildbot in different tests: raceback (most recent call last): File "/usr/home/buildbot/python/3.7.koobs-freebsd-current/build/Lib/multiprocessing/process.py", line 297, in _bootstrap self.run() File

[issue34007] test_gdb fails in s390x SLES buildbots

2018-08-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +8486 stage: -> patch review ___ Python tracker ___ ___

[issue34499] Extend registering of single-dispatch functions to parametrized generic pseudo-types

2018-08-31 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34443] enum repr should use __qualname__

2018-08-31 Thread orlnub123
orlnub123 added the comment: After some thinking I've come to the conclusion that making the __str__s use the fully qualified name was a bad idea. I've closed my PR. -- ___ Python tracker

[issue34558] ctypes.find_library processing - missing parenthesis prevents subprocess from getting a returncode

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

[issue34536] Enum._missing_ doesn't raise TypeError when a non-Enum object is a returned

2018-08-31 Thread Ethan Furman
Change by Ethan Furman : -- assignee: -> ethan.furman nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34558] ctypes.find_library processing - missing parenthesis prevents subprocess from getting a returncode

2018-08-31 Thread Michael Felt
New submission from Michael Felt : With AIX I have seen the following messages repeatedly: root@x066:[/data/prj/python/python3-3.8]./python ../git/*3.8/Lib/ctypes/test/test_loading.py /data/prj/python/git/python3-3.8/Lib/subprocess.py:852: ResourceWarning: subprocess 11796734 is still

[issue34557] When sending binary file to a Microsoft FTP server over FTP TLS, the SSL unwind method hangs

2018-08-31 Thread James Campbell
New submission from James Campbell : When using the FTP library to transfer a binary file to a Microsoft FTP server using TLS, then the library will hang when unwinding the connection until it finally times out. The storbinary method calls conn.unwind which seems to have an issue with SSL

[issue34551] Redundant store can be removed from _PyFunction_FastCallDict

2018-08-31 Thread Eric Lippert
Eric Lippert added the comment: If it were possible that the interpreter iterating over a dictionary could cause the dictionary to change size then I suspect that this would be a rich source of bugs to mine. :-) It would be great if we could make it a documented, enforced invariant that

[issue34496] Argparse library: parse --set type

2018-08-31 Thread Éric Araujo
Éric Araujo added the comment: In my experience, a more common way to say “stop parsing and take the remaining arguments as one value” is using `--`. -- nosy: +eric.araujo ___ Python tracker

[issue34465] ipaddress should accept bytearray in addition to bytes

2018-08-31 Thread Xiang Zhang
Xiang Zhang added the comment: I'm -1 on this change. I think the workaround is easy and direct. -- ___ Python tracker ___ ___

[issue34551] Redundant store can be removed from _PyFunction_FastCallDict

2018-08-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1230540] sys.excepthook doesn't work in threads

2018-08-31 Thread Christoph Reiter
Christoph Reiter added the comment: To add one more use case for this: concurrent.futures.Future.add_done_callback() currently ignores exceptions for the callback and just logs them which is easy to miss. I assume because it's not clear when and in which thread it gets called, and there is

[issue34556] Add --upgrade to venv module

2018-08-31 Thread Cooper Lees
Cooper Lees added the comment: Thanks for hi-lighting, yes, sorry. I should of been clearer here. What should we use other than `--upgrade`? I just wanted the topic to be generic: - `-U` - `--upgrade-modules` - `--pip-upgrade` - `--pull-latest` In regards to using subprocess, it calls exec

[issue34062] Python launcher on Windows does not work with --list or --list-paths

2018-08-31 Thread Steve Dower
Steve Dower added the comment: Thanks, Brendan! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34556] Add --upgrade to venv module

2018-08-31 Thread Zachary Ware
Zachary Ware added the comment: This sounds good to me; my `python -m venv venv` commands are also almost always followed up by `venv/bin/python -m pip install -U pip setuptools wheel`. I wouldn't get the `wheel` from this, but it's not always necessary anyway. Rather than importing or

[issue34062] Python launcher on Windows does not work with --list or --list-paths

2018-08-31 Thread miss-islington
miss-islington added the comment: New changeset 5df3658f2db1585607d41c25093a2a7d2a4de347 by Miss Islington (bot) in branch '3.7': bpo-34062: Add missing launcher argument and make behavior consistent between short and long arguments (GH-8827)

[issue34556] Add --upgrade to venv module

2018-08-31 Thread Cooper Lees
New submission from Cooper Lees : I'd like to propose add a `--upgrade` to venv module to automatically update pip and potentially setuptools if supplied. This will allow ensuring you have the latest and greatest of these core components. Example Usage: python3 -m venv --upgrade

[issue34555] AF_VSOCK not unset because of wrong nesting

2018-08-31 Thread Thomas Herzog
Change by Thomas Herzog : -- keywords: +patch pull_requests: +8484 stage: -> patch review ___ Python tracker ___ ___

[issue34554] Add match built-in function

2018-08-31 Thread mokhalid
mokhalid added the comment: Thanks so much, I will do it :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34062] Python launcher on Windows does not work with --list or --list-paths

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

[issue34554] Add match built-in function

2018-08-31 Thread Eric Snow
Eric Snow added the comment: Thanks for the proposal. At first glance I actually kind of like the idea, though I can't offer much more feedback than that without taking some time to think it through. :) That said, proposals like this for new syntax and other new language features are best

[issue34062] Python launcher on Windows does not work with --list or --list-paths

2018-08-31 Thread Steve Dower
Steve Dower added the comment: New changeset aada63b20ec64bbfc4f2fb0718fc563eedbdd36a by Steve Dower (Brendan Gerrity) in branch 'master': bpo-34062: Add missing launcher argument and make behavior consistent between short and long arguments (GH-8827)

[issue34555] AF_VSOCK not unset because of wrong nesting

2018-08-31 Thread Thomas Herzog
New submission from Thomas Herzog : If ./configure runs with the following result... checking for linux/vm_sockets.h... no checking for sockaddr_alg... no ...then the result of the first check is treated as if it was "yes". This is because the logic for disabling the vm_sockets functionality

[issue34554] Add match built-in function

2018-08-31 Thread mokhalid
Change by mokhalid : -- title: Add match built in functio -> Add match built-in function ___ Python tracker ___ ___

[issue34554] Add match built in functio

2018-08-31 Thread mokhalid
Change by mokhalid : -- title: add match built in function -> Add match built in functio ___ Python tracker ___ ___

[issue34554] add match built in function

2018-08-31 Thread mokhalid
mokhalid added the comment: sorry I forget to print text i mean: match([2,5,4,'Hello']): 2: print('here is 2') 6: print('here is 6') elif 'Hello': print('Hello world') 8:print('here is 8') elif 'python': print('Hello world') else: print('MoKhalid') --

[issue34554] add match built in function

2018-08-31 Thread mokhalid
New submission from mokhalid : match built-in function feature request: what is the match function do? the match function is doing something like if but with quick easy syntax that even beginners can use. possible syntax: match(list or string or dictionary): condition: event here

[issue34097] ZIP does not support timestamps before 1980

2018-08-31 Thread STINNER Victor
STINNER Victor added the comment: Thanks Petr Viktorin for reporting this issue and thanks Marcel Plch for the fix! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue34097] ZIP does not support timestamps before 1980

2018-08-31 Thread STINNER Victor
STINNER Victor added the comment: New changeset 77b112cd56a50232abcdbf28f9aba88dc5d33ad3 by Victor Stinner (Marcel Plch) in branch 'master': bpo-34097: Polish API design (GH-8725) https://github.com/python/cpython/commit/77b112cd56a50232abcdbf28f9aba88dc5d33ad3 --

[issue34543] _struct.Struct: calling functions without calling __init__ results in SystemError

2018-08-31 Thread Ronald Oussoren
Change by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1230540] sys.excepthook doesn't work in threads

2018-08-31 Thread STINNER Victor
STINNER Victor added the comment: My concern is more about backward compatibility. Documentation is one thing, but usually users rely on the actual implementation, not on the documentation, to define what is the Python behaviour. Would you mind to open a thread on python-dev about this

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-08-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: win32com is part of pywin32, which is a 3th-party extension. Please check with that project first (if there is bug it is probably on that side). -- components: +Windows nosy: +paul.moore, ronaldoussoren, steve.dower, tim.golden, zach.ware

[issue34551] Redundant store can be removed from _PyFunction_FastCallDict

2018-08-31 Thread STINNER Victor
STINNER Victor added the comment: > I think it is technically not possible. Neither PyDict_Next() nor Py_INCREF() > mutate the dict, call the user code or release GIL. If it could be possible, > we would have a potential writing out of a buffer here. When I read PyDict_Next(), I'm thinking

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2018-08-31 Thread STINNER Victor
STINNER Victor added the comment: > The buildbots seem happy. This may be closed. Cool, thank you for checking, and thanks for your fix! I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-08-31 Thread Vijay
Vijay added the comment: i have already added the script. try to run in the python3.7. python is getting crashed. -- ___ Python tracker ___

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-08-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There is a very similar SO question https://stackoverflow.com/questions/51885734/python-crashes-when-i-am-trying-to-access-any-date-related-fields-in-mailitem-co which points to an AttributeError. Is this a case where Python segfaults or there is

[issue17239] XML vulnerabilities in Python

2018-08-31 Thread STINNER Victor
STINNER Victor added the comment: This issue didn't get much attention in 5 years. The XML documentation starts with a big red warning: https://docs.python.org/dev/library/xml.html The warning is present in 2.7 and 3.4 as well: https://docs.python.org/2.7/library/xml.html

[issue34282] Enum._convert shadows members named _convert

2018-08-31 Thread Ethan Furman
Ethan Furman added the comment: For versions 3.6 and 3.7 the solution is to modify the shadow check at line 236 so only DynamicClassAttributes are /not/ shadowed (meaning the _convert method would be shadowed by an _convert member). For 3.8 we can move _convert to the metaclass: I wasn't

[issue34282] Enum._convert shadows members named _convert

2018-08-31 Thread Ethan Furman
Change by Ethan Furman : -- Removed message: https://bugs.python.org/msg324414 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34282] Enum._convert shadows members named _convert

2018-08-31 Thread Ethan Furman
Ethan Furman added the comment: For versions 3.6 and 3.7 the solution is to modify the shadow check at line 236 so only DynamicClassAttributes are /not/ shadowed (meaning the _convert method would be shadowed by an _convert member). For 3.8 we can move _convert to the metaclass: I wasn't

[issue34551] Redundant store can be removed from _PyFunction_FastCallDict

2018-08-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think it is technically not possible. Neither PyDict_Next() nor Py_INCREF() mutate the dict, call the user code or release GIL. If it could be possible, we would have a potential writing out of a buffer here. --

[issue34373] test_time errors on AIX

2018-08-31 Thread Michael Felt
Michael Felt added the comment: Would be very nice to get this to clear on the build bots! -- ___ Python tracker ___ ___

[issue34382] test_os.test_mode fails when directory base directory has g+s set

2018-08-31 Thread Michael Felt
Michael Felt added the comment: For now, backport only means, imho to 3.7 and maybe 3.6. More could be merrier - but the goal is to clear the buildbots for regression testing. This one is quite simple - so adding 2.7 to the list of backports would be great. -- versions: +Python

[issue34490] transport.get_extra_info('sockname') of test_asyncio fails on AIX

2018-08-31 Thread Michael Felt
Michael Felt added the comment: Even if it is just in the spirit of issue29972 I hope this can be given a quick review and have yet one less test failing on the AIX bots. -- ___ Python tracker

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2018-08-31 Thread Michael Felt
Michael Felt added the comment: The buildbots seem happy. This may be closed. -- ___ Python tracker ___ ___ Python-bugs-list

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-08-31 Thread INADA Naoki
INADA Naoki added the comment: > https://github.com/search?q=%22except+TemplateError%22=Code For example, I found flask_mako's TemplateException in this search result. Strictly speaking, this is not base exception class. It is wraps exception during template rendering. But "why this class

[issue34551] Redundant store can be removed from _PyFunction_FastCallDict

2018-08-31 Thread STINNER Victor
STINNER Victor added the comment: Technically it's possible that the dictionary mutates itself during iterating and so that it's size change, so "nk = i / 2;" make sure that we pass the proper length to the function call. Maybe I'm wrong, but we would need an unit test for that. While I

[issue34553] Python Crashes when trying to access any date related fields in MailItem

2018-08-31 Thread Vijay
New submission from Vijay : MailItem.SentOn or MailItem.ReceivedTime, Python crashes with windows showing "Python has stopped working" dialog window. What can be the cause of this issue? import win32com.client import os import datetime from datetime import timedelta outlook =

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-08-31 Thread INADA Naoki
INADA Naoki added the comment: I didn't claim this pattern is not used anymore. My point is "should we suggest this pattern for tutorial readers?" * Is this pattern recommended blindly? -- I think no. * How / when this pattern is recommended? -- When there is use case people want to catch

[issue34461] Availability of parsers in etree initializer

2018-08-31 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +8482 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: