[issue15852] typos in curses argument error messages

2017-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was worth to honor Chris as the author of the patch in the commit message. -- ___ Python tracker

[issue32386] dynload_next.c is obsolete

2017-12-20 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +4849 stage: -> patch review ___ Python tracker ___

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4848 stage: -> patch review ___ Python tracker ___

[issue15216] Add encoding & errors parameters to TextIOWrapper.reconfigure()

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

[issue32321] functools.reduce has a redundant guard or needs a pure Python fallback

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: See discussion in https://bugs.python.org/issue12428 (especially the last message) -- nosy: +asvetlov ___ Python tracker

[issue29890] Constructor of ipaddress.IPv*Interface does not follow documentation

2017-12-20 Thread Ilya Kulakov
Ilya Kulakov added the comment: Do you need any help with the change? -- ___ Python tracker ___

[issue31584] Documentation Language mixed up

2017-12-20 Thread Julien Palard
Julien Palard added the comment: Sadly I can't see it, it may have already been fixed by the cron task (I'm 3 hours late). I grepped on the server to check if there's another page: no one found. I'll try to fix it by the proposed simple idea that make sense of using

[issue32395] asyncio.StreamReader.readuntil is not general enough

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Support multiple separators looks easy, I don't expect any performance impact. Like we already have it for strings: s.startswith(('\n', '\r')) Regexps are more expensive thing, callbacks are kind of evil. Let's add a patch for

[issue32395] asyncio.StreamReader.readuntil is not general enough

2017-12-20 Thread Yury Selivanov
Change by Yury Selivanov : -- nosy: +asvetlov ___ Python tracker ___ ___

[issue32395] asyncio.StreamReader.readuntil is not general enough

2017-12-20 Thread Bruce Merry
New submission from Bruce Merry : I'd proposed one specific solution in Issue 32052 which asvetlov didn't like, so as requested I'm filing a bug about the problem rather than the solution. The specific case I have is reading a protocol in which either \r or \n can be used to

[issue15852] typos in curses argument error messages

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

[issue15852] typos in curses argument error messages

2017-12-20 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4847 ___ Python tracker ___

[issue15852] typos in curses argument error messages

2017-12-20 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4846 ___ Python tracker ___

[issue15873] datetime: add ability to parse RFC 3339 dates and times

2017-12-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: New changeset 09dc2f508c8513e0466a759cc27a09108c1e55c2 by Alexander Belopolsky (Paul Ganssle) in branch 'master': bpo-15873: Implement [date][time].fromisoformat (#4699)

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: > It did mean duplicating a handful of lines of code from asyncio to iterate > over the getaddrinfo() results (creating one asyncio.Server per sockaddr > instead of letting asyncio create a single asyncio.Server with multiple >

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Ron Frederick
Ron Frederick added the comment: That'd be great if you could add AbstractServer to the 3.7 docs - thanks! Regarding the other issue, I'm already set up to use multiple asyncio.Server objects to deal with the shared port issue and it's working fine. It did mean

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: > _OR_ adding AbstractServer to the documentation and changing existing > references to asyncio.Server to point at asyncio.AbstractServer instead, as > that symbol is already exported but is not currently documented. I completely

[issue31584] Documentation Language mixed up

2017-12-20 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Hmm only for that one page it seems? -- ___ Python tracker ___

[issue31584] Documentation Language mixed up

2017-12-20 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Seems like this is happening again. English docs are showing Japanese content. https://github.com/python/pythondotorg/issues/1207 -- ___ Python tracker

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: > I'm really not sure there's ANY call other than getsockaddr() that really > makes sense here, though, so perhaps it would be better to evolve the API in > AbstractServer into returning a list of sockaddr tuples rather than sockets.

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: Oh, the following command does crash: PYTHONMALLOC=pymalloc ./Programs/_testembed forced_io_encoding -- ___ Python tracker

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Ron Frederick
Ron Frederick added the comment: Thanks. Unfortunately, in the case of the way SSH listeners with dynamic ports, the protocol only allows a single port number to be returned. So, when binding on multiple interfaces there's a requirement that the SAME port be chosen for

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

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: The PR looks good, but I don't have the capacity right now to merge it. Ill need some time for research to double check if it's ok to drop scope id. Will try to find it in the next few days. --

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: Server.sockets property will be a public API and defined in the AbstractServer, so you can start using them. Just don't try to call socket.send() or socket.accept() as that will break things. --

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Ron Frederick
Ron Frederick added the comment: In my original report, I suggested _either_ exporting asyncio.Server since that's what was documented elsewhere _OR_ adding AbstractServer to the documentation and changing existing references to asyncio.Server to point at

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

2017-12-20 Thread Марк Коренберг
Марк Коренберг added the comment: No, Improvement for typical case (not scoped IPv6 addresses) was not the target, but fortunatelly it also sped up. -- ___ Python tracker

[issue15216] Add encoding & errors parameters to TextIOWrapper.reconfigure()

2017-12-20 Thread INADA Naoki
INADA Naoki added the comment: New changeset 507434fd504f3ebc1da72aa77544edc0d73f136e by INADA Naoki in branch 'master': bpo-15216: io: TextIOWrapper.reconfigure() accepts encoding, errors and newline (GH-2343)

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4845 ___ Python tracker ___ ___

[issue32394] socket lib beahavior change in 3.6.4

2017-12-20 Thread Kamil
New submission from Kamil : On Windows, python 3.6.3 code "hasattr(socket, 'TCP_KEEPCNT')" gives False, python 3.6.4 gives True. This behavior breaks many libraries that i use. -- components: Library (Lib) messages: 308837 nosy: skn78 priority: normal severity: normal

[issue28942] await expressions in f-strings

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: Looks like it's working now: import asyncio async def foo(): return 32 async def bar(): print(f'{await foo()}') asyncio.run(bar()) Prints: 32 -- resolution: -> not a bug stage: ->

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: Summary of the visible changes: * sys.argv is now set earlier, before "import site" * The implementation of the PEP 538 now respects -E and -I options. * _PyCoreConfig now allows to modify a lot of configuration options which

[issue32393] nav menu jitter in old documentation

2017-12-20 Thread Joseph Hendrey
New submission from Joseph Hendrey : The sidebar navigation menu jitters when scrolling on the 2.7 documentation pages (at least in Chrome). A seemingly unrelated issue is that the collapse symbol '<<' is a fixed distance from the top of the page rather than staying

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 31e99080f6f8cf7faaba9fe3a4e0996e49163317 by Victor Stinner in branch 'master': bpo-32030: Fix usage of memory allocators (#4953) https://github.com/python/cpython/commit/31e99080f6f8cf7faaba9fe3a4e0996e49163317

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

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: > I would make _Py_fopen() more compatible with the PEP 529. Typo: It* would -- ___ Python tracker

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

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: run_file() gets a wchar_t* string which comes from wmain() argv. run_file() encodes the wchar_t* using PyUnicode_EncodeFSDefault(). Later, PyRun_SimpleFileExFlags() calls indirectly fopen() with the encoded filename. > This could

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-20 Thread STINNER Victor
STINNER Victor added the comment: > `remove_signal_handler()` should do nothing if `sys.is_finalizing()` is true. I dislike this option. If you want to use sys.is_finalizing(), I would prefer to modify _UnixSelectorEventLoop.close() to not try to remove signal

[issue32030] PEP 432: Rewrite Py_Main()

2017-12-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +4844 ___ Python tracker ___ ___

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Decorater
Decorater added the comment: Attached is my changes to the vcxproj files based on an field already in python.props. -- Added file: https://bugs.python.org/file47342/changes.diff ___ Python tracker

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: > `remove_signal_handler()` should do nothing if `sys.is_finalizing()` is true. Probably a good idea. See also https://github.com/python/asyncio/pull/456. -- ___ Python tracker

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: There's no point in exporting the Server class as "asyncio.Server". It'd created and managed by the event loop, and there's no point to instantiate it in user code. We can add an abstract base class AbstractServer though, similar to

[issue27665] Make create_server able to listen on several ports

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: Agree. It's also challenging to design the API that binds to multiple hosts *and* ports -- a crossproduct of some sorts. > Multiple server objects never was a problem. Right. Let's close this. -- resolution: -> rejected

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

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: I thought the improvements were way bigger than 200nsec, no? -- ___ Python tracker ___

[issue32392] subprocess.run documentation does not have **kwargs

2017-12-20 Thread Oleh Prypin
Oleh Prypin added the comment: Yes, but the most prominent thing to indicate that is **kwargs in the actual function signature. And, as far as I'm concerned, lack of **kwargs means the function signature is exhaustive and there's no point in looking for fine print

[issue32392] subprocess.run documentation does not have **kwargs

2017-12-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: But the documentation does say "The arguments shown above are merely the most common ones...The full function signature is largely the same as that of the Popen constructor...", no ? -- nosy: +xdegaye

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Decorater
Decorater added the comment: If needed I could help upload the updated project files here for this issue. -- nosy: +Decorater ___ Python tracker

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

2017-12-20 Thread Марк Коренберг
Марк Коренберг added the comment: After my patch: $ python3.7 -m timeit --setup 'import socket; s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM); s.bind(("ff02::1de:c0db", 1234, 0, 2))' 's.getsockname()' 50 loops, best of 5: 613 nsec per loop $ python3.7 -m

[issue24795] Make event loops with statement context managers

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Superseded by `asyncio.run()` function. P.S. Context manager is not a solution because `loop.shutdown_asyncgens()` should be called before `loop.close()` and the method is a coroutine. -- nosy: +asvetlov resolution: -> wont

[issue32390] AIX (xlc_r) compile error with Modules/posixmodule.c: Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed

2017-12-20 Thread Xavier de Gaye
Xavier de Gaye added the comment: The PPC64 AIX 3.x Python buildbot (http://buildbot.python.org/all/#/builders/10) has been failing upon this same error for over a month. Can you please try with: PyStructSequence_SET_ITEM(v, 10, PyLong_FromUnsignedLong(st.f_fsid.val[0]));

[issue26133] asyncio: ugly error related to signal handlers at exit if the loop is not closed explicitly

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: `remove_signal_handler()` should do nothing if `sys.is_finalizing()` is true. -- assignee: -> asvetlov nosy: +asvetlov ___ Python tracker

[issue25074] Bind logger and waninigs modules for asyncio __del__ methods

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24539] StreamReaderProtocol.eof_received() should return True to keep the transport open

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Done two years ago. -- nosy: +asvetlov resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue25675] doc for BaseEventLoop.run_in_executor() says its a coroutine, but it is not

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: It was always awaitable object, in Python 3.7 the method was converted into genuine coroutine. -- nosy: +asvetlov ___ Python tracker

[issue25675] doc for BaseEventLoop.run_in_executor() says its a coroutine, but it is not

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue27665] Make create_server able to listen on several ports

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Let's don't -- all combinations of hosts, ports, sock objects makes a mess already. I suggest not complicate already complex signature and just close the issue as "won't fix". Multiple server objects never was a problem. --

[issue27746] ResourceWarnings in test_asyncio

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in master already. -- nosy: +asvetlov resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26188] Provide more helpful error message when `await` is called inside non-`async` method

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Nothing to do. Python parser always report with such text on syntax error, there is nothing special for async/await -- nosy: +asvetlov resolution: -> wont fix stage: -> resolved status: open -> closed

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker ___

[issue25749] asyncio.Server class documented but not exported

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- assignee: -> asvetlov nosy: +asvetlov ___ Python tracker ___

[issue29889] test_asyncio fails always

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Confirm: no problems on master (Ubuntu 17.10). Closing the issue. -- nosy: +asvetlov resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Is the issue done? Can it be closed? -- nosy: +asvetlov ___ Python tracker ___

[issue32392] subprocess.run documentation does not have **kwargs

2017-12-20 Thread Oleh Prypin
New submission from Oleh Prypin : I was just looking at documentation of https://docs.python.org/3.6/library/subprocess.html#subprocess.run and thought that it doesn't support passing `env` because the list of supported keyword arguments is exhaustive (no **kwargs). But it

[issue15852] typos in curses argument error messages

2017-12-20 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- pull_requests: +4843 ___ Python tracker ___

[issue28697] asyncio.Lock, Condition, Semaphore docs don't mention `async with` syntax

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed by recent docs update for Python 3.7 -- nosy: +asvetlov resolution: -> fixed stage: -> resolved status: open -> closed versions: -Python 3.5, Python 3.6 ___ Python tracker

[issue29344] sock_recv not detected a coroutine

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: sock_recv was converted into genuine coroutine in Python 3.7 Closing the issue. -- nosy: +asvetlov resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.5, Python 3.6

[issue30014] Speedup DefaultSelectors.modify() by 2x

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: PR was merged 6 months ago, closing the issue. -- nosy: +asvetlov resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue28942] await expressions in f-strings

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks, I'll take a look. -- ___ Python tracker ___

[issue28942] await expressions in f-strings

2017-12-20 Thread Andrew Svetlov
Change by Andrew Svetlov : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue28942] await expressions in f-strings

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Yury, ping. -- nosy: +asvetlov ___ Python tracker ___

[issue29558] Provide run_until_complete inside loop

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Awaiting a future from blocking code which in turn is executed from async code is very dangerous idea -- it will block other async code execution. The feature will be never implemented as well as nested loops, sorry. Closing.

[issue29689] Asyncio-namespace helpers for async_generators

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio is a library for asynchronous network communications and related stuff. Converting async iterator into a list is out of scope of the library. If you want incorporate aitertools into Python stdlib -- please create a separate

[issue29517] "Can't pickle local object" when uses functools.partial with method and args...

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: Closing this one. Quoting my other comment from this issue: > Well, I don't think we can do something about it. Just re-pack your arguments > from WeakSet to a regular set. -- resolution: -> not a bug stage: -> resolved

[issue29517] "Can't pickle local object" when uses functools.partial with method and args...

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio objects are not pickable and shouldn't be -- they are ephemeral. Like pickling open socket object doesn't make sense -- there is no possibility to restore connection to peer on unpickling. Not sure if we can do anything

[issue20493] select module: loop if the timeout is too large (OverflowError "timeout is too large")

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Documentation for asyncio specifies a cap for timeout to one day. Closing the issue. -- nosy: +asvetlov resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python

[issue30492] 'make clinic' does not work for out of tree builds / clinic.py is not in the devguide

2017-12-20 Thread Zachary Ware
Zachary Ware added the comment: > I don't like to hijack this issue but could we get some of the build bots to > do their builds in a subfolder? The buildmaster config is at https://github.com/python/buildmaster-config, feel free to submit a pull request that sets the

[issue29922] error message when __aexit__ is not async

2017-12-20 Thread Yury Selivanov
Change by Yury Selivanov : -- versions: +Python 3.8 -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue30539] Make Proactor public in asyncio.ProactorEventLoop

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: Big -1 from me. If proactor is public, alternative event loop implementations like uvloop will have to implement its full API, which actually puts restrictions on us refactoring asyncio itself. If there's some missing functionality we

[issue29922] error message when __aexit__ is not async

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: It's Interpreter Core problem, not specific to asyncio bug. -- components: +Interpreter Core -asyncio nosy: +asvetlov ___ Python tracker

[issue30539] Make Proactor public in asyncio.ProactorEventLoop

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: asyncio doesn't expose `loop.selector` and `loop.proactor` -- it is deliberate choice. What proactor methods are needed to serial support? Maybe we can incorporate them into event loop itself -- as we did for `loop.sock_*`?

[issue30492] 'make clinic' does not work for out of tree builds / clinic.py is not in the devguide

2017-12-20 Thread Neil Schemenauer
Neil Schemenauer added the comment: Thanks for fixing this. I always do my builds in subfolders as well. It is handy to have multiple builds (debug, opt, profiled) that all use a single source tree. I don't like to hijack this issue but could we get some of the

[issue32321] functools.reduce has a redundant guard or needs a pure Python fallback

2017-12-20 Thread Srinivas Reddy T
Change by Srinivas Reddy T : -- keywords: +patch pull_requests: +4841 stage: -> patch review ___ Python tracker ___

[issue32390] AIX (xlc_r) compile error with Modules/posixmodule.c: Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed

2017-12-20 Thread Michael Felt
Michael Felt added the comment: FYI: from /usr/include/types.h /* typedef for the File System Identifier (fsid). This must correspond * to the "struct fsid" structure in _ALL_SOURCE below. */ typedef struct fsid_t { #ifdef __64BIT_KERNEL unsigned long val[2];

[issue31059] asyncio.StreamReader.read hangs if n<0

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: `.read(-1)` reads up to end of stream (closing the underlying socket by peer). If other side doesn't close connection after sending data -- read(-1) hangs, but it is not asyncio bug. -- nosy: +asvetlov resolution: -> not a

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: cc'ing people for the pip/PyPI aspects of this. -- nosy: +Marcus.Smith, dstufft ___ Python tracker

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Also, even if they are common, it seems reasonable that pip could be trained to rename untagged binaries on install after doing something to determine if they should be compatible with >=3.7 or not. --

[issue32390] AIX (xlc_r) compile error with Modules/posixmodule.c: Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed

2017-12-20 Thread Michael Felt
Michael Felt added the comment: OOps - wrong error! It is the new fsid variable! michael@x071:[/data/prj/python/git/python3-3.7.0.a3]xlc_r -DNDEBUG -O -I/opt/include -O2 -qmaxmem=-1 -qarch=pwr5 -I. -I./Include -I/opt/in> "./Modules/posixmodule.c", line 5514.11:

[issue32387] Disallow untagged C extension import on major platforms

2017-12-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: +1 on doing this. It might also be worth examining all of the latest package version wheels on pypi to see which packages claiming to support Python 3 have binary wheels containing untagged .pyd or .so files. -- nosy:

[issue17852] Built-in module _io can lose data from buffered files at exit

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here's another idea: have a new type field (a tp_something) that exposes the GC priority for this type. It could be an integer between -8 and 7, for example (0 being the default). Then tp_finalize would be called in sorted priority order.

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

2017-12-20 Thread Tim Peters
Tim Peters added the comment: First thing: the code uses the global name `outputer` for two different things, as the name of a module function and as the global name given to the Process object running that function. At least on Windows under Python 3.6.4 that confusion

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: Don't know. Ask other coredevs maybe? -- ___ Python tracker ___

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: > The fix introduces a new parameter in public API. Maybe we can get away with this if we do not document it in 3.6 and add a comment to the source code that using this new parameter will make the code incompatible with earlier 3.6.x

[issue29970] Severe open file leakage running asyncio SSL server

2017-12-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: The fix introduces a new parameter in public API. That's why I think we shouldn't backport it. -- ___ Python tracker

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

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Closing this issue in the meantime. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

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

2017-12-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hi Weize, Since this seems be a support question, I suggest you ask it either on https://stackoverflow.com/ or on the Python users' mailing-list https://mail.python.org/mailman/listinfo/python-list -- nosy: +pitrou

[issue32391] Add StreamWriter.wait_closed()

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: We've discussed this before, please go ahead. -- type: -> enhancement ___ 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

[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 ___

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

2017-12-20 Thread Yury Selivanov
Yury Selivanov added the comment: OK. -- ___ Python tracker ___ ___ Python-bugs-list

[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 ___

[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

[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

  1   2   >