[issue2736] datetime needs and epoch method

2008-05-11 Thread Miki Tebeka

Miki Tebeka [EMAIL PROTECTED] added the comment:

I think the name is not good, should be toepoch or something like that.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2736
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2775] Implement PEP 3108

2008-05-11 Thread Andrews Patrick Rocha Medina

Andrews Patrick Rocha Medina [EMAIL PROTECTED] added the comment:

The files Python/compile.c and Python/pythonrun.c depends of the
_symtable (Python/symtable.c and Include/symtable.h).

What I do for remove _symtable in py3k?

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2775
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2775] Implement PEP 3108

2008-05-11 Thread Humberto Diogenes

Humberto Diogenes [EMAIL PROTECTED] added the comment:

Andrews, this discussion would be more appropriate to the mailing list, 
but anyway: I believe you're mixing things up. When PEP 3108 says remove 
symtable/_symtable, it must be talking only about symtable.py and 
symtablemodule.c, not symtable.[ch] (used by the compiler).

--
nosy: +hdiogenes

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2775
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1267629] pdb: implement until,fix for 1248119

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Benjamin: please reformat to PEP 8, then this is okay to check in. Don't
forget docs and NEWS updates.

--
assignee:  - benjamin.peterson
nosy: +benjamin.peterson, georg.brandl
resolution:  - accepted

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1267629
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2763] A socket example code shown in doc doesn't work on FreeBSD

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Duplicate of #2742.

--
resolution:  - duplicate
status: open - closed
superseder:  - example code does not work

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2763
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2742] example code does not work

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Applied the documentation patch in r63039. Thanks for your efforts!

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2742
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2816] Quote-type recognition bug

2008-05-11 Thread Chester

New submission from Chester [EMAIL PROTECTED]:

Let's make an intentional syntax error...

 print Testing\
SyntaxError: EOL while scanning single-quoted string


Please focus on the part of the error message that states while
scanning single-quoted string. How can Python claim it scanned a
single-quoted string when I fed it with a double-quoted string? That is
a quote type recognition bug in Python which should be fixed.

The error message in this case should, however, be:

SyntaxError: EOL while scanning double-quoted string

--
messages: 66607
nosy: chester
severity: normal
status: open
title: Quote-type recognition bug
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2816
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2816] Quote-type recognition bug

2008-05-11 Thread Chester

Chester [EMAIL PROTECTED] added the comment:

I have e-mailed Guido van Rossum about this. He replied: Good find.
Please file a bug on bugs.python.org. If that wasn't a bug, he wouldn't
have said that, would he?

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2816
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2816] Quote-type recognition bug

2008-05-11 Thread Chester

Changes by Chester [EMAIL PROTECTED]:


--
versions: +Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1, Python 2.2.2, 
Python 2.2.3, Python 2.3, Python 2.4, Python 2.5, Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2816
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2816] Quote-type recognition bug

2008-05-11 Thread Chester

Changes by Chester [EMAIL PROTECTED]:


--
versions: +3rd party

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2816
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-11 Thread Martin McNickle

Changes by Martin McNickle [EMAIL PROTECTED]:


Added file: http://bugs.python.org/file10280/add_header_complete.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2756
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue756982] mailbox should use email not rfc822

2008-05-11 Thread Humberto Diogenes

Changes by Humberto Diogenes [EMAIL PROTECTED]:


--
keywords: +patch
Added file: http://bugs.python.org/file10279/mailbox-replace_rfc822.patch


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue756982

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



[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-11 Thread Martin McNickle

Changes by Martin McNickle [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file10201/add_header_complete.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2756
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2816] Quote-type recognition bug

2008-05-11 Thread Chester

Changes by Chester [EMAIL PROTECTED]:


--
versions: +Python 3.0 -Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2816
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2816] Quote-type recognition bug

2008-05-11 Thread Robert Lehmann

Robert Lehmann [EMAIL PROTECTED] added the comment:

It seems single-quoted doesn't mean the actual quotation sign used but
rather how many you used. Compare the multiline triple quote syntax:

$ cat foo.py
bar
$ python foo.py
  File foo.py, line 3

^
SyntaxError: EOF while scanning triple-quoted string

This shouldn't read sextuple-quoted string, should it?

--
nosy: +lehmannro

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2816
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue756982] mailbox should use email not rfc822

2008-05-11 Thread Humberto Diogenes

Changes by Humberto Diogenes [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file10272/mailbox.py.patch2


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue756982

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



[issue2736] datetime needs and epoch method

2008-05-11 Thread Neil Muller

Neil Muller [EMAIL PROTECTED] added the comment:

datetime has fromtimestamp already, so using totimestamp keeps naming
consistency (see toordinal and fromordinal).

--
nosy: +Neil Muller

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2736
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-05-11 Thread Simon Cross

Changes by Simon Cross [EMAIL PROTECTED]:


--
nosy: +hodgestar

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1491
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2816] Quote-type recognition bug

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

This is not a bug in my opinion -- Robert has stated why.

However, since you contacted Guido, let him decide. :)

--
assignee:  - gvanrossum
nosy: +georg.brandl, gvanrossum

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2816
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2812] Document property.getter/setter/deleter etc

2008-05-11 Thread Georg Brandl

New submission from Georg Brandl [EMAIL PROTECTED]:

Changed a bit and committed as r63043.

--
resolution:  - accepted
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2812
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2814] Remove old classes from mailbox module

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, committed patch as r63045.

--
nosy: +georg.brandl
resolution:  - accepted
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2814
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue756982] mailbox should use email not rfc822

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

I removed the old classes in 3k. There remains one usage of rfc822, as
the default factory of Maildir. It's replaced by None in the patch
here; is that safe to do?

--
nosy: +georg.brandl


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue756982

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



[issue2709] tk.rst possibly wrong ?

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

It refers to the docs in the Python docs. I tried to clarify that in r63052.

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2709
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2147] int operations no longer overflow

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

OK, I think I fixed the remaining locations in r63055.

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2147
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2800] make htmlhelp creates python30a5.chm but msi.py expects pydoc.chm

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Is there a way to run the tree Python?

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2800
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2129] Link error of gethostbyaddr and gethostname in Python Manuals (the chm file)

2008-05-11 Thread Georg Brandl

Changes by Georg Brandl [EMAIL PROTECTED]:


--
status: pending - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2129
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2741] documentation -- do serversockets work with ipv6

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Okay, this should now be clearer in r63057.

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2741
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2721] unittest.makeSuite undocumented and obsolete - but what to use instead?

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

The replacement is TestLoader().loadTestsFromTestCase(), and it's
already in a prominent place in the docs:


Instead of :func:`unittest.main`, there are other ways to run the tests
with a
finer level of control, less terse output, and no requirement to be run
from the
command line.  For example, the last two lines may be replaced with::

   suite =
unittest.TestLoader().loadTestsFromTestCase(TestSequenceFunctions)
   unittest.TextTestRunner(verbosity=2).run(suite)


Closing as works for me.

--
resolution:  - works for me
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2721
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2659] textwrap handling of hyphenation

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks for the patch! Reviewed and committed as r63053.

--
resolution:  - accepted
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2659
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2452] inaccuracy in httplib timeout documentation

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, fixed in r63058.

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2452
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2008-05-11 Thread Neil Muller

Neil Muller [EMAIL PROTECTED] added the comment:

This patch combines the two earlier patches, and also updates the
docstrings and os.rst to reflect the changed behaviour.

Added file: http://bugs.python.org/file10281/posixmodule_2.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2768
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2709] tk.rst possibly wrong ?

2008-05-11 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

After talking to Guilherme on IRC, I'd like to propose this new patch.

--
keywords: +patch
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file10282/tk_doc.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2709
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2817] Make Python create a tuple with one element in a clean way

2008-05-11 Thread Chester

New submission from Chester [EMAIL PROTECTED]:

To create a tuple with one element, you need to do this:

 my_tuple = (1,)# Note the trailing comma after the value 1
 type(my_tuple)
type 'tuple'


But if you do this

 my_tuple = (1)
 type(my_tuple)
type 'int'

you don't get a tuple. I thought that just putting a value inside ( )
would make a tuple. Apparently that is not the case. I hate ugly code
so it would be clean if Python would convert anything put into ( ) to
be a tuple, even if just one value was put in (without having to use
that ugly looking comma with no value after it).

--
messages: 66626
nosy: chester
severity: normal
status: open
title: Make Python create a tuple with one element in a clean way
type: feature request
versions: 3rd party, Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1, 
Python 2.2.2, Python 2.2.3, Python 2.3, Python 2.4, Python 2.5, Python 2.6, 
Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2817
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2817] Make Python create a tuple with one element in a clean way

2008-05-11 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

But we need parentheses for grouping!

--
nosy: +benjamin.peterson

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2817
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2818] pulldom cannot handle xml file with large external entity properly

2008-05-11 Thread Luyang Han

New submission from Luyang Han [EMAIL PROTECTED]:

when use xml.dom.pulldom module to parse a large xml file, if all the 
information is saved in one xml file, the module can handle it in the 
following way without construction the whole DOM:

events = xml.dom.pulldom.parse('file.xml')
for (event, node) in events:
process(event, node)

But if 'file.xml' contains some large external entities, for example:

!ENTITY file_external SYSTEM others.xml
bodyfile_external;/body

Then using the same python snippet above leads to enormous memory 
usage. I did not perform a concrete benchmark, in one case a 3M 
external xml file drained about 1 GB memory. I think in this case it 
might be the whole DOM structure is constructed.

--
components: XML
messages: 66628
nosy: hanselda
severity: normal
status: open
title: pulldom cannot handle xml file with large external entity properly
type: resource usage
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2818
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1792] o(n*n) marshal.dumps performance for largish objects with patch

2008-05-11 Thread A.M. Kuchling

A.M. Kuchling [EMAIL PROTECTED] added the comment:

I've applied Facundo's version of the patch in r63059.

--
nosy: +akuchling
resolution:  - accepted
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1792
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2709] tk.rst possibly wrong ?

2008-05-11 Thread Guilherme Polo

Changes by Guilherme Polo [EMAIL PROTECTED]:


Added file: http://bugs.python.org/file10284/othergui.rst.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2709
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1858] Make .pypirc handle multiple servers

2008-05-11 Thread A.M. Kuchling

A.M. Kuchling [EMAIL PROTECTED] added the comment:

Brett backed out my commit in r63002 because I forgot to include the
distutils.config module.  Re-committed in r63014 and r63060.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1858
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1267629] pdb: implement until,fix for 1248119

2008-05-11 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Reviewed and committed in r63061

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1267629
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1267629] pdb: implement until,fix for 1248119

2008-05-11 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


--
status: open - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1267629
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2817] Make Python create a tuple with one element in a clean way

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

That's an absolute no-starter. Not the parentheses make the tuple, the
commas do. The empty tuple is the exception, not the rule.

--
nosy: +georg.brandl
resolution:  - rejected
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2817
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2709] tk.rst possibly wrong ?

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, committed both patches in r63066.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2709
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2816] Quote-type recognition bug

2008-05-11 Thread Guido van Rossum

Guido van Rossum [EMAIL PROTECTED] added the comment:

As the term single-quoted string is clearly ambiguous, I propose to
change the error message to just string (or perhaps string literal,
but then you'd have to change the triple-quoted message to
triple-quoted string literal too for consistency).

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2816
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2816] Quote-type recognition bug

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

OK, done so in r63068.

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2816
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1326] internal zipimport.zipimporter feature untested

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Committed the test and added new docs in r63067. Thanks!

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1326
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2008-05-11 Thread Georg Brandl

Changes by Georg Brandl [EMAIL PROTECTED]:


--
components: +IDLE

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2710
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2787] Patch to flush unittest output

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, committed patch as r63069.

--
nosy: +georg.brandl
resolution:  - accepted
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2787
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2803] heapq.heappush called with too few arguments in sched.py

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Thanks, fixed in r63070, r63071 (2.5).

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

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2803
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2819] Full precision summation

2008-05-11 Thread Jean Brouwers

Changes by Jean Brouwers [EMAIL PROTECTED]:


Added file: http://bugs.python.org/file10286/mathmodule.c.2.6a3.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2819
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2819] Full precision summation

2008-05-11 Thread Jean Brouwers

Changes by Jean Brouwers [EMAIL PROTECTED]:


Added file: http://bugs.python.org/file10287/test_math_sum1.py

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2819
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2816] Quote-type recognition bug

2008-05-11 Thread Chester

Chester [EMAIL PROTECTED] added the comment:

It would be better to say

End of line while scanning string (string, line 1)

and

End of f... while scanning multi-line string (string, line 1)


These messages really need to be clear, so putting EOF for example
(which I really don't know what it stands for) is really mind-bending.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2816
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2800] make htmlhelp creates python30a5.chm but msi.py expects pydoc.chm

2008-05-11 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

 Is there a way to run the tree Python?

Currently, that should be possible, as the documentation is
built after Python. However, in the long term, cross-compilation
needs to be considered (to AMD64 on an x86 machine); then you
can't run the tree python on the build machine.

I would prefer if there was a makefile target that invoked
hhc, from %ProgramFiles%\HTML Help Workshop\hhc.exe directly.
It's guaranteed that make (i.e. cygwin make) will find a Python
interpreter (i.e. cygwin python2.5). Then buidmsi could just
invoke that target directly after htmlhelp.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2800
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2817] Make Python create a tuple with one element in a clean way

2008-05-11 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

Just in case the previous comments aren't clear: Would you rather see

py (3+4)*5
35

or

py (3+4)*5
(7, 7, 7, 7, 7)

--
nosy: +loewis

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2817
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2775] Implement PEP 3108

2008-05-11 Thread Guilherme Polo

Guilherme Polo [EMAIL PROTECTED] added the comment:

I'm working on the new package tkinter and dialogs merging where
appropriate.

--
nosy: +gpolo

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2775
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2809] string docstring doesn't mention that ' '.split() != ' '.split(' ')

2008-05-11 Thread David Fraser

David Fraser [EMAIL PROTECTED] added the comment:

I don't think this really addresses the issue properly...

The original docstring read:
+Note that not specifying sep (or using None) will cause\n\
+empty strings to be removed from the output. thus ' '.strip()\n\
+returns []. while ' '.strip(' ') returns ['', ''].
(Obviously strip is wrong here, it should be split)

The committed docstring reads:
+If sep is not specified or is None, any whitespace string is a
separator and leading and trailing whitespace is stripped before splitting.

But the point is not just that leading and trailing whitespace is
stripped; ''.strip() returns [] while ''.strip(' ') returns ['']. This
is probably the most unexpected corner case; it seems to be better to
say that empty strings are removed from the output.

--
nosy: +davidfraser

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2809
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2820] Remove mac modules

2008-05-11 Thread Benjamin Peterson

New submission from Benjamin Peterson [EMAIL PROTECTED]:

I've removed the Mac modules. The Bazaar branch is at
http://code.python.org/python/users/benjamin.peterson/mac_module_removal/.

--
assignee: brett.cannon
components: Extension Modules
messages: 66648
nosy: benjamin.peterson, brett.cannon
priority: critical
severity: normal
status: open
title: Remove mac modules
type: feature request
versions: Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2820
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2008-05-11 Thread Daniel Stutzbach

Daniel Stutzbach [EMAIL PROTECTED] added the comment:

After several failed attempts at making a test case, and stepping
through C code with a debugger, I see that my initial diagnose is
quite wrong.  RegQueryInfoKey *does* return the sizes in units of
bytes (even though the Microsoft documentation says otherwise).  My
apologies.

I do still have a stack trace from an end-user of my python2.5-based
product, showing that _winreg.EnumValue raises:
WindowsError: [Error 234] More data is available

The application reliably crashes on start-up for this user, when
trying to read some registry entries written by another program and
hitting the above exception.

Unfortunately, I have been unable to reproduce the problem locally.  I
tried a variety of Unicode characters (including some that encode to 4
bytes), and that didn't raise an exception.  I also tried putting some
very long data strings (more than 64kb) into the registry, and that
worked fine too (even though the Microsoft documentation says the ANSI
version *should* return the above exception!).

I'm going to try building a custom PyEnumValue that will dynamically
grow the buffer size when that error occurs.  I'll report back on how
that works out for the end user.

In the meantime, I'm open to other theories on what might cause
RegEnumValue to fail with that error.

The end user is running Vista, if it matters.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2810
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2817] Make Python create a tuple with one element in a clean way

2008-05-11 Thread Chester

Chester [EMAIL PROTECTED] added the comment:

Martin I see the point now. I appologize for not having the clear head
of seeing the possible damage that my feature request would make. I take
my request back.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2817
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2821] unittest.py sys.exit error

2008-05-11 Thread Adam Getchell

New submission from Adam Getchell [EMAIL PROTECTED]:

Picking the canonical example of unit test:

import random
import unittest

class TestSequenceFunctions(unittest.TestCase):

def setUp(self):
self.seq = range(10)

def testshuffle(self):
# make sure the shuffled sequence does not lose any elements
random.shuffle(self.seq)
self.seq.sort()
self.assertEqual(self.seq, range(10))

def testchoice(self):
element = random.choice(self.seq)
self.assert_(element in self.seq)

def testsample(self):
self.assertRaises(ValueError, random.sample, self.seq, 20)
for element in random.sample(self.seq, 5):
self.assert_(element in self.seq)

if __name__ == '__main__':
unittest.main()

Gives the following error:

 
...
--
Ran 3 tests in 0.003s

OK
Traceback (most recent call last):
  File C:\Projects\Python\randomunittest.py, line 25, in module
unittest.main()
  File C:\Python25\lib\unittest.py, line 768, in __init__
self.runTests()
  File C:\Python25\lib\unittest.py, line 806, in runTests
sys.exit(not result.wasSuccessful())
SystemExit: False

The error lies in the following code snippet:

def runTests(self):
if self.testRunner is None:
self.testRunner = TextTestRunner(verbosity=self.verbosity)
result = self.testRunner.run(self.test)
sys.exit(not result.wasSuccessful())

--
components: Library (Lib)
files: unittest.py
messages: 66651
nosy: acgetchell
severity: normal
status: open
title: unittest.py sys.exit error
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file10289/unittest.py

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2821
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2822] Quote-type recognition bug [badly fixed last time]

2008-05-11 Thread Chester

New submission from Chester [EMAIL PROTECTED]:

I have a suggestion that would make the
http://svn.python.org/view?rev=63068view=rev look ever more clear. It
would be better to have this kind of error messages:

expect = End of line while scanning string (string, line 1)

and

expect End of f... while scanning multi-line string (string, line 1)


These messages really need to be clear, so putting EOF for example
(which I really don't know what it stands for) is really mind-bending.
But if changing EOL and EOF to their actual meaning would cause some
problems, then this look nice as well:

expect = EOL while scanning string (string, line 1)

and

expect EOF while scanning multi-line string (string, line 1)

The first two proposals look more readable because I think that many
people don't know what EOF stands for (they can guess for EOL though,
but EOF is just mind-bending and wild guessing). I Googled and found no
answer, so I actually don't know what that error message is saying to me.

Also, it would be good, however, to remove the 'triple-quoted string
literal' and name that simply as 'multi-line string'. Simple is better
than complex. :)

Mister Rossum, please give a go on that. I kindly ask you to choose from
the above two options. Your proposal on that was made, yes... but I find
the 'multi-line string' even better than 'triple-quoted string literal'.

I would love to provide a patch but I don't know how it's made.

--
messages: 66652
nosy: chester, gvanrossum
severity: normal
status: open
title: Quote-type recognition bug [badly fixed last time]
versions: 3rd party, Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1, 
Python 2.2.2, Python 2.2.3, Python 2.3, Python 2.4, Python 2.5, Python 2.6, 
Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2822
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2822] Quote-type recognition bug [badly fixed last time]

2008-05-11 Thread Guido van Rossum

Guido van Rossum [EMAIL PROTECTED] added the comment:

Stop bothering us.

--
resolution:  - invalid
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2822
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2819] Full precision summation

2008-05-11 Thread Raymond Hettinger

Raymond Hettinger [EMAIL PROTECTED] added the comment:

This looks pretty good at first glance.  Will review more throughly 
later this week.  It does need docs and unittests.

--
assignee:  - rhettinger

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2819
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue756982] mailbox should use email not rfc822

2008-05-11 Thread Humberto Diogenes

Humberto Diogenes [EMAIL PROTECTED] added the comment:

 rfc822 is replaced by None in the patch here; is that safe to do?

Yes. That's what mailbox documentation says:

Parameter factory is a callable object that accepts a file-like message 
representation [...] and returns a custom representation. If factory is 
None, MaildirMessage is used as the default message representation.


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue756982

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



[issue2823] Report bug links

2008-05-11 Thread anatoly techtonik

New submission from anatoly techtonik [EMAIL PROTECTED]:

It would be convenient to use links in the bottom of documentation pages
for bugreporting that directly connect to bugtracker search form. I.e.
Report bug on this page and Report bug in this module.

--
assignee: georg.brandl
components: Documentation, Documentation tools (Sphinx)
messages: 66657
nosy: georg.brandl, techtonik
severity: normal
status: open
title: Report bug links

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2823
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2823] Report bug links

2008-05-11 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

-1. This would make a fairly pessimistic view of Python, making it sound
as if reporting a bug is a primary thing that one might to do with it.

--
nosy: +loewis

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2823
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2802] str.format() :n integer output

2008-05-11 Thread Eric Smith

Eric Smith [EMAIL PROTECTED] added the comment:

Implemented in 2.6 as r63078.  I'll port this to py3k shortly.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2802
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2775] Implement PEP 3108

2008-05-11 Thread Guilherme Polo

Guilherme Polo [EMAIL PROTECTED] added the comment:

Patch regarding the move to tkinter package added.

What this patch does


* Moved lib-tk to tkinter and renamed modules according to PEP 3108
* Merged tkFileDialog into filedialog 
* Merged tkSimpleDialog into simpledialog 
* Updated imports in pydoc
* Updated imports in idlelib
* Updated imports in Tools and Demos
* Changed lib-tk to tkinter at Makefile.pre.in
* Removed TKPATH from Modules/Setup.dist
* Removed references of lib-tk at PC/

What has to be done
---

* Update iss script at PC/ to change lib-tk to tkinter
* Update docs
* stub modules ?

Added file: http://bugs.python.org/file10290/tkinter_package_and_fixes.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2775
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2824] zipfile to handle duplicate files in archive

2008-05-11 Thread anatoly techtonik

New submission from anatoly techtonik [EMAIL PROTECTED]:

ZipFile allows to add the same file to archive twice. I bet it is not
intended behavior for many users who would like to either replace file
inside of archive or get runtime warning about duplicate file to be
added. http://code.google.com/p/gvn/issues/detail?id=63


from zipfile import ZipFile

zt=ZipFile(ziptest.zip,w)
zt.write(ziptest.py)
zt.write(ziptest.py)
zt.close()

--
components: Extension Modules
messages: 1
nosy: techtonik
severity: normal
status: open
title: zipfile to handle duplicate files in archive
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2824
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2378] UnboundLocalError when trying to raise exceptions inside execfile

2008-05-11 Thread Nikolas Coukouma

Nikolas Coukouma [EMAIL PROTECTED] added the comment:

I can't reproduce this with r63075...

--
nosy: +nikolasco

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2378
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2819] Full precision summation

2008-05-11 Thread Mark Dickinson

Mark Dickinson [EMAIL PROTECTED] added the comment:

Some comments/questions:

(1) It seems wasteful to wrap every addition in PyFPE_START/END_PROTECT, 
and to check for NaNs and infinities after every addition.  I'd wrap the 
whole thing in a single PyFPE_START/END_PROTECT, replace _math_sum_add 
with an inline addition, and just let NaNs and Infs sort themselves out.

If the result comes out finite (as it surely will in almost all 
applications), then all the summands were necessarily finite and there's 
nothing more to do.  If the result comes out as an infinity or NaN, you 
need to decide whether it's appropriate to return a NaN, an infinity, or 
to raise OverflowError or ValueError.  I'm not sure it's worth trying to 
do the right thing for all special value cases, but if you do want to 
follow 'spirit of IEEE 754' rules for special values, they should look 
something like this:

  (1) if the summands include a NaN, return a NaN
  (2) else if the summands include infinities of both signs, raise
  ValueError,
  (3) else if the summands include infinities of only one sign, return
  infinity with that sign,
  (4) else (all summands are finite) if the result is infinite, raise
  OverflowError.  (The result can never be a NaN if all summands
  are finite.)

Note that some sums involving overflow won't be computed correctly:  
e.g. [1e308, 1e308, -1e308] will likely sum to infinity instead of
returning 1e308.  I don't see any easy way around this, and it's 
probably not worth worrying about.

(2) The algorithm is only guaranteed to work correctly assuming IEEE 754 
semantics.  Python currently doesn't insist on IEEE 754 floating point, 
so what should happen on non IEEE-754 machines?

(3) Rather than duplicating the math module code in cmathmodule.c, why 
not have the complex version simply sum real parts and imaginary parts 
separately, using a version of the code that's already in mathmodule.c?

--
nosy: +marketdickinson

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2819
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2825] Quote-type recognition bug [got a patch!]

2008-05-11 Thread Chester

New submission from Chester [EMAIL PROTECTED]:

This is a patch I made to make this messages clear now. I hope you like it.

--
files: test_eof.patch
keywords: patch
messages: 4
nosy: chester
severity: normal
status: open
title: Quote-type recognition bug [got a patch!]
Added file: http://bugs.python.org/file10291/test_eof.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2825
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2378] UnboundLocalError when trying to raise exceptions inside execfile

2008-05-11 Thread Pedro Werneck

Pedro Werneck [EMAIL PROTECTED] added the comment:

I get it with r63075, r63085, on Linux.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2378
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2819] Full precision summation

2008-05-11 Thread Mark Dickinson

Mark Dickinson [EMAIL PROTECTED] added the comment:

One more question:

What are the use cases for an exact summation algorithm?  That is, in what 
situations does one care about exactness rather than simply accuracy?  I 
know that loss of accuracy is a problem in things like numeric integration 
routines, but something like Kahan summation (faster and simpler, but not 
exact) usually takes care of that.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2819
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue756982] mailbox should use email not rfc822

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Removed the last rfc822 reference from 3k's mailbox.py in r63091.

--
resolution:  - fixed
status: open - closed


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue756982

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



[issue2825] Quote-type recognition bug [got a patch!]

2008-05-11 Thread Chester

Changes by Chester [EMAIL PROTECTED]:


--
nosy: +gvanrossum
versions: +3rd party, Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1, 
Python 2.2.2, Python 2.2.3, Python 2.3, Python 2.4, Python 2.5, Python 2.6, 
Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2825
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2809] string docstring doesn't mention that ' '.split() != ' '.split(' ')

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Okay, r63092 should satisfy you then. :)

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2809
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2250] rlcompleter raises Exception on bad input

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Committed code and doc patches as r63094. Thanks!

--
nosy: +georg.brandl
resolution:  - accepted
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2250
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2413] os.strerror does not check for out of range argument

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

IMO, the current behavior is the least problematic. It also mirrors the
rest of Python's posix-wrapping calls: if something usable is returned,
use it; if NULL is returned, raise an error.

For most people, Unknown error XXX or Value error: strerror()
argument out of range won't be much different in terms of user experience.

Rejecting this patch.

--
nosy: +georg.brandl
resolution:  - rejected
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2413
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2802] str.format() :n integer output

2008-05-11 Thread Eric Smith

Eric Smith [EMAIL PROTECTED] added the comment:

Implemented in 3.0 as r63093.  I'm closing this issue.

I added the C code that does the grouping insertion as
_PyString_InsertThousandsGrouping and _PyUnicode_InsertThousandsGrouping
(in 3.0).  This might be useful to others, although the API is fairly
complicated.

Mark Dickinson: For Decimal, you can probably get what you need from
Lib/locale.py, although the function _group() is private.

--
resolution:  - fixed
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2802
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue756982] mailbox should use email not rfc822

2008-05-11 Thread Humberto Diogenes

Humberto Diogenes [EMAIL PROTECTED] added the comment:

Georg, any special reason for not removing rfc822 references from 
test_mailbox? That section of the patch was not merged.


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue756982

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



[issue756982] mailbox should use email not rfc822

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Okay, removed that too in r63096.


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue756982

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



[issue2535] duplicate Misc.lower

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Committed as r63097.

--
nosy: +georg.brandl
resolution:  - accepted
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2535
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2826] safe_substitute() and substitute()

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

First of all, you don't say which type these methods belong to. I assume
you mean string.Template.

What good would that be? Those extra 5 characters to type shouldn't be
the problem.

Many template strings have only defined keys, and it is a programming
error if a key is not given or misspelled in the template. In this case,
substitute() is the right function.

Rejecting this RFE.

--
nosy: +georg.brandl -gvanrossum
resolution:  - rejected
status: open - closed
type:  - feature request
versions:  -3rd party, Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1, 
Python 2.2.2, Python 2.2.3, Python 2.3, Python 2.4, Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2826
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2814] Remove old classes from mailbox module

2008-05-11 Thread Humberto Diogenes

Humberto Diogenes [EMAIL PROTECTED] added the comment:

I think we should add a deprecation warning for those classes in 2.6, 
right?

As we're not removing the whole module, what's the right place to put 
that? On the __init__ method of each class?

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2814
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2814] Remove old classes from mailbox module

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

I added a deprecation notice to the docs. That should be enough.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2814
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2821] unittest.py sys.exit error

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Can you elaborate how you get the printed exception? When running your
code as a script under 2.5 or trunk, I don't get such a message.

--
nosy: +georg.brandl

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2821
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2824] zipfile to handle duplicate files in archive

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

I think a warning would be sensible here. The behavior is certainly not
what I would expect.

--
nosy: +alanmcintyre, georg.brandl

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2824
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1649238] potential clash with C++ in ceval.h

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Lowering priority.

--
nosy: +georg.brandl
priority: normal - low

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1649238
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16)

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Won't this present backwards-compatibility problems if non-ASCII str
content is written?

--
nosy: +georg.brandl

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1470548
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2043] test_cl.py converted to unittest

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

test_cl was already changed not to run as an import side-effect; I don't
think unittest is necessary here.

--
nosy: +georg.brandl
resolution:  - rejected
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2043
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1713041] fix for 1712742: corrects pprint's handling of 'depth'

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

The test suite doesn't pass any longer when the patch is applied.

--
nosy: +georg.brandl

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1713041
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2775] Implement PEP 3108

2008-05-11 Thread Andrews Patrick Rocha Medina

Changes by Andrews Patrick Rocha Medina [EMAIL PROTECTED]:


Added file: http://bugs.python.org/file10292/symtable_removed_on_py3k.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2775
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2723] Truncate __len__() at sys.maxsize

2008-05-11 Thread Gregory P. Smith

Gregory P. Smith [EMAIL PROTECTED] added the comment:

Agreed, having it lie about the size is the WORST possible behavior
because it will silently hide problems.  Lets not do that.

But I must've missed something, why can't __len__ return the correct
value?  Merely because range() is broken and might use it as input? 
Thats no excuse.  Fix range().

--
nosy: +gregory.p.smith

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2723
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2723] Truncate __len__() at sys.maxsize

2008-05-11 Thread Alexander Belopolsky

Alexander Belopolsky [EMAIL PROTECTED] added the comment:

On Sun, May 11, 2008 at 6:38 PM, Gregory P. Smith
[EMAIL PROTECTED] wrote:
..
 But I must've missed something, why can't __len__ return the correct
 value?

The problem is the C signature of the sq_length slot:

typedef Py_ssize_t (*lenfunc)(PyObject *);

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2723
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2827] IDLE 3.0a5 cannot handle UTF-8

2008-05-11 Thread Sven Siegmund

New submission from Sven Siegmund [EMAIL PROTECTED]:

I have a source code which IDLE 3.0a5 cannot parse, but Python 3.0a5 
can (also attached): 

#!/usr/bin/python
# -*- coding: utf-8 -*-

def načtiSlovník(zdroj='slovník.txt'):
soubor = open(zdroj, mode='r', encoding='utf_8')
řádky = soubor.readlines()
for řádek in řádky:
print(řádek, end='')

načtiSlovník()
# End of source code


I have set up Default Source Encoding to UTF-8 in IDLE's general 
configuration. Still, when I open that source code and try to run it, 
IDLE complains about invalid character in identifier and highlights 
zdroj red in the first line (sic!). 

However, when I run the source code from command line (by python 
filename), it gets executed well and does what it shall do. 

I should probably add, that I have installed py3k:62932M, May 9 2008, 
16:23:11 [MSC v.1500 32 bit (Intel)] on win32. I use Windows XP SP 3. 
IDLE uses Tk version 8.4

--
components: IDLE
files: czech-it.py
messages: 66689
nosy: sven.siegmund
severity: normal
status: open
title: IDLE 3.0a5 cannot handle UTF-8
type: compile error
versions: Python 3.0
Added file: http://bugs.python.org/file10293/czech-it.py

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2827
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1685] linecache .updatecache fails on utf8 encoded files

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

This should be fixed differently (directly applying the RE to bytes
objects), but it needs a re that handles bytes first.

--
assignee:  - georg.brandl
nosy: +georg.brandl
priority: high - critical

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1685
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2825] Quote-type recognition bug [got a patch!]

2008-05-11 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

I though Georg already did this in r63068.

--
nosy: +benjamin.peterson

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2825
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2825] Quote-type recognition bug [got a patch!]

2008-05-11 Thread Guido van Rossum

Changes by Guido van Rossum [EMAIL PROTECTED]:


--
nosy:  -gvanrossum
resolution:  - invalid
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2825
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1234985] using some_re.sub() often imports sre.__doc__

2008-05-11 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

pattern.sub() imports the SRE Python module (to call its subx()) with
PyImport_Import -- that C functions uses a dummy list ['__doc__'] to get
the correct module for dotted import paths.

The import of an additional module is gone now that re is really called re.

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

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1234985
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue678464] Docs don't define sequence-ness very well

2008-05-11 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


--
type:  - feature request


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue678464

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



  1   2   >