[issue5585] implement initializer for multiprocessing.BaseManager.start()

2009-04-01 Thread lekma

lekma  added the comment:

thanks guys

--

___
Python tracker 

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



[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-01 Thread Hye-Shik Chang

Hye-Shik Chang  added the comment:

Sorry. I just found that the fix breaks few other test units.
I'll check.

--

___
Python tracker 

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



[issue5640] Wrong print() result when unicode error handler is not 'strict'

2009-04-01 Thread Hye-Shik Chang

Hye-Shik Chang  added the comment:

Right.
Here I upload a patch to fix the addressed problem on cjkcodecs.
Please test whether the patch corrects the behavior.

--
keywords: +patch
Added file: http://bugs.python.org/file13572/cjkcodecs-fix-statefulenc.diff

___
Python tracker 

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



[issue5660] Cannot deepcopy unittest.TestCase instances

2009-04-01 Thread Michael Foord

Michael Foord  added the comment:

Fixed in revision 71043.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue616247] More documentation for the imp module

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

As Raymond pointed out, people should not use the undocumented
functions. Deprecation should be a separate issue.

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

___
Python tracker 

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



[issue2227] time.strptime too strict? should it assume current year?

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

After having thought about this I have decided I am going to stick with
the current semantics. Having the year change underneath code based
solely on when it executes will cause more problems than it will solve.

--
resolution:  -> 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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Daniel Stutzbach

Changes by Daniel Stutzbach :


--
nosy: +stutzbach

___
Python tracker 

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



[issue3831] Multiprocessing: Expose underlying pipe in queues

2009-04-01 Thread Jesse Noller

Jesse Noller  added the comment:

Can you please provide an example w.r.t to how you would handle the case 
where poll()/recv returns partial bytes of the object instead of a full 
object?

--

___
Python tracker 

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



[issue3619] A more informative message for ImportError

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

Closing as "won't fix" as this assumes that path information is
applicable to all importers which is not correct.

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

___
Python tracker 

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



[issue5660] Cannot deepcopy unittest.TestCase instances

2009-04-01 Thread Michael Foord

Michael Foord  added the comment:

We can fix this by wrapping the assert functions in our assert register
as deep-copyable objects. (And then unwrapping when we fetch them.)

--

___
Python tracker 

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



[issue5585] implement initializer for multiprocessing.BaseManager.start()

2009-04-01 Thread Jesse Noller

Jesse Noller  added the comment:

committed in r71041 on python trunk, provided clean buildbots, we will 
merge to python 3.1

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5442] [3.1alpha1] test_importlib fails on Mac OSX 10.5.6

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

Fixed in r71042.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5660] Cannot deepcopy unittest.TestCase instances

2009-04-01 Thread Michael Foord

Michael Foord  added the comment:

This is a workaround:

import copy
copy._deepcopy_dispatch[types.MethodType] = copy._deepcopy_atomic

--

___
Python tracker 

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



[issue5665] Add more pickling tests

2009-04-01 Thread Collin Winter

New submission from Collin Winter :

The attached patch adds more tests for pickling:
- Add tests for the module-level load() and dump() functions.
- Add tests for cPickle's internal data structures, stressing workloads
with many gets/puts.
- Add tests for the Pickler and Unpickler classes, in particular the
memo attribute.
- test_xpickle is extended to test backwards compatibility with Python
2.4, 2.5 and 2.6 by round-tripping pickled objects through a worker
process. 2.3 was too difficult to support.

I'll port to py3k after reviewed for trunk.

--
components: Tests
files: pickle_tests.patch
keywords: needs review, patch
messages: 85162
nosy: collinwinter
severity: normal
status: open
title: Add more pickling tests
type: behavior
versions: Python 2.7, Python 3.1
Added file: http://bugs.python.org/file13571/pickle_tests.patch

___
Python tracker 

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



[issue2568] Seconds range in time unit

2009-04-01 Thread R. David Murray

R. David Murray  added the comment:

Doc patch applied in r71037.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5660] Cannot deepcopy unittest.TestCase instances

2009-04-01 Thread Michael Foord

Changes by Michael Foord :


--
nosy: +michael.foord

___
Python tracker 

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



[issue1005113] test__locale fails on MacOS X

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon :


--
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



[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-04-01 Thread Jesse Noller

Jesse Noller  added the comment:

Patch applied in r71036 on python-trunk

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue689895] Imports can deadlock

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

Obviously we decided not to remove the import lock.

--
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



[issue4347] Circular dependency causes SystemError when adding new syntax

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon :


--
assignee: brett.cannon -> 

___
Python tracker 

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



[issue787113] zipimport on meta_path fails with mutual importers

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

The zipimporter is not designed to work on sys.meta_path, so closing as
"won't fix".

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

___
Python tracker 

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



[issue809254] imp.find_module doesn't work in /tmp

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

It's because /tmp on OS X is a symlink to /private/tmp. Works fine if
you specify /private as the search path.

--
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



[issue856103] reload() fails with modules from zips

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon :


--
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



[issue965206] importing dynamic modules via embedded python

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

sys.builtin_module_names lists the modules that are statically linked.

--
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



[issue3770] test_multiprocessing fails on systems with HAVE_SEM_OPEN=0

2009-04-01 Thread Jesse Noller

Jesse Noller  added the comment:

Closing; we've removed hard-coded platform variables for a better autoconf 
approach. We currently skip the test suite on platforms which don't 
support or have what we need.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue966431] import x.y inside of module x.y

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon :


--
assignee: brett.cannon -> 
resolution:  -> out of date
status: open -> closed
superseder:  -> attribute error after non-from import

___
Python tracker 

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



[issue4847] csv fails when file is opened in binary mode

2009-04-01 Thread R. David Murray

Changes by R. David Murray :


--
assignee: georg.brandl -> r.david.murray
Added file: http://bugs.python.org/file13570/issue4847-doc.patch

___
Python tracker 

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



[issue4847] csv fails when file is opened in binary mode

2009-04-01 Thread R. David Murray

Changes by R. David Murray :


Removed file: http://bugs.python.org/file13569/issue4847-doc.patch

___
Python tracker 

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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Guido van Rossum

Guido van Rossum  added the comment:

Looking back, I think Zope and Medusa should have adopted and evolved
their own copy of asynchat a long time ago...

--

___
Python tracker 

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



[issue1214675] module warnings lacks a remove filter function

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon :


--
assignee: brett.cannon -> 

___
Python tracker 

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



[issue1419652] PyImport_AppendInittab stores pointer to parameter

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

I made the char * a const char *. Committed in r71031 & r71033 for 2.x,
r71034 for 3.x.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue4847] csv fails when file is opened in binary mode

2009-04-01 Thread R. David Murray

R. David Murray  added the comment:

I'm attaching a proposed doc patch for comment.  I replace mentions of
'rb' with "newline=''", including in the examples.  I also deleted the
unicode discussion (since CSV obviously handles unicode now) as well as
the extensive unicode examples that are no longer relevant.  (There are
a couple other tweaks I made as I went along, but nothing substantial.)

--
stage:  -> commit review
type:  -> behavior
Added file: http://bugs.python.org/file13569/issue4847-doc.patch

___
Python tracker 

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



[issue5663] Better failure messages for unittest assertions

2009-04-01 Thread Michael Foord

Changes by Michael Foord :


--
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue5664] 2to3 wont convert Cookie.Cookie properly

2009-04-01 Thread Senthil

New submission from Senthil :

In 2.7 code have:
import Cookie
c = Cookie.Cookie('abc')

2to3 would do:
c = http.cookies.Cookie('abc')

This is wrong as there is no class as Cookie in http.cookies. It should
translated to be http.cookies.SimpleCookie.

--
assignee: benjamin.peterson
components: 2to3 (2.x to 3.0 conversion tool)
messages: 85151
nosy: benjamin.peterson, orsenthil
severity: normal
status: open
title: 2to3 wont convert Cookie.Cookie properly
type: behavior
versions: Python 3.1

___
Python tracker 

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



[issue5663] Better failure messages for unittest assertions

2009-04-01 Thread Michael Foord

Michael Foord  added the comment:

Updated patch with better docstring for _formatMessage and docs.

Patch reviewed by Brett Cannon so will commit.

--
Added file: http://bugs.python.org/file13568/unittest-messages.diff

___
Python tracker 

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



[issue4860] js_output wrong for cookies with " characters

2009-04-01 Thread Senthil

Senthil  added the comment:

Because SimpleCookie class is still usable (that is not deprecated), it
makes sense to back port to Py2.7.
Applied the patches in revision 71030 and r71029. Thanks.

--
status: open -> closed
versions: +Python 3.1

___
Python tracker 

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



[issue4217] Add file comparisons to the unittest library

2009-04-01 Thread Georg Brandl

Georg Brandl  added the comment:

I'm not sure we need new unittest functions for file comparison; but a
function in difflib that directly takes two filenames would perhaps be
accepted.  That will need a new patch however.

--
assignee:  -> zseil
nosy: +georg.brandl, zseil
resolution:  -> 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



[issue5658] make html in doc fails because Makefile assigns python to PYTHON

2009-04-01 Thread Georg Brandl

Georg Brandl  added the comment:

Why is a change to the Makefile an "inconsistency"? Anyway, once 3.1 is
released the naming scheme will be announced.

--

___
Python tracker 

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



[issue701743] Reloading pseudo modules

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

Since reload is about reloading modules and sticking stuff other than
modules in sys.modules is a partial hack I am closing as "rejected".

--
resolution:  -> 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



[issue5627] PyDict_SetItemString() fails when the second argument is null

2009-04-01 Thread Georg Brandl

Georg Brandl  added the comment:

Closing.

--
status: open -> closed

___
Python tracker 

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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Chris McDonough

Chris McDonough  added the comment:

I am the developer of Supervisor (http://supervisord.org) which depends
on (and extends) Medusa 0.5.4, which itself depends on some
implementation details of pre-2.6 versions of asynchat (e.g.
"ac_out_buffer").

I need to make sure Supervisor works with Python 2.3, 2.4, and 2.5, as
well as Python 2.6.  To do so, I intend to just ship the Python 2.5
version of asyncore/asynchat along with Medusa 0.5.4 and Supervisor in
the next Supervisor release; straddling the asynchat stuff would just be
too hard here.

I don't know of any other consumers of Medusa other than Zope and
Supervisor, so maybe Medusa should just ship with its own version of
asyncore and asynchat forever from now on;  I'm certainly not going to
take the time to "fix" Medusa to forward port it to the 2.6 version of
asynchat.

I might argue that in retrospect the the current implementation of
asynchat might have been better named "asynchat2", as the changes made
to it seem to have broken of its major consumers.  But we can work
around it by just forking, I think.

--
nosy: +mcdonc

___
Python tracker 

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



[issue1514734] site.py can break the location of the python library

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

The semantics of the functions in os cannot change. And I prefer keeping
it as-is since I wouldn't want to change the symlinks on a relative path.

--
assignee: brett.cannon -> 
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue5627] PyDict_SetItemString() fails when the second argument is null

2009-04-01 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

I recommend rejecting this one.  The assert is sufficient for
third-party modules to run their tests and detect bad calls.  The code
path is too critical to add another check.

--
assignee: loewis -> georg.brandl

___
Python tracker 

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



[issue3110] Multiprocessing package build problem on Solaris 10

2009-04-01 Thread Jesse Noller

Jesse Noller  added the comment:

Additional protection checked in in r71022

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5627] PyDict_SetItemString() fails when the second argument is null

2009-04-01 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--

___
Python tracker 

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



[issue5627] PyDict_SetItemString() fails when the second argument is null

2009-04-01 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--

___
Python tracker 

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



[issue5657] bad repr of itertools.count object with negative value on OS X 10.4 with 10.5 build

2009-04-01 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Martin, do you have any insight into this?  The values being seen and
the fact that it occurs only in a particular build suggests that
pyport.h has inconsistent definitions for Py_ssize_t, PY_SSIZE_T_MAX,
and PY_SSIZE_T_MIN.  The values look like signed and unsigned values are
being conflated.

--
assignee: rhettinger -> loewis
nosy: +loewis

___
Python tracker 

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



[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread John Ehresman

John Ehresman  added the comment:

My hope is that the runtime performance cost will be negligible but if 
it isn't, it probably shouldn't go in.  The issue with not putting it in 
another build is that many python debugger users won't want to 
recompile, so I see it as being of limited use if it's not in the 
default build.

My experience with watchpoints in C debuggers (gdb) is they can be the 
difference between finding a bug and not -- I recall finding ref 
counting bugs only because I could watch the ref count and break on the 
code that modifies it.

I would be willing to try and generalize this and support more hooks if 
there is some interest in it, though watching namespaces is probably the 
greatest payoff.  I think that if will be difficult to remove the hooks 
currently in the default build because of backward compatibility issues.

--

___
Python tracker 

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



[issue5627] PyDict_SetItemString() fails when the second argument is null

2009-04-01 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

> Martin, do you have any insight into this

Are you sure you commenting into the right issue?
How does Py_ssize_t come into play here?

--
title: PyDict_SetItemString() fails when the second argument is null -> 
PyDict_SetItemString() fails when the second argument isnull

___
Python tracker 

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



[issue1044382] Can't raise "C API version mismatch" warning

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon :


--
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



[issue5663] Better failure messages for unittest assertions

2009-04-01 Thread Michael Foord

Michael Foord  added the comment:

Reviewers: ,

Description:
Patch for unittest on trunk.

It provides better default failure messages for assertTrue and
assertFalse (current is "AssertionError: None").

It also provides a new class attribute for TestCase: longMessage

This defaults to False. If set to True, passing in an explicit custom
message does *not* override the helpful default failure message in
asserts which tell you which objects were involved in the failure.

Even if set to True or False in a TestCase then longMessage can still be
overridden in individual tests by setting an instance attribute.

Needs docs.

Could longMessage default to True in 3.1?

Please review this at http://codereview.appspot.com/32102

Affected files:
   Lib/test/test_unittest.py
   Lib/unittest.py
   Misc/NEWS

--
nosy: +fuzzyman

___
Python tracker 

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



[issue5663] Better failure messages for unittest assertions

2009-04-01 Thread Michael Foord

New submission from Michael Foord :

Patch for unittest on trunk.

It provides better default failure messages for assertTrue and
assertFalse (current is "AssertionError: None").

It also provides a new class attribute for TestCase: longMessage

This defaults to False. If set to True, passing in an explicit custom
message does *not* override the helpful default failure message in
asserts which tell you which objects were involved in the failure.

Even if set to True or False in a TestCase then longMessage can still be
overridden in individual tests by setting an instance attribute.



Needs docs.

Could longMessage default to True in 3.1.

--
components: Library (Lib)
files: unittest-messages.diff
keywords: patch
messages: 85136
nosy: mfoord
severity: normal
status: open
title: Better failure messages for unittest assertions
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file13567/unittest-messages.diff

___
Python tracker 

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



[issue5662] py3k interpreter leak

2009-04-01 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Fixed in r71018.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue5627] PyDict_SetItemString() fails when the second argument is null

2009-04-01 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Martin, do you have any insight into this?  The values being seen and
the fact that it occurs only in a particular build suggests that
pyport.h has inconsistent definitions for Py_ssize_t, PY_SSIZE_T_MAX,
and PY_SSIZE_T_MIN.  The values look like signed and unsigned values are
being conflated.

--
assignee: rhettinger -> loewis
nosy: +loewis
status: pending -> open

___
Python tracker 

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



[issue779191] BasicModuleLoader behaviour in Python 2.3c2

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon :


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

___
Python tracker 

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



[issue5545] multiprocessing: switch to autoconf detection of platform values

2009-04-01 Thread Jesse Noller

Jesse Noller  added the comment:

Closing as fixed until the buildbots prove otherwise

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue1507224] sys.path issue if sys.prefix contains a colon

2009-04-01 Thread Brett Cannon

Brett Cannon  added the comment:

Autoconf will not even generate a Makefile that will run with a prefix
of ``/tmp/\:colon`` so closing as out of date since their is a more
fundamental toolchain issue outside of our control.

--
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



[issue4573] zsh-style subpattern matching for fnmatch/glob

2009-04-01 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

I like glob_ext() and fnmatch_ext().

--
nosy: +rhettinger

___
Python tracker 

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



[issue4573] zsh-style subpattern matching for fnmatch/glob

2009-04-01 Thread Erick Tryzelaar

Erick Tryzelaar  added the comment:

I completely agree, Georg. I tried to get this in before 3.0, but it
didn't work out which is a shame. I assume you also feel that we
couldn't make a backwards compatible change in 3.1, right? I thought I
heard that 3.1 may break some things in 3.0, but I'm not positive.

Got any suggestions for a function name? Here are some I have in mind,
but none of them are particularly good:

fnmatch.fnmatch2
fnmatch.efnmatch
fnmatch.extended_fnmatch

glob.glob2
glob.eglob
glob.extended_glob

--

___
Python tracker 

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



[issue5662] py3k interpreter leak

2009-04-01 Thread George Yoshida

New submission from George Yoshida :

In py3k interpreter, every time you hit enter,
refcount is incremented one by one.

It looks like r70823 is the culprit.
(tested with py3k:70823 and release30-maint:70831)

Python 3.1a1+ (py3k:70823, Apr  2 2009, 10:21:55)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
[36297 refs]
>>>
[36298 refs]
>>>
[36299 refs]
>>>
[36300 refs]
>>>
[36301 refs]
>>>
[36302 refs]
>>>
[36303 refs]

--
messages: 85129
nosy: quiver
severity: normal
status: open
title: py3k interpreter leak
versions: Python 3.0, Python 3.1

___
Python tracker 

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



[issue5545] multiprocessing: switch to autoconf detection of platform values

2009-04-01 Thread Jesse Noller

Jesse Noller  added the comment:

This is committed as of CL 71007 on trunk.

--

___
Python tracker 

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



[issue5661] asyncore should catch EPIPE while sending() and receiving()

2009-04-01 Thread Josiah Carlson

Josiah Carlson  added the comment:

I think that catching one more potential failure modes is reasonable.  
I'm probably going to apply a variant of this patch to pull the sequence 
into a frozenset for quick lookups, and so that we don't need to keep 
updating two different places if/when new failure conditions arise.

--
assignee:  -> josiahcarlson

___
Python tracker 

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



[issue1525549] Document additions from PEP 302

2009-04-01 Thread Brett Cannon

Changes by Brett Cannon :


--
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



[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

This is a critical path in Python and it should be kept as clean as
possible.  If something like this goes in, it should be #ifdef'd out by
default; otherwise, we have everyone paying the price for a feature that
almost no one will use.

Strong -1 against this being in the default build.

Also, I'm not convinced that the idea itself is even that useful.  Why
dictionary sets/dels and not list assignments and whatnot.  By itself,
this one watchpoint hook provides very little utility.  We've already
cluttered the codebase with various trace and timing options.  If
something else were to be included, it should be part of a larger, well
thought out approach (like what is being done for DTrace).

--
nosy: +rhettinger

___
Python tracker 

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



[issue5661] asyncore should catch EPIPE while sending() and receiving()

2009-04-01 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola' :

I received a report from a pyftpdlib user:
http://code.google.com/p/pyftpdlib/issues/detail?id=104
...complaining that an unhandled EPIPE error might be thrown by
asyncore.py on OS X in certain circumstances which are hardly reproducible.

By googling a little about it it seems that he's not the first one who
got this problem:
http://mail.python.org/pipermail/medusa-dev/2003/000852.html
https://bugs.launchpad.net/zope2/+bug/142654

I think it makes sense modifying dispatcher.send() and dispatcher.recv()
to include EPIPE as error condition to indicate that the connection has
been closed and call handle_close() as consequence.


The patch in attachment does that.

--
components: Library (Lib)
files: asyncore.patch
keywords: patch
messages: 85125
nosy: giampaolo.rodola, josiah.carlson, josiahcarlson
severity: normal
status: open
title: asyncore should catch EPIPE while sending() and receiving()
type: behavior
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1
Added file: http://bugs.python.org/file13566/asyncore.patch

___
Python tracker 

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



[issue5391] mmap: read_byte/write_byte and object type

2009-04-01 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto :


--
priority:  -> release blocker

___
Python tracker 

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



[issue5410] msvcrt bytes cleanup

2009-04-01 Thread Hirokazu Yamamoto

Changes by Hirokazu Yamamoto :


--
priority:  -> release blocker

___
Python tracker 

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



[issue5660] Cannot deepcopy unittest.TestCase instances

2009-04-01 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
assignee:  -> gregory.p.smith
nosy: +gregory.p.smith

___
Python tracker 

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



[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-04-01 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Fixed in r71013.

--
nosy: +benjamin.peterson
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue5660] Cannot deepcopy unittest.TestCase instances

2009-04-01 Thread Andrew Bennetts

New submission from Andrew Bennetts :

Here's a demonstration of the bug:

>>> from unittest import TestCase
>>> class MyTest(TestCase):
... def test_foo(self): pass
... 
>>> tc = MyTest('test_foo')
>>> import copy
>>> copy.deepcopy(tc)
Traceback (most recent call last):
  File "", line 1, in 
  File "/usr/local/stow/py2.7/lib/python2.7/copy.py", line 189, in deepcopy
y = _reconstruct(x, rv, 1, memo)
  File "/usr/local/stow/py2.7/lib/python2.7/copy.py", line 338, in
_reconstruct
state = deepcopy(state, memo)
  File "/usr/local/stow/py2.7/lib/python2.7/copy.py", line 162, in deepcopy
y = copier(x, memo)
  File "/usr/local/stow/py2.7/lib/python2.7/copy.py", line 255, in
_deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/local/stow/py2.7/lib/python2.7/copy.py", line 162, in deepcopy
y = copier(x, memo)
  File "/usr/local/stow/py2.7/lib/python2.7/copy.py", line 255, in
_deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/local/stow/py2.7/lib/python2.7/copy.py", line 189, in deepcopy
y = _reconstruct(x, rv, 1, memo)
  File "/usr/local/stow/py2.7/lib/python2.7/copy.py", line 323, in
_reconstruct
y = callable(*args)
  File "/usr/local/bin/../stow/py2.7/lib/python2.7/copy_reg.py", line
93, in __newobj__
return cls.__new__(cls, *args)
TypeError: instancemethod expected at least 2 arguments, got 0


This regression breaks bzr's test suite, which copies test objects to
run the same test against multiple scenarios (e.g. to run all the same
tests against all the implementations of bzrlib.transport.Transport,
such as HTTPTransport and SFTPTransport.) 
 also implements test parameterisation
in this way, and it is extremely useful.

I suspect the __test_equality_funcs on TestCase is the problem:

>>> tc.__dict__
{'_testMethodDoc': None, '_TestCase__type_equality_funcs': {: >, : >, : >, : >, : >}, '_testMethodName': 'test_foo'}

copy.deepcopy can't deepcopy bound methods, reasonably enough.

--
components: Library (Lib)
messages: 85123
nosy: spiv
severity: normal
status: open
title: Cannot deepcopy unittest.TestCase instances
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



[issue5658] make html in doc fails because Makefile assigns python to PYTHON

2009-04-01 Thread Mitchell Model

Mitchell Model  added the comment:

OK, makes sense. Just out of curiosity where does a user find that 
information? a developer?

There is still an inconsistency between the Makefiles in the two 
versions. That seems dangerous.
-- 
-- 

 --- Mitchell

--
title: make html in doc fails because Makefile assigns python to PYTHON -> make 
html in doc fails because Makefile assigns python toPYTHON
Added file: http://bugs.python.org/file13565/unnamed

___
Python tracker 

___
Re: [issue5658] make html in doc fails because
Makefile as
OK, makes sense. Just out of curiosity where does a user find
that information? a developer?

There is still an inconsistency between the Makefiles in the two
versions. That seems dangerous.
-- 

-- 

    --- Mitchell

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



[issue4860] js_output wrong for cookies with " characters

2009-04-01 Thread Senthil

Senthil  added the comment:

Cookie.Cookie is deprecated in Py2k. In Py3k, it is
http.cookies.SimpleCookie. The bug was present in Py3k, the attached
patch fixes it.

--
assignee:  -> orsenthil
nosy: +orsenthil
resolution:  -> accepted
Added file: http://bugs.python.org/file13564/issue4860.diff

___
Python tracker 

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



[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread John Ehresman

John Ehresman  added the comment:

Oops, the multiprocessing changes should not be in the patch

--
nosy: +sdeibel

___
Python tracker 

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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Guido van Rossum

Guido van Rossum  added the comment:

Josiah, there's no need to get all defensive and passive-aggressive
about it. I'm just reporting about strong feelings that were brought up
at the language summit -- to my surprise too! Admitting somebody made a
mistake would be step one (and I'll gladly admit I wasn't aware of the
Zope issues at the time or I would've warned you).

I've asked Tres Seaver and Jim Fulton to comment on this issue, I really
can't help you more with the details of which module actually broke and
what to do about it. I'm just recommending you use your commit
privileges wisely.

--

___
Python tracker 

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



[issue1608921] PyThread_release_lock with pthreads munges errno

2009-04-01 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> invalid

___
Python tracker 

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



[issue4136] merge json library with latest simplejson 2.0.x

2009-04-01 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

This change should be ported to py3k sometime before the first beta.

--
nosy: +benjamin.peterson
priority: critical -> deferred blocker

___
Python tracker 

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



[issue1608921] PyThread_release_lock with pthreads munges errno

2009-04-01 Thread Stephan R.A. Deibel

Stephan R.A. Deibel  added the comment:

He he, well my attempts at replicating this on Linux and OS X failed
using Python 2.3->2.6 so I'm closing this bug.  I'm uploading the test
case for what it's worth.  My best guess at what happened is that there
was some interaction w/ older gdb, since I do know that I stepped
through code in gdb to see this happen, or perhaps it was on older
pthreads.  The bug report dates from what I believe I had another
desktop computer and older Linux version on that.  Thanks for spurring
me on to looking at this again and in more detail.

--
status: open -> closed
Added file: http://bugs.python.org/file13563/testcase.tgz

___
Python tracker 

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



[issue2578] additional unittest type equality methods

2009-04-01 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Done in r71004.

--

___
Python tracker 

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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Josiah Carlson

Josiah Carlson  added the comment:

To be wholly clear about the issues, it's not with asyncore, the core 
asynchronous 
library, it's with asynchat and the internal changes to that.  Any changes to 
asyncore 
were to fix corner cases and exceptions.  No API, internal or external was 
changed.

People who subclassed from asyncore should have no problems.  People who 
subclassed 
from asynchat may have problems.

If we want to revert selected changes to asynchat, that's fine with me.  
AFAICT, there 
is only 1 substantial bugfix in asynchat (if your text terminator isn't 
discovered in 
the first ac_in_buffer_size bytes read since the last terminator, your 
connection will 
hang), which is easily pulled out.  Offering a compatibility mode is also 
relatively 
easy.

Six months ago you were 'eh' with what was going on with the asyncore libraries 
(see 
messages from early October).  Over a year ago everyone on python-dev cared so 
little 
about the libraries that it was preferred to give me commit access than for 
someone to 
review the code.  Now everyone seems willing and happy to remove the library 
because it 
is "unsalvageable".

Ultimately the change that broke Zope/medusa was replacing the use of 
asynchat.fifo 
with a deque, and getting rid of ac_out_buffer.  Those are *tiny* changes that 
we can 
change back, temporarily pull into Zope, and tweak Medusa to fix (I'd be happy 
to offer 
a patch to AMK to produce Medusa 0.5.5).

As for your "subclassing is bad" comment, Twisted, wxPython, SocketServer 
(SimpleXMLRPCServer, TCPServer, ...), sgmllib.SGMLParser, etc., all use 
subclassing as 
part of their APIs.

--

___
Python tracker 

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



[issue5627] PyDict_SetItemString() fails when the second argument is null

2009-04-01 Thread Georg Brandl

Georg Brandl  added the comment:

Raymond, do you have an opinion about this?

--
assignee:  -> rhettinger
nosy: +rhettinger

___
Python tracker 

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



[issue5658] make html in doc fails because Makefile assigns python to PYTHON

2009-04-01 Thread Georg Brandl

Georg Brandl  added the comment:

We don't recommend calling Python 3.x "python".  In fact, the executable
will always be called "python3" in Python 3.1+.

--
nosy: +georg.brandl
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue5657] bad repr of itertools.count object with negative value on OS X 10.4 with 10.5 build

2009-04-01 Thread Georg Brandl

Changes by Georg Brandl :


--
assignee:  -> rhettinger
nosy: +rhettinger

___
Python tracker 

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



[issue5499] only accept byte for getarg('c') and unicode for getarg('C')

2009-04-01 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

good catch.  the patch looks correct to me.

--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue2578] additional unittest type equality methods

2009-04-01 Thread Guido van Rossum

Guido van Rossum  added the comment:

Do I mind? I *insist*! I thought put a note about that in the code
review but I guess Greg missed it. Thanks for noticing.

--

___
Python tracker 

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



[issue5656] Coverage execution fails for files not encoded with utf-8

2009-04-01 Thread Georg Brandl

Georg Brandl  added the comment:

Committed in r71002.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Giampaolo Rodola'

Giampaolo Rodola'  added the comment:

I don't know what are the problems experienced by the Zope folks (is
there a place where this is discussed?) but I can guess that they're
having problems with asynchat rather than with asyncore, since the
latter hasn't changed too much between 2.5 and 2.6 except for low level
connection related bug fixes.

The greatest difference in the new asynchat is that the producer_fifo
attribute is no longer an asyncore.fifo() instance but a deque().

Python 2.5:
> self.producer_fifo = fifo()

Python 2.6
> self.producer_fifo = deque()


Although they're quite similar the old code relying on the fifo() API
can't obviously work anymore.
This could have been a bad choice and there are probably other changes
that might have caused the problem (one other change that comes to my
mind is the different readable() writable() implementation).

An alternative to completely reverting asynchat.py to the 2.5 version,
which is somewhat too drastic IMO, could be identifying what are the
changes that caused the incompatibility, and reverting those parts only
for 2.6.2, in a way that no one (2.5 and 2.6 users) is affected.

If there's a place where this is discussed I could contribute in some
way since I've been working on asynchat/asyncore for a long time now.

--

___
Python tracker 

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



[issue4847] csv fails when file is opened in binary mode

2009-04-01 Thread R. David Murray

R. David Murray  added the comment:

I've added some unit tests for embedded newlines, and py3k csv passes
(on linux at least) when newline='' is used.  Unless someone can provide
a test case that fails when newline='' is used, I propose we fix the
documentation and leave the code alone.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue2578] additional unittest type equality methods

2009-04-01 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Do you mind if I rename all the double underscore methods that Greg's
patch added to _ underscore matching the style of the rest of the module?

--

___
Python tracker 

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



[issue5659] logging.FileHandler encoding parameter does not work as expected

2009-04-01 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
assignee:  -> vsajip
nosy: +vsajip

___
Python tracker 

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



[issue5659] logging.FileHandler encoding parameter does not work as expected

2009-04-01 Thread Kuno

New submission from Kuno :

When attempting to use the encoding="" parameter of logging.FileHandler
I always get a UnicodeError.  This looks like a bug to me (otherwise I
am seriously misunderstanding what the parameter is supposed to do). The
attached file contains the code to reproduce this error.

Traceback (most recent call last):
  File "/usr/local/stow/Python-2.6.1/lib/python2.6/logging/__init__.py",
line 765, in emit
self.stream.write(fs % msg.encode("UTF-8"))
  File "/usr/local/stow/Python-2.6.1/lib/python2.6/codecs.py", line 686,
in write
return self.writer.write(data)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 0:
ordinal not in range(128)

For completeness:  I am running a self-compiled Python 2.6.1 on the
current Debian GNU/Linux testing release.

--
components: Library (Lib)
files: l.py
messages: 85106
nosy: warp
severity: normal
status: open
title: logging.FileHandler encoding parameter does not work as expected
versions: Python 2.6
Added file: http://bugs.python.org/file13562/l.py

___
Python tracker 

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



[issue5215] change value of local variable in debug

2009-04-01 Thread Maru Newby

Maru Newby  added the comment:

Modifications to the f_locals dict are only saved at the end of
traceback, and each traceback function was using the f_locals accessor
that returns the dict state as of the start of traceback.  The provided
patch caches f_locals on setup and ensures that all traceback functions
share that cached dict, ensuring that modifications are no longer
overwritten by a function using the unmodified dict.

--
keywords: +patch
nosy: +maru
Added file: http://bugs.python.org/file13561/pdb_cache_f_locals.patch

___
Python tracker 

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



[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

The patch seems to contain unrelated changes to multiprocessing.

--
nosy: +loewis

___
Python tracker 

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



[issue3448] Multi-process 2to3

2009-04-01 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

I added some support for concurrent running in r70999.

--
resolution:  -> accepted
status: open -> closed

___
Python tracker 

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



[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-04-01 Thread John Ehresman

John Ehresman  added the comment:

New patch which raises ValueError if WriteFile fails with
ERROR_NO_SYSTEM_RESOURCES.  I wasn't able to reliably write a test since
putting the send_bytes in a try block seems to allow the call succeed. 
This is probably OS, swap file size, and timing dependent.

--
Added file: http://bugs.python.org/file13560/win32_pipe2.diff

___
Python tracker 

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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Guido van Rossum

Guido van Rossum  added the comment:

Well arguably asyncore is unsalvageable due to the undocumented
internals issue, and we sure know a bit more about how to design a
*good* asynchronous API than we did when asyncore was created. (One
hint: don't make subclassing part of your API.)

The Zope folks at the meeting in all seriousness proposed reverting to
the 2.5 version of asyncore since "it is broken in 2.6".  Since I don't
use it myself I really have no idea if anyone is using the 2.6 version.

--

___
Python tracker 

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



[issue5139] Add combinatoric counting functions to the math module.

2009-04-01 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Upon further thought, I'm going to withdraw this feature request.  If an
integer functions module surfaces at some point, it will be an obvious
addition.

--
resolution:  -> 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



[issue5205] String Formatting with namedtuple

2009-04-01 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
resolution:  -> 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



[issue2531] float compared to decimal is silently incorrect.

2009-04-01 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee: rhettinger -> marketdickinson

___
Python tracker 

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



[issue2531] float compared to decimal is silently incorrect.

2009-04-01 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Mark, I looked at your patch again and think we should support relaxed
conversions for ordering comparisons but not equality/inequality.  This
will improve on the current situation where we get flat-out misleading
results for <, <=, >, and >=.  It keeps the status quo for
equality/inequality and thereby avoids the problems with __hash__.

The only thing that I don't like about it is that you can't do the usual
reasoning where "not ab" implies "a==b".  Still, it is an
improvement over "a

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



[issue1641] asyncore delayed calls feature

2009-04-01 Thread Josiah Carlson

Josiah Carlson  added the comment:

Here's a question: How do we fix 2.6?

>From what I've read, the only answer I've heard is "revert to 2.5 in 
2.6.2", which has the same issues as adding True/False in 2.2 .

I agree that Zope not working in 2.6 is a problem, I agree that the 
documentation for asyncore is lacking, I agree that I probably wasn't as 
vocal as I could have been prior to the changes, I agree that 3rd 
parties relying on internal implementation details not covered in the 
limited documentation is a problem, I agree that we need to figure 
something out for asyncore 2.7 and beyond, I agree that we need to 
figure something out for asyncore 2.6 issues related to Zope and Medusa, 
...

I'm happy to take the blame for changing asyncore internals in Python 
2.6 .  And I've not stated otherwise in any forum.  At the time I 
thought it was the right thing to do.  If I could change the code 
retroactively, I would probably do so.

But it seems to me that "fork asyncore", "pull asyncore out of the 
stdlib", and "revert to 2.5" are all variants of the cliche "throwing 
the baby out with the bathwater".  There are good bug fixes in 2.6, and 
depending on how much of the internals that Zope and/or medusa rely on, 
we might even be able to write a short wrapper/adapter to throw in to 
Zope and/or asyncore.

I'll contact Tres and Jim, and hopefully be able to come to some 
reasonable solution.

--

___
Python tracker 

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



  1   2   3   >