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

2017-12-20 Thread Christoph Reiter
Change by Christoph Reiter : -- nosy: -lazka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

2017-12-20 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +3.5regression stage: -> patch review type: -> behavior ___ Python tracker ___ ___ Python

[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

2017-12-20 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +4829 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue16482] pdb.set_trace() clobbering traceback on error

2017-12-20 Thread Atsuo Ishimoto
Change by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue17277] incorrect line numbers in backtrace after removing a trace function

2017-12-20 Thread Atsuo Ishimoto
Change by Atsuo Ishimoto : -- nosy: +ishimoto ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue32375] Compilation warnings with gcc

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is the command line: gcc -pthread -c -Wno-unused-result -Wsign-compare -g -Og -Wall -Wstrict-prototypes-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I. -I./Include

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

2017-12-20 Thread Tianjg
Tianjg added the comment: Thanks a lot. What should I do to reopen .pyc file with non-ASCII path use python3.6 in cmd?Could you give me* some **code examples*.Thank you again, and I look forward to hearing from you 2017-12-20 15:35 GMT+08:00 Eryk Sun : > > Eryk Sun added the comment: > > run

[issue32382] Python mulitiprocessing.Queue fail to get according to correct sequence

2017-12-20 Thread Weize Xu
New submission from Weize Xu : I try to implement a "producer consumer" like design with mulitiprocessing module in my project, but I found that mulitiprocessing.Queue 's behavior is not as my expected. It seems Queue.get method return the end flag at the end of my queue too early. I am not

[issue32383] subprocess.Popen() is slower than subprocess.run()

2017-12-20 Thread Николай Соколов
New submission from Николай Соколов : Hello. I noticed different speed of application, which was execute with subprocess.Popen() and subprocess.run(). I tested on Linux Ubuntu 17.04 and Windows 10. My command line is: "ffmpeg -i big_buck_bunny_480p_surround-fix.avi -f null -" you can use

[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: > There is no platform-compatible way to detect if a string is an IP address. Actually, you could use the ipaddress module. -- nosy: +pitrou ___ Python tracker _

[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, Windows nowadays has inet_pton(): https://msdn.microsoft.com/en-us/library/windows/desktop/cc805844(v=vs.85).aspx Are there other platforms without it? inet_pton() is part of POSIX. -- nosy: +paul.moore, steve.dower, tim.golden, zach.ware

[issue31901] atexit callbacks should be run at subinterpreter shutdown

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 776407fe893fd42972c7e3f71423d9d86741d07c by Antoine Pitrou (Marcel Plch) in branch 'master': bpo-31901: atexit callbacks should be run at subinterpreter shutdown (#4611) https://github.com/python/cpython/commit/776407fe893fd42972c7e3f71423d9d8674

[issue31901] atexit callbacks should be run at subinterpreter shutdown

2017-12-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

2017-12-20 Thread Christian Heimes
Christian Heimes added the comment: The code works on all platforms with OpenSSL >= 1.0.2. OpenSSL 1.0.1, 0.9.8 and earlier are no longer supported by upstream. Anybody with even marginal interest in secure TLS/SSL should update. Python.org's Windows and macOS binaries are good. The inet_pto

[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

2017-12-20 Thread Christian Heimes
Christian Heimes added the comment: PS: With OpenSSL >= 1.0.2, inet_pton() is not required. -- ___ Python tracker ___ ___ Python-bug

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +4830 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32384] Generator tests is broken in non-CPython implementation

2017-12-20 Thread Liqun Peng
New submission from Liqun Peng : The fix for bpo-30039 introduced a regression test in `test.test_generators` which uses `_testcapi` module, it doesn't check `ImportError` and so breaks on other implementations. -- components: Tests messages: 308717 nosy: isaiahp priority: normal sever

[issue32345] EIO from write() is only fatal if print() contains a newline

2017-12-20 Thread Creideiki
Creideiki added the comment: Hmm. Yes and no; you seem to be correct in that the problem is on the libc level, but Python definitely does something special. By the way, this is glibc 2.26. I tried this C program: #include #include int main() { usleep(5 * 1000 * 1000); fwrite("A", 1,

[issue32345] EIO from write() is only fatal if print() contains a newline

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the difference here is that Python calls ferror() to tell whether an error occurred on the underlying FILE*. Can you adapt your C program to check ferror()? -- ___ Python tracker

[issue32306] Clarify map API in concurrent.futures

2017-12-20 Thread David Lukeš
David Lukeš added the comment: Hi Antoine, Thanks for the response! :) I think the problem lies in the line immediately preceding the code you've posted: ``` fs = [self.submit(fn, *args) for args in zip(*iterables)] ``` In other words, all the jobs are first submitted and their futures store

[issue32375] Compilation warnings with gcc

2017-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The same on Ubuntu 17.10 with gcc 7.2.0. -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2017-12-20 Thread Stefan Krah
Stefan Krah added the comment: > Stefan, your last example is formally speaking OK, if one reads the > "Execution model" literally. The original example is however too +ambiguous, so it is good that it triggers an error. OK yes -- desirable, no. IMO execution models are not a great definition

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

2017-12-20 Thread Eryk Sun
Eryk Sun added the comment: Workarounds: (1) force 3.6 to use the legacy ANSI filesystem encoding by setting the environment variable PYTHONLEGACYWINDOWSFSENCODING. (2) Use 8.3 DOS names, if creating them is enabled on the volume. You can check their value in CMD via `dir /x`. (3) Create alte

[issue1294959] Problems with /usr/lib64 builds.

2017-12-20 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +encukou, hroncok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue32383] subprocess.Popen() is slower than subprocess.run()

2017-12-20 Thread Николай Соколов
Николай Соколов added the comment: I incorrectly used the loop to check if the process is alive: while process.poll() is None: pass else: stdout, stderr = process.communicate() -- resolution: -> not a bug stage: -> resolved status: open -> closed _

[issue32221] Converting ipv6 address to string representation using getnameinfo() is wrong.

2017-12-20 Thread Марк Коренберг
Марк Коренберг added the comment: Original (not patched) python: ``` In [1]s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM) In [2]: s.bind(('ff02::1de:c0db', 1234, 0, 2)) In [3]: timeit s.getsockname() The slowest run took 12.06 times longer than the fastest. This could mean that an inter

[issue32384] Generator tests is broken in non-CPython implementation

2017-12-20 Thread Isaiah Peng
Change by Isaiah Peng : -- keywords: +patch pull_requests: +4831 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32306] Clarify map API in concurrent.futures

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I see. So the problem you are pointing out is that the tasks *arguments* are consumed eagerly. I agree that may be a problem in some cases, though I think in most cases people are concerned with the *results*. (note that multiprocessing.Pool() has an imap()

[issue32221] Converting ipv6 address to string representation using getnameinfo() is wrong.

2017-12-20 Thread Марк Коренберг
Марк Коренберг added the comment: So it may affect applications, that work with UDP and .recvfrom() -- ___ Python tracker ___ ___ Py

[issue32306] Clarify map API in concurrent.futures

2017-12-20 Thread David Lukeš
David Lukeš added the comment: Yes, sorry for not being quite clear the first time around :) I eventually found out about Pool.imap (see item 3 on list in OP) and indeed it fits my use case very nicely, but my point was that the documentation is somewhat misleading with respect to the semanti

[issue32221] Converting ipv6 address to string representation using getnameinfo() is wrong.

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Wow. That's a heavy price to pay indeed. Unfortunately I'm not competent on IPv6. I'm cc-ing other core developers so that they may chime in. -- nosy: +gregory.p.smith, neologix, yselivanov ___ Python tracker

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

2017-12-20 Thread Camion
Camion added the comment: Stefan, You wrote : « It certainly prevents Python scopes from being called "lexical scopes". » I don't understand why... Could you explain ? -- ___ Python tracker

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

2017-12-20 Thread Stefan Krah
Stefan Krah added the comment: Because in the example in msg308683 true lexical scoping should, when processing g()'s name space, search for the name 'a' in the lexically closest scope f(), find it there and conclude that 'a' cannot be global. -- ___

[issue32345] EIO from write() is only fatal if print() contains a newline

2017-12-20 Thread Creideiki
Creideiki added the comment: I ran this program: #include #include #include #include void print(const char *s, size_t l) { errno = 0; fwrite(s, l, 1, stdout); int saved_errno = errno; fprintf(stderr, "After \"%s\": ferror(): %i, strerror(): %s\n", s, ferr

[issue32379] MRO computation could be faster

2017-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM in general. But mro() returns a list. "class Test: pass" is a trivial case. What are results if the class has a parent? -- ___ Python tracker ___

[issue32379] MRO computation could be faster

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Benchmarks with a parent: * Before: $ ./env-orig/bin/pyperf timeit -s "from unittest import TestCase" "class Test(TestCase): pass" . Mean +- std dev: 10.4 us +- 0.1 us * After: $ ./env/bin/pyperf timeit -s "from unittest import TestCase"

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

2017-12-20 Thread R. David Murray
Change by R. David Murray : -- keywords: +3.6regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue32384] Generator tests is broken in non-CPython implementation

2017-12-20 Thread R. David Murray
Change by R. David Murray : -- nosy: +yselivanov type: enhancement -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2017-12-20 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +4833 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list mailin

[issue32204] async/await performance is very low

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: Unfortunately they will not be backported, that's against our release policies, and I can't do anything about it. You can backport them yourself and build your own CPython 3.6. That's what bigger users (e.g. Facebook/Google) of Python usually do. -

[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2017-12-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: As a reference the discussion about the removal of PyExc_RecursionErrorInst took place at PR 1981. The new PR 4941 restores PyExc_RecursionErrorInst on 3.6, not sure if this should be merged. The same operation could be done on 3.7. Python is not using PyExc

[issue32379] MRO computation could be faster

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 1f1a34c3145781628e10534440017b3b43211a60 by Antoine Pitrou in branch 'master': bpo-32379: Faster MRO computation for single inheritance (#4932) https://github.com/python/cpython/commit/1f1a34c3145781628e10534440017b3b43211a60 -- __

[issue32379] MRO computation could be faster

2017-12-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32346] Speed up slot lookup for class creation

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated benchmarks against git master (and using pyperf): - before: $ ./env-orig/bin/pyperf timeit -q "class Test: pass" Mean +- std dev: 8.89 us +- 0.09 us $ ./env-orig/bin/pyperf timeit -q -s "from logging import Logger" "class Test(Logger): pass" Mean +- s

[issue32385] Clean up the C3 MRO algorithm implementation.

2017-12-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : The C3 MRO algorithm implementation uses lists and converts input tuples to lists. This is redundant, because these lists are not mutated. The proposed PR makes the implementation using tuples and gets rid of unneeded conversions. -- components: I

[issue32385] Clean up the C3 MRO algorithm implementation.

2017-12-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +4834 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue32386] dynload_next.c is obsolete

2017-12-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : The configure scripts has the following comment: """Use dynload_next.c only on 10.2 and below, which don't have native dlopen()""" It seems dynload_next.c can be removed now. -- messages: 308740 nosy: ned.deily, pitrou, ronaldoussoren priority: norm

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : Windows and the major POSIX platforms (including Linux and macOS) now support loading C extension with a version-tagged name (and build them likewise), such as "foobar.cpython-36.so". Following the discussion in https://mail.python.org/pipermail/python-dev

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +4835 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Interestingly, the test suite doesn't seem affected at all. -- ___ Python tracker ___ ___ Python-b

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

2017-12-20 Thread Camion
Camion added the comment: I don't think there anything in the definition of "lexical scoping", which forbids to have a way to access globals from some place. Lexical scoping just means that scoping is defined in regards of the source code, by opposition dynamic scoping, which defines the scop

[issue32346] Speed up slot lookup for class creation

2017-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Due to its complexity it will take a time to make a review of this patch. -- ___ Python tracker ___

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

2017-12-20 Thread Stefan Krah
Stefan Krah added the comment: You can access globals, but not through another nested scope where the global name is shadowed. I have to excuse myself from this discussion. It's interesting, but I don't have enough bandwidth. -- ___ Python tracker

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

2017-12-20 Thread Stefan Krah
Change by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2017-12-20 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Although I'm unable to double check for the moment, feels like the "SVR4" support still is incomplete: Remember that even the libNAME.so file may be an archive, or a symlink to an archive, with the real Shared Object as member having the F_LOADONLY fl

[issue32346] Speed up slot lookup for class creation

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes... The patch itself is not very complex, but you have to dive into the intricacies of typeobject.c to understand it :-/ -- ___ Python tracker ___

[issue26568] Add a new warnings.showwarnmsg() function taking a warnings.WarningMessage object

2017-12-20 Thread irdb
Change by irdb : -- nosy: +irdb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailma

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, let me correct this: the build fails on Windows (see AppVeyor). That's because the Windows build process, for some reason, produces untagged pyd files. -- ___ Python tracker

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: If I'm understanding correctly, the ".pyd" extension is hardcoded in the various ".vcxproj" files. Which means this PR would need the help of a Windows expert to progress forward :-S -- ___ Python tracker

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset ca719ac42b3d58f7c3bcdf63f45b6d62b08b0d01 by Victor Stinner in branch 'master': bpo-32030: Add _PyCoreConfig.warnoptions (#4936) https://github.com/python/cpython/commit/ca719ac42b3d58f7c3bcdf63f45b6d62b08b0d01 -- __

[issue32385] Clean up the C3 MRO algorithm implementation.

2017-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This has also a performance effect. $ ./python -m perf timeit -s "class A: pass" -s "class B: pass" --duplicate 1000 "class C(A, B): pass" Before: Mean +- std dev: 9.41 us +- 0.28 us After: Mean +- std dev: 8.94 us +- 0.28 us --

[issue32385] Clean up the C3 MRO algorithm implementation.

2017-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6b91a5972107ec8dd5334f4f2005626baa2b8847 by Serhiy Storchaka in branch 'master': bpo-32385: Clean up the C3 MRO algorithm implementation. (#4942) https://github.com/python/cpython/commit/6b91a5972107ec8dd5334f4f2005626baa2b8847 -- __

[issue32385] Clean up the C3 MRO algorithm implementation.

2017-12-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue32388] Remove cross-version binary compatibility

2017-12-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : See original discussion on python-dev: https://mail.python.org/pipermail/python-dev/2017-December/151328.html Summary: binary compatibility for C extensions which don't use the stable ABI is currently "best effort" and uses distinguished flags in the tp_flag

[issue32388] Remove cross-version binary compatibility

2017-12-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue32388] Remove cross-version binary compatibility

2017-12-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +4836 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

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

2017-12-20 Thread Decorater
Change by Decorater : -- keywords: +patch pull_requests: +4837 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list ma

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

2017-12-20 Thread Decorater
Decorater added the comment: Alright made the backport PR on it. Not sure if it needs an news entry or if it is trivial though. -- ___ Python tracker ___ _

[issue32030] PEP 432: Rewrite Py_Main()

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

[issue32306] Clarify map API in concurrent.futures

2017-12-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +4839 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32388] Remove cross-version binary compatibility

2017-12-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue32375] Compilation warnings with gcc

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: Ah, I missed the warning because I forge -O0 when I build Python. https://wiki.ubuntu.com/ToolChain/CompilerFlags Ubuntu adds -D_FORTIFY_SOURCE=2 flag by default. The warnings can be seen with "-D_FORTIFY_SOURCE=2 -Og", but not with "-D_FORTIFY_SOURCE=2 -O3"

[issue32375] Compilation warnings with gcc

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think so. It's good to have fortify enabled, especially in debug mode :-) If the warnings are harmless and there isn't an easy way to suppress them, then I'm ok to close this issue. -- ___ Python tracker

[issue32375] Compilation warnings in getpath.c with gcc on Ubuntu / -D_FORTIFY_SOURCE=2

2017-12-20 Thread STINNER Victor
Change by STINNER Victor : -- title: Compilation warnings with gcc -> Compilation warnings in getpath.c with gcc on Ubuntu / -D_FORTIFY_SOURCE=2 ___ Python tracker ___

[issue32375] Compilation warnings in getpath.c with gcc on Ubuntu / -D_FORTIFY_SOURCE=2

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: getpath.c uses many buffers of MAXPATHLEN+1 wide characters. Example: wchar_t argv0_path[MAXPATHLEN+1]; These buffers are initialized to zero to make sure that the last character is always a NULL character. To keep the final NULL character, string copies

[issue32375] Compilation warnings in getpath.c with gcc on Ubuntu / -D_FORTIFY_SOURCE=2

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: See bpo-32030 for my huge refactoring work on the Python initialization code. -- ___ Python tracker ___ __

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: > Although I'm unable to double check for the moment, feels like the "SVR4" > support still is incomplete: (...) Sorry, I don't know what is SVR4. Is it a version of AIX? If it's rarely used, maybe a different issue should be opened to ask for an enhancement.

[issue32306] Clarify map API in concurrent.futures

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset a7a751dd7b08a5bb6cb399c1b2a6ca7b24aba51d by Antoine Pitrou in branch 'master': bpo-32306: Clarify c.f.Executor.map() documentation (#4947) https://github.com/python/cpython/commit/a7a751dd7b08a5bb6cb399c1b2a6ca7b24aba51d -- ___

[issue32306] Clarify map API in concurrent.futures

2017-12-20 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4840 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue32389] urllib3 wrong computation of 'Content-Length' for file upload

2017-12-20 Thread Gianguido Piani
New submission from Gianguido Piani : Hi! This is my first posting ever on this site. I need to upload a simple text file to Internet servers. With "curl" the operation goes smoothly, both with http and https protocols, both up/downloads. With urllib3 and other TCP-IP handlers the generated he

[issue32306] Clarify map API in concurrent.futures

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 4aa84e728565a15a82727b9b971126e355f47e9d by Antoine Pitrou (Miss Islington (bot)) in branch '3.6': bpo-32306: Clarify c.f.Executor.map() documentation (GH-4947) (#4948) https://github.com/python/cpython/commit/4aa84e728565a15a82727b9b971126e355f4

[issue32306] Clarify map API in concurrent.futures

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the documentation is now clearer. Closing! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

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

2017-12-20 Thread Decorater
Decorater added the comment: Oddly AppVeyor failed on VS2017 but build works on my end though. -- ___ Python tracker ___ ___ Python-

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 51eb1c6b9c0b382dfd6e0428eacff0c7891a6fc3 by Andrew Svetlov in branch 'master': bpo-29970: Make ssh_handshake_timeout None by default (#4939) https://github.com/python/cpython/commit/51eb1c6b9c0b382dfd6e0428eacff0c7891a6fc3 -- _

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9cfc00262c7f6b93072762eed1dc5d94fa3897f0 by Victor Stinner in branch 'master': bpo-32030: Complete _PyCoreConfig_Read() (#4946) https://github.com/python/cpython/commit/9cfc00262c7f6b93072762eed1dc5d94fa3897f0 -- __

[issue32389] urllib3 wrong computation of 'Content-Length' for file upload

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is your question about urllib3? This bug tracker is about python itself. urllbib3 should be discussed here: https://github.com/shazow/urllib3 -- nosy: +asvetlov ___ Python tracker

[issue32318] Remove "globals()" call from "socket.accept()"

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: This was fixed as part of https://bugs.python.org/issue32331 -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: Should we backport this to 3.6? This is a security issue. -- ___ Python tracker ___ ___ Python-bu

[issue32052] Provide access to buffer of asyncio.StreamReader

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: If the problm is in readuntil() functionality -- let's discuss th function improvement (in separate issue). Exposing streams internals is antipattern and very bad idea. I suggest closing the issue. Yury, what is your opinion? -- nosy: +asvetlov

[issue32364] Add AbstractFuture and AbstractTask

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Let's postpone it to Python 3.8 -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Py

[issue32052] Provide access to buffer of asyncio.StreamReader

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: I'd be more comfortable with the idea of exposing the buffer when we have BufferedProtocol. Let's wait on this one. -- ___ Python tracker __

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2017-12-20 Thread Michael Felt
Michael Felt added the comment: SVR4 - stands for AT&T System V Release 4 - the beginning (as I understand it) of shared libraries as (indivudual) .so files in UNIX. SVR3 (and earlier) used .a files (aka archives with members inside). -- ___ Python

[issue32389] urllib3 wrong computation of 'Content-Length' for file upload

2017-12-20 Thread R. David Murray
R. David Murray added the comment: Yes, this would appear to be both 3rd party and a support request rather than a bug report. Gianguido: please work with the urllib3 community, or post to the python-list mailing list. If you identify an actual bug in Python itself, you can come back here t

[issue32390] AIX (xlc_r) compile error with Modules/posixmodule.c: Explicit dimension specification or initializer required

2017-12-20 Thread Michael Felt
New submission from Michael Felt : current level: commit 4b965930e8625f77cb0e821daf5cc40e85b45f84 (HEAD -> master, upstream/master, origin/master, origin/HEAD) Build message: michael@x071:[/data/prj/python/git/python3-3.7.X]make xlc_r -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5

[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: as_completed() is low-level API. Let's not overload it with different parameters. Anyway `as_completed()` uses only asyncio.Future and it's public API like `add_done_callback()` etc. You can master everything what you need without asyncio modification. Let's

[issue31491] Add is_closing() to asyncio.StreamWriter.

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Makes sense. -- assignee: -> asvetlov nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list

[issue31491] Add is_closing() to asyncio.StreamWriter.

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: OK. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: I agree, let's keep as_completed() simple for now. Handling generators+async correctly is hard, so we definitely don't have time for this in 3.7. -- versions: +Python 3.8 -Python 3.7 ___ Python tracker

[issue32391] Add StreamWriter.wait_closed()

2017-12-20 Thread Andrew Svetlov
New submission from Andrew Svetlov : Without the method there is no possibility to wait for actual writer closing (it's performed at least on next loop iteration, and even later for SSL transports). Without waiting for actual closing writing tests is a pain: user should either add asyncio.sle

  1   2   >