[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5

___
Python tracker 

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



[issue9667] NetBSD curses KEY_* constants

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker 

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



[issue11792] asyncore module print to stdout

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5, Python 3.1

___
Python tracker 

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



[issue11767] Maildir iterator leaks file descriptors by default

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5, Python 2.6

___
Python tracker 

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



[issue11728] mbox parser incorrect behaviour

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
stage:  -> test needed
type:  -> behavior
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker 

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



[issue11671] Security hole in wsgiref.headers.Headers

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5

___
Python tracker 

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



[issue11419] Python-ast.[ch] out-of-date w.r.t. sources in fresh 2.5 checkout

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
status: open -> closed

___
Python tracker 

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



[issue11439] subversion keyword breakage

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5

___
Python tracker 

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



[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker 

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



[issue11449] tarfile tries to file_.tell() even when creating a new archive

2011-05-31 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

2.5 is closed; 2.6 security fix only, 3.1 soon will be

--
nosy: +terry.reedy
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker 

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



[issue11409] pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker 

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



[issue11357] Add support for PEP 381 -- Mirror Authenticity

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 
3.3

___
Python tracker 

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



[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker 

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



[issue10878] asyncore does not react properly on close()

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5, Python 2.6

___
Python tracker 

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



[issue2901] "error: can't allocate region" from mmap() when receiving big chunk of data

2011-05-31 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Never verified for current release. 2.5 closed.

--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue10376] ZipFile unzip is unbuffered

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions: +Python 3.2, Python 3.3 -Python 2.5, Python 2.6, Python 3.1

___
Python tracker 

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



[issue8678] crashers in rgbimg

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue9972] PyGILState_XXX missing in Python builds without threads

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker 

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



[issue9699] invalid call of Windows API _popen() generating The input line is too long error message

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker 

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



[issue9812] cPickle segfault with nested dicts in threaded env

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue9678] uuid._ifconfig_getnode can't work on NetBSD

2011-05-31 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

2.5 is closed and 2.6 and 3.1 are or soon will be security fix only.
I do not know if any developer works with NetBSD.

--
nosy: +terry.reedy
versions: +Python 3.2 -Python 2.5, Python 2.6, Python 3.1

___
Python tracker 

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



[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2011-05-31 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

2.5 is done with and no response to question about more recent versions.

--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue1669349] make install fails if no previous Python installation

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5

___
Python tracker 

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



[issue1621] Do not assume signed integer overflow behavior

2011-05-31 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
versions:  -Python 2.5

___
Python tracker 

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



[issue12226] use secured channel for uploading packages to pypi

2011-05-31 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

I'm +0 on changing 2.6. Many people use setuptools or distribute, so the impact 
of this change was higher if those were modified instead of modifying 2.6 - in 
particular since few people are expected to pick up these security releases, 
anyway.

--

___
Python tracker 

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



[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-05-31 Thread Ross Lagerwall

Ross Lagerwall  added the comment:

Could this be related to http://bugs.python.org/issue6559#msg123958?
Or Issue10826?

--
nosy: +rosslagerwall

___
Python tracker 

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



[issue11822] Improve disassembly to show embedded code objects

2011-05-31 Thread Nick Coghlan

Nick Coghlan  added the comment:

Note that Yaniv Aknin (author of the Python's Innards series of blog posts) has 
a recursive dis variant that may be useful for inspiration:

https://bitbucket.org/yaniv_aknin/pynards/src/c4b61c7a1798/common/blog.py

As shown there, this recursive behaviour can also be useful for 
code_info/show_code.

--
nosy: +ncoghlan

___
Python tracker 

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



[issue7978] SocketServer doesn't handle syscall interruption

2011-05-31 Thread Vetoshkin Nikita

Vetoshkin Nikita  added the comment:

I don't think we should block signals - we can sleep on select for about 
forever.

--

___
Python tracker 

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



[issue8578] PyWeakref_GetObject

2011-05-31 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset a856be6688a6 by Benjamin Peterson in branch '3.2':
be extra careful with a borrowed reference when the GIL could be released 
(closes #8578)
http://hg.python.org/cpython/rev/a856be6688a6

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue10399] AST Optimization: inlining of function calls

2011-05-31 Thread John O'Connor

Changes by John O'Connor :


--
nosy: +jcon

___
Python tracker 

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



[issue12233] Lists in class objects not independent

2011-05-31 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Sorry, that is correct behavior for class variables.

To get your intended effect (independent lists) do the list instantiation 
inside the __init__ method.

--
nosy: +rhettinger
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue12221] segfaults with unexpanded $Revision$ id's in release candidate tarballs

2011-05-31 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset f3553d5083f8 by Benjamin Peterson in branch 'default':
remove __version__s dependent on subversion keyword expansion (closes #12221)
http://hg.python.org/cpython/rev/f3553d5083f8

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue8578] PyWeakref_GetObject

2011-05-31 Thread John O'Connor

Changes by John O'Connor :


--
nosy: +jcon

___
Python tracker 

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



[issue11197] information leakage with SimpleHTTPServer

2011-05-31 Thread John O'Connor

Changes by John O'Connor :


--
nosy: +jcon

___
Python tracker 

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



[issue12233] Lists in class objects not independent

2011-05-31 Thread Austin Howard

New submission from Austin Howard :

When creating a class which contains elements that are lists, the lists for 
different instances of the class are not independent. Calling
self.mylist.append(3)
inside a class method will update the mylist variable for *all* instances of 
the class, not just the current instance. Attached is a script which 
demonstrates this behavior.

--
components: Interpreter Core
files: python_bug.py
messages: 137410
nosy: austin1howard
priority: normal
severity: normal
status: open
title: Lists in class objects not independent
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file22218/python_bug.py

___
Python tracker 

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



[issue1152248] Enhance file.readlines by making line separator selectable

2011-05-31 Thread John O'Connor

Changes by John O'Connor :


--
nosy: +jcon

___
Python tracker 

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



[issue2091] file accepts 'rU+' as a mode

2011-05-31 Thread John O'Connor

John O'Connor  added the comment:

It seems to me that adding the proper check is a good idea. It also may not be 
obvious to some that 'U' is now more or less an alias for 'r'. I have updated 
the patch so that it at least applies.

I also removed a redundant `reading = 1`

--
nosy: +jcon
Added file: http://bugs.python.org/file22217/issue2091-2.patch

___
Python tracker 

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



[issue12232] embedded python import cmath

2011-05-31 Thread Thanh Ly

New submission from Thanh Ly :

Calling Python script from C/C++ seems to work fine until using 'import cmath' 
causing the C/C++ application to hang. Other modules can be imported such as 
'math'.

--
messages: 137408
nosy: Thanh Ly
priority: normal
severity: normal
status: open
title: embedded python import cmath
type: crash
versions: Python 2.6

___
Python tracker 

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



[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-31 Thread STINNER Victor

STINNER Victor  added the comment:

Cool, "x86 FreeBSD 6.4 3.x" is green for the first time since a long time, 
thanks to my commit 29e08a98281d (test_signal doesn't check signal delivery 
order).

--

___
Python tracker 

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



[issue12221] segfaults with unexpanded $Revision$ id's in release candidate tarballs

2011-05-31 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

I've fixed the pyexpat.__version__ from segfaulting. The other ones are 
harmless and can be removed later.

--
priority: release blocker -> normal

___
Python tracker 

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



[issue12231] regrtest: add -k and -K options to filter tests by function/file names

2011-05-31 Thread STINNER Victor

STINNER Victor  added the comment:

> Attached patch adds -k/--func-regex and -K/--file-regex options to filter
> tests by function/file names.

We need maybe a third option to filter tests by their class name. And we need 
also maybe the opposite option: exclude tests matching a regex. Another 
proposition: --include and --exclude options using the following format:

::

Each field is optional, examples:

--include "test_subprocess::leak" ignores test_leak function of 
test_subprocess file
--include "codecencoding::" runs the 6 test_codecencoding* files
--include "test_subprocess:^C:" runs only the tests of the io module (not the 
_pyio module)
- etc.

Problem: --exclude (-x) option is already used.

--

___
Python tracker 

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



[issue12221] segfaults with unexpanded $Revision$ id's in release candidate tarballs

2011-05-31 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 9c1116e582e3 by Benjamin Peterson in branch '2.7':
simply use the Python version for pyexpat.__version__ #12221
http://hg.python.org/cpython/rev/9c1116e582e3

New changeset 9c23efa3f5c7 by Benjamin Peterson in branch '3.1':
simply use the Python version for pyexpat.__version__ #12221
http://hg.python.org/cpython/rev/9c23efa3f5c7

New changeset f2f74b8d6767 by Benjamin Peterson in branch '3.2':
merge 3.1 (#12221)
http://hg.python.org/cpython/rev/f2f74b8d6767

New changeset d1291e048163 by Benjamin Peterson in branch 'default':
merge 3.2 (#12221)
http://hg.python.org/cpython/rev/d1291e048163

--
nosy: +python-dev

___
Python tracker 

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



[issue12231] regrtest: add -k and -K options to filter tests by function/file names

2011-05-31 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever

___
Python tracker 

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



[issue12085] subprocess.Popen.__del__ raises AttributeError if __init__ was called with an invalid argument list

2011-05-31 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 07b43607a905 by Victor Stinner in branch '2.7':
Issue #12085: Fix test_subprocess for my previous commit
http://hg.python.org/cpython/rev/07b43607a905

--

___
Python tracker 

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



[issue12231] regrtest: add -k and -K options to filter tests by function/file names

2011-05-31 Thread STINNER Victor

New submission from STINNER Victor :

Attached patch adds -k/--func-regex and -K/--file-regex options to filter tests 
by function/file names. It modifies makeSuite() and getTestCaseNames() 
functions of unittest.loader to add an optional filter argument: callback 
taking a function name as argument and returning False if the test should be 
ignored. You can use the new options more than once and their argument are 
regular expressions (case insensitive).

Examples:

- "./python -m test -k subprocess -K pass_fds" runs only 1 function of 1 file: 
test_subprocess.test_pass_fds()
- "./python -m test -k os$" runs 1 file: test_os
- "./python -m test -K codecencoding" runs 6 files: test_codecencodings_cn, 
test_codecencodings_hk, test_codecencodings_iso2022, test_codecencodings_jp, 
test_codecencodings_kr, test_codecencodings_tw

--
components: Tests
files: regrtest_regex.patch
keywords: patch
messages: 137402
nosy: haypo
priority: normal
severity: normal
status: open
title: regrtest: add -k and -K options to filter tests by function/file names
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file22216/regrtest_regex.patch

___
Python tracker 

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



[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2011-05-31 Thread Dave Rawks

Dave Rawks  added the comment:

Confirm this problem exists in 2.7 as well.

--
nosy: +drawks
versions: +Python 2.7

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread Ned Deily

Ned Deily  added the comment:

As the OP notes, autoconf needs to be run to update `configure` and those 
changes needs to be pushed as well so that 'configure.in' and 'configure' are 
in sync again.

--
nosy: +ned.deily

___
Python tracker 

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



[issue12085] subprocess.Popen.__del__ raises AttributeError if __init__ was called with an invalid argument list

2011-05-31 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 0f2714e49583 by Victor Stinner in branch '3.2':
Close #12085: Fix an attribute error in subprocess.Popen destructor if the
http://hg.python.org/cpython/rev/0f2714e49583

New changeset 71dfd8cf4bf5 by Victor Stinner in branch 'default':
(Merge 3.2) Close #12085: Fix an attribute error in subprocess.Popen destructor
http://hg.python.org/cpython/rev/71dfd8cf4bf5

New changeset 26ea0a46aadd by Victor Stinner in branch '2.7':
Close #12085: Fix an attribute error in subprocess.Popen destructor if the
http://hg.python.org/cpython/rev/26ea0a46aadd

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

2011/5/31 Roumen Petrov :
>
> Roumen Petrov  added the comment:
>
> Check for python executable is not complete . What about if system has only 
> version 3+ installed ?

Then hg can't possibly be installed either.

--

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread Roumen Petrov

Roumen Petrov  added the comment:

Check for python executable is not complete . What about if system has only 
version 3+ installed ?

--
nosy: +rpetrov

___
Python tracker 

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



[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-05-31 Thread STINNER Victor

New submission from STINNER Victor :

test_subprocess.test_pass_fds() failed on x86 Tiger 3.x:

test test_subprocess failed -- Traceback (most recent call last):
  File 
"/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/test/test_subprocess.py", line 
1296, in test_pass_fds
"fd to be closed passed")
AssertionError: {9} is not false : fd to be closed passed

http://www.python.org/dev/buildbot/all/builders/x86%20Tiger%203.x/builds/2671/steps/test/logs/stdio

The pass_fds parameter of Popen constructor was introduced in #6559.

--
components: Library (Lib), Tests
keywords: buildbot
messages: 137396
nosy: haypo, pitrou
priority: normal
severity: normal
status: open
title: test_subprocess.test_pass_fds() failed on x86 Tiger 3.x
versions: Python 3.3

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 435eec7b41f0 by Ralf Schmitt in branch 'default':
disable ASDLGEN if hg won't work, or if python is not installed.
http://hg.python.org/cpython/rev/435eec7b41f0

--
nosy: +python-dev
resolution: duplicate -> fixed

___
Python tracker 

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



[issue12229] Remove unused variable in bufferedio.c

2011-05-31 Thread STINNER Victor

STINNER Victor  added the comment:

I applied your fix, thanks.

--

___
Python tracker 

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



[issue12229] Remove unused variable in bufferedio.c

2011-05-31 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 549cb21a8757 by Victor Stinner in branch 'default':
Close #12229: Remove an unused argument of _bufferedreader_peek_unlocked(),
http://hg.python.org/cpython/rev/549cb21a8757

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread Ralf Schmitt

Changes by Ralf Schmitt :


Added file: http://bugs.python.org/file22215/0908fbf86e43.diff

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread Ralf Schmitt

Ralf Schmitt  added the comment:

I've setup a hg repo on bitbucket with that patch.

--
hgrepos: +24

___
Python tracker 

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



[issue12229] Remove unused variable in bufferedio.c

2011-05-31 Thread John O'Connor

New submission from John O'Connor :

Remove second (unused) argument to _bufferedreader_peek_unlocked()

--
components: IO
files: bufferedreader_peek.patch
keywords: patch
messages: 137391
nosy: haypo, jcon, pitrou
priority: normal
severity: normal
status: open
title: Remove unused variable in bufferedio.c
versions: Python 3.3
Added file: http://bugs.python.org/file22214/bufferedreader_peek.patch

___
Python tracker 

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



[issue12152] Parser/asdl_c.py relies on mercurial repository revision

2011-05-31 Thread Ralf Schmitt

Ralf Schmitt  added the comment:

issue 12225 contains a patch.

--

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread Ralf Schmitt

Ralf Schmitt  added the comment:

here's a patch that fixes the issue.
You can use hg import to apply it to your hg repo, autoconf has to be run 
afterwards.

The log message is:

disable ASDLGEN if hg won't work, or if python is not installed.

This change makes configure check for
- the existence of a hg repository
- the hg executable itself
- the python executable

Running $(srcdir)/Parser/asdl_c.py (i.e. ASDLGEN) will fail if any of
the above prerequisites is missing, so we now disable it instead.

Also see http://bugs.python.org/issue12225 and
http://bugs.python.org/issue12152

--
keywords: +patch
Added file: 
http://bugs.python.org/file22213/0001-disable-ASDLGEN-if-hg-won-t-work-or-if-python-is-not.patch

___
Python tracker 

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



[issue10772] Several actions for argparse arguments missing from docs

2011-05-31 Thread Sandro Tosi

Changes by Sandro Tosi :


--
nosy: +sandro.tosi

___
Python tracker 

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



[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-31 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 29e08a98281d by Victor Stinner in branch 'default':
Issue #8407: test_signal doesn't check signal delivery order
http://hg.python.org/cpython/rev/29e08a98281d

--

___
Python tracker 

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



[issue12196] add pipe2() to the os module

2011-05-31 Thread STINNER Victor

STINNER Victor  added the comment:

support_linux_version.diff: cool, it's even better than the previous patch. You 
can commit it, except if you are motived for a last change: display the write 
also version in the SkipTest message (as it is done actually).

pipe2_whatsnew.diff: I don't have any special to say, except that you didn't 
use ~ for :data:`os.O_NONBLOCK`. Go ahead.

--

___
Python tracker 

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



[issue12226] use secured channel for uploading packages to pypi

2011-05-31 Thread anatoly techtonik

anatoly techtonik  added the comment:

Yes. I've just uploaded http://pypi.python.org/pypi/review/r749 through 
https://pypi.python.org/pypi

--

___
Python tracker 

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



[issue12227] multiprocessing.Pool initialization seems to call methods it should not (and on badly formed objects)

2011-05-31 Thread Graham Cummins

Graham Cummins  added the comment:

As far as I can tell, this is a version of the scope-dependent un-pickling 
issue mentioned in the documentation. I'm still rather confused, since in the 
original occurrence of the issue happens despite the fact that subprocesses 
should be able to import all relevant modules (unless they have a very odd 
environment), and the original class is pickleable. Still, until I can clearly 
distinguish my difficulty from the know issues presented in the programming 
guidelines, I see no reason to have it listed as a bug.

--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue12226] use secured channel for uploading packages to pypi

2011-05-31 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

Have you tried registering/uploading stuff through https ? if it's working as 
is I am +1 for this change in the next 2.7.x. 

For 2.6 don't know if it's worth a security patch. Martin, Barry, any opinion ?

--
nosy: +barry, loewis

___
Python tracker 

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



[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-31 Thread Charles-François Natali

Charles-François Natali  added the comment:

> The wakeup fd now contains the number of each signal, and so the behaviour has
> to change. I applied your patch and I added a test.

Interesting. I suspected this would have an impact on the test_signal
failure on the FreeBSD 6.4 buidbot:

"""
==
FAIL: test_signum (test.test_signal.WakeupSignalTests)
--
Traceback (most recent call last):
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_signal.py",
line 272, in test_signum
self.check_signum(signal.SIGUSR1, signal.SIGALRM)
  File 
"/usr/home/db3l/buildarea/3.x.bolen-freebsd/build/Lib/test/test_signal.py",
line 238, in check_signum
self.assertEqual(raised, signals)
AssertionError: Tuples differ: (14, 30) != (30, 14)

First differing element 0:
14
30

- (14, 30)
+ (30, 14)
"""

This means that the signals are not delivered in order.
Normally, pending signals are checked upon return to user-space, so
trip_signal should be called when the kill syscall returns, so signal
numbers should be written in order to the wakeup FD (and here it looks
like the lowest-numbered signal is delivered first).
You could try adding a short sleep before the second kill (or just
pass unordered=True to check_signum, but in that case we don't check
the correct ordering).

--

___
Python tracker 

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



[issue12219] tkinter.filedialog.askopenfilename XT dialog on Windows 7

2011-05-31 Thread Herm Fischer

Herm Fischer  added the comment:

I've now tried this issue on python.org's own 3.2 and 3.2.1rc1 (64 bit) builds, 
and they also do have the same problem.

--

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread R. David Murray

R. David Murray  added the comment:

I should have mentioned the bug number in the body, thanks for adding that.  
FYI, the bug number also appears in the 'superseder' field, and (more 
interesting to you in this context) if you just say, for example, 
issue 12152 or #12152 roundup will automatically turn it into a link.

--

___
Python tracker 

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



[issue12142] Reference cycle when importing ctypes

2011-05-31 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Thank you for the test and explanation. There currently is no specific cytpes 
maintainer. But from what you have said, I might feel comfortable enough 
applying this, if no one else does, when I have the necessary setup on a new 
machine.

--

___
Python tracker 

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



[issue12226] use secured channel for uploading packages to pypi

2011-05-31 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis :


--
nosy: +Arfrever
versions: +Python 3.2, Python 3.3

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread Ralf Schmitt

Ralf Schmitt  added the comment:

duplicate of http://bugs.python.org/issue12152

--

___
Python tracker 

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



[issue9969] tokenize: add support for tokenizing 'str' objects

2011-05-31 Thread Thomas Kluyver

Changes by Thomas Kluyver :


--
nosy: +takluyver

___
Python tracker 

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



[issue12228] Stat doc - fix swap of UF_OPAQUE and UF_NOUNLINK description

2011-05-31 Thread Sandro Tosi

New submission from Sandro Tosi :

Following http://mail.python.org/pipermail/docs/2011-May/004429.html, here's a 
patch that fix the swap of those 2 flags description; it applies cleanly 
(except for some offset) on 2.7, 3.1, 3.2 and default.

--
assignee: docs@python
components: Documentation
files: doc_stat_uf_opaque_nounlink-py27.patch
keywords: patch
messages: 137377
nosy: docs@python, sandro.tosi
priority: low
severity: normal
stage: patch review
status: open
title: Stat doc - fix swap of UF_OPAQUE and UF_NOUNLINK description
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: 
http://bugs.python.org/file22212/doc_stat_uf_opaque_nounlink-py27.patch

___
Python tracker 

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



[issue6560] socket sendmsg(), recvmsg() methods

2011-05-31 Thread Charles-François Natali

Charles-François Natali  added the comment:

> What needs to happen to get recvmsg() supported in Python?

Well, I guess that the only reason is that no committer is motivated
enough to bring this into Python: it's a rather large patch, and
honestly, I'm not sure that many people are going to use it.
The feature I personally like the most about sendmsg/recvmsg is the
ability to do scatter-gather I/O, but if the performance is critical,
then I won't be using Python.
I know that sendmsg also has some other advantages (passing FDs,
ancillary data...).

> recvmsg() is required to get get transparent UDP proxies working under Linux
> using tproxy, the code needs to run recvmsg() to be able to find out what the
> original destination address was for the the packet.

Sounds like a job for raw sockets, no? (well, you need CAP_NET_RAW)

In short, I think that you just need to find a core developer
interested, I personally am not (but I'm not opposed to it either :-).

--

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread R. David Murray

R. David Murray  added the comment:

I'm closing this as invalid/duplicate, but I'm sure this isn't the last time 
we'll get this report.  It would be nice if we could think of a way to improve 
the situation.

--
nosy: +benjamin.peterson, r.david.murray
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed
superseder:  -> Parser/asdl_c.py relies on mercurial repository revision

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread Santoso Wijaya

Santoso Wijaya  added the comment:

FYI, the dependency is introduced in changeset 
http://hg.python.org/cpython/rev/0daa6ba25d9b

--
components: +Build
nosy: +santa4nt

___
Python tracker 

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



[issue12227] multiprocessing.Pool initialization seems to call methods it should not (and on badly formed objects)

2011-05-31 Thread Graham Cummins

New submission from Graham Cummins :

When attempting to pass instances of a custom class in the argument list
of a multiprocessing.Pool.map call, I encounter an inexplicable AttributeError. 
A simplified test script that creates the bug is included. It fails for both 
Python 2.7.1 and 3.2 on my 4-core 64 bit linux machine.

Briefly, the code creates a subclass of "dict" that checks for a "_ro" 
attribute before handling a "__setitem__". Empty instances of this class
can be passed to Pool.map fine, but if they have any content, I get
that multiprocessing/queues.py, line 378 ("recv()"), calls my custom 
__setitem__, which fails, due to a missing _ro attribute. 

This is very confusing. For one thing, much of the Traceback seems
missing. recv() is not directly a call to my customized __setitem__, 
and I can't thing why it should ever need to invoke such a call  

For another, the custom class _does_ set the _ro attribute, on __init__. 
Testing for this attribute, or calling __setitem__, succeeds in every other 
context I've tested, so it seems that the instance that is 
being used in the multiprocessing context is not the same underlying object 
that I pass in.

--
components: Library (Lib)
files: bug.py
messages: 137373
nosy: Graham.Cummins
priority: normal
severity: normal
status: open
title: multiprocessing.Pool initialization seems to call methods it should not 
(and on badly formed objects)
versions: Python 2.7
Added file: http://bugs.python.org/file22211/bug.py

___
Python tracker 

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



[issue12196] add pipe2() to the os module

2011-05-31 Thread Charles-François Natali

Charles-François Natali  added the comment:

> I like your patch, it removes many duplicate code :-)
>
> Some comments:

Patch attached.

> Doc/whatsnew/3.3.rst

Patch attached.

--
Added file: http://bugs.python.org/file22209/pipe2_whatsnew.diff
Added file: http://bugs.python.org/file22210/support_linux_version.diff

___
Python tracker 

___diff -r 6fb2e5fb9082 Doc/whatsnew/3.3.rst
--- a/Doc/whatsnew/3.3.rst  Tue May 31 12:15:42 2011 +0200
+++ b/Doc/whatsnew/3.3.rst  Tue May 31 19:27:08 2011 +0200
@@ -106,6 +106,11 @@
 os
 --
 
+* The :mod:`os` module has a new :func:`~os.pipe2` function that makes it
+  possible to create a pipe with :data:`~os.O_CLOEXEC` or :data:`os.O_NONBLOCK`
+  flags set atomically. This is especially useful to avoid race conditions in
+  multi-threaded programs.
+
 * The :mod:`os` module has a new :func:`~os.sendfile` function which provides
   an efficent "zero-copy" way for copying data from one file (or socket)
   descriptor to another. The phrase "zero-copy" refers to the fact that all of
diff -r 6fb2e5fb9082 Lib/test/support.py
--- a/Lib/test/support.py   Tue May 31 12:15:42 2011 +0200
+++ b/Lib/test/support.py   Tue May 31 19:20:57 2011 +0200
@@ -291,13 +291,24 @@
 msg = "Use of the `%s' resource not enabled" % resource
 raise ResourceDenied(msg)
 
-def linux_version():
+def requires_linux_version(*min_version):
+"""Raise SkipTest if the OS is Linux and the kernel version if less than
+min_version.
+
+For example, support.requires_linux_version(2, 6, 28) raises SkipTest if 
the
+version is less than 2.6.28.
+"""
+if not sys.platform.startswith('linux'):
+return
 try:
 # platform.release() is something like '2.6.33.7-desktop-2mnb'
-version_string = platform.release().split('-')[0]
-return tuple(map(int, version_string.split('.')))
+version_string = platform.release().split('-', 1)[0]
+version = tuple(map(int, version_string.split('.')))
 except ValueError:
-return 0, 0, 0
+return
+if version < min_version:
+raise unittest.SkipTest("Linux kernel %s or higher required" %
+".".join(map(str, min_version)))
 
 HOST = 'localhost'
 
diff -r 6fb2e5fb9082 Lib/test/test_posix.py
--- a/Lib/test/test_posix.pyTue May 31 12:15:42 2011 +0200
+++ b/Lib/test/test_posix.pyTue May 31 19:20:57 2011 +0200
@@ -310,10 +310,7 @@
 
 @unittest.skipUnless(hasattr(os, 'O_CLOEXEC'), "needs os.O_CLOEXEC")
 def test_oscloexec(self):
-version = support.linux_version()
-if sys.platform == 'linux2' and version < (2, 6, 23):
-self.skipTest("Linux kernel 2.6.23 or higher required, "
-  "not %s.%s.%s" % version)
+support.requires_linux_version(2, 6, 23)
 fd = os.open(support.TESTFN, os.O_RDONLY|os.O_CLOEXEC)
 self.addCleanup(os.close, fd)
 self.assertTrue(fcntl.fcntl(fd, fcntl.F_GETFD) & fcntl.FD_CLOEXEC)
@@ -480,10 +477,7 @@
 
 @unittest.skipUnless(hasattr(os, 'pipe2'), "test needs os.pipe2()")
 def test_pipe2(self):
-version = support.linux_version()
-if sys.platform == 'linux2' and version < (2, 6, 27):
-self.skipTest("Linux kernel 2.6.27 or higher required, "
-  "not %s.%s.%s" % version)
+support.requires_linux_version(2, 6, 27)
 self.assertRaises(TypeError, os.pipe2, 'DEADBEEF')
 self.assertRaises(TypeError, os.pipe2, 0, 0)
 
diff -r 6fb2e5fb9082 Lib/test/test_socket.py
--- a/Lib/test/test_socket.py   Tue May 31 12:15:42 2011 +0200
+++ b/Lib/test/test_socket.py   Tue May 31 19:20:57 2011 +0200
@@ -1024,10 +1024,7 @@
 
 if hasattr(socket, "SOCK_NONBLOCK"):
 def testInitNonBlocking(self):
-v = support.linux_version()
-if v < (2, 6, 28):
-self.skipTest("Linux kernel 2.6.28 or higher required, not %s"
-  % ".".join(map(str, v)))
+support.requires_linux_version(2, 6, 28)
 # reinit server socket
 self.serv.close()
 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM |
@@ -2002,10 +1999,7 @@
 @unittest.skipUnless(fcntl, "module fcntl not available")
 class CloexecConstantTest(unittest.TestCase):
 def test_SOCK_CLOEXEC(self):
-v = support.linux_version()
-if v < (2, 6, 28):
-self.skipTest("Linux kernel 2.6.28 or higher required, not %s"
-  % ".".join(map(str, v)))
+support.requires_linux_version(2, 6, 28)
 with socket.socket(socket.AF_INET,
socket.SOCK_STREAM | socket.SOCK_CLOEXEC) as s:
 self.assertTrue(s.type & socket.SOCK_CLOEXEC)
@@ -2024,10 +2018,7 @@
 self.assertEqual(s.gettimeout(), No

[issue12142] Reference cycle when importing ctypes

2011-05-31 Thread poq

poq  added the comment:

Tests succeed with this change.

There is only one use of _array_type, which is in the same module. This use is 
presumably tested, because the test fails if I change the line to _array_type = 
type(Structure).

In fact, everything must behave exactly the same after this change, because the 
two values are identical:

>>> from ctypes import *
>>> type(c_int * 3) is type(Array)
True

--

___
Python tracker 

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



[issue12021] mmap.read requires an argument

2011-05-31 Thread Charles-François Natali

Charles-François Natali  added the comment:

> I noticed that RawIOBase.read, TextIOBase.read, etc also accept None as the
> argument, treating it as -1. Should this be implemented, too?
>

That's because of the _PyIO_ConvertSsize_t converter, which silently
converts None to -1.
There's probably a good reason for doing this in the _io module, but I
don't see any reason to do the same thing in the mmap module (apart
from being consistent, of course).
Antoine?

If the patch is fine as-is, I'd like to commit it.

--

___
Python tracker 

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



[issue12226] use secured channel for uploading packages to pypi

2011-05-31 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy:  -brian.curtin

___
Python tracker 

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



[issue12226] use secured channel for uploading packages to pypi

2011-05-31 Thread anatoly techtonik

anatoly techtonik  added the comment:

The distutils version that exposes this vulnerability is shipped with Python, 
that's why it is here.

--

___
Python tracker 

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



[issue12226] use secured channel for uploading packages to pypi

2011-05-31 Thread Brian Curtin

Brian Curtin  added the comment:

Oops, nevermind that, thought this was suggesting a change to PyPI itself, not 
distutils.

--
nosy: +brian.curtin

___
Python tracker 

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



[issue12226] use secured channel for uploading packages to pypi

2011-05-31 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy:  -brian.curtin

___
Python tracker 

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



[issue12226] use secured channel for uploading packages to pypi

2011-05-31 Thread Brian Curtin

Brian Curtin  added the comment:

This should probably be discussed on catalog-SIG, not the CPython bug tracker.

--
nosy: +brian.curtin

___
Python tracker 

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



[issue12226] use secured channel for uploading packages to pypi

2011-05-31 Thread anatoly techtonik

New submission from anatoly techtonik :

Before the next version is released, I'd like to push this one line 
modification to reduce the risk of sniffing Python development password when 
people upload packages to PyPI by using https:// communication channel by 
default.

Distutils doesn't validate PyPI server certificate, so this change doesn't 
prevent from MITM attacks, but at least it makes package submissions over 
wireless channels and public networks safer.

Taking into account that people still release packages for Python 2.5+ 
(AppEngine), I'd like to see this fix backported to at least Python 2.6

--
assignee: tarek
components: Distutils, Distutils2
files: pypy.https.patch
keywords: patch
messages: 137366
nosy: alexis, eric.araujo, tarek, techtonik
priority: normal
severity: normal
status: open
title: use secured channel for uploading packages to pypi
type: security
versions: Python 2.6, Python 2.7, Python 3.1
Added file: http://bugs.python.org/file22208/pypy.https.patch

___
Python tracker 

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



[issue12223] Datamodel documentation page: 'operator' where 'operand' should be

2011-05-31 Thread Eli Bendersky

Changes by Eli Bendersky :


--
nosy: +eli.bendersky

___
Python tracker 

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



[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-05-31 Thread Jesús Cea Avión

Changes by Jesús Cea Avión :


--
nosy: +jcea

___
Python tracker 

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



[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT

2011-05-31 Thread Petri Lehtinen

Petri Lehtinen  added the comment:

The NullImporter is documented to raise ImportError on directories, not 
directories containing __init__.py:

http://docs.python.org/library/imp.html#imp.NullImporter

Checking for __init__.py{,c,o} seems doable to me without having stat().

--

___
Python tracker 

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



[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT

2011-05-31 Thread Josh Triplett

Josh Triplett  added the comment:

Rather than checking for a directory, how about just opening foo/__init__.py, 
and if that fails opening foo.py?

--

___
Python tracker 

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



[issue12225] current tip doesn't build without mercurial installed

2011-05-31 Thread Ralf Schmitt

New submission from Ralf Schmitt :

configure works, but make immediately fails:

% make  
./Parser/asdl_c.py -h ./Include ./Parser/Python.asdl
Traceback (most recent call last):
  File "./Parser/asdl_c.py", line 1214, in 
main(args[0])
  File "./Parser/asdl_c.py", line 1158, in main
mod.version = get_file_revision(srcfile)
  File "./Parser/asdl_c.py", line 1142, in get_file_revision
p = subprocess.Popen(args, stdout=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 672, in __init__
errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1202, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [Include/Python-ast.h] Error 1

--
messages: 137363
nosy: schmir
priority: normal
severity: normal
status: open
title: current tip doesn't build without mercurial installed
versions: Python 3.3

___
Python tracker 

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



[issue12221] segfaults with unexpanded $Revision$ id's in release candidate tarballs

2011-05-31 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue7978] SocketServer doesn't handle syscall interruption

2011-05-31 Thread STINNER Victor

STINNER Victor  added the comment:

I think that #12224 is a duplicate of this issue.

--

___
Python tracker 

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



[issue7978] SocketServer doesn't handle syscall interruption

2011-05-31 Thread STINNER Victor

STINNER Victor  added the comment:

Using signalfd() (require Linux 2.6.22+), specified signals are written in a 
file and don't interrupt system calls (select). Bonus: we can wait for a signal 
using select!

Using pthread_sigmask(), you can also block signals before calling select, but 
it's not atomic. Or you can use pselect() which is pthread_sigmask()+select() 
in an atomic fashion.

pthread_sigmask() is already in Python 3.3, I plan to add signalfd() in a few 
weeks into Python 3.3. For pselect(), I don't know if we need it.

pthread_sigmask() is available on most POSIX systems, not on Windows. Can 
select() be interrupted by CTRL+c on Windows?

I don't say that we should not restart manually select() on EINTR, just that 
better solutions do exist today.

--
nosy: +haypo

___
Python tracker 

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



[issue12224] problem with siginterrupt

2011-05-31 Thread STINNER Victor

STINNER Victor  added the comment:

Extract of manpage signal(7):

"The  following  interfaces  are never restarted after being interrupted by a 
signal handler, regardless of the use of SA_RESTART; they always fail with the 
error EINTR when interrupted by a signal handler:
 * ...
 * File descriptor multiplexing interfaces: epoll_wait(2), epoll_pwait(2), 
poll(2), ppoll(2), select(2), and pselect(2)."

Consider siginterrupt(signal, False) as a "best-effort" trick... which doesn't 
work with select().

If you don't want select() to be interrupted by SIGINT, use:

pthread_sigmask(SIG_BLOCK, [SIGINT]);
select(...)
pthread_sigmask(SIG_UNBLOCK, [SIGINT])

or

pselect(, [SIGINT])

pselect() is atomic, whereas pthread_sigmask+select is not.

I added recently pthread_sigmask() to the signal module in Python 3.3.

pselect() is not exposed in Python currently. We may add it if it's needed.

--

If you really don't care of SIGINT, you can also ignore it completly using 
signal(SIGINT, SIG_IGN).

--
nosy: +haypo

___
Python tracker 

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



[issue11271] concurrent.futures.ProcessPoolExecutor.map() slower than multiprocessing.Pool.map() for fast function argument

2011-05-31 Thread Tobias Brink

Tobias Brink  added the comment:

I can confirm an overhead of 2 ms to 3 ms using a relatively recent Intel Core 
i5 CPU.

I (personally) believe these 3 ms to be a pretty big overhead on modern 
computers and I also believe that it would be relatively simple to reduce it.

I don't have much time at the moment but I will try to produce a complete proof 
of concept patch for the futures module in the next weeks. I'd be happy to get 
some comments when it is finished.

--

___
Python tracker 

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



[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT

2011-05-31 Thread Petri Lehtinen

Petri Lehtinen  added the comment:

I tried to compile Python 3.3 (from default branch) with DONT_HAVE_FSTAT and 
DONT_HAVE_STAT. It seems to depend even more heavily on stat() being available, 
in other files than Python/import.c.

With 2.7, it was quite easy to disable the .pyc/.pyo writing in the absence of 
fstat(), but the NullImporter needs to be able to check for a directory. In 
addition, the build process fails when trying to run "setup.py build", because 
distutils cannot be imported. And it cannot be imported because it's a package, 
and packages (directories) cannot be detected without having stat().

So... Unless we have another way to check for a directory, I'm not sure whether 
it will be possible to compile Python at all without stat().

--

___
Python tracker 

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



[issue12224] problem with siginterrupt

2011-05-31 Thread Zhiping Deng

New submission from Zhiping Deng :

If socket timeout > 0, then there is no way to automatically
restart some socket calls like recv(). 
Calling siginterrupt(False) is useless, because python calls
internal_select() if socket has timeout, and select returns
error(EINTR) once interrupted by a signal, regardless of the
SA_RESTART flags.

So a user may have to wrap every socket calls in this case.

I found some related discussions in http://bugs.python.org/issue7978

--
components: Library (Lib)
files: siginterrupt_example.py
messages: 137357
nosy: Zhiping.Deng
priority: normal
severity: normal
status: open
title: problem with siginterrupt
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file22207/siginterrupt_example.py

___
Python tracker 

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



[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-05-31 Thread Petri Lehtinen

Petri Lehtinen  added the comment:

After discussing with Ezio Melotti, I attached another patch with a different 
wording.

Mark: As a native English speaker, which one you prefer?

--
Added file: http://bugs.python.org/file22206/str_translate_docstring_2.patch

___
Python tracker 

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



[issue12222] All pysetup commands should respect exit codes

2011-05-31 Thread Tarek Ziadé

Tarek Ziadé  added the comment:

fixed install in http://hg.python.org/cpython/rev/ebff46b232ed

--

___
Python tracker 

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



  1   2   >