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

Re: How to edit a function in an interactive python session?

2017-12-20 Thread Rustom Mody
On Thursday, December 21, 2017 at 7:12:24 AM UTC+5:30, Peng Yu wrote: > Hi, > > R has the function edit() which allows the editing of the definition > of a function. Does python have something similar so that users can > edit python functions on the fly? Thanks. > >

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread Chris Angelico
On Thu, Dec 21, 2017 at 3:40 PM, Bill wrote: > Steve D'Aprano wrote: >> >> On Thu, 21 Dec 2017 08:37 am, Bill wrote: >> >>> namenobodywa...@gmail.com wrote: On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: > Does this have anything

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread Bill
Steve D'Aprano wrote: On Thu, 21 Dec 2017 08:37 am, Bill wrote: namenobodywa...@gmail.com wrote: On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: Does this have anything specifically to do with Python programming? i'm working on a game-playing script (ie: in

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

Re: property decorator?

2017-12-20 Thread Cameron Simpson
On 20Dec2017 15:56, Irv Kalb wrote: I am trying to work through the concept of the @property decorator with respect to object oriented programming. I believe that I understand how the @property and @.setter work - and that they are used to turn what looks like direct

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

Re: property decorator?

2017-12-20 Thread Chris Angelico
On Thu, Dec 21, 2017 at 2:38 PM, Ian Kelly wrote: > On Wed, Dec 20, 2017 at 5:56 PM, Irv Kalb wrote: >> 2) Alternatively, if the getter was going to use the @property decorator, >> then it would seem complimentary to have the decorator name for the

Re: How to edit a function in an interactive python session?

2017-12-20 Thread Steve D'Aprano
On Thu, 21 Dec 2017 12:42 pm, Peng Yu wrote: > Hi, > > R has the function edit() which allows the editing of the definition > of a function. Does python have something similar so that users can > edit python functions on the fly? Thanks. > >

Re: property decorator?

2017-12-20 Thread Ian Kelly
On Wed, Dec 20, 2017 at 5:56 PM, Irv Kalb wrote: > My questions about this are really historical. From my reading, it looks > like using an @property decorator is a reference to an older approach using a > built in "property" function. But here goes: > > 1) Why were these

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

Re: How to edit a function in an interactive python session?

2017-12-20 Thread Ben Finney
Peng Yu writes: > R has the function edit() which allows the editing of the definition > of a function. Does python have something similar so that users can > edit python functions on the fly? Thanks. That would depend on which interactive tool you're using. The typical

[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

How to edit a function in an interactive python session?

2017-12-20 Thread Peng Yu
Hi, R has the function edit() which allows the editing of the definition of a function. Does python have something similar so that users can edit python functions on the fly? Thanks. https://www.rdocumentation.org/packages/utils/versions/3.4.3/topics/edit -- Regards, Peng --

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

Re: property decorator?

2017-12-20 Thread Rob Gaddi
On 12/20/2017 03:56 PM, Irv Kalb wrote: I am trying to work through the concept of the @property decorator with respect to object oriented programming. I believe that I understand how the @property and @.setter work - and that they are used to turn what looks like direct access to instance

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

property decorator?

2017-12-20 Thread Irv Kalb
I am trying to work through the concept of the @property decorator with respect to object oriented programming. I believe that I understand how the @property and @.setter work - and that they are used to turn what looks like direct access to instance variables into method calls in an object.

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread Steve D'Aprano
On Thu, 21 Dec 2017 08:37 am, Bill wrote: > namenobodywa...@gmail.com wrote: >> On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: >> >>> Does this have anything specifically to do with Python programming? >> i'm working on a game-playing script (ie: in python), i want to

[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

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread Bill
namenobodywa...@gmail.com wrote: On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: Does this have anything specifically to do with Python programming? i'm working on a game-playing script (ie: in python), i want to incorporate pruning into my search algorithm, and i'd

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

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread namenobodywants
On Tuesday, December 19, 2017 at 5:34:17 PM UTC-8, Paul Rubin wrote: > It frankly sounds like homework. https://en.wikipedia.org/wiki/Theorem -- https://mail.python.org/mailman/listinfo/python-list

[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

Re: correctness proof for alpha-beta algorithm

2017-12-20 Thread namenobodywants
On Tuesday, December 19, 2017 at 3:28:39 PM UTC-8, Steve D'Aprano wrote: > Does this have anything specifically to do with Python programming? i'm working on a game-playing script (ie: in python), i want to incorporate pruning into my search algorithm, and i'd like to understand why it works;

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

Re: Python: asyncio and Tkinter

2017-12-20 Thread c.buhtz
X-Post: Dear Chris. On 2017-12-21 00:42 Chris Angelico wrote: > I would recommend threading. You can run your GUI event loop on one > thread, and your network I/O loop on another thread. Thank you

[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];

Using the variable type annotation syntax as a placeholder in a nonlocal scope?

2017-12-20 Thread Kirill Balunov
I've asked the same question on StackOverflow, but it seems to me that it is opinion based and will be ignored. So I ask for advice here: Since PEP 526 -- Syntax for Variable Annotations was approved, in Python 3.6+ it is possible to provide type hint

[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

  1   2   3   >