Re: [Python-Dev] [Python-checkins] cpython: Switch subprocess stdin to a socketpair, attempting to fix issue #19293 (AIX

2013-10-22 Thread Victor Stinner
Hi,

Would it be possible to use os.pipe() on all OSes except AIX?

Pipes and socket pairs may have minor differences, but some
applications may rely on these minor differences. For example, is the
buffer size the same? For example, in test.support, we have two
constants: PIPE_MAX_SIZE (4 MB) and SOCK_MAX_SIZE (16 MB).

Victor

2013/10/22 guido.van.rossum :
> http://hg.python.org/cpython/rev/2a0bda8d283d
> changeset:   86557:2a0bda8d283d
> user:Guido van Rossum 
> date:Mon Oct 21 20:37:14 2013 -0700
> summary:
>   Switch subprocess stdin to a socketpair, attempting to fix issue #19293 
> (AIX hang).
>
> files:
>   Lib/asyncio/unix_events.py|  29 +-
>   Lib/test/test_asyncio/test_unix_events.py |   7 ++
>   2 files changed, 32 insertions(+), 4 deletions(-)
>
>
> diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py
> --- a/Lib/asyncio/unix_events.py
> +++ b/Lib/asyncio/unix_events.py
>  if stdin == subprocess.PIPE:
>  self._pipes[STDIN] = None
> +# Use a socket pair for stdin, since not all platforms
> +# support selecting read events on the write end of a
> +# socket (which we use in order to detect closing of the
> +# other end).  Notably this is needed on AIX, and works
> +# just fine on other platforms.
> +stdin, stdin_w = self._loop._socketpair()
>  if stdout == subprocess.PIPE:
>  self._pipes[STDOUT] = None
>  if stderr == subprocess.PIPE:
___
Python-Dev mailing list
[email protected]
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 453 (ensurepip) updated

2013-10-22 Thread Martin v. Löwis
Am 20.10.13 14:27, schrieb Nick Coghlan:
> I have posted the latest version of PEP 453 to python.org. 

This version looks good to me, and I accept it for inclusion in Python 3.4.

I'd like to thank Nick for carefully editing this PEP, and I'd like to
cite it as an archetype for a well-written PEP. It's very precise, and
it elaborates on rejected proposals and the motivation for rejection.

I'd also like to thank Donald for pushing this, and for continued work
on the implementation of the PEP. I see that this all took longer than
expected (also due to my fault in providing timely reviews). I suggest
that some of the stuff that needs to be done still is delegated, so that
Donald doesn't have to do all of it.

Regards,
Martin

___
Python-Dev mailing list
[email protected]
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 453 (ensurepip) updated

2013-10-22 Thread Nick Coghlan
On 22 October 2013 19:33, "Martin v. Löwis"  wrote:
> Am 20.10.13 14:27, schrieb Nick Coghlan:
>> I have posted the latest version of PEP 453 to python.org.
>
> This version looks good to me, and I accept it for inclusion in Python 3.4.
>
> I'd like to thank Nick for carefully editing this PEP, and I'd like to
> cite it as an archetype for a well-written PEP. It's very precise, and
> it elaborates on rejected proposals and the motivation for rejection.

Thank you! I have updated the PEP to record the acceptance, and
created a tracking issue for the implementation at
http://bugs.python.org/issue19347

> I'd also like to thank Donald for pushing this, and for continued work
> on the implementation of the PEP. I see that this all took longer than
> expected (also due to my fault in providing timely reviews). I suggest
> that some of the stuff that needs to be done still is delegated, so that
> Donald doesn't have to do all of it.

If we could get assistance with the installer and pyvenv updates after
the initial implementation of the module itself is checked in, that
would be a huge help.

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
___
Python-Dev mailing list
[email protected]
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 453 (ensurepip) updated

2013-10-22 Thread Donald Stufft

On Oct 22, 2013, at 5:33 AM, Martin v. Löwis  wrote:

> Am 20.10.13 14:27, schrieb Nick Coghlan:
>> I have posted the latest version of PEP 453 to python.org. 
> 
> This version looks good to me, and I accept it for inclusion in Python 3.4.
> 
> I'd like to thank Nick for carefully editing this PEP, and I'd like to
> cite it as an archetype for a well-written PEP. It's very precise, and
> it elaborates on rejected proposals and the motivation for rejection.
> 
> I'd also like to thank Donald for pushing this, and for continued work
> on the implementation of the PEP. I see that this all took longer than
> expected (also due to my fault in providing timely reviews). I suggest
> that some of the stuff that needs to be done still is delegated, so that
> Donald doesn't have to do all of it.
> 
> Regards,
> Martin
> 
> ___
> Python-Dev mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: 
> https://mail.python.org/mailman/options/python-dev/donald%40stufft.io


Let me echo Nick's thank you!

Now to get this implemented :D

-
Donald Stufft
PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Python-Dev mailing list
[email protected]
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 453 (ensurepip) updated

2013-10-22 Thread Ned Deily
In article 
,
 Nick Coghlan  wrote:
> On 22 October 2013 19:33, "Martin v. Löwis"  wrote:
> > Am 20.10.13 14:27, schrieb Nick Coghlan:
> >> I have posted the latest version of PEP 453 to python.org.
> >
> > This version looks good to me, and I accept it for inclusion in Python 3.4.
> >
> > I'd like to thank Nick for carefully editing this PEP, and I'd like to
> > cite it as an archetype for a well-written PEP. It's very precise, and
> > it elaborates on rejected proposals and the motivation for rejection.

I'd like to second that and thank both Nick and Donald for addressing the 
concerns I raised.
 
> Thank you! I have updated the PEP to record the acceptance, and
> created a tracking issue for the implementation at
> http://bugs.python.org/issue19347
> 
> > I'd also like to thank Donald for pushing this, and for continued work
> > on the implementation of the PEP. I see that this all took longer than
> > expected (also due to my fault in providing timely reviews). I suggest
> > that some of the stuff that needs to be done still is delegated, so that
> > Donald doesn't have to do all of it.
> 
> If we could get assistance with the installer and pyvenv updates after
> the initial implementation of the module itself is checked in, that
> would be a huge help.

I'm planning to do the OS X installer support changes.

-- 
 Ned Deily,
 [email protected]

___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] compile python 3.3 with bz2 support

2013-10-22 Thread o1dnik
Oleg Broytman  phdru.name> writes:


> 
> Hello.
> 
>We are sorry but we cannot help you. This mailing list is to work on
> developing Python (adding new features to Python itself and fixing bugs);
> if you're having problems learning, understanding or using Python, please
> find another forum. Probably python-list/comp.lang.python mailing 
list/news
> group is the best place; there are Python developers who participate in 
it;
> you may get a faster, and probably more complete, answer there. See
> http://www.python.org/community/ for other lists/news groups/fora. Thank
> you for understanding.
> 
> On Fri, Dec 21, 2012 at 02:03:40PM +0800, Isml <76069016  qq.com> 
wrote:
> > hi, everyone:
> >  I want to compile python 3.3 with bz2 support on RedHat 5.5 but 
fail to do that. Here is how I do it:
> >  1??download bzip2 and compile it(make??make -f Makefile_libbz2_so??
make install)
> >  2??chang to python 3.3 source directory : ./configure --with-
bz2=/usr/local/include
> >  3??make
> >  4??make install
> >   
> >  after installation complete, I test it??
> >  [root  localhost Python-3.3.0]# python3 -c "import bz2"
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "/usr/local/lib/python3.3/bz2.py", line 21, in 
> > from _bz2 import BZ2Compressor, BZ2Decompressor
> > ImportError: No module named '_bz2'
> 
>You have to install bz2 development files (headers and libraries)
> before recompiling python.
> 
> >  By the way, RedHat 5.5 has a built-in python 2.4.3. Would it be a 
problem?
> 
>Depends on what are you going to do.
> 
> Oleg.


I've faced the same problem: while installing packages packed in .tar.bz2 
using pip it failed with the same error on importing BZDecompress from _bz2 
module (it could not find the `_bz` module).
So You can solve the problem by adding a prefix with direct location to your 
compiled python3.3. But first you need to add a custom path to libbz2 in 
this line[1357] in setup.py:

# Gustavo Niemeyer's bz2 module.
if (self.compiler.find_library_file('/lib/i386-linux-gnu/libbz2.so.1.0.4/', 
'bz2')):  # lib_dirs, 'bz2')):

then make && make -f Makefile-libbz2_so && make install
(and be careful passing correct --prefix to ./configure)

___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] PyCon US 2014

2013-10-22 Thread Brett Cannon
On Fri, Oct 11, 2013 at 11:23 AM, Michael Foord
wrote:

>
> On 10 Oct 2013, at 01:53, Eric Snow  wrote:
>
> > Registration is now open for PyCon US 2014.  Are there any plans yet
> > for the language summit?  Just the day (e.g. Thursday April 10) will
> > suffice.  Then we can make arrangements appropriately.  Thanks.
>
>
> Sorry for the late reply. Yes there will be a language summit. I'm pretty
> sure it will be on Thursday as the last few years. I'm getting definite
> confirmation of this.
>

I thought it had been on Wednesday typically? I.e. language summit
Wednesday and some random other summit Thursday.

-Brett


>
> Michael
>
> >
> > -eric
> > ___
> > Python-Dev mailing list
> > [email protected]
> > https://mail.python.org/mailman/listinfo/python-dev
> > Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk
>
>
> --
> http://www.voidspace.org.uk/
>
>
> May you do good and not evil
> May you find forgiveness for yourself and forgive others
> May you share freely, never taking more than you give.
> -- the sqlite blessing
> http://www.sqlite.org/different.html
>
>
>
>
>
> ___
> Python-Dev mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> https://mail.python.org/mailman/options/python-dev/brett%40python.org
>
___
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com