[issue5487] Parts of Tkinter missing (but not when running from IDLE)

2009-03-13 Thread oc

New submission from oc :

When running a script using Python 3.0.1 I get an error saying that
tkinter.messagebox doesn't exist. However when I run the same script
from within IDLE, it works fine.

This has led to my thinking I'd fixed the Python 2.6/3 compatibility
errors while testing in IDLE, but had end users say it didn't work.

--
components: Tkinter
files: snippet.py
messages: 83572
nosy: oc
severity: normal
status: open
title: Parts of Tkinter missing (but not when running from IDLE)
type: crash
versions: Python 3.0
Added file: http://bugs.python.org/file13328/snippet.py

___
Python tracker 

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



[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-13 Thread Nick Coghlan

Nick Coghlan  added the comment:

Only Formatter.format_field() is particularly hard to override at the
moment (for the same reason that __format__() methods are tricky to
write). That said, creating a locale aware version of string formatting
based on string.Formatter is such an obvious idea that I would actually
be surprised if someone *hasn't* done it by now (they may not have
published it anywhere, but I expect someone has implemented it for their
own use).

That said, I think it's OK for string.Formatter to lag the actual
str.format implementation when it comes to features like this. I see it
as similar to the formatting mini-language parser problem: the primary
goal is to have a good implementation and syntax for str.format, while
providing the tools to allow people to create alternative formatters
with similar power is secondary.

--

___
Python tracker 

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



[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-13 Thread Guido van Rossum

Guido van Rossum  added the comment:

> About '{:{fmt}}' and other wacky combinations, like '{.__doc__}':
>
> It's much easier and cleaner in the code to allow these cases than it
> would be to disallow them. And I rather like the '{:{fmt}}' example!
>
> I suggest leaving them in. They might be useful, and it makes the
> implementation cleaner. I think it will be easier to document, as well.
> There are no special cases to describe: If the field name is omitted,
> it's auto-numbered with a sequential index number. You can't mix
> auto-numbering and manual specification of indexes.

OK, if allowing it is simpler, I'm all for allowing it! (I thought it
would be extra work. Shame on me for not looking at the code. :-)

> As for string.Formatter, I agree we should leave it alone. I'd be
> surprised if anyone is actually using it, anyway. But I'd love to hear
> otherwise.

OK.

--

___
Python tracker 

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



[issue5370] unpickling vs. __getattr__

2009-03-13 Thread Gabriel Genellina

Gabriel Genellina  added the comment:

This doc update should warn people about the need to implement 
__getinitargs__ / __getnewargs__ when the instance relies on some 
internal invariants that must be preserved, and reiterates the 
important fact that __init__ / __new__ are NOT normally invoked.

The patch is against trunk; wording for 3.x should omit references to 
__getinitargs__ and __init__.

--
assignee:  -> georg.brandl
components: +Documentation, Library (Lib)
keywords: +patch
nosy: +georg.brandl
versions: +Python 2.7, Python 3.1 -Python 2.5
Added file: http://bugs.python.org/file13327/pickle.diff

___
Python tracker 

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



[issue1611] doctest.testmod gets noisy if called more than once per SystemExit

2009-03-13 Thread Nick Coghlan

Nick Coghlan  added the comment:

I believe I commented it out when we were trying to get the buildbots
green before releasing 2.6. (The fact that regrtest.py trips over it
does suggest there are legitimate reasons for calling doctest.testmod()
more than once in a single test suite though)

It looked like some debugging code that was accidentally left in to me
(putting random stuff on the screen in a test tool that monitors what is
written to stdout is less than helpful...)

Since 2.5 is only getting security fixes now and later versions don't
suffer from the issue, I'm closing this one as "out of date".

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



[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-13 Thread Eric Smith

Eric Smith  added the comment:

About '{:{fmt}}' and other wacky combinations, like '{.__doc__}':

It's much easier and cleaner in the code to allow these cases than it
would be to disallow them. And I rather like the '{:{fmt}}' example!

I suggest leaving them in. They might be useful, and it makes the
implementation cleaner. I think it will be easier to document, as well.
There are no special cases to describe: If the field name is omitted,
it's auto-numbered with a sequential index number. You can't mix
auto-numbering and manual specification of indexes.

As for string.Formatter, I agree we should leave it alone. I'd be
surprised if anyone is actually using it, anyway. But I'd love to hear
otherwise.

--

___
Python tracker 

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



[issue1399935] enhance unittest to define tests that *should* fail

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Benjamin, is it on your plate?
(or perhaps you already have a working patch somewhere? :-))

--
nosy: +benjamin.peterson, pitrou
stage:  -> test needed
type:  -> feature request
versions: +Python 2.7, Python 3.1 -Python 2.5

___
Python tracker 

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



[issue1613130] str.split creates new string even if pattern not found

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
stage:  -> needs patch
type: feature request -> performance
versions: +Python 2.7, Python 3.1 -Python 2.5, Python 2.6, Python 3.0

___
Python tracker 

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



[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-13 Thread Eric Smith

Eric Smith  added the comment:

I believe this patch is complete. I need to add tests and documentation,
but the code itself should be finished.

Here's the normal case:
>>> '{} {}'.format('test', 0)
'test 0'

It also handles error checking:
>>> '{1} {}'.format('test', 0)
Traceback (most recent call last):
  File "", line 1, in 
ValueError: cannot switch from manual field specification to automatic
field numbering
>>> '{} {1}'.format('test', 0)
Traceback (most recent call last):
  File "", line 1, in 
ValueError: cannot switch from automatic field numbering to manual field
specification

You can use named fields along with auto-numbered fields:
>>> '{test} {}'.format(1, test=2)
'2 1'

You can nest either named or auto-numbered fields:
>>> '{:^{}}'.format('x', 10)
'x '
>>> 'pi={:{fmt}} {:{fmt}}'.format(3.1415, 2.71828, fmt='1.4f')
'pi=3.1415 2.7183'

Attribute access is supported:
>>> '{.__abs__}'.format(0)
""

As is subscripting:
>>> '{[x]}'.format({'x':4})
'4'
>>> '{[1]}'.format([1, 2])
'2'

I'll work on the tests over the weekend, then commit to trunk and py3k.

We need to decide what to do about string.Formatter (which I just
realized I erroneously called string.Format in the previous message).

--
Added file: http://bugs.python.org/file13326/issue5237-0.patch

___
Python tracker 

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



[issue1977] Python reinitialization test

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

This is still a good idea.

--

___
Python tracker 

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



[issue2066] Adding new CNS11643, a *huge* charset, support in cjkcodecs

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Based on the feedback above, it seems this should be committed,
shouldn't it?

--
nosy: +pitrou
stage:  -> commit review
type:  -> feature request
versions: +Python 2.7, Python 3.1 -Python 2.6, Python 3.0

___
Python tracker 

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



[issue1597000] Use \r\n, not \n for HTTP headers

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Closing as suggested one year ago.

--
nosy: +pitrou
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



[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-13 Thread Guido van Rossum

Guido van Rossum  added the comment:

(I meant that as a reply to the {:{fmt}} example, but it applies to your
later post too. :-)

--

___
Python tracker 

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



[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-13 Thread Guido van Rossum

Guido van Rossum  added the comment:

Not sure if that's worth it -- doesn't sound like the people who would
need that feature would mind much using explicit numbering. Let's try KISS.

--

___
Python tracker 

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



[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-13 Thread Eric Smith

Eric Smith  added the comment:

Should string.Format also support auto-numbering?

It seems like it should, but I'm not convinced it's possible without
modifying the signatures to the public methods, in particular
get_field(). The design of string.Format doesn't support state that is
created in format() or vformat() and is passed in to get_field(). I
could use object state in the string.Format instance, but that doesn't
work well, due to the fact that format() can be called multiple times
per instance lifetime. string.Format really needs to have no state of
its own, for example in the case where a single instance is being used
by multiple threads or if it calls the same instance of itself
recursively. I'm going to punt on this for now.

--

___
Python tracker 

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



[issue1568] PATCH: Armin's attribute lookup caching for 3.0

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

This has been merged to py3k a long time ago, hasn't it?

--
nosy: +pitrou
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




[issue2394] [Py3k] Finish the memoryview object implementation

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
stage:  -> test needed

___
Python tracker 

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



[issue2394] [Py3k] Finish the memoryview object implementation

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


Removed file: http://bugs.python.org/file11155/mem1.patch

___
Python tracker 

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



[issue2394] [Py3k] Finish the memoryview object implementation

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


Removed file: http://bugs.python.org/file11156/mem2.patch

___
Python tracker 

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



[issue2394] [Py3k] Finish the memoryview object implementation

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


Removed file: http://bugs.python.org/file11157/mem3.patch

___
Python tracker 

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



[issue2394] [Py3k] Finish the memoryview object implementation

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


Removed file: http://bugs.python.org/file11158/mem4.patch

___
Python tracker 

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



[issue2394] [Py3k] Finish the memoryview object implementation

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


Removed file: http://bugs.python.org/file11159/mem5.patch

___
Python tracker 

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



[issue2394] [Py3k] Finish the memoryview object implementation

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


Removed file: http://bugs.python.org/file11166/mem6.patch

___
Python tracker 

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



[issue3699] test_bigaddrspace broken

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


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



[issue2874] Remove use of the stat module in the stdlib

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

What's the story on this?

--
nosy: +pitrou

___
Python tracker 

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



[issue1674032] Make threading.Event().wait(timeout=3) return isSet

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

A test should be added to the patch, and then I think it could go in.

--

___
Python tracker 

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



[issue3820] Python 3.0b3 doesn't start on German Win XP SP3/SP2

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


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



[issue1143] Update to latest ElementTree in Python 2.7

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

This could be a nice addition to the next 3.1 alphas/betas.

--
nosy: +benjamin.peterson, pitrou
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




[issue2281] Enhanced cPython profiler with high-resolution timer

2009-03-13 Thread Gregory P. Smith

Changes by Gregory P. Smith :


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



[issue5006] Duplicate UTF-16 BOM if a file is open in append mode

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

One possible solution would be to call tell() in the TextIOWrapper
constructor, and then decoder.setstate((b"", 0)) if the current pos is >0.

--

___
Python tracker 

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



[issue5431] cmpfunc in Python 3.0.1 windows installer

2009-03-13 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

This development issues tracker is for issues that might result in
changes in future Python releases.  This issue was properly closed and
in the absence of a new proposal for future change, should have stayed
closed, even with the addition of a comment.

The only-half removal of the cmp family in 3.0 was an error.  For better
or for worse, and after much discussion, the developers decided to fix
the error immediately in 3.0.1 in order to prevent more error-dependent
portings that would need further fix in 3.1.  In other words, better a
little pain now than more pain in the future.

What you do with your installation is up to you.  If adding a line works
for you as a temporary measure, great.  Or help the SWIG folks to finish
the port to Python 3 as intended and as it is in 3.0.1 and will be in
the future.

Further current-release usage questions should be directed to the
python-list (or c.l.p or the gmane mirror) or other forums.

PS. Your original post would have been more readable with the long error
log severely snipped to just show the essential point.

--
nosy: +tjreedy
status: open -> closed

___
Python tracker 

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



[issue4928] Problem with tempfile.NamedTemporaryFile on Solaris 10

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Martin, do you have time to confirm this problem?
Failure of (Named)TemporaryFile to remove the file on shutdown should be
considered a serious issue.

--
nosy: +loewis, pitrou

___
Python tracker 

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



[issue2281] Enhanced cPython profiler with high-resolution timer

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Interesting patch, but there are lots of spurious #if's and #ifdef's
which could be simplified. Also, some changes look slightly unrelated
(e.g. the switch from malloc/free to PyObject_Malloc/PyObject_Free).

--
nosy: +pitrou
stage:  -> patch review
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



[issue5370] unpickling vs. __getattr__

2009-03-13 Thread Gabriel Genellina

Gabriel Genellina  added the comment:

I think that trying to emulate all "getattr" details in the middle of 
unpickling (but omiting calls to __getattr__) isn't the right thing to 
do. What if in some cases __getattr__ (or __getattribute__) *does* the 
right thing, but pickle doesn't call it? Other people would be 
rightfully upset.

There should be a warning note about __getattr__ in the pickle 
documentation, and people should be encouraged to write __getattr__ in 
a more robust way, if class instances are meant to be pickled.

--

___
Python tracker 

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



[issue1222] locale.format bug if thousand separator is space (french separator as example)

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Committed in r70356, r70357, r70358, r70359. I didn't try to change
anything about the trailing space since it's minor anyway.

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



[issue4503] exception traceback sometimes slow

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I suppose we can close this now, it should be solved with the IO-C
rewrite in 3.1, and won't be backported to 3.0.

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



[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-13 Thread Eric Smith

Eric Smith  added the comment:

Copy and paste error. That should be:

>>> 'pi={:{fmt}} e={:{fmt}}'.format(3.1415, 2.71828, fmt='1.4f')
'pi=3.1415 e=2.7183'

--

___
Python tracker 

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



[issue5237] Allow auto-numbered replacement fields in str.format() strings

2009-03-13 Thread Eric Smith

Eric Smith  added the comment:

I'm thinking of allowing you to mix keywords and auto-numbering, but not
manual numbering and auto-numbering. This would be so we could do:

>>> '{:{fmt}} {:{fmt}}'.format(3.1415, 2.71828, fmt='1.4f')
'pi=3.1415 e=2.7183'

Unfortunately the ':' is required, because if it's not there you have 2
braces next to each other, which is the escape sequence for a single brace.

--

___
Python tracker 

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



[issue5016] FileIO.seekable() can return False

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Committed in r70352 (py3k), r70353 (3.0). Needs backport to trunk and
2.6, if someone is interested.

--
priority: high -> normal
resolution:  -> accepted
stage: needs patch -> committed/rejected
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



[issue5370] unpickling vs. __getattr__

2009-03-13 Thread Mike Meyer

Mike Meyer  added the comment:

True. But hat's why it was a QAD hack - all I did was make sure it didn't blow 
up on the 
test code, and that it passed the provided unit tests.

It really needs to walk the class tree. So something like  
hasattr(inst.__class__, 
'__setstate__') is more likely to be correct.

And yes, the pickle unit tests apparently don't test the __*state__ routines, 
but that's a 
different bug.

--

___
Python tracker 

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



[issue5047] Remove Monterey support from configure.in

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

You can probably commit this :-)

--
nosy: +pitrou

___
Python tracker 

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



[issue5370] unpickling vs. __getattr__

2009-03-13 Thread Gabriel Genellina

Gabriel Genellina  added the comment:

Are you sure you uploaded the right patch? I've not tested it, but I 
don't think this actually fixes the reported bug.

__setstate__ is *very* unlikely to be found in the instance's dict, so 
you end up not calling __setstate__ at all.

If no test failed, this may indicate bad test coverage.

--

___
Python tracker 

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



[issue5396] os.read not handling O_DIRECT flag

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I don't think we will try to support O_DIRECT. First, it is a rather
platform-specific flag. Second, Python's memory allocator doesn't allow
specifying an arbitrary alignment value. Third, I don't even think
O_DIRECT can make a positive difference in a Python program (the open()
manpage actually warns against likely performance degradation when using
O_DIRECT).
So I'm closing this bug, sorry.

--
nosy: +pitrou
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



[issue5449] bug fix to prevent io.BytesIO from accepting arbitrary keyword arguments

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +benjamin.peterson, pitrou

___
Python tracker 

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



[issue2396] Backport memoryview object to Python 2.7

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Here is an updated patch removing memory_str.
I know Py_TPFLAGS_HAVE_NEWBUFFER should be documented, but I'm not sure
where and how (I didn't add it in the first place).

--
Added file: http://bugs.python.org/file13325/memview-trunk3.patch

___
Python tracker 

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



[issue5473] round(float, ndigits<0) sometimes rounds to odd

2009-03-13 Thread Mark Dickinson

Mark Dickinson  added the comment:

Actually the negative n case *is* quite different from the positive n,
although I think it's fair to say that the issue 1869 title covers both 
cases fairly well. :)

It's not at all hard to make sure that round(x, -n) correct for -22 <= -n 
<= 0 and any finite x, using the fact that the remainder fmod(x, 10.0**-n) 
is exactly representable as a float.  I'll try to find time to implement 
this before 3.1.  Positive n is still tricky, though.

Anyway, I'm going to close this and fold the discussion into issue 1869.
Thanks for the report!

--
status: pending -> closed

___
Python tracker 

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



[issue2110] Implement __format__ for Decimal

2009-03-13 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Sure, I will take a look.

--

___
Python tracker 

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



[issue2110] Implement __format__ for Decimal

2009-03-13 Thread Mark Dickinson

Changes by Mark Dickinson :


--
resolution: accepted -> 

___
Python tracker 

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



[issue2110] Implement __format__ for Decimal

2009-03-13 Thread Mark Dickinson

Mark Dickinson  added the comment:

Here's a patch to implement the 'n' format specifier for Decimals
(see also issue 5481).

Raymond, could you give this a sanity check?

--
assignee: marketdickinson -> rhettinger
Added file: http://bugs.python.org/file13324/decimal_n_format.patch

___
Python tracker 

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



[issue1611] doctest.testmod gets noisy if called more than once per SystemExit

2009-03-13 Thread R. David Murray

R. David Murray  added the comment:

Nick, is the change you made to Lib/doctest.py, commenting out the print
"*** DocTestRunner.merge:" message, intended to be permanent?  If so, we
can close this bug.

--
nosy: +ncoghlan

___
Python tracker 

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



[issue5392] stack overflow after hitting recursion limit twice

2009-03-13 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
status: pending -> closed

___
Python tracker 

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



[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Tim Golden

Tim Golden  added the comment:

Erik Sandberg wrote:
> Erik Sandberg  added the comment:
> 
> Did you test your code? 

Several times, cutting and pasting into the Python interpreter.
But I missed the fact that you were running Python 2.5

Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC
Type "help", "copyright", "credits" or "license" for m
>>> import subprocess
>>> open ("t(o.bat", "w").write ("echo we are here\n")
>>> subprocess.call (["t(o.bat"])

c:\temp>echo we are here
we are here
0
>>>

Testing under 2.5 shows the issue you describe

However, I doubt very much whether any change would be
made to 2.5 at this point anyway: I think it's in
security-bug-fix-only  mode now. Bizarrely, I can't
see any reason why the behaviour should have changed.
Might even be the runtime it links to.

> (this guess is based on what I read in msdn.com's docs on CreateProcess:
> """To run a batch file, you must start the command interpreter; set
> lpApplicationName to cmd.exe and set lpCommandLine to the following
> arguments: /c plus the name of the batch file.""")

In fact, the shell=True code on Windows basically does:

%COMSPEC% /c args... 

for you behind the scenes. But, as my example above shows,
you don't seem to need to do that in any case.

TJG

--

___
Python tracker 

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



[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg

Erik Sandberg  added the comment:

Did you test your code? I'm pretty sure I tried almost exactly the code
you suggest, and got an error like "'t' is not recognized as an internal
or external command...' (I cannot test this right now as I don't have
access to Windows machines). In order to use shell=False, I think the
correct thing should be something like this, though I haven't tried it
myself yet:
subprocess.call(["/c", "t(o.bat"], executable="cmd.exe")

(this guess is based on what I read in msdn.com's docs on CreateProcess:
"""To run a batch file, you must start the command interpreter; set
lpApplicationName to cmd.exe and set lpCommandLine to the following
arguments: /c plus the name of the batch file.""")

--

___
Python tracker 

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



[issue5481] Expand Decimal.__format__() support to include "n"

2009-03-13 Thread Eric Smith

Changes by Eric Smith :


--
nosy: +eric.smith

___
Python tracker 

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



[issue5392] stack overflow after hitting recursion limit twice

2009-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Committed in r70344.

--
resolution:  -> fixed
status: open -> pending

___
Python tracker 

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



[issue5485] pyexpat has no unit tests for UseForeignDTD functionality

2009-03-13 Thread Jean-Paul Calderone

Jean-Paul Calderone  added the comment:

To clarify, I'll probably work on this patch a bit more later, adding a
few more tests for related behavior.

--

___
Python tracker 

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



[issue5485] pyexpat has no unit tests for UseForeignDTD functionality

2009-03-13 Thread Jean-Paul Calderone

Jean-Paul Calderone  added the comment:

Here's the version I have now.  I don't think it's complete, but it
finishes the test started in the previous patch, and the test passes.

--
Added file: http://bugs.python.org/file13323/use-foreign-dtd.2.patch

___
Python tracker 

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



[issue5485] pyexpat has no unit tests for UseForeignDTD functionality

2009-03-13 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

Can you provide an update patch?

--

___
Python tracker 

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



[issue5486] doc copyedits

2009-03-13 Thread Georg Brandl

Georg Brandl  added the comment:

Applied in r70342, r70343. Thanks very much!

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



[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-03-13 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

> As the documentation section of
> http://docs.python.org/reference/datamodel.html#object.__lt__ needs to
> be updated as well to mark the eventual solution as the recommended easy
> way to provide total ordering.

This is the 2.6 version. What about the 3.0 version in

http://docs.python.org/3.0/reference/datamodel.html#object.__lt__

needs to be updated?

> Raymond's recipe at http://code.activestate.com/recipes/576685/ looks
> more or less complete, do you feel that his posting on the mailing list
> does not count as proposal? I submitted the feature request instead of
> him because I was the one who noticed the problem (as discussed on the
> mailing list) and felt "responsible" to report it here.

I see. So it's a feature request.

--

___
Python tracker 

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



[issue5485] pyexpat has no unit tests for UseForeignDTD functionality

2009-03-13 Thread Jean-Paul Calderone

Jean-Paul Calderone  added the comment:

Thanks, that helped a bunch.  I'm sure it would have taken me a long
time to find SetParamEntityParsing(XML_PARAM_ENTITY_PARSING_ALWAYS). 
Perhaps it would also be good to expand the pyexpat documentation to
cover that method and parameter (unless it's there already and I missed
it, but I don't think so).

--

___
Python tracker 

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



[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Tim Golden

Tim Golden  added the comment:

Erik Sandberg wrote:
> Erik Sandberg  added the comment:
> 
> I experimented further, the only way to run a .bat file whose name
> contains funny characters, seems to be:
> 
> subprocess.call('""f(o.bat""', shell=True)

Well there's a bit of a double-whammy going on here. There's
a long-unfixed bug which doesn't quote parameters to
subprocess under Windows when shell=True:

  http://bugs.python.org/issue2304

but in fact you don't need to set shell=True to run a batch
file anyway:

import subprocess
open ("t(o.bat", "w").write ("echo we are here\n")
subprocess.call (["t(o.bat"])

--
nosy: +tim.golden

___
Python tracker 

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



[issue5485] pyexpat has no unit tests for UseForeignDTD functionality

2009-03-13 Thread Martin v. Löwis

Martin v. Löwis  added the comment:

You need to make two changes:
1. Enable parsing of parameter entities in the first place, e.g. through
SetParamEntityParsing(XML_PARAM_ENTITY_PARSING_ALWAYS)
2. Pass a well-formed document, e.g.
""

--
nosy: +loewis

___
Python tracker 

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



[issue5486] doc copyedits

2009-03-13 Thread DSM

New submission from DSM :

Handful of typos.  Patch against py3k trunk @ r70341.

I left howto/webservers.rst alone, despite a fair number of problems,
'cause it could do with a more serious rewrite than I have time for.

--
assignee: georg.brandl
components: Documentation
files: py3k.typos.diff
keywords: patch
messages: 83524
nosy: dsm001, georg.brandl
severity: normal
status: open
title: doc copyedits
versions: Python 3.1
Added file: http://bugs.python.org/file13322/py3k.typos.diff

___
Python tracker 

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



[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg

Erik Sandberg  added the comment:

I experimented further, the only way to run a .bat file whose name
contains funny characters, seems to be:

subprocess.call('""f(o.bat""', shell=True)

--

___
Python tracker 

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



[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg

Erik Sandberg  added the comment:

argh, it seems that the problem is in how CreateProcess works; exactly
the same error can be provoked from C.

--
Added file: http://bugs.python.org/file13321/parenbug.c

___
Python tracker 

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



[issue5485] pyexpat has no unit tests for UseForeignDTD functionality

2009-03-13 Thread Jean-Paul Calderone

New submission from Jean-Paul Calderone :

Lacking unit tests for this (documented) functionality makes it harder
for alternate Python runtimes to correctly provide it.  Plus, if it's
not tested, it might not work.

I tried to write tests for the feature since I recently used it and
thought it would be pretty straightforward.  However, I failed.  expat
inscrutably refuses to call the external entity ref handler I provided
in my test.  Attached is my attempted, in case anyone feels like helping
complete it.

--
components: Library (Lib), Tests, XML
files: use-foreign-dtd.patch
keywords: patch
messages: 83521
nosy: exarkun
severity: normal
status: open
title: pyexpat has no unit tests for UseForeignDTD functionality
type: feature request
versions: Python 2.7
Added file: http://bugs.python.org/file13320/use-foreign-dtd.patch

___
Python tracker 

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



[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg

Erik Sandberg  added the comment:

I have narrowed down the problem further: The same error happens with
the following code:

import win32process
win32process.CreateProcess(None, 'f(o.bat', None, None, 1, 0, None,
None, win32process.STARTUPINFO())

--

___
Python tracker 

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



[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg

Erik Sandberg  added the comment:

I'm using Python 2.5.1, by the way.

--

___
Python tracker 

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



[issue5484] subprocess.call() fails for .bat files on Windows, if executable path contains parenthesis

2009-03-13 Thread Erik Sandberg

New submission from Erik Sandberg :

When subprocess.call is told to execute a .bat file on Windows, and the
path to the batch file is given as an absolute path, and the path
includes a left parenthesis ('('), then the call fails with a message
similar to the following; it appears that the parenthesis is incorrectly
quoted.

'c:\tmp\f' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
  File "parenbug.py", line 7, in 
subprocess.check_call(os.path.join(os.getcwd(), bat))
  File "c:\Python25\lib\subprocess.py", line 461, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'c:\tmp\f(o.bat' returned
non-zero exit status 1

I have reproduced this on Windows XP.

--
components: Library (Lib), Windows
files: parenbug.py
messages: 83518
nosy: sandberg
severity: normal
status: open
title: subprocess.call() fails for .bat files on Windows, if executable path 
contains parenthesis
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file13319/parenbug.py

___
Python tracker 

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



[issue5483] [PATCH]Add FastDbfilenameShelf: shelf nerver sync cache even when writeback=True

2009-03-13 Thread Zhigang Wang

Zhigang Wang  added the comment:

Add some errata of the patch: add the new class to __all__.

--
Added file: http://bugs.python.org/file13318/fast_shelf-v2.patch

___
Python tracker 

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



[issue5483] [PATCH]Add FastDbfilenameShelf: shelf nerver sync cache even when writeback=True

2009-03-13 Thread Zhigang Wang

New submission from Zhigang Wang :

shelf without writeback=True is too slow, while shelves with
writeback=True takes too much time to close. And even worse, these codes
can not run:

$ cat test_shelve.py
#!/usr/bin/env python

import shelve

store = shelve.open("/tmp/shelve.db", writeback=True)

class Test(object):
pass

def main():
store["a"] = Test()

if __name__ == '__main__':
main()

$ python test_shelve.py 
Exception cPickle.PicklingError: "Can't pickle :
it's not the same object as __main__.Test" in  ignored

With this module, we can make it to run.

I think it's worth add this function to shelve. We can achieve great
improvement with some avoidable limitations.

The other approach to add this function is to add a extra option the
shelve.open(). We can discuss for which is better.

--
components: Library (Lib)
files: fast_shelf.patch
keywords: patch
messages: 83516
nosy: zhigang
severity: normal
status: open
title: [PATCH]Add FastDbfilenameShelf: shelf nerver sync cache even when 
writeback=True
type: feature request
versions: Python 3.1
Added file: http://bugs.python.org/file13317/fast_shelf.patch

___
Python tracker 

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



[issue5223] infinite recursion in PyErr_WriteUnraisable

2009-03-13 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

yes, let's add this change to the backport.

--

___
Python tracker 

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



[issue5474] distutils produces invalid RPM packages of prerelease python packages

2009-03-13 Thread Rudd-O

Rudd-O  added the comment:

brown paper bug in the last lexic patch

--
Added file: 
http://bugs.python.org/file13316/python-2.4-distutils-bdist_rpm-rpmversion-lexicalorder.patch

___
Python tracker 

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



[issue5482] RFC: improve distutils bdist_rpm so it builds pure python modules as single packages that works across architectures

2009-03-13 Thread Rudd-O

New submission from Rudd-O :

Hello, guys.  I am looking for feedback on the topic which I am going to
lay out.  First, sys.path:

---
# python2.4
>>> import sys
>>> sys.path
['', '/home/rudd-o', '/usr/lib64/python24.zip', '/usr/lib64/python2.4',
'/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk',
'/usr/lib64/python2.4/lib-dynload',
'/usr/lib64/python2.4/site-packages',
'/usr/lib64/python2.4/site-packages/Numeric',
'/usr/lib64/python2.4/site-packages/PIL',
'/usr/lib64/python2.4/site-packages/gtk-2.0',
'/usr/lib/python2.4/site-packages', '/usr/lib64/site-python',
'/usr/lib/site-python']
--

Now: Currently, bdist_rpm target builds RPMs that install to
/usr/lib(64)/python2.X/site-packages/.  This is wasteful and inefficient
in the case of pure python modules for the following reasons:

1. It necessitates a rebuild of the python modules for at least 2
architectures -- 64-bit and 32-bit, since they go to different
directories.  Worst part is, the packages themselves are
indistinguishable by name (they are built as Noarch in all
architectures) so a package built in 64bit cannot function in 32bit BUT
it is *installable* by RPM.
2. It necessitates a rebuild for every python minor version out there,
2.4, 2.5, 2.6.  This is also problematic because packages need to be
rebuilt for every distribution release out there, instead of being able
to build a single RPM that works across distro releases (or, the holy
grail, across distros altogether).

Now, I have familiarized myself with distutils enough that I can make a
quick patch that

- detects if the package is a pure python module
- ensures that the install-purelib directive in the [install] section of
setup.cfg is absent

and if both conditions are present, then the package is automatically
installed into /usr/lib/site-python.

The benefits are clear:

- only a single RPM needs to be built across distro versions and
architectures
- it enables cheese shop packages to be quickly built on a machine and
then installed in another
- it eliminates the need for the tedious process of writing custom spec
files
- packages built this way can be loaded and run by virtually all 2.x
python interpreters out there right now
- it would be possible to even build python RPMs that work across
distributions

This patch is no more than a two-liner, and I am looking for input, to
see if someone agrees, or not, to flesh out any pitfalls before going
in.  So do your best and provide sensible reasons why I should not do
this, or else I will do it and submit a patch.

Clock's ticking.

--
assignee: tarek
components: Distutils
messages: 83513
nosy: Rudd-O, tarek
severity: normal
status: open
title: RFC: improve distutils bdist_rpm so it builds pure python modules as 
single packages that works across architectures
type: feature request

___
Python tracker 

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



[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-03-13 Thread Neyro

Neyro  added the comment:

I have the same problem with a program I'm writing.
The attached script is made using parts of it's code.
The logger is set up using a configuration file.

By the way, the error is:

Traceback (most recent call last):
  File "C:\Python26\lib\logging\handlers.py", line 74, in emit
if self.shouldRollover(record):
  File "C:\Python26\lib\logging\handlers.py", line 146, in shouldRollover
self.stream.seek(0, 2)  #due to non-posix-compliant Windows feature
ValueError: I/O operation on closed file

--
nosy: +neyro
versions: +Python 2.6
Added file: http://bugs.python.org/file13315/loggertest.zip

___
Python tracker 

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



[issue5236] time.strptime should reject bytes arguments on Py3

2009-03-13 Thread Tennessee Leeuwenburg

Changes by Tennessee Leeuwenburg :


--
stage: test needed -> patch review

___
Python tracker 

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



[issue5474] distutils produces invalid RPM packages of prerelease python packages

2009-03-13 Thread Rudd-O

Rudd-O  added the comment:

This patch autodetects dependencies based on the earlier patch and egg
metadata, if setuptools is importable.

--
Added file: 
http://bugs.python.org/file13314/python-2.4-distutils-bdist_rpm-autodeps.patch

___
Python tracker 

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



[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2009-03-13 Thread Mart Sõmermaa

Mart Sõmermaa  added the comment:

> Then why was this classified as a documentation issue?

As the documentation section of
http://docs.python.org/reference/datamodel.html#object.__lt__ needs to
be updated as well to mark the eventual solution as the recommended easy
way to provide total ordering.

> And why did Mart Sömmermaa submit it, and not Raymond? AFAICT, Raymond
said he would propose something when it's ready (which I assume it
currently isn't).

Raymond's recipe at http://code.activestate.com/recipes/576685/ looks
more or less complete, do you feel that his posting on the mailing list
does not count as proposal? I submitted the feature request instead of
him because I was the one who noticed the problem (as discussed on the
mailing list) and felt "responsible" to report it here.

--

___
Python tracker 

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