[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-04-18 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

i don't see your attachment brett.

--
nosy: +gregory.p.smith

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



[issue8355] diff.py produce unified format by default

2010-04-18 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

Ok. I just wanted to make it compatible with my patch.py utility designed as a 
counterpart to diff.py to make Python contributing process self-sufficient on 
any platform. Its parser component doesn't support context diffs.

http://code.google.com/p/python-patch/

--

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



[issue8355] diff.py produce unified format by default

2010-04-18 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

But I still think sticking to -c behavior by default is too conservative for 
clear minds. =)

--

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



[issue8430] test_site failure with non-ASCII directory

2010-04-18 Thread STINNER Victor

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

Fixed by r80161 (py3k).

--
resolution:  - fixed
status: open - closed

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



[issue8422] tiger buildbot: test_abspath_issue3426 failure (test_genericpath.py)

2010-04-18 Thread STINNER Victor

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

See also #8423.

--

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



[issue8423] tiger buildbot: test_pep277 failures

2010-04-18 Thread STINNER Victor

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

See also #8422.

--

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Ray.Allen

New submission from Ray.Allen ysj@gmail.com:

According to PEP 383, the new surrogateescape error handler of codecs should 
begin to appear since Python3.1, but in the trunk I found some code have 
already used it:

Modules/_io/fileio.c:

static int
fileio_init(PyObject *oself, PyObject *args, PyObject *kwds){
...
stringobj = PyUnicode_AsEncodedString(
u, Py_FileSystemDefaultEncoding, surrogateescape);
...

Obviously, the surrogateescape error handler not exists. 

Some test code:
===
import io

file_name = u'\udc80.txt'
f = io.FileIO(file_name)
===

When run this piece of code on a machine whose file system default encoding is 
gb2312, will raise an exception:

LookupError: unknown error handler name 'surrogateescape'

I don't know weather this is a bug?

Thanks.

--
components: Unicode
messages: 103470
nosy: loewis, ysj.ray
severity: normal
status: open
title: Codecs: surrogateescape error handler in Python 2.7
type: behavior
versions: Python 2.7

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



[issue8422] tiger buildbot: test_abspath_issue3426 failure (test_genericpath.py)

2010-04-18 Thread STINNER Victor

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

Fixed by r80163: move the test to a new function and skip the function on Mac.

--
resolution:  - fixed
status: open - closed

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



[issue8430] test_site failure with non-ASCII directory

2010-04-18 Thread STINNER Victor

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

 Fixed by r80161 (py3k).

It works, the buildbot is now green.

http://www.python.org/dev/buildbot/all/builders/AMD64 Ubuntu wide 3.x

--

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



[issue8420] Objects/setobject.c contains unsafe code

2010-04-18 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Attaching a patch for set_lookkey() that does a DECREF only when the refcnt  1 
so that the DECREF won't trigger any state changes.

The merge crasher still needs a patch.

--
keywords: +patch
priority:  - normal
stage:  - needs patch
versions: +Python 2.6, Python 2.7, Python 3.2
Added file: http://bugs.python.org/file16969/lookkey.diff

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



[issue8401] Strange behavior of bytearray slice assignment

2010-04-18 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Python is not (e.g.) Haskell; Python strings are not lists whose contents 
happen to be characters.  Allowing an empty string here is a step backwards in 
the direction of why not allow any string whose contents have an unambiguous 
meaning as bytes, i.e. the default encoding ASCII in Python 2.x.  Passing a 
string where bytes are expected is a programming error, and it should be 
rewarded with an exception, no matter if the string happens to be empty or not.

--
nosy: +georg.brandl

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



[issue8439] test_linecache failing in py3k r80169

2010-04-18 Thread Tim Golden

New submission from Tim Golden m...@timgolden.me.uk:

test_linecache in the current py3k branch is failing on my WinXP machine with 
ERROR_SHARING_VIOLATION.
The attached trivial patch appears to fix the problem, altho' I'm unfamiliar
with the module in question so it may be that there's more to be done.

--
files: test_linecache.py.patch
keywords: patch
messages: 103475
nosy: tim.golden
severity: normal
status: open
title: test_linecache failing in py3k r80169
Added file: http://bugs.python.org/file16970/test_linecache.py.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8439
___Index: test_linecache.py
===
--- test_linecache.py   (revision 80169)
+++ test_linecache.py   (working copy)
@@ -114,6 +114,7 @@
 for index, line in enumerate(source):
 self.assertEquals(line, getline(source_name, index + 1))
 source_list.append(line)
+source.close ()
 
 finally:
 support.unlink(source_name)
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8431] buildbot: hung on ARM Debian

2010-04-18 Thread Stefan Krah

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

I ran the whole test suite on

http://people.debian.org/~aurel32/qemu/arm/debian_lenny_arm_small.qcow2

and there were no hanging processes. test_tokenize also takes around
10min on a fast machine (12s without -uall).

Probably the timeout has to be increased drastically or -uall should
be dropped.

--

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



[issue8431] buildbot: hung on ARM Debian

2010-04-18 Thread Antoine Pitrou

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

 Probably the timeout has to be increased drastically or -uall should
 be dropped.

We should probably increase the timeout on this particular set of
buildbots. -uall has no influence on the duration of e.g. test_io.

--

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



[issue8439] test_linecache failing in py3k r80169

2010-04-18 Thread Antoine Pitrou

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


--
components: +Tests
priority:  - normal
stage:  - patch review
type:  - behavior
versions: +Python 3.1, Python 3.2

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou

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

Certainly a bug indeed.

--
components: +IO -Unicode
nosy: +pitrou
priority:  - high

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

I think it would be best to backport the handler (even though it is not needed 
in Python 2.7), since it makes porting apps to 3.x easier.

--
nosy: +lemburg

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Martin v . Löwis

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

-1 on backporting. The handler isn't really meant to be used in applications, 
plus 2.7 is in feature-freeze.

--

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Martin v. Löwis wrote:
 
 Martin v. Löwis mar...@v.loewis.de added the comment:
 
 -1 on backporting. The handler isn't really meant to be used in applications, 
 plus 2.7 is in feature-freeze.

Since 2.7 is meant to be the last release of the 2.x series,
we have to make sure that it has all the bits necessary to make
porting apps to 3.x easy.

As a result, omissions such as the new handler which became
necessary after the change to the UTF-8 codec in 3.x deserve
special attention, overriding such self-imposed restrictions.

The handler is not meant to be used internally only. In fact,
it was the prerequisite for me to be +1 on the UTF-8 codec
change in 3.x.

--

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



[issue2090] __import__ with fromlist=

2010-04-18 Thread George Sakkis

George Sakkis george.sak...@gmail.com added the comment:

FWIW attached is a patch that allows only valid identifiers before calling 
import_submodule(), and returns silently otherwise (for backwards 
compatibility).

For the record, the reason that empty strings and some combinations of 
slashes/dots caused the double import was that they were concatenated to the 
path, and if the final path was a valid directory and contained an __init__.py 
it was imported. E.g. __import__('pkg.subpkg', fromlist=['/../.']) ends up 
looking in pkg/subpkg//../.. On the surface this seems like a potential 
directory traversal attack hole, although I couldn't get past 'pkg' by passing 
'../../../', so I guess there must be other checks before attempting the import.

--
keywords: +patch
Added file: http://bugs.python.org/file16971/issue_2090.patch

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Martin v . Löwis

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

 Since 2.7 is meant to be the last release of the 2.x series,
 we have to make sure that it has all the bits necessary to make
 porting apps to 3.x easy.

Any new features in 2.7 require approval from the release manager now.

--

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou

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

 Any new features in 2.7 require approval from the release manager now.

Not only, but they also need someone to provide a patch :)
Removing any surrogateescape use from the io module would be comparatively much 
easier.

--
nosy: +benjamin.peterson

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



[issue2090] __import__ with fromlist=

2010-04-18 Thread George Sakkis

George Sakkis george.sak...@gmail.com added the comment:

 On the surface this seems like a potential directory traversal attack
 hole, although I couldn't get past 'pkg' by passing '../../../', so I 
 guess there must be other checks before attempting the import.

I rushed to post; it turns out one *can* access packages in parent directories, 
so I think it's accurate to describe it as a directory traversal hole.

--

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



[issue8420] Objects/setobject.c contains unsafe code

2010-04-18 Thread Eugene Kapun

Eugene Kapun abacabadabac...@gmail.com added the comment:

This patch still assumes that if so-table didn't change then the table wasn't 
reallocated (see http://en.wikipedia.org/wiki/ABA_problem). One solution is to 
check that so-mask didn't change as well. Also, checking that refcnt  1 is 
redundant because if entry-key == startkey then there are at least two 
references: one from entry-key and another from startkey.

These functions have a bug that may cause them to refer to deallocated memory 
when both arguments are sets: set_intersection, set_isdisjoint, 
set_difference_update_internal, set_difference, 
set_symmetric_difference_update, set_issubset.
These functions may also do the same if the first argument is a set and the 
second argument is a dict: set_difference, set_symmetric_difference_update.

Bugs in set_repr:
 keys = PySequence_List((PyObject *)so);
 if (keys == NULL)
   goto done;
 
 listrepr = PyObject_Repr(keys);
 Py_DECREF(keys);
List pointed to by keys is already deallocated at this point.
 if (listrepr == NULL) {
   Py_DECREF(keys);
But this code tries to DECREF it.
   goto done;
 }
 newsize = PyUnicode_GET_SIZE(listrepr);
 result = PyUnicode_FromUnicode(NULL, newsize);
 if (result) {
   u = PyUnicode_AS_UNICODE(result);
   *u++ = '{';
   /* Omit the brackets from the listrepr */
   Py_UNICODE_COPY(u, PyUnicode_AS_UNICODE(listrepr)+1,
  PyUnicode_GET_SIZE(listrepr)-2);
   u += newsize-2;
   *u++ = '}';
 }
 Py_DECREF(listrepr);
 if (Py_TYPE(so) != PySet_Type) {
result may be NULL here.
   PyObject *tmp = PyUnicode_FromFormat(%s(%U),
Py_TYPE(so)-tp_name,
result);
I think PyUnicode_FromFormat won't like it.
   Py_DECREF(result);
   result = tmp;
 }

--

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



[issue8431] buildbot: hung on ARM Debian

2010-04-18 Thread Matthias Klose

Matthias Klose d...@debian.org added the comment:

the ARMv4 buildbot is a 500Mhz Xscale, with a SATA disk attached, 256MB RAM. It 
can't go faster :-/

the ARMv7 buildbot is a cortex-a8, 500Mhz, 512MB RAM. I found here five or six 
python processes still running, now killed. The machine may be unresponsive 
sometime, as one other (non python) build might run in parallel.

--

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



[issue8440] test_heapq interfering with test_import on py3k

2010-04-18 Thread Tim Golden

New submission from Tim Golden m...@timgolden.me.uk:

If test_heapq is run before test_import on the current py3k head,
test_import will fail as per the attached traceback.

python -m test.regrtest -W test_heapq test_import  test_import.log

At a glance I can't see any obvious reason why test_heapq should have
any effect on test_import. Raising this bug while I try to narrow down.

An extra assert inside support.make_legacy_pyc confirms that
the .pyc being renamed into does in fact already exist.

Running test_import on its own or via regrtest when not preceded
by test_heapq runs with error.

--
files: test_import.log
messages: 103488
nosy: tim.golden
severity: normal
status: open
title: test_heapq interfering with test_import on py3k
Added file: http://bugs.python.org/file16972/test_import.log

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8440
___test_heapq
test_import
compiled to __pycache__\longlist.cpython-32.pyc
test test_import failed -- Traceback (most recent call last):
  File 
C:\work-in-progress\make-snapshots\branches\py3k\python\lib\test\test_import.py,
 line 167, in test_module_with_large_stack
exec('import ' + module)
  File string, line 1, in module
  File 
C:\work-in-progress\make-snapshots\branches\py3k\python\lib\importlib\_bootstrap.py,
 line 151, in decorated
return fxn(self, module)
  File 
C:\work-in-progress\make-snapshots\branches\py3k\python\lib\importlib\_bootstrap.py,
 line 320, in load_module
code_object = self.get_code(module.__name__)
  File 
C:\work-in-progress\make-snapshots\branches\py3k\python\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'

Re-running test test_import in verbose mode
test_case_sensitivity (test.test_import.ImportTests) ... ok
test_double_const (test.test_import.ImportTests) ... ok
test_execute_bit_not_copied (test.test_import.ImportTests) ... skipped 'test 
meaningful only on posix systems'
test_failing_import_sticks (test.test_import.ImportTests) ... ok
test_failing_reload (test.test_import.ImportTests) ... ok
test_file_to_source (test.test_import.ImportTests) ... ok
test_imp_module (test.test_import.ImportTests) ... ok
test_import (test.test_import.ImportTests) ... ok
test_import_by_filename (test.test_import.ImportTests) ... ok
test_import_initless_directory_warning (test.test_import.ImportTests) ... ok
test_import_name_binding (test.test_import.ImportTests) ... ok
test_module_with_large_stack (test.test_import.ImportTests) ... compiled to 
__pycache__\longlist.cpython-32.pyc
ERROR
test___cached__ (test.test_import.PycacheTests) ... ok
test___cached___legacy_pyc (test.test_import.PycacheTests) ... ok
test_import_pyc_path (test.test_import.PycacheTests) ... ok
test_missing_source (test.test_import.PycacheTests) ... ok
test_missing_source_legacy (test.test_import.PycacheTests) ... ok
test_package___cached__ (test.test_import.PycacheTests) ... ok
test_package___cached___from_pyc (test.test_import.PycacheTests) ... ok
test_unwritable_directory (test.test_import.PycacheTests) ... skipped 'test 
meaningful only on posix systems'
test_basics (test.test_import.PycRewritingTests) ... ok
test_foreign_code (test.test_import.PycRewritingTests) ... ok
test_incorrect_code_name (test.test_import.PycRewritingTests) ... ok
test_module_without_source (test.test_import.PycRewritingTests) ... ok
test_UNC_path (test.test_import.PathsTests) ... ok
test_trailing_slash (test.test_import.PathsTests) ... ok
test_issue3221 (test.test_import.RelativeImportTests) ... ok
test_relimport_star (test.test_import.RelativeImportTests) ... ok
test_override_builtin (test.test_import.OverridingImportBuiltinTests) ... ok

==
ERROR: test_module_with_large_stack (test.test_import.ImportTests)
--
Traceback (most recent call last):
  File 
C:\work-in-progress\make-snapshots\branches\py3k\python\lib\test\test_import.py,
 line 161, in test_module_with_large_stack
make_legacy_pyc(filename)
  File 
C:\work-in-progress\make-snapshots\branches\py3k\python\lib\test\support.py, 
line 209, in make_legacy_pyc
os.rename(pyc_file, legacy_pyc)
WindowsError: [Error 183] Cannot create a file when that file already exists

--
Ran 29 tests in 1.672s

FAILED (errors=1, skipped=2)
test test_import failed -- Traceback (most recent call last):
  File 
C:\work-in-progress\make-snapshots\branches\py3k\python\lib\test\test_import.py,
 line 161, in test_module_with_large_stack
make_legacy_pyc(filename)
  File 
C:\work-in-progress\make-snapshots\branches\py3k\python\lib\test\support.py, 
line 209, in make_legacy_pyc
os.rename(pyc_file, legacy_pyc)
WindowsError: 

[issue8431] buildbot: hung on ARM Debian

2010-04-18 Thread Antoine Pitrou

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

 the ARMv4 buildbot is a 500Mhz Xscale, with a SATA disk attached, 256MB 
 RAM. It can't go faster :-/

Have you checked running the test suite manually (possibly with the -v option 
for more progress information), to check whether these were genuine freezes? 
Have you also checked that there was no swapping during the test suite?

In any case, we should probably increase the timeout on that buildbot. Perhaps 
Martin knows how to do that.

--
components: +Tests
nosy: +loewis
priority:  - normal

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



[issue8440] test_heapq interfering with test_import on py3k

2010-04-18 Thread Antoine Pitrou

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


--
components: +Tests
nosy: +barry, brett.cannon
priority:  - normal
stage:  - needs patch
type:  - behavior
versions: +Python 3.2

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



[issue3817] ftplib: ABOR does not consider 225 response code

2010-04-18 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

Fixed as r80172 (python 2.7) and r80176 (python 3.2).

--
assignee:  - giampaolo.rodola
priority:  - normal
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
type:  - behavior
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2

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



[issue8441] Framework build broken in 3.2 brunk

2010-04-18 Thread Ronald Oussoren

New submission from Ronald Oussoren ronaldousso...@mac.com:

I cannot build a framework build of the 3.2 branch at the moment due to 
unresolved references to _Py_char2wchar when linking the dylib that gets 
placed into the framework:

Undefined symbols:
  __Py_char2wchar, referenced from:
  _Py_Main in libpython3.2.a(main.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Undefined symbols:
  __Py_char2wchar, referenced from:
  _Py_Main in libpython3.2.a(main.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status


This is because that symbol is defined in Modules/python.c which doesn't get 
linked into the shared library.

--
assignee: ronaldoussoren
components: Macintosh
messages: 103491
nosy: ronaldoussoren
priority: release blocker
severity: normal
status: open
title: Framework build broken in 3.2 brunk
versions: Python 3.2

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



[issue8441] Framework build broken in 3.2 brunk

2010-04-18 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


--
components: +Build

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



[issue1726451] ftplib and ProFTPD NLST 226 without 1xx response

2010-04-18 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


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

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



[issue1037516] ftplib PASV error bug

2010-04-18 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

Closing this out as invalid as an exception being raised after an invalid PASV 
response makes perfect sense.

--
resolution:  - rejected
stage:  - committed/rejected
status: open - closed
type:  - behavior

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



[issue8441] Framework build broken in 3.2 brunk

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Fixed in r80181 (3.2)

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
type:  - compile error

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



[issue7072] isspace(0xa0) is true on Mac OS X

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Fixed in r80178 (trunk), r80180 (2.6), r80182 (3.2), r80183 (3.1)

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

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



[issue8442] Broken zipfile with python 3.2 on osx

2010-04-18 Thread Ronald Oussoren

New submission from Ronald Oussoren ronaldousso...@mac.com:

In the output of test_distutils with python 3.2 (current version checkout):
==
ERROR: test_prune_file_list (distutils.tests.test_sdist.SDistTestCase)
--
Traceback (most recent call last):
  File 
/Users/ronald/Projects/python/python-3.x/Lib/distutils/tests/test_sdist.py, 
line 131, in test_prune_file_list
zip_file = zipfile.ZipFile(join(dist_folder, 'fake-1.0.zip'))
  File /Users/ronald/Projects/python/python-3.x/Lib/zipfile.py, line 684, in 
__init__
self._GetContents()
  File /Users/ronald/Projects/python/python-3.x/Lib/zipfile.py, line 710, in 
_GetContents
self._RealGetContents()
  File /Users/ronald/Projects/python/python-3.x/Lib/zipfile.py, line 758, in 
_RealGetContents
filename = filename.decode('cp437')
LookupError: unknown encoding: cp437

--
components: Library (Lib)
messages: 103495
nosy: ronaldoussoren
priority: release blocker
severity: normal
stage: needs patch
status: open
title: Broken zipfile with  python 3.2 on osx
type: behavior
versions: Python 3.2

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



[issue8443] Broken zipfile with python 3.2 on osx

2010-04-18 Thread Martin v . Löwis

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

Duplicate of #8442

--
nosy: +loewis
resolution:  - duplicate
status: open - closed
superseder:  - Broken zipfile with  python 3.2 on osx

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



[issue5651] OS X Installer: add checks to ensure proper Tk configuration during build

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

I've committed the patch in r80179 (trunk), r80184 (2.6), r80185 (3.2), r80186 
(3.1)

--
resolution:  - fixed
status: open - closed

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



[issue8299] Improve GIL in 2.7

2010-04-18 Thread Martin v . Löwis

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

 Martin, I don't know if you were suggesting that a fair mutex would
 make the emulated semaphore fair too.  You probably weren't, but just
 in case, the fairness of the mutex is immaterial because it is only
 held for a short time to guard the internal state of the semaphore.
 You won't see threads queing up on it, but they will queue on the
 Contition variable.

Exactly so. I still don't see why you then infer that the GIL is unfair.
It is not IF THE CONDITION VARIABLE IS FAIR. As I said, some
implementations of condition variables *are* fair, e.g. the Linux one
(which in itself isn't really relevant here, because Linux uses the
semaphore GIL, anyway). However, it remains unclear why you think that
the GIL is not fair in pthreads.

--

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



[issue8366] OS X universal builds fail on 2.7b1 and py3k with Don't know machine value for archs

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

This problem is caused by this bit in Makefile.pre.in:

OPT=@OPT@
BASECFLAGS= @BASECFLAGS@
CFLAGS= $(BASECFLAGS) @CFLAGS@ $(OPT) $(EXTRA_CFLAGS)


There both 'BASECFLAGS' and 'CFLAGS' get patched in from configure.in, while 
the intention of the configure script always was that only BASECFLAGS gets set 
from configure CFLAGS. 


BTW. I always test with a build directory separate from the source directory, 
that makes it a lot easier to ensure that you have a clean environment:

$ mkdir build
$ cd build
$ ../configure 


I'm currently testing a fix that only sets CFLAGS and CPPFLAGS and will apply 
that if this results in a valid build.


Adding 2.6 and 3.1 to the list of versions because those also have the same 
change to Makefile.pre.in

--
versions: +Python 2.6, Python 3.1

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



[issue8435] It is possible to observe a mutating frozenset

2010-04-18 Thread Gath-Gealaich

Gath-Gealaich gathgeala...@gmail.com added the comment:

I have found this in Python 3.1.2 documentation:

Note, the elem argument to the __contains__(), remove(), and discard() methods 
may be a set. To support searching for an equivalent frozenset, the elem set is 
temporarily mutated during the search and then restored. During the search, the 
elem set should not be read or mutated since it does not have a meaningful 
value.

I seems to me that this is precisely what happens in this code. Now we might 
argue whether this is an acceptable state of affairs, but at least it's a 
documented behavior (and people shouldn't write equality predicates like this 
anyway. ;)).

--
nosy: +ggeal

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



[issue8391] os.execvpe() doesn't support surrogates in env

2010-04-18 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue7384] curses crash on FreeBSD

2010-04-18 Thread Jeroen Ruigrok van der Werven

Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment:

Just to state the obvious: ncursesw is needed for wide character support (i.e. 
Unicode).

Also, have you tried asking Thomas Dickey (dic...@invisible-island.net) about 
this? He might be able to give some clue about it since he's the main curses 
maintainer.

--

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



[issue8366] OS X universal builds fail on 2.7b1 and py3k with Don't know machine value for archs

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Btw. this issue is caused by the fix for issue 1628484.

--

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



[issue8420] Objects/setobject.c contains unsafe code

2010-04-18 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

 One solution is to check that so-mask didn't 
 change as well. 

I saw that and agree it would make a tighter check, but haven't convinced 
myself that it is necessary.

 Also, checking that refcnt  1 is redundant 
 because if entry-key == startkey then there 
 are at least two references: one from entry-key 
 and another from startkey.

It is a meaningful check.  We have our own INCREF
and one for the key being in the table.  If the
count is 1, then it means that the comparison
check deleted the key from the table or replaced
its value (see issue 1517).

--

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Benjamin Peterson

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

The 2.x io lib should use the same encoding principles as the rest of 2.x.

--

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



[issue6507] Enhance dis.dis to autocompile codestrings

2010-04-18 Thread Daniel Urban

Daniel Urban urban.dani...@gmail.com added the comment:

Any chance, that my patch will be accepted? Is there a problem with it?

Thanks.

--

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



[issue6507] Enhance dis.dis to autocompile codestrings

2010-04-18 Thread Raymond Hettinger

Changes by Raymond Hettinger rhettin...@users.sourceforge.net:


--
assignee:  - benjamin.peterson
nosy: +benjamin.peterson
stage: needs patch - commit review
versions: +Python 2.7

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou

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

Here is a fix + test.

--
keywords: +patch
stage:  - patch review
Added file: http://bugs.python.org/file16974/surrogateescape.patch

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou

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


Removed file: http://bugs.python.org/file16974/surrogateescape.patch

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou

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


Added file: http://bugs.python.org/file16975/surrogateescape.patch

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread STINNER Victor

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

 I think it would be best to backport the handler (even though 
 it is not needed in Python 2.7), since it makes porting apps 
 to 3.x easier.

surrogateescape should not be used directly be applications. It's used by 
Python3 internals using unicode by default.

I don't know if it's would help porting applications from Python2 to Python3. I 
don't know a use case of surrogateescape in Python2. By default, Python2 uses 
byte string everywhere, especially for filenames, and so it doesn't need any 
unicode error handler.

Another point to consider is that utf8 encoder rejects surrogates in Python3, 
whereas surrogates are accepted by the Python2 utf8 encoder.

I don't have a strong opinion. But if I have to choose, I would say that 
surrogateescape should not go to Python2. It's a solution to problem specific 
to Python3.

(... and surrogates introduces a lot of new issues ...)

--
nosy: +haypo

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



[issue8420] Objects/setobject.c contains unsafe code

2010-04-18 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Bugs in set_repr:
 keys = PySequence_List((PyObject *)so);
 if (keys == NULL)
  goto done;
 
 listrepr = PyObject_Repr(keys);
 Py_DECREF(keys);
List pointed to by keys is already deallocated at this point.
 if (listrepr == NULL) {
  Py_DECREF(keys);
But this code tries to DECREF it.
  goto done;
 }

I don't follow why you think keys is already deallocated.
When assigned by PySequence_List() without a NULL return, the refcnt is one. 
The call to PyObject_Repr(keys) does not change the refcnt of keys,
so the Py_DECREF(keys) is correct.

--

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



[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-04-18 Thread Brett Cannon

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

Let's try this again...

--
Added file: http://bugs.python.org/file16976/subprocess__del__.diff

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



[issue2090] __import__ with fromlist=

2010-04-18 Thread Brett Cannon

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

Thanks for the patch, George. I will get it when I can.

And this make me even more glad that we removed the file path import from 3.x.

--

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou

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

New patch fixing Windows compatibility.

--
Added file: http://bugs.python.org/file16977/surrogateescape.patch

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



[issue8438] Codecs: surrogateescape error handler in Python 2.7

2010-04-18 Thread Antoine Pitrou

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


Removed file: http://bugs.python.org/file16975/surrogateescape.patch

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



[issue8426] multiprocessing.Queue fails to get() very large objects

2010-04-18 Thread Antoine Pitrou

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


--
assignee:  - jnoller
nosy: +jnoller
priority:  - normal
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5

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



[issue6095] os.curdir as the default argument for os.listdir

2010-04-18 Thread Virgil Dupras

Virgil Dupras hs...@hardcoded.net added the comment:

Since I last submitted this patch, my leet C skills have improved.

I'm submitting another patch, without the needless PyUnicode creation this 
time. (Moreover, I think the previous patch was wrong to insert code before 
variable declaration of the block)

--
Added file: http://bugs.python.org/file16978/t6095_2.diff

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



[issue8366] OS X universal builds fail on 2.7b1 and py3k with Don't know machine value for archs

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

This should now be fixed:

* r80187 (trunk)
* r80188 (2.6)
* r80191 (3.2)
* r80192 (3.1)

The fix is not ideal, there's still two '-isysroot' flags in the compiler 
command-line, but at least everything compiles and works again.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - pending
type:  - behavior

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



[issue8366] OS X universal builds fail on 2.7b1 and py3k with Don't know machine value for archs

2010-04-18 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


--
status: pending - closed

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



[issue8420] Objects/setobject.c contains unsafe code

2010-04-18 Thread Eugene Kapun

Eugene Kapun abacabadabac...@gmail.com added the comment:

  One solution is to check that so-mask didn't 
  change as well. 
 
 I saw that and agree it would make a tighter check, but haven't convinced 
 myself that it is necessary.

Without this check, it is possible that the comparison shrinks the table, so 
entry becomes out of bounds. However, if both so-table and so-mask didn't 
change then entry is still a pointer to one of table elements so it can be used 
safely.

  Also, checking that refcnt  1 is redundant 
  because if entry-key == startkey then there 
  are at least two references: one from entry-key 
  and another from startkey.
 
 It is a meaningful check.  We have our own INCREF
 and one for the key being in the table.  If the
 count is 1, then it means that the comparison
 check deleted the key from the table or replaced
 its value (see issue 1517).

If the comparison deleted or changed the key then the check entry-key == 
startkey would fail so refcnt check won't be reached. Checking refcounts is 
also bad because someone else may have references to the key.

 I don't follow why you think keys is already deallocated.
 When assigned by PySequence_List() without a NULL return, the refcnt is one. 
 The call to PyObject_Repr(keys) does not change the refcnt of keys,
 so the Py_DECREF(keys) is correct.
Look at the code again. If listrepr happens to be NULL, you do Py_DECREF(keys) 
twice (this bug is only present in py3k branch).

--

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



[issue8175] 2.6.5 OS X 10.5 --with-universal-archs=all (4-way) fails building pythonw-64

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Applied as r80193, thanks for looking into this.

--
resolution:  - accepted
stage:  - committed/rejected
status: open - closed
type:  - compile error

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



[issue7958] test_platform failure on OS X 10.6

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

I'm closing this issue because a patch simular to the attached patch was 
applied in r78835 and the issue therefore fixed.

--
resolution:  - out of date
stage:  - committed/rejected
status: open - closed

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



[issue8439] test_linecache failing in py3k r80169

2010-04-18 Thread Antoine Pitrou

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

Should be fixed in r80194 / r80195.

--
nosy: +pitrou
resolution:  - fixed
stage: patch review - committed/rejected
status: open - pending

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



[issue8439] test_linecache failing in py3k r80169

2010-04-18 Thread Antoine Pitrou

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


--
assignee:  - pitrou
status: pending - open

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



[issue8439] test_linecache failing in py3k r80169

2010-04-18 Thread Antoine Pitrou

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


--
status: open - pending

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



[issue8126] Python 3.1.2rc1 doesn't compile using the 10.4 sdk on a 10.6 Mac

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

This issue should be fixed in the repository for both python 3.1 and 3.2, could 
you please test this?

--

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



[issue8095] test_urllib2 crashes on OS X 10.3 attempting to retrieve network proxy configuration

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Ned: I've attached a new patch, could you please test this one on an 10.3 box?

It turns out that testing if a weaklinked variable is defined should be done by 
testing the address of the variable, not its value.

I've tested this new approach with a symbol that is defined on 10.6 but not 
10.5, but cannot test on 10.3.

--
Added file: http://bugs.python.org/file16979/issue8095.txt

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



[issue8001] os.stat on osx 10.5 or later doesn't expose all fields in struct stat

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Fixing this requires duplicating a significant amount of code in posixmodule.c 
and is imho not worth the effort.

--
resolution:  - wont fix
status: open - closed

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



[issue8002] on OSX the file creation date not available in os.stat

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

I'm closing this issue as won't fix.

The additional fields are available if you build from source and target 10.5 or 
later (set 'MACOSX_DEPLOYMENT_TARGET=10.5' when you run configure).

My current plan is to have two installers for python 2.7 and 3.2: one is a 
32-bit only version that runs on OSX 10.3 or later and one will be be a new 
version that supports 64-bit x86 code as well and requires OSX 10.5. This new 
installer won't suffer from this issue.

--
resolution:  - wont fix
status: open - closed

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



[issue8420] Objects/setobject.c contains unsafe code

2010-04-18 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Fixed set_repr() issue in r80197 and r80196.  Looks like someone futzed the 
unicode updates for 3.x.

--

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



[issue8299] Improve GIL in 2.7

2010-04-18 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Martin, I´ve explained it in my other dissue, issue 8411, with a step by step 
example.
It is unfair because a thread can _bypass_ the condition variable.  A thread 
just woken up from the condition variable has to race to get the lock, and it 
is a race that it will invariably loose if the other thread is doing a 
release/acquire (yielding the GIL as happens in ceval.py)  The 
ConditionVariable can only endow the lock with its fairness property if all the 
threads play by the same rules.

This was a design decision made by Tim (according to the comment) but a 
misguided one.  It is a good stragegy for resources that are held for a short 
time to avoid lock convoying, but not appropriate in this case.

You also don't have to take my word for it.  Just try it out.  Notice that 99% 
of all yields between threads fail, causing starvation of a thread which is the 
definition of unfairness.

Anyway, this is the last time I explain why the emulated semaphore is unfair. 
 I think I´ve done so on at least four or five different occasions and it would 
be helpful if people would actually bother to read my comments.

--

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



[issue8444] openssl version detection doesn't work properly when using OSX SDK

2010-04-18 Thread Ronald Oussoren

New submission from Ronald Oussoren ronaldousso...@mac.com:

setup.py detects the version of openssl by looking for openssl headers on a 
deduced search path. That path is not guaranteed to be equal to the real 
compiler search path, in particular not when building using the OSX 10.4 SDK on 
MacOSX 10.6: in that situation the compiler will use a header file with the 
following definition:

#define OPENSSL_VERSION_NUMBER  0x009070cfL

While setup.py reads the header file in /usr/include which contains this 
definition:

#define OPENSSL_VERSION_NUMBER  0x009080cfL

The actual version is below the sha256 cutoff in setup.py, while setup.py 
detects a newer version that is above that cutoff. That results in a tree where 
setup.py tries to build _sha256 using OpenSSL, but fails. That in turn results 
in a build of hashlib that doesn't work.


Note that this is a specific instance of Issue7724, but fixing this particular 
issue is probably easier than fixing the generic issue.

--
assignee: tarek
components: Build, Distutils
messages: 103526
nosy: ronaldoussoren, tarek
priority: critical
severity: normal
stage: needs patch
status: open
title: openssl version detection doesn't work properly when using OSX SDK
type: compile error
versions: Python 2.7, Python 3.2

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



[issue7154] urllib.request system proxy configuration lookup broken for OS X in Python 3

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

I've committed a port of _scproxies and the related code in urllib in r80198 
(3.2), r80199 (3.1)

BTW. With some luck this should already include a fix for the crash your seeing 
on OSX 10.3 with the trunk and 2.6.

--
resolution:  - fixed
status: open - closed

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



[issue7154] urllib.request system proxy configuration lookup broken for OS X in Python 3

2010-04-18 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


--
stage:  - committed/rejected
type:  - behavior

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



[issue7580] distutils makefile from python.org installer doesn't work on OS X Snow Leopard

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

I've fixed this issue in the repository earlier today, the installer for the 
next 3.1 release will include that fix.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
type:  - behavior

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



[issue8444] openssl version detection doesn't work properly when using OSX SDK

2010-04-18 Thread Antoine Pitrou

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

On recent trunk and py3k you can get the real version number:
http://docs.python.org/dev/library/ssl.html#ssl.OPENSSL_VERSION

So perhaps you can first build the _ssl module, then import it to get that 
information.
Of course it would be much better to build against the proper headers.

--
nosy: +pitrou

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



[issue5652] OS X Installer: remove references to Mac/Tools which no longer exists

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Fix in r80201 (3.1) and r80200 (3.2). The fix is already in 2.6 and the trunk.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed
type:  - behavior

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



[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

Aaron: How did you install python?

--

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



[issue8410] Fix emulated lock to be 'fair'

2010-04-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

W.r.t. This appears to be the case on Mac OS X: OSX 10.4 and later seem to 
support posix semaphores, the program below prints yes:

#include unistd.h

int main()
{
#ifdef _POSIX_SEMAPHORES
printf(yes\n);
#else
printf(no\n);
#endif
}

--

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



[issue8299] Improve GIL in 2.7

2010-04-18 Thread Martin v . Löwis

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

 Martin, I´ve explained it in my other dissue, issue 8411, with a step by step 
 example.

Hmm. Can't find it there. What message or file should I be looking at?

--

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



[issue8445] buildbot: test_ttk_guionly failures

2010-04-18 Thread STINNER Victor

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

http://www.python.org/dev/buildbot/builders/x86 Tiger 
trunk/builds/15/steps/test/logs/stdio

test test_ttk_guionly failed -- multiple errors occurred; run in verbose mode 
for details
Re-running test 'test_ttk_guionly' in verbose mode
test_horizontal_range (test_ttk.test_extensions.LabeledScaleTest) ... ok
test_initialization (test_ttk.test_extensions.LabeledScaleTest) ... ok
test_resize (test_ttk.test_extensions.LabeledScaleTest) ... ok
test_variable_change (test_ttk.test_extensions.LabeledScaleTest) ... ok
test_widget_destroy (test_ttk.test_extensions.LabeledScaleTest) ... ok
test_initialization (test_ttk.test_extensions.OptionMenuTest) ... ok
test_menu (test_ttk.test_extensions.OptionMenuTest) ... ok
test_widget_destroy (test_ttk.test_extensions.OptionMenuTest) ... ok
test_configure (test_ttk.test_style.StyleTest) ... ok
test_layout (test_ttk.test_style.StyleTest) ... ok
test_lookup (test_ttk.test_style.StyleTest) ... ok
test_map (test_ttk.test_style.StyleTest) ... ok
test_theme_use (test_ttk.test_style.StyleTest) ... ok
test_identify (test_ttk.test_widgets.WidgetTest) ... FAIL
test_widget_state (test_ttk.test_widgets.WidgetTest) ... ok
test_invoke (test_ttk.test_widgets.ButtonTest) ... ok
test_invoke (test_ttk.test_widgets.CheckbuttonTest) ... ok
test_invoke (test_ttk.test_widgets.RadiobuttonTest) ... ok
test_postcommand (test_ttk.test_widgets.ComboboxTest) ... ok
test_values (test_ttk.test_widgets.ComboboxTest) ... ok
test_virtual_event (test_ttk.test_widgets.ComboboxTest) ... ok
test_bbox (test_ttk.test_widgets.EntryTest) ... ok
test_identify (test_ttk.test_widgets.EntryTest) ... ok
test_revalidation (test_ttk.test_widgets.EntryTest) ... ok
test_validation (test_ttk.test_widgets.EntryTest) ... ok
test_validation_options (test_ttk.test_widgets.EntryTest) ... ok
test_add (test_ttk.test_widgets.PanedwindowTest) ... ok
test_forget (test_ttk.test_widgets.PanedwindowTest) ... ok
test_insert (test_ttk.test_widgets.PanedwindowTest) ... ok
test_pane (test_ttk.test_widgets.PanedwindowTest) ... ok
test_sashpos (test_ttk.test_widgets.PanedwindowTest) ... ok
test_custom_event (test_ttk.test_widgets.ScaleTest) ... ok
test_get (test_ttk.test_widgets.ScaleTest) ... ok
test_set (test_ttk.test_widgets.ScaleTest) ... ok
test_add_and_hidden (test_ttk.test_widgets.NotebookTest) ... ok
test_forget (test_ttk.test_widgets.NotebookTest) ... ok
test_index (test_ttk.test_widgets.NotebookTest) ... ok
test_insert (test_ttk.test_widgets.NotebookTest) ... ok
test_select (test_ttk.test_widgets.NotebookTest) ... ok
test_tab (test_ttk.test_widgets.NotebookTest) ... ok
test_tab_identifiers (test_ttk.test_widgets.NotebookTest) ... ERROR
test_tabs (test_ttk.test_widgets.NotebookTest) ... ok
test_traversal (test_ttk.test_widgets.NotebookTest) ... FAIL
test_bbox (test_ttk.test_widgets.TreeviewTest) ... ok
test_children (test_ttk.test_widgets.TreeviewTest) ... ok
test_column (test_ttk.test_widgets.TreeviewTest) ... ok
test_delete (test_ttk.test_widgets.TreeviewTest) ... ok
test_detach_reattach (test_ttk.test_widgets.TreeviewTest) ... ok
test_exists (test_ttk.test_widgets.TreeviewTest) ... ok
test_focus (test_ttk.test_widgets.TreeviewTest) ... ok
test_heading (test_ttk.test_widgets.TreeviewTest) ... ok
test_heading_callback (test_ttk.test_widgets.TreeviewTest) ... FAIL
test_index (test_ttk.test_widgets.TreeviewTest) ... ok
test_insert_item (test_ttk.test_widgets.TreeviewTest) ... ok
test_set (test_ttk.test_widgets.TreeviewTest) ... ok
test_tag_bind (test_ttk.test_widgets.TreeviewTest) ... ok
test_tag_configure (test_ttk.test_widgets.TreeviewTest) ... ok

==
ERROR: test_tab_identifiers (test_ttk.test_widgets.NotebookTest)
--
Traceback (most recent call last):
  File 
/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/lib-tk/test/test_ttk/test_widgets.py,
 line 560, in test_tab_identifiers
self.assertEqual(self.nb.tab('@5,5'), self.nb.tab('current'))
  File /Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/lib-tk/ttk.py, line 
922, in tab
return _val_or_dict(kw, self.tk.call, self._w, tab, tab_id)
  File /Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/lib-tk/ttk.py, line 
318, in _val_or_dict
res = func(*(args + options))
TclError: tab '@5,5' not found

==
FAIL: test_identify (test_ttk.test_widgets.WidgetTest)
--
Traceback (most recent call last):
  File 
/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/lib-tk/test/test_ttk/test_widgets.py,
 line 27, in test_identify
self.assertEqual(self.widget.identify(5, 5), label)
AssertionError: 'Button.button' != 'label'

==
FAIL: test_traversal (test_ttk.test_widgets.NotebookTest)

[issue8435] It is possible to observe a mutating frozenset

2010-04-18 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Thanks ggeal.  Closing as won't fix.  The code is functioning as designed and 
documented.

--
resolution:  - wont fix
status: open - closed

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



[issue8410] Fix emulated lock to be 'fair'

2010-04-18 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Is it possible that unistd.h isn't included by Python on mac builds? perhaps 
the config script is broken and HAVE_UNISTD_H doesn't get defined.  I'll have a 
look at the generated pyconfig.h file on my colleague's machine tomorrow.

--

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



[issue6661] Transient test_multiprocessing failure (test_active_children)

2010-04-18 Thread STINNER Victor

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


--
title: Transient test_multiprocessing failure - Transient test_multiprocessing 
failure (test_active_children)

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



[issue5930] Transient error in multiprocessing (test_number_of_objects)

2010-04-18 Thread STINNER Victor

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


--
title: Transient error in multiprocessing - Transient error in multiprocessing 
(test_number_of_objects)

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



[issue8446] buildbot: DeprecationWarning not raised for icglue (test_py3kwarn.TestStdlibRemovals)

2010-04-18 Thread STINNER Victor

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

http://www.python.org/dev/buildbot/builders/x86 Tiger 
trunk/builds/15/steps/test/logs/stdio

test_py3kwarn
test test_py3kwarn failed -- Traceback (most recent call last):
  File 
/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/test/test_py3kwarn.py, line 
387, in test_platform_specific_removals
self.check_removal(module_name, optional=True)
  File 
/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/test/test_py3kwarn.py, line 
376, in check_removal
.format(module_name))
AssertionError: DeprecationWarning not raised for icglue

Re-running test 'test_py3kwarn' in verbose mode
test_backquote (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_buffer (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_builtin_function_or_method_comparisons 
(test.test_py3kwarn.TestPy3KWarnings) ... ok
test_cell_inequality_comparisons (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_code_inequality_comparisons (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_dict_inequality_comparisons (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_file_xreadlines (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_forbidden_names (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_frame_attributes (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_hash_inheritance (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_methods_members (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_object_inequality_comparisons (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_operator (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_paren_arg_names (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_slice_methods (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_softspace (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_sort_cmp_arg (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_sys_exc_clear (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_tuple_parameter_unpacking (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_type_inequality_comparisons (test.test_py3kwarn.TestPy3KWarnings) ... ok
test_mutablestring_removal (test.test_py3kwarn.TestStdlibRemovals) ... ok
test_optional_module_removals (test.test_py3kwarn.TestStdlibRemovals) ... ok
test_os_path_walk (test.test_py3kwarn.TestStdlibRemovals) ... ok
test_platform_independent_removals (test.test_py3kwarn.TestStdlibRemovals) ... 
ok
test_platform_specific_removals (test.test_py3kwarn.TestStdlibRemovals) ... FAIL
test_reduce_move (test.test_py3kwarn.TestStdlibRemovals) ... ok

==
FAIL: test_platform_specific_removals (test.test_py3kwarn.TestStdlibRemovals)
--
Traceback (most recent call last):
  File 
/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/test/test_py3kwarn.py, line 
387, in test_platform_specific_removals
self.check_removal(module_name, optional=True)
  File 
/Users/db3l/buildarea/trunk.bolen-tiger/build/Lib/test/test_py3kwarn.py, line 
376, in check_removal
.format(module_name))
AssertionError: DeprecationWarning not raised for icglue

--

--
keywords: buildbot
messages: 103537
nosy: haypo
severity: normal
status: open
title: buildbot: DeprecationWarning not raised for icglue 
(test_py3kwarn.TestStdlibRemovals)
versions: Python 3.2

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



[issue8445] buildbot: test_ttk_guionly failures

2010-04-18 Thread STINNER Victor

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

http://www.python.org/dev/buildbot/builders/x86 FreeBSD 
3.1/builds/149/steps/test/logs/stdio

==
FAIL: test_traversal (tkinter.test.test_ttk.test_widgets.NotebookTest)
--
Traceback (most recent call last):
  File 
/usr/home/db3l/buildarea/3.1.bolen-freebsd/build/Lib/tkinter/test/test_ttk/test_widgets.py,
 line 708, in test_traversal
self.assertEqual(self.nb.select(), str(self.child2))
AssertionError: '.219316556' != '.219317508'

--
Ran 57 tests in 13.798s

FAILED (failures=1)
test test_ttk_guionly failed -- Traceback (most recent call last):
  File 
/usr/home/db3l/buildarea/3.1.bolen-freebsd/build/Lib/tkinter/test/test_ttk/test_widgets.py,
 line 708, in test_traversal
self.assertEqual(self.nb.select(), str(self.child2))
AssertionError: '.219316556' != '.219317508'

--

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



[issue8445] buildbot: test_ttk_guionly failures

2010-04-18 Thread STINNER Victor

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


--
versions: +Python 3.1, Python 3.2

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



[issue3771] test_httpservers intermittent failure, test_post and EINTR

2010-04-18 Thread STINNER Victor

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


--
title: test_httpservers intermittent failure - test_httpservers intermittent 
failure, test_post and EINTR

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



[issue8191] Make arg0 required argument in os.execl* functions

2010-04-18 Thread Matthias Klose

Matthias Klose d...@debian.org added the comment:

attached is a search for execlp for all files found in Ubuntu lucid, there's 
one package which uses just one argument to execlp.

--
Added file: http://bugs.python.org/file16980/execlp.log

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



[issue8447] buildbot: test_httpservers failure (No module named operator)

2010-04-18 Thread STINNER Victor

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

http://www.python.org/dev/buildbot/builders/x86 Tiger 
3.1/builds/16/steps/test/logs/stdio

test_httpservers
[28139 refs]
[28139 refs]
[28139 refs]
Traceback (most recent call last):
  File /private/tmp/tmpqYIZuO/cgi-bin/file2.py, line 2, in module
import cgi
  File /Users/db3l/buildarea/3.1.bolen-tiger/build/Lib/cgi.py, line 34, in 
module
from operator import attrgetter
ImportError: No module named operator
[28142 refs]
Warning: os.environ was modified by test_httpservers
test test_httpservers failed -- Traceback (most recent call last):
  File 
/Users/db3l/buildarea/3.1.bolen-tiger/build/Lib/test/test_httpservers.py, 
line 380, in test_post
self.assertEquals(res.read(), b'1, python, 123456\n')
AssertionError: b'' != b'1, python, 123456\n'

--
keywords: buildbot
messages: 103540
nosy: haypo
severity: normal
status: open
title: buildbot: test_httpservers failure (No module named operator)
versions: Python 3.1

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



[issue8420] Objects/setobject.c contains unsafe code

2010-04-18 Thread Eugene Kapun

Eugene Kapun abacabadabac...@gmail.com added the comment:

This code crashes python by using another bug in set_repr. This only affects 
py3k. This code relies on out-of-memory condition, so run it like:
$ (ulimit -v 65536  python3 test.py)
Otherwise, it will eat all your free memory before crashing.

val = a * 1
class big:
def __repr__(self):
return val
i = 16
while True:
repr(frozenset(big() for j in range(i)))
i = (i * 5)  2

--

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



[issue8448] buildbot: test_subprocess failure (test_no_leaking, Broken pipe)

2010-04-18 Thread STINNER Victor

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

http://www.python.org/dev/buildbot/builders/sparc Debian 
3.1/builds/49/steps/test/logs/stdio

test_subprocess
* ob
object  : refcnt 0 at 0x1038220
type: str
refcount: 0
address : 0x1038220
* op-_ob_prev-_ob_next
object  : refcnt 0 at 0x1038220
type: str
refcount: 0
address : 0x1038220
* op-_ob_next-_ob_prev
object  : [29082 refs]
.
this bit of output is from a test of stdout in a different process ...
.
this bit of output is from a test of stdout in a different process ...
test test_subprocess failed -- Traceback (most recent call last):
  File 
/home/pybot/buildarea-sid/3.1.klose-debian-sparc/build/Lib/test/test_subprocess.py,
 line 459, in test_no_leaking
data = p.communicate(blime)[0]
  File 
/home/pybot/buildarea-sid/3.1.klose-debian-sparc/build/Lib/subprocess.py, 
line 727, in communicate
return self._communicate(input)
  File 
/home/pybot/buildarea-sid/3.1.klose-debian-sparc/build/Lib/subprocess.py, 
line 1203, in _communicate
stdout, stderr = self._communicate_with_poll(input)
  File 
/home/pybot/buildarea-sid/3.1.klose-debian-sparc/build/Lib/subprocess.py, 
line 1269, in _communicate_with_poll
input_offset += os.write(fd, chunk)
OSError: [Errno 32] Broken pipe

--
keywords: buildbot
messages: 103542
nosy: haypo
severity: normal
status: open
title: buildbot: test_subprocess failure (test_no_leaking, Broken pipe)
versions: Python 3.1

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



[issue8420] Objects/setobject.c contains unsafe code

2010-04-18 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Patch please.

--

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



[issue8447] buildbot: test_httpservers failure (No module named operator)

2010-04-18 Thread Antoine Pitrou

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


--
assignee:  - ronaldoussoren
components: +Macintosh
nosy: +ronaldoussoren

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



[issue5930] Transient error in multiprocessing (test_number_of_objects)

2010-04-18 Thread STINNER Victor

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


--
nosy: +haypo

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



[issue8265] test_float fails on ARM Linux EABI with soft floating point

2010-04-18 Thread STINNER Victor

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


--
nosy: +haypo

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



  1   2   >