[issue32329] PYTHONHASHSEED=0 python3 -R should enable hash randomization

2017-12-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4769 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue20329] zipfile.extractall fails in Posix shell with utf-8 filename

2017-12-14 Thread STINNER Victor
STINNER Victor added the comment: > I created an environment under 3.3.1 in which this error was still occurring, > but within that same environment, it is not occurring for 3.7. I believe > this can be closed. Python 3.7 now uses the UTF-8 encoding when the LC_CTYPE locale is POSIX (PEP 53

[issue32226] Implement PEP 560: Core support for typing module and generic types

2017-12-14 Thread STINNER Victor
STINNER Victor added the comment: It is very to get stable benchmarks with timings shorter than 1 ms, and even harder for timings shorter than 1 us. I wrote documentation to implement how to get more stable results: http://perf.readthedocs.io/en/latest/run_benchmark.html#how-to-get-reproductib

[issue32326] Update Build projects to version 10.0.16299.0 of the Windows 10 SDK.

2017-12-14 Thread Steve Dower
Steve Dower added the comment: It has been resolved in master, so we just need to backport PCbuild/python.props to get it in earlier branches. -- ___ Python tracker ___ __

[issue32330] Email parser creates a message object that can't be flattened

2017-12-14 Thread Mark Sapiro
New submission from Mark Sapiro : This is related to https://bugs.python.org/issue27321 but a different exception is thrown for a different reason. This is caused by a defective spam message. I don't actually have the offending message from the wild, but the attached bad_email_2.eml illustrate

[issue32329] PYTHONHASHSEED=0 python3 -R should enable hash randomization

2017-12-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 22097aaa77b4f0473552fe840358d77e5b9a253f by Victor Stinner in branch '3.6': bpo-32329: Fix sys.flags.hash_randomization (#4875) https://github.com/python/cpython/commit/22097aaa77b4f0473552fe840358d77e5b9a253f -- __

[issue32329] PYTHONHASHSEED=0 python3 -R should enable hash randomization

2017-12-14 Thread STINNER Victor
STINNER Victor added the comment: "PYTHONHASHSEED=0 python3 -R" now enables hash randomization on master (Python 3.7), I also fixed the sys.flags.hash_randomization value when using PYTHONHASHSEED=0. I chose to not modify the behaviour of the -R option in Python 3.6. I dislike having to docu

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset da273412c4374de07a500e7f23f89a6bb7527398 by Victor Stinner in branch 'master': bpo-32030: Add _PyCoreConfig_Copy() (#4874) https://github.com/python/cpython/commit/da273412c4374de07a500e7f23f89a6bb7527398 -- ___

[issue32300] print(os.environ.keys()) should only print the keys

2017-12-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'm missing something here, so please forgive me for asking, but why is it bad to add: def keys(self): return self._data.keys() def values(self): return self._data.values() def items(self): return self._data.items() to th

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4770 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32300] print(os.environ.keys()) should only print the keys

2017-12-14 Thread Cheryl Sabella
Cheryl Sabella added the comment: Never mind. I see it's in bytes. I missed that the first time. But, if it wasn't in bytes, would that be an OK solution? Or is it bad to override those methods in that class? -- ___ Python tracker

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset 41264f1cd4d6066b2797ff07cae465c1e06ff3b2 by Victor Stinner in branch 'master': bpo-32030: Add _PyMainInterpreterConfig.executable (#4876) https://github.com/python/cpython/commit/41264f1cd4d6066b2797ff07cae465c1e06ff3b2 --

[issue32327] Make asyncio methods documented as coroutines - coroutines.

2017-12-14 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 19a44f63c738388ef3c8515348b4ffc061dfd627 by Yury Selivanov in branch 'master': bpo-32327: Convert asyncio functions documented as coroutines to coroutines. (#4872) https://github.com/python/cpython/commit/19a44f63c738388ef3c8515348b4ffc061dfd627

[issue32327] Make asyncio methods documented as coroutines - coroutines.

2017-12-14 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32330] Email parser creates a message object that can't be flattened

2017-12-14 Thread R. David Murray
R. David Murray added the comment: What would you like to see happen in that situation? Should we use errors=replace like we do for headers? (That seems reasonable to me.) Note that it can be re-serialized as binary. -- ___ Python tracker

[issue32330] Email parser creates a message object that can't be flattened

2017-12-14 Thread Mark Sapiro
Mark Sapiro added the comment: Yes. I think errors=replace is a good solution. In Mailman, we have our own mailman.email.message.Message class which is a subclass of email.message.Message and what we do to work around this and issue27321 is override as_string() with: def as_string(self):

[issue32331] apply SOCK_TYPE_MASK to socket.type on Linux

2017-12-14 Thread Yury Selivanov
New submission from Yury Selivanov : On Linux, socket type is both a socket type and a bit mask (of SOCK_CLOEXEC and SOCK_NONBLOCK). Therefore, anyone who write code like 'if sock.type == SOCK_STREAM' writes non-portable code, that occasionally breaks on Linux. This caused some hard to spot

[issue32331] apply SOCK_TYPE_MASK to socket.type on Linux

2017-12-14 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +4771 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32311] Implement asyncio.create_task() shortcut

2017-12-14 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset f74ef458ab1f502e4e60bd1502ac1dc0d2cb3847 by Andrew Svetlov in branch 'master': bpo-32311: Implement asyncio.create_task() shortcut (#4848) https://github.com/python/cpython/commit/f74ef458ab1f502e4e60bd1502ac1dc0d2cb3847 -- ___

[issue32311] Implement asyncio.create_task() shortcut

2017-12-14 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___ _

[issue32332] Implement slots support for magic methods added in PEP 560

2017-12-14 Thread Yury Selivanov
New submission from Yury Selivanov : I propose to add type slots for magic methods introduced by PEP 560. In the brief discussion on the mailing list Guido OK'd the idea: https://mail.python.org/pipermail/python-dev/2017-December/151262.html I'll submit a PR that implements this proposal by a

[issue32332] Implement slots support for magic methods added in PEP 560

2017-12-14 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +4772 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32311] Implement asyncio.create_task() shortcut

2017-12-14 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you, Andrew! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue32264] move pygetopt.h into internal/

2017-12-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset e425bd75177ffb7f098bdb0618b4a5ba3211fe52 by Benjamin Peterson in branch 'master': move pygetopt.h to internal (closes bpo-32264) (#4830) https://github.com/python/cpython/commit/e425bd75177ffb7f098bdb0618b4a5ba3211fe52 -- resolution:

[issue32332] Implement slots support for magic methods added in PEP 560

2017-12-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This isn't so easy. You can't just access new slot, because this is binary incompatible. You should add new type flag, say Py_TPFLAGS_HAVE_CLASS, set it for all classes with tp_as_class, and guard access to tp_as_class with if (!PyType_HasFeature(tp, Py

<    1   2