[issue32030] PEP 432: Rewrite Py_Main()

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

[issue32375] Compilation warnings with gcc

2017-12-19 Thread STINNER Victor
STINNER Victor added the comment: In function ‘wcsncpy’, inlined from ‘calculate_zip_path’ at ./Modules/getpath.c:797:5: /usr/include/x86_64-linux-gnu/bits/wchar2.h:200:9: warning: call to ‘__wcsncpy_chk_warn’ declared with attribute warning: wcsncpy called with length bigger than size of

[issue31489] Signal delivered to a subprocess triggers parent's handler

2017-12-19 Thread Nathaniel Smith
Nathaniel Smith added the comment: It might be possible to create ProcessPoolExecutor and get it to spawn all the workers *before* you start the asyncio loop. It looks like ProcessPoolExecutor delays spawning workers until the first piece of work is submitted, but at that point it spawns all

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-19 Thread STINNER Victor
STINNER Victor added the comment: New changeset 19760863623b636a63ccf649107d9504c6465a92 by Victor Stinner in branch 'master': bpo-32030: Cleanup pymain_main() (#4935) https://github.com/python/cpython/commit/19760863623b636a63ccf649107d9504c6465a92 -- __

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2017-12-19 Thread Eric Snow
Change by Eric Snow : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue32268] quopri.decode(): string argument expected, got 'bytes'

2017-12-19 Thread Alexey Luchko
Alexey Luchko added the comment: 1. On quopri. It is counter-intuitive despite the clear statement in the doc-string. Quoted-printable is used mostly for text encoding. (It would be quite awkward and inefficient to use it for binary data.) My case: I have a text and I mean to get a text. Why

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-19 Thread STINNER Victor
STINNER Victor added the comment: I like the new shape of Py_Main(). The main parts of Py_Main() are now well identified: * init "cmdline" * init "python core" * init "python main" * run python * cleanup -- ___ Python tracker

[issue32361] global / nonlocal interference : is this a bug, a feature or a design hole ?

2017-12-19 Thread Camion
Camion added the comment: Ivan, I believe, this sentence : "(the scope in which a new binding should be created cannot be determined unambiguously)" in https://docs.python.org/fr/3/reference/simple_stmts.html#nonlocal, is the one which should be clarified first, and then this would probably

[issue32030] PEP 432: Rewrite Py_Main()

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

[issue32268] quopri.decode(): string argument expected, got 'bytes'

2017-12-19 Thread R. David Murray
R. David Murray added the comment: Yes, if that protocol existed the errors would be clearer. But it doesn't, for historical reasons, and that is unlikely to change. You are welcome to submit an enhancement request to make quopri accept string as an argument when decoding. But when encoding

[issue32361] global / nonlocal interference : is this a bug, a feature or a design hole ?

2017-12-19 Thread Camion
Camion added the comment: What I mean is that we need to clarify (by giving examples ?) what make the scope for the new binding "not be unambiguously decidable", because, for an example : My example is totaly unambiguously decidable for an interpreter. It's for a human reader that it might le

[issue32204] async/await performance is very low

2017-12-19 Thread Liran Nuna
Liran Nuna added the comment: Yuri, Those speed improvements are awesome and I'm really excited about them, performance is slowly starting to match asynq and would make us migrating our code to async/await more feasable! Today, python3.6.4 was released and these performance improvements did n

[issue32381] python3.6 can not reopen .pyc file with Chinese path

2017-12-19 Thread tianjg
New submission from tianjg : have a problem that python3.6 can not reopen .pyc file with Chinese path, and python3.5 can reopen the same pyc file. As shown in the picture -- components: Windows files: 20171218111240.jpg messages: 308705 nosy: paul.moore, steve.dower, tianjg, tim.golden,

[issue27456] asyncio: set TCP_NODELAY flag by default

2017-12-19 Thread Марк Коренберг
Марк Коренберг added the comment: Note, TCP_NODELAY can not be set on UNIX streaming socket. Do you have corresponding tests for UNIX sockets ? -- ___ Python tracker ___ _

[issue32381] Python 3.6 cannot reopen .pyc file with non-ASCII path

2017-12-19 Thread Eryk Sun
Eryk Sun added the comment: run_file encodes the file path via PyUnicode_EncodeFSDefault, which encodes as UTF-8 in Windows, starting with 3.6. PyRun_SimpleFileExFlags subsequently tries to open this encoded path via _Py_fopen, which calls fopen. The CRT expects an ANSI encoded path, so only

<    1   2