[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan

New submission from James Morgan jmorg1...@gmail.com:

Hi,

For some reason I have recently lost the ability to open IDLE for python 2.6.2.

I was able to open it for 2.5 without issue. I reinstalled 2.6.2 several times, 
removed 2.5, tried 2.6.5 instead, still cannot load IDLE. I can load the python 
command prompt however.

When attempting to run idle through cmd.exe I get an error in line 3 of 
pyshell.py

import os
ImportError: No module named os

Any help on this issue would be greatly appreciated.

--
components: IDLE
messages: 105792
nosy: gromij
priority: normal
severity: normal
status: open
title: IDLE won't start import os error
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8723
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8723] IDLE won't start import os error

2010-05-15 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Why do you think this is a bug in Python? It rather sounds like you 
misconfigured your system somehow. Without access to the system, it is 
difficult to guess what the misconfiguration might be, though.

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8723
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8720] undo findsource regression/change

2010-05-15 Thread holger krekel

holger krekel holger.kre...@gmail.com added the comment:

Thanks for helping with this!  Attached is a patch that adds a keyword 
check=True to getsourcefile so that findsource can defer existence-checking 
until after cache lookup.  Eventually, findsource will still raise an IOError 
if it can't find the source file and cannot recover the source from cache.  The 
patch mainly consists of adding a number of tests to specify the (refined) 
behaviour of findsource and getsourcefile.  

best, holger

--
keywords: +patch
Added file: http://bugs.python.org/file17350/findsource.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8720
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan

James Morgan jmorg1...@gmail.com added the comment:

Thanks for the reply.

I have used idle before on this system without issue, and since 2.5 worked I 
figured there was some difference between 2.5 and 2.6 which was causing the 
issue.

I have found since that the issue is likely not with idle at all however, but 
rather with the modules... while the python command line works I am unable to 
use it to run one of my scripts. Attempting to run through cmd revealed that it 
was failing as it could not import shutil.

I am new to this help system so apologies if i have miscategorised this issue. 
Since it seems the nature of the problem is not what I initially thought I will 
move it to extension modules.

I have no idea if it is relevant, but I am running on XP pro SP3.

Thanks

--
components: +Extension Modules -IDLE

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8723
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7640] buffered io seek() buggy

2010-05-15 Thread Pascal Chambon

Pascal Chambon chambon.pas...@gmail.com added the comment:

Hello

I advocate the inclusion of this patch to the 2.6 maintenance branch, because 
currently the io module in this branch (which is still the most recent 2.X 
version released) is simply broken. 
People using it will certainly encounter MAJOR file corruptions due to the 
buggy seek().

Or should we rather backport the much more evoluated io of trunk to py2.6 ?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7640
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

New patch (factorial3.patch) addressing all of Alexander's points except the 
one about including Python source somewhere.

I also expanded the lookup table to 20 entries on LP64 systems.

--
Added file: http://bugs.python.org/file17351/factorial3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8723] IDLE won't start import os error

2010-05-15 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 I am new to this help system

Please understand that this is not a help system at all.
Instead, it is a bug tracker: a way for people to contribute
to Python, by reporting bugs or contributing code. For help,
please contact one of the Python help forums, such as
python-l...@python.org (aka news:comp.lang.python).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8723
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-15 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

I can't pinpoint the exact causes for each individual test failure. I assumed 
that they are caused by threading/signal issues, because the tests pass when 
Python is compiled --without-threads.


But here's a list of possible culprits for future reference:

[pthread's execve(2) breaks close(2)]
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yesnumbers=6183

[SIGCHLD handler is called at bad timing when linked to libpthread]
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yesnumbers=6273

[pthread: 100% CPU usage after execv]
http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?full=yesnumbers=6376

[pthread: file descriptors are pseudo-blocking]
http://www.mail-archive.com/m...@openbsd.org/msg80643.html

[test_siginterrupt_off broken by libpthread's internal hooking of signals]
[test_itimer_prof broken by libpthread's internal use of SIGPROF]
http://www.openbsd.org/cgi-bin/cvsweb/ports/lang/python/2.6/patches/patch-Lib_test_test_signal_py

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-15 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

The FreeBSD-6.4-RELEASE-i386 buildbot has similar libpthread issues.

This is just in:

==
FAIL: test_send_signal (test.test_subprocess.POSIXProcessTestCase)
--
Traceback (most recent call last):
  File 
/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_subprocess.py, 
line 770, in test_send_signal
self.assertIn(b'KeyboardInterrupt', stderr)
AssertionError: b'KeyboardInterrupt' not found in b''


Re documentation:

Another approach would be to configure builds on systems with known
threading issues --without-threads by default. Advantages:

  a) Users will be immediately aware of the issues.

  b) Less work with the FreeBSD-6.4 buildbot.

  c) The --without-threads path is actually tested regularly.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

And the same patch, but with a (deliberately simple) pure Python version of the 
algorithm in test_math.py.

--
Added file: http://bugs.python.org/file17352/factorial4.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan

James Morgan jmorg1...@gmail.com added the comment:

Sorry, I guess I misunderstood the function as I saw some issues which appeared 
similar in style to my own.

Never mind this then I will seek help elsewhere. Thankyou.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8723
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan

Changes by James Morgan jmorg1...@gmail.com:


--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8723
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8724] bind_and_activate parameter is missed from directive

2010-05-15 Thread INADA Naoki

New submission from INADA Naoki songofaca...@gmail.com:

http://docs.python.org/dev/library/simplexmlrpcserver.html#SimpleXMLRPCServer.SimpleXMLRPCServer

bind_and_activate parameter is described but not defined in directive.

--
messages: 105803
nosy: naoki
priority: normal
severity: normal
status: open
title: bind_and_activate parameter is missed from directive

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8724
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8724] bind_and_activate parameter is missed from directive

2010-05-15 Thread INADA Naoki

Changes by INADA Naoki songofaca...@gmail.com:


--
assignee:  - d...@python
components: +Documentation
nosy: +d...@python
versions: +Python 2.6, Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8724
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-05-15 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@haypocalc.com:

I introduced initfsencoding() in #8610 to ensure that Py_FileSystemEncoding is 
not more NULL. In the discussion, Marc Lemburg noticed that falling back the 
UTF-8 on nl_langinfo(CODESET) error is a bad idea: ASCII is better (I agree).

We cannot fall back to ASCII yet because there are two other problems that have 
to be fixed before that:

 - Python3 doesn't support surrogates in module filenames: see #8611
 - If Py_FileSystemEncoding is NULL, encoding functions fallback to utf-8 
(PyUnicode_GetDefaultEncoding()). #8715 proposes a new 
PyUnicode_EncodeFSDefault() function to fix this problem

Attached patch is a partial fix for this issue.

--
components: Interpreter Core, Unicode
files: fsencoding_ascii.patch
keywords: patch
messages: 105804
nosy: haypo
priority: normal
severity: normal
status: open
title: Python3: use ASCII for the file system encoding on initfsencoding() 
failure
versions: Python 3.2
Added file: http://bugs.python.org/file17353/fsencoding_ascii.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8725
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8610] Python3/POSIX: errors if file system encoding is None

2010-05-15 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

I commited the last patch (fall back to UTF-8): r81190 (3.x), blocked in 3.1 
(r81191).

I opened a new issue for the UTF-8/ASCII fallback: #8725, because the ASCII 
fallback is a different issue.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8610
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-05-15 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
dependencies: +Create PyUnicode_EncodeFSDefault() function, Python3 doesn't 
support locale different than utf8 and an non-ASCII path (POSIX)
nosy: +Arfrever, lemburg, loewis, pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8725
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

On Sat, May 15, 2010 at 6:32 AM, Mark Dickinson rep...@bugs.python.org wrote:
 New patch (factorial3.patch) addressing all of Alexander's points except the 
 one about including Python source somewhere.

Thanks for making the changes.  I think we converged to a really neat
implementation.


 I also expanded the lookup table to 20 entries on LP64 systems.


It's a matter of taste, but I was taught that C allows trailing commas
in initializers specifically for the cases like this to avoid using a
leading comma.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

 It's a matter of taste, but I was taught that C allows trailing commas
 in initializers specifically for the cases like this to avoid using a
 leading comma.

Unfortunately, I think C89 doesn't allow for this, and there are tracker issues 
about Python compiles failing on some platforms (AIX?) thanks to extra trailing 
commas in the source.  I prefer the extra comma too, but it's not legal C89.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Ah;  Alexander's right:  I was misremembering.  An extra comma in an *enum* 
list isn't allowed (cf. issue 5889);  an extra comma in an array initializer 
is.  I'll rewrite that bit.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8715] Create PyUnicode_EncodeFSDefault() function

2010-05-15 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 bootstrap failure on Windows: import did use default error handler, 
 it uses surrogateescape error handler, but PyUnicode_EncodeString()
 doesn't have codec fast-path for MBCS+surrogateescape.

I enabled shortcuts in PyUnicode_EncodeString() for any error handler (not 
only the default error handler, strict) in r81192.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8715
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8715] Create PyUnicode_EncodeFSDefault() function

2010-05-15 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

PyUnicode_AsEncodedString() contains a special path for the file system 
encoding. I don't think that it is still needed, but I don't know how to check 
that.

/* During bootstrap, we may need to find the encodings
   package, to load the file system encoding, and require the
   file system encoding in order to load the encodings
   package.

   Break out of this dependency by assuming that the path to
   the encodings module is ASCII-only.  XXX could try wcstombs
   instead, if the file system encoding is the locale's
   encoding. */
else if (Py_FileSystemDefaultEncoding 
 strcmp(encoding, Py_FileSystemDefaultEncoding) == 0 
 !PyThreadState_GET()-interp-codecs_initialized)
return PyUnicode_EncodeASCII(PyUnicode_AS_UNICODE(unicode),
 PyUnicode_GET_SIZE(unicode),
 errors);

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8715
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

There is one place in the notes still referring to  
factorial_part_product.

--
nosy: +Alexander.Belopolsky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Daniel Stutzbach

Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:

The comment for bit_length is missing a space or two:
Objects/longobject.c.Someday

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

 There is one place in the notes still referring to
 factorial_part_product.

Hmm.  I can't find it.  Can you be more specific?

I'll fix the spaces before 'Someday'.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

Sorry for terseness. Sending it from my phone.

The line was in factorial4.patch:

+ * The factorial_partial_product function computes the product of all  
odd j in



 Hmm.  I can't find it.  Can you be more specific?



--
Added file: http://bugs.python.org/file17354/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___htmlbody bgcolor=#FFdivSorry for terseness. Sending it from my 
phone.nbsp;/divdivbr/divdivThe line was in 
factorial4.patch:/divdivbr/divdivspan class=Apple-style-span 
style=font-family: Times; font-size: 16px; -webkit-tap-highlight-color: 
rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 
0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); 
pre style=word-wrap: break-word; white-space: pre-wrap; + * The 
factorial_partial_product function computes the product of all odd j 
in/prepre style=word-wrap: break-word; white-space: pre-wrap; 
br/prepre style=word-wrap: break-word; white-space: pre-wrap; 
br/pre/spanbrbr/divblockquote type=citedivblockquote 
type=citespan class=Apple-style-span style=color: rgb(0, 0, 
0);br/span/blockquotespan/spanbrspanHmm. nbsp;I can't find it. 
nbsp;Can you be more specific?/spanbrspan/spanbrbr
 /div/blockquote/body/html___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Okay, thanks.  I'm still not seeing what's wrong with this, though  (sorry for 
being slow :(  )

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

s/partial_product/odd_part/

It looks like you made this change in some places but not all.

On May 15, 2010, at 11:16 AM, Mark Dickinson rep...@bugs.python.org  
wrote:


 Mark Dickinson dicki...@gmail.com added the comment:

 Okay, thanks.  I'm still not seeing what's wrong with this, though   
 (sorry for being slow :(  )

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue8692
 ___

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

But factorial_partial_product and factorial_odd_part both exist:  the former is 
just computing the product of all odd integers in the given interval, while the 
latter computes the odd part of factorial(n).

I've double checked the comments and they still look okay to me.  That 
particular reference really is to factorial_partial_product.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8692] Use divide-and-conquer for faster factorials

2010-05-15 Thread Alexander Belopolsky

Alexander Belopolsky alexander.belopol...@gmail.com added the comment:

Sorry I didn't realize that ...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8692
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8715] Create PyUnicode_EncodeFSDefault() function

2010-05-15 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Commited as r81194 (py3k), blocked in 3.1 (r81195).

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8715
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-05-15 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

PyUnicode_AsEncodedString() contains a special path for the file system 
encoding. I don't think that it is still needed, but I don't know how to check 
that. = read msg105810

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8725
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8708] OpenID blunder

2010-05-15 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

Since Martin seemed to fix this, closing the issue.

--
nosy: +brett.cannon
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8708
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7640] buffered io seek() buggy

2010-05-15 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Committed in r81203. Thank you, Pascal!

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
versions:  -Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7640
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8685] set(range(100000)).difference(set()) is slow

2010-05-15 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

The current patch gives much smaller benefits than the originally posted 
benchmarks, although they are still substantial:

$ ./python -m timeit -s a = set(range(10)); sd = a.difference; b = 
set(range(1000)) sd(b)
- before: 5.56 msec per loop
- after: 3.18 msec per loop

$ ./python -m timeit -s a = set(range(100)); sd = a.difference; b = 
set(range(10)) sd(b)
- before: 67.9 msec per loop
- after: 41.8 msec per loop

--
versions:  -Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8685
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8726] test_capi failure

2010-05-15 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

[...]
test_capi
test test_capi failed -- Traceback (most recent call last):
  File /home/antoine/py3k/__svn__/Lib/test/test_capi.py, line 49, in 
test_no_FatalError_infinite_loop
b'Fatal Python error:'
AssertionError: b'' != b'Fatal Python error: PyThreadState_Get: no current 
thread'

--
components: Library (Lib), Tests
messages: 105824
nosy: pitrou
priority: normal
severity: normal
status: open
title: test_capi failure
type: behavior
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8726
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8727] test_import failure

2010-05-15 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

[...]
test_import
Warning -- sys.path was modified by test_import
test test_import failed -- Traceback (most recent call last):
  File /home/antoine/py3k/__svn__/Lib/test/test_import.py, line 167, in 
test_module_with_large_stack
exec('import ' + module)
  File string, line 1, in module
  File /home/antoine/py3k/__svn__/Lib/importlib/_bootstrap.py, line 151, in 
decorated
return fxn(self, module)
  File /home/antoine/py3k/__svn__/Lib/importlib/_bootstrap.py, line 320, in 
load_module
code_object = self.get_code(module.__name__)
  File /home/antoine/py3k/__svn__/Lib/importlib/_bootstrap.py, line 429, in 
get_code
object for {0!r}.format(fullname))
ImportError: no source or bytecode available to create code object for 
'longlist'

--
components: Library (Lib), Tests
messages: 105825
nosy: pitrou
priority: normal
severity: normal
status: open
title: test_import failure
type: behavior
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8727
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8726] test_capi failure

2010-05-15 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +jyasskin

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8726
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8726] test_capi failure

2010-05-15 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

It turns out that the test segfaults:

$ ./python -E -bb -c import _testcapi; _testcapi.crash_no_current_thread()
Erreur de segmentation (core dumped)


And here is the backtrace:

Program terminated with signal 11, Segmentation fault.
#0  PyErr_SetObject (exception=type at remote 0x7970c0, value='bork bork 
bork') at Python/errors.c:67
67  exc_value = tstate-exc_value;
Missing debug package(s), you should install: glibc-debug-2.11.1-6mnb2.x86_64
(gdb) bt
#0  PyErr_SetObject (exception=type at remote 0x7970c0, value='bork bork 
bork') at Python/errors.c:67
#1  0x0046d0e7 in PyErr_SetString (exception=type at remote 0x7970c0, 
string=value optimized out)
at Python/errors.c:125
#2  0x7f6a0b31ec1f in crash_no_current_thread (self=value optimized out)
at /home/antoine/py3k/__svn__/Modules/_testcapimodule.c:2014
#3  0x0045fb74 in call_function (f=Frame 0x184dcc0, for file string, 
line 1, in module (), 
throwflag=value optimized out) at Python/ceval.c:3854
#4  PyEval_EvalFrameEx (f=Frame 0x184dcc0, for file string, line 1, in 
module (), throwflag=value optimized out)
at Python/ceval.c:2670
#5  0x00460715 in PyEval_EvalCodeEx (co=0x7f6a0d100d78, globals=value 
optimized out, 
locals=value optimized out, args=0x0, argcount=value optimized out, 
kws=value optimized out, kwcount=0, defs=
0x0, defcount=0, kwdefs=0x0, closure=0x0) at Python/ceval.c:3307
#6  0x0046098b in PyEval_EvalCode (co=0x7970c0, globals='bork bork 
bork', locals=0x0) at Python/ceval.c:746
#7  0x00482d6f in run_mod (command=value optimized out, flags=value 
optimized out) at Python/pythonrun.c:1716
#8  PyRun_StringFlags (command=value optimized out, flags=value optimized 
out) at Python/pythonrun.c:1650
#9  PyRun_SimpleStringFlags (command=value optimized out, flags=value 
optimized out) at Python/pythonrun.c:1226
#10 0x00495a37 in Py_Main (argc=value optimized out, argv=value 
optimized out) at Modules/main.c:570
#11 0x00414b95 in main (argc=5, argv=value optimized out) at 
./Modules/python.c:50


That's probably because PyThreadState_GET() gets compiled to a simple lookup in 
non-debug mode, and doesn't trigger the fatal error.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8726
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8665] make pycremoval fails

2010-05-15 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

I'm trying a fix in r81209. If the buildbots don't complain I'll close the 
issue.

--
assignee: barry - pitrou
stage: needs patch - committed/rejected
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8665
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8726] test_capi failure

2010-05-15 Thread Jeffrey Yasskin

Jeffrey Yasskin jyass...@gmail.com added the comment:

Ah, darn. Any thoughts on what do to? Shall I make the test conditional on a 
pydebug build, or just remove it?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8726
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[issue8727] test_import failure

2010-05-15 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

This can be narrowed down to the following test sequence:

$ ./python -E -m test.regrtest test_heapq test_import
test_heapq
test_import
Warning -- sys.path was modified by test_import
test test_import failed -- Traceback (most recent call last):
  File /home/antoine/py3k/__svn__/Lib/test/test_import.py, line 167, in 
test_module_with_large_stack
exec('import ' + module)
  File string, line 1, in module
  File /home/antoine/py3k/__svn__/Lib/importlib/_bootstrap.py, line 151, in 
decorated
return fxn(self, module)
  File /home/antoine/py3k/__svn__/Lib/importlib/_bootstrap.py, line 320, in 
load_module
code_object = self.get_code(module.__name__)
  File /home/antoine/py3k/__svn__/Lib/importlib/_bootstrap.py, line 429, in 
get_code
object for {0!r}.format(fullname))
ImportError: no source or bytecode available to create code object for 
'longlist'


test_heapq involves test.support.import_fresh_module().

--
nosy: +barry, brett.cannon, ncoghlan
stage:  - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8727
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8726] test_capi failure

2010-05-15 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Your test could call PyThreadState_Get() explicitly, before calling 
PyErr_SetString() (which should then never get executed).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8726
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8728] 2.7 regression in httplib.py: AttributeError: 'NoneType' object has no attribute 'makefile'

2010-05-15 Thread Sridhar Ratnakumar

New submission from Sridhar Ratnakumar sridh...@activestate.com:

On Linux, with Python 2.7 trunk (built on May 13th)

[...]
  File 
/home/apy/as/pypm-trunk/eggs/httplib2-0.6.0-py2.7.egg/httplib2/__init__.py, 
line 1129, in request
(response, content) = self._request(conn, authority, uri, request_uri, 
method, body, headers, redirections, cachekey)
  File 
/home/apy/as/pypm-trunk/eggs/httplib2-0.6.0-py2.7.egg/httplib2/__init__.py, 
line 912, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, 
headers, )
  File 
/home/apy/as/pypm-trunk/eggs/httplib2-0.6.0-py2.7.egg/httplib2/__init__.py, 
line 871, in _conn_request
response = conn.getresponse()
  File /opt/ActivePython-2.7/lib/python2.7/httplib.py, line 1022, in 
getresponse
response = self.response_class(*args, **kwds)
  File /opt/ActivePython-2.7/lib/python2.7/httplib.py, line 340, in __init__
self.fp = sock.makefile('rb', 0)
AttributeError: 'NoneType' object has no attribute 'makefile'

--
components: Library (Lib)
messages: 105831
nosy: krisvale, srid
priority: normal
severity: normal
status: open
title: 2.7 regression in httplib.py: AttributeError: 'NoneType' object has no 
attribute 'makefile'
type: crash
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8728
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6645] multiprocessing build fails on AIX - /dev/urandom (or equivalent) not found

2010-05-15 Thread Sridhar Ratnakumar

Sridhar Ratnakumar sridh...@activestate.com added the comment:

Looks like this has been fixed, at least on Python trunk (2.7).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6645
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8729] The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping

2010-05-15 Thread Daniel Stutzbach

New submission from Daniel Stutzbach dan...@stutzbachenterprises.com:

The Mapping ABC's __eq__ method should return NotImplemented if the other type 
is not a Mapping, to give the other type a chance at the comparison.  Right now 
it simply returns false.

The comparison methods on the other ABCs in _abcoll.py already return 
NotImplemented if they don't recognize the other type.

--
components: Library (Lib)
files: mapping.patch
keywords: patch
messages: 105833
nosy: stutzbach
priority: normal
severity: normal
stage: patch review
status: open
title: The Mapping ABC's __eq__ method should return NotImplemented if the 
other type is not a Mapping
type: behavior
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file17355/mapping.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8729
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8727] test_import failure

2010-05-15 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

THe sys.path  modification warning is a red herring; the test simply was not 
cleaning up after itself properly. That little bit is fixed in r81214.

Don't know about the cause of the actual failure yet.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8727
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7946] Convoy effect with I/O bound threads and New GIL

2010-05-15 Thread Nir Aides

Changes by Nir Aides n...@winpdb.org:


Removed file: http://bugs.python.org/file17330/bfs.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7946] Convoy effect with I/O bound threads and New GIL

2010-05-15 Thread Nir Aides

Nir Aides n...@winpdb.org added the comment:

Updated bfs.patch to patch cleanly updated py3k branch. Use:
$ patch -p1  bfs.patch

--
Added file: http://bugs.python.org/file17356/bfs.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8727] test_import failure

2010-05-15 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

I found the cause of the failure.

When Barry implemented PEP 3147, he made PyPycLoader.bytecode_path() operate as 
if the only possible bytecode file one would want is the __cached__ one. That 
obviously is not accurate in the face of source-less modules. So the 
test_import is failing because it is not even attempting a bytecode-only import.

What this means is that importlib needs to change its implementation of 
bytecode_path() to return the proper path based on whether the source exists. I 
will get to that hopefully this week. In the mean time I have flagged the test 
as an expected failure.

This also shows me even more that I need to redo the ABCs in importlib to 
essentially make bytecode an optimization that the ABC handles and that is not 
exposed to the importer implementer.

--
assignee:  - brett.cannon

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8727
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8727] test_import failure

2010-05-15 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
priority: normal - critical

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8727
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8712] Skip libpthread related test failures on OpenBSD

2010-05-15 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

The gentoo-3.x buildbot also shows the threading problems again:

test test_subprocess failed -- Traceback (most recent call last):
  File 
/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/test_subprocess.py,
 line 770, in test_send_signal
self.assertIn(b'KeyboardInterrupt', stderr)
AssertionError: b'KeyboardInterrupt' not found in b''


References:

[gentoo-3.x]
http://bugs.python.org/issue4970

[freebsd-6.4]
http://bugs.python.org/issue3864

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8712
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue858809] Use directories from configure rather than hardcoded

2010-05-15 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
assignee: tarek - skrah
nosy: +merwok, skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue858809
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue858809] Use directories from configure rather than hardcoded

2010-05-15 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

(Fixing Roundup form bug)

--
assignee: skrah - tarek
nosy:  -skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue858809
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue858809] Use directories from configure rather than hardcoded

2010-05-15 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue858809
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3686] PKG-INFO file should differentiate between authors and maintainers

2010-05-15 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +merwok

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3686
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4007] make clean fails to delete .a and .so.X.Y files

2010-05-15 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Note: Using find -delete avoids the extra process spawning for rm. However, if 
the -f option is really necessary, we’ll have to use rm.

Someone has an idea about the imperfect regex/glob pattern?

--
nosy: +merwok

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4007
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4508] distutils compiler not handling spaces in path to output/src files

2010-05-15 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
assignee: tarek - sjoerd
components: +Distutils2 -Distutils
nosy: +merwok, sjoerd
versions: +Python 2.5, Python 3.2 -Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4508
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4508] distutils compiler not handling spaces in path to output/src files

2010-05-15 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

(Fixing damn HTML form changing select values, really sorry)

--
assignee: sjoerd - tarek
nosy:  -sjoerd

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4508
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4508] distutils compiler not handling spaces in path to output/src files

2010-05-15 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4508
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4007] make clean fails to delete .a and .so.X.Y files

2010-05-15 Thread Skip Montanaro

Skip Montanaro s...@pobox.com added the comment:

 Note: Using find -delete avoids the extra process spawning for rm.

The -delete expression isn't universally available.  For example, it is not
present on Solaris.  Better just to stick with the reliable rm.

Skip

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4007
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-05-15 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Version 2:
 - #8715 has been commited: patch PyUnicode_EncodeFSDefault()
 - fix the documentation according the changes

--
Added file: http://bugs.python.org/file17357/fsencoding_ascii-2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8725
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8725] Python3: use ASCII for the file system encoding on initfsencoding() failure

2010-05-15 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


Removed file: http://bugs.python.org/file17353/fsencoding_ascii.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8725
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8513] subprocess: support bytes program name (POSIX)

2010-05-15 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

New patch fixing this issue:
 - os.get_exec_path() type now depends on the OS: str on Windows, bytes on Unix
 - os.get_exec_path(None) uses os.environ on Windows, os.environb on Unix
 - os.get_exec_path(env) uses 'PATH' or b'PATH' key, but raise a ValueError if 
both keys exist
 - add os.supports_bytes_environ flag (boolean)
 - os._execvpe() and subprocess._execute_child() canonicalize the program to 
bytes
 - test not path.supports_unicode_filenames to check if fsencode() should be 
defined and used (instead of testing name != nt)

I'm not proud of the change on os.get_exec_path() result type, I'm not sure 
that it's the right thing to do. But at least, the patch works :-)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8513
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8640] subprocess: canonicalize env to bytes on Unix (Python3)

2010-05-15 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

pitou Why wouldn't you give byte variables in env too?

Ok, attached patch canonicalize env keys and values to bytes. If a variable is 
defined twice (str name, bytes name), a ValueError is raised.

The patch depends on #8513: it requires that os.get_exec_path() is patched to 
support b'PATH' key.

--
dependencies: +subprocess: support bytes program name (POSIX)
keywords: +patch
title: subprocess: add envb argument to Popen constructor (Python3, POSIX only) 
- subprocess: canonicalize env to bytes on Unix (Python3)
Added file: http://bugs.python.org/file17358/subprocess_canonalize_env.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8640
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8640] subprocess: canonicalize env to bytes on Unix (Python3)

2010-05-15 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Python 3.1 accepts duplicate variables (str name, bytes name). It creates the 
two variables is a random order:

 subprocess.call(['env'], env={'xx': 'str', b'xx': 'bytes'})
xx=str
xx=bytes
0
 subprocess.call(['env'], env={'xxx': 'str', b'xxx': 'bytes'})
xxx=bytes
xxx=str
0

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8640
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8729] The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping

2010-05-15 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

A test would be good.

--
nosy: +benjamin.peterson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8729
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8728] 2.7 regression in httplib.py: AttributeError: 'NoneType' object has no attribute 'makefile'

2010-05-15 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Can you provide a small code example that will reproduce the problem?

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8728
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8550] Expose SSL contexts

2010-05-15 Thread Heikki Toivonen

Heikki Toivonen hjtoi-bugzi...@comcast.net added the comment:

Since SSLv2 is insecure, could you at least add a warning for that protocol? I 
think there was a separate issue for removing it altogether, but could a 
warning be added here?

The documentation should mention that verify_mode=CERT_REQUIRED is recommended 
for security.

There should probably be an example of using SSL context in the documentation.

I think you need to expose SSL_CTX_set_options(). Currently the code just sets 
all options, which means that the default protocol SSLv23 will accept SSLv2 
which is insecure. Most people would want to probably do something like 
ctx.set_options(SSL_OP_ALL | SSL_OP_NO_SSLv2). Documentation should also 
mention that this is recommended for security. See man SSL_CTX_set_options.

Otherwise I could not see issues with the code, apart from the still #if 0'd 
out sections and commented out sections, which you are planning on doing 
something about, right?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8550
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8729] The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping

2010-05-15 Thread Daniel Stutzbach

Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:

Will do, sometime this week.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8729
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com