[Python-Dev] async __setitem__
Hi everyone, I was really happy to see PEP 492 - that is really a big step forward. It makes many programming constructs possible in combination with asyncio, which have been cumbersome or impossible until now. One thing that still is impossible is to have __setitem__ be used asynchronously. As an example, I am working with a database that I access over the network, and it is easy to write data = await table[key] to get something out of the database. But getting something in, I have to write something like await table.set(key, value) It would be cool if I could just write await table[key] = value which would, I think, fit in nicely with all of PEP 492. That said, I was hesitating which keyword to use, await or async. PEP 492 says something like async is an adjective, await a command. Then for setitem, technically, I would need an adverb, so "asyncly table[key] = value". But I didn't want to introduce yet another keyword (two different ones for the same thing are already confusing enough), so I arbitrarily chose await. If we are really going for it (I don't see the use case yet, I just mention it for completeness), we could also be extend this to other points where variables are set, e.g. "for await i in something():" which is a bit similar to "async for i in something()" yet different. Greetings Martin ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] PEP 0420: Extent of implementation? Specifically Python 2?
Greetings, Will this PEP be implemented in Python 2? And, more generally, is there a way to know the extent of implementation of any particular PEP? Thank you for your time. ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] PEP 0420: Extent of implementation? Specifically Python 2?
On 06/19/2015 11:21 AM, triccare triccare wrote: > Greetings, > > Will this PEP be implemented in Python 2? > > And, more generally, is there a way to know the extent of implementation > of any particular PEP? PEP 420 (namespace packages) will not be implemented in Python 2. I don't think there's any general way of knowing, short of reading the documentation of the specific features. In this case, namespace packages are documented in 3.x, but not 2.x. Eric. ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Summary of Python tracker Issues
ACTIVITY SUMMARY (2015-06-12 - 2015-06-19) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open4892 ( +8) closed 31342 (+25) total 36234 (+33) Open issues with patches: 2244 Issues opened (21) == #2: In argparse empty choices cannot be printed in the help http://bugs.python.org/issue2 opened by py.user #24447: tab indentation breaks in tokenize.untokenize http://bugs.python.org/issue24447 opened by gumblex #24448: Syntax highlighting marks multiline comments as strings http://bugs.python.org/issue24448 opened by irdb #24450: Add gi_yieldfrom calculated property to generator object http://bugs.python.org/issue24450 opened by bennoleslie #24451: Add metrics to future objects (concurrent or asyncio?) http://bugs.python.org/issue24451 opened by Joshua.Harlow #24452: Make webbrowser support Chrome on Mac OS X http://bugs.python.org/issue24452 opened by nedbat #24454: Improve the usability of the match object named group API http://bugs.python.org/issue24454 opened by rhettinger #24455: IDLE debugger causes crash if not quitted properly before next http://bugs.python.org/issue24455 opened by irdb #24456: audioop.adpcm2lin Buffer Over-read http://bugs.python.org/issue24456 opened by JohnLeitch #24457: audioop.lin2adpcm Buffer Over-read http://bugs.python.org/issue24457 opened by JohnLeitch #24458: Documentation for PEP 489 http://bugs.python.org/issue24458 opened by encukou #24459: Mention PYTHONFAULTHANDLER in the man page http://bugs.python.org/issue24459 opened by Antony.Lee #24460: urlencode() of dictionary not as expected http://bugs.python.org/issue24460 opened by drue...@assyst.com #24462: bytearray.find Buffer Over-read http://bugs.python.org/issue24462 opened by JohnLeitch #24464: Got warning when compiling sqlite3 module on Mac OSX http://bugs.python.org/issue24464 opened by vajrasky #24465: Make tarfile have deterministic sorting http://bugs.python.org/issue24465 opened by samthursfield #24466: extend_path explanation in documentation is ambiguous http://bugs.python.org/issue24466 opened by alanf #24467: bytearray pop and remove Buffer Over-read http://bugs.python.org/issue24467 opened by JohnLeitch #24468: Expose compiler flag constants as code object attributes http://bugs.python.org/issue24468 opened by ncoghlan #24469: Py2.x int free list can grow without bounds http://bugs.python.org/issue24469 opened by scoder #24470: ctypes incorrect handling of long int on 64bits Linux http://bugs.python.org/issue24470 opened by Marco Clemencic Most recent 15 issues with no replies (15) == #24467: bytearray pop and remove Buffer Over-read http://bugs.python.org/issue24467 #24466: extend_path explanation in documentation is ambiguous http://bugs.python.org/issue24466 #24464: Got warning when compiling sqlite3 module on Mac OSX http://bugs.python.org/issue24464 #24458: Documentation for PEP 489 http://bugs.python.org/issue24458 #24457: audioop.lin2adpcm Buffer Over-read http://bugs.python.org/issue24457 #24456: audioop.adpcm2lin Buffer Over-read http://bugs.python.org/issue24456 #24455: IDLE debugger causes crash if not quitted properly before next http://bugs.python.org/issue24455 #24447: tab indentation breaks in tokenize.untokenize http://bugs.python.org/issue24447 #24424: xml.dom.minidom: performance issue with Node.insertBefore() http://bugs.python.org/issue24424 #24417: Type-specific documentation for __format__ methods http://bugs.python.org/issue24417 #24415: SIGINT always reset to SIG_DFL by Py_Finalize() http://bugs.python.org/issue24415 #24414: MACOSX_DEPLOYMENT_TARGET set incorrectly by configure http://bugs.python.org/issue24414 #24407: Use after free in PyDict_merge http://bugs.python.org/issue24407 #24381: Got warning when compiling ffi.c on Mac http://bugs.python.org/issue24381 #24370: OrderedDict behavior is unclear with misbehaving keys. http://bugs.python.org/issue24370 Most recent 15 issues waiting for review (15) = #24465: Make tarfile have deterministic sorting http://bugs.python.org/issue24465 #24464: Got warning when compiling sqlite3 module on Mac OSX http://bugs.python.org/issue24464 #24458: Documentation for PEP 489 http://bugs.python.org/issue24458 #24452: Make webbrowser support Chrome on Mac OS X http://bugs.python.org/issue24452 #24451: Add metrics to future objects (concurrent or asyncio?) http://bugs.python.org/issue24451 #24450: Add gi_yieldfrom calculated property to generator object http://bugs.python.org/issue24450 #24440: Move the buildslave setup information from the wiki to the dev http://bugs.python.org/issue24440 #24439: Feedback for awaitable coroutine documentation http://bugs.python.org/issue24439 #24436: _PyTraceback_Add has no const qualifier for it
Re: [Python-Dev] PEP 0420: Extent of implementation? Specifically Python 2?
On 6/19/2015 11:21 AM, triccare triccare wrote: Will this PEP be implemented in Python 2? "Version: 3.3" Enhancements are not backported And, more generally, is there a way to know the extent of implementation of any particular PEP? When a PEP is accepted, the version field should be updated to reflect the first version the enhancement appears in. -- Terry Jan Reedy ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com