Re: [Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-02-28 Thread Nathaniel Smith
On Tue, Feb 28, 2017 at 9:42 PM, Nick Coghlan wrote: > Short version: > > - there are some reasonable requests for async variants of contextlib APIs > for 3.7 > - prompted by Raymond, I'm thinking it actually makes more sense to add > these in a new `asyncio.contextlib` module

Re: [Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-02-28 Thread Ethan Furman
On 02/28/2017 09:42 PM, Nick Coghlan wrote: So would folks be OK with my asking the author of the PR for https://bugs.python.org/issue29679 (adding asynccontextmanager) to rewrite the patch to add it as asyncio.contextlib.asyncontextmanager (with a cross-reference from the synchronous

[Python-Dev] API design: where to add async variants of existing stdlib APIs?

2017-02-28 Thread Nick Coghlan
Short version: - there are some reasonable requests for async variants of contextlib APIs for 3.7 - prompted by Raymond, I'm thinking it actually makes more sense to add these in a new `asyncio.contextlib` module than it does to add them directly to the existing module - would anyone object

Re: [Python-Dev] PyQt - DLL load failed

2017-02-28 Thread Terry Reedy
On 2/28/2017 9:56 AM, Edouard ROYER wrote: Hi, I'm pretty new in Python but as I was looking for some new programmer's tool, it seemed to me that Python should be the right language for my needs. However, trying to run PyQt on my computer I have an issue that I didn't manage yet : trying to

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Victor Stinner
2017-02-28 20:38 GMT+01:00 Alexander Belopolsky : > First, I had to rename python-gdb.py to python3.6-gdb.py to make it load. There is nothing specific to Python here, the file command of gdb (or gdb file) tries to load "file-gdb.py". So if your program is called

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Victor Stinner
Ok, it seems like very few people know how to use python-gdb.py :-/ Sorry, I expect that everybody was using it! python-gdb.py was written by Dave Malcolm, it includes: * a pretty printer for many builtin Python types: str, tuple, list, dict, frame, etc. It means that a regular gdb "print obj"

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Skip Montanaro
> First, I had to rename python-gdb.py ... Okay, I found a copy of python-gdb.py at the top level in a 2.7.13 snapshot I have at-hand. I have no idea where it came from. A file search on GitHub in the python/cpython repo on both master and 2.7 branches yielded nothing. It does seem to be working

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Alexander Belopolsky
On Tue, Feb 28, 2017 at 3:33 AM, Victor Stinner wrote: > > Alexander, Skip: Oh, which kind of issues do you have with > python-gdb.py? It doesn't work? You are unable to dump some data? First, I had to rename python-gdb.py to python3.6-gdb.py to make it load. Then

[Python-Dev] Python 2.7.13 unmodified will not build from source on Mac OS El Capitan (10.11)

2017-02-28 Thread Bryan Dunphy
I have Xcode installed and other large projects build just fine. I ran “./configure && make” in the “Python-2.7.13” directory and “make” generated two errors both referring to the same thing missing. The exact error messages are copied and pasted below. dyld: lazy symbol binding failed: Symbol

[Python-Dev] PyQt - DLL load failed

2017-02-28 Thread Edouard ROYER
Hi, I'm pretty new in Python but as I was looking for some new programmer's tool, it seemed to me that Python should be the right language for my needs. However, trying to run PyQt on my computer I have an issue that I didn't manage yet : trying to import objects from PyQt library leads to

Re: [Python-Dev] Translated Python documentation

2017-02-28 Thread Xiang Zhang
I support having an official translated doc. I have seen several groups trying to translate part of our official doc. But their efforts are disperse and quickly become lost because they are not organized to work towards a single common result and their results are hold anywhere on the Web and

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Barry Warsaw
On Feb 28, 2017, at 09:09 AM, Skip Montanaro wrote: >I haven't tried using Python support in gdb in a long time. I don't >know what python-gdb.py is. How is that different than >Tools/gdb/libpython.py? Is it distributed with Python? (I'm kind of >blind at work without a source distribution I can

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Skip Montanaro
I haven't tried using Python support in gdb in a long time. I don't know what python-gdb.py is. How is that different than Tools/gdb/libpython.py? Is it distributed with Python? (I'm kind of blind at work without a source distribution I can grep through, and didn't see it in Tools/gdb or Misc.)

Re: [Python-Dev] GDB macros in Misc/gdbinit are broken

2017-02-28 Thread Victor Stinner
2017-02-28 3:00 GMT+01:00 Skip Montanaro : > Alexander> I find them useful. I've never had success with python-gdb.py. Alexander, Skip: Oh, which kind of issues do you have with python-gdb.py? It doesn't work? You are unable to dump some data? python-gdb.py doesn't run