[issue7896] IDLE.app crashes when attempting to open a .py file

2010-02-10 Thread John-Michael Glenn

John-Michael Glenn  added the comment:

I compiled it myself.

"I know there are issues with the system Tk 8.5 on OSX 10.6, although this is a 
new type of problem and and probably unrelated to the other ones."

...crap, I have 8.5 on 10.6.2

"...start IDLE by running "/Applications/Python 
2.6/IDLE.app/Contents/MacOS/IDLE" from a terminal window (including the 
quotes). That will show any output from the IDLE process in the terminal 
window, where it is easier to collect it than from the system log.   With some 
luck this will show that IDLE is doing something that it shouldn't."

When I try to open a file it crashes and only spits out "Segmentation fault". 
When I try to test a module it just hangs and keeps me from doing anything at 
all but stare at my code. But it only does this once for each file that I try 
to test. So if I force quit it and open that same file again and test the 
module, it'll work just fine.

--

___
Python tracker 

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



[issue7898] rlcompleter add "real tab" when text is empty feature

2010-02-10 Thread zhou wei

New submission from zhou wei :

When I use rlcompleter in interactive Python mode, I think it will be more 
convenient if autocomplete produce a real tab when text-to-autocomplete is 
empty.
For example:
>>> def test():
...
will give:
Display all 182 possibilities? (y or n)
instead of a real tab

So, when indentation is needed, 4 times of spacebar pressing are required. 
That's why I think it will make more sense to just return a tab character when 
there is nothing to autocomplete.

This behavior is similar to autocompletion in ipython

--
components: Library (Lib)
files: rlcompleter.diff
keywords: patch
messages: 99159
nosy: dieresys, facundobatista, georg.brandl, gpolo, lilaboc, pitrou, rnd0110
severity: normal
status: open
title: rlcompleter add "real tab" when text is empty feature
type: feature request
versions: Python 2.7
Added file: http://bugs.python.org/file16200/rlcompleter.diff

___
Python tracker 

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



[issue7863] platform module doesn't detect Windows 7

2010-02-10 Thread Marc-Andre Lemburg

Marc-Andre Lemburg  added the comment:

Brian Curtin wrote:
> 
> Brian Curtin  added the comment:
> 
> Here's a patch which fixes this on trunk. 
> 
> 2.6/3.1 is a different story as there doesn't appear to be a way to get the 
> platform type to differentiate workstation/server. #7766 is what makes it 
> easy on trunk, but it's a new feature and isn't backported. Thoughts?

We can't backport #7766, so unless there's some win32 or OS env var trick
that we could apply, I'm not sure whether Windows 7 support can be
added to 2.6/3.1.

I don't have access to a Windows 7 installation, so can't really
test this on that version. Have you tested the patch on other
Windows versions ?

Esp. the csd change looks like it could break on older versions.

--

___
Python tracker 

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



[issue7418] hashlib : the names of the different hash algorithms

2010-02-10 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +gps

___
Python tracker 

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



[issue7897] Support parametrized tests in unittest

2010-02-10 Thread Michael Foord

Changes by Michael Foord :


--
assignee:  -> michael.foord
nosy: +michael.foord

___
Python tracker 

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



[issue7898] rlcompleter add "real tab" when text is empty feature

2010-02-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

On the one hand, it makes sense for the common case of completing using the Tab 
key.
On the other hand, it will appear quite bizarre to people who have another, 
dedicated key for auto-completion.

By the way, rather than inserting a tab character, it should probably insert 4 
spaces instead.

--

___
Python tracker 

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



[issue7505] ctypes not converting None to Null in 64-bit system

2010-02-10 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

It works in 64-bit mode under Mandriva Linux (gcc 4.4.1), with Python 2.6, 2.7 
and 3.2.

$ python issue7505.py 
b = (nil)
a = 7, c = 7, d = 7, e = 7, f = 7, g = 7, h = 7, i = 7, j = 7, k = 7,  l = 7

I also works with a hand-compiled Python (2.6, 2.7, 3.2) under a 64-bit Ubuntu 
box. However, it fails with the system Python 2.5 shipped with Ubuntu. So 
perhaps this has to do with how Debian/Ubuntu compile their Pythons, or their 
libffi.

$ python issue7505.py 
b = 0x7f53
a = 7, c = 7, d = 7, e = 7, f = 7, g = 7, h = 7, i = 7, j = 7, k = 7,  l = 7

--
nosy: +pitrou

___
Python tracker 

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



[issue6472] Update ElementTree with upstream changes

2010-02-10 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
title: Inconsistent use of "iterator" in ElementTree doc & diff between Py and 
C modules -> Update ElementTree with upstream changes

___
Python tracker 

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



[issue7582] [patch] diff.py to use iso timestamp

2010-02-10 Thread Barry A. Warsaw

Barry A. Warsaw  added the comment:

This seems like a new feature to me so I'm removing 2.6 from the list.  My 
browser won't let me remove Python 3.1.

--
nosy: +barry
versions:  -Python 2.6

___
Python tracker 

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



[issue7899] MemoryError While Executing Python Code

2010-02-10 Thread Prashanth noble

New submission from Prashanth noble :

we are executing two queries and storing the result sets  and matching the data.

the table has got around 8 million records and while executing the same i am 
getting the Memory Issue.

TRACE Arguments: [  
|  ] 
FAIL MemoryError 

DEBUG Traceback (most recent call last):

 File "c:\python26\lib\site-packages\DatabaseLibrary\__init__.py", line 52, in 
resultsets_should_match
   resultset1.matches_with(resultset2)
 File "c:\python26\lib\site-packages\DatabaseLibrary\resultset.py", line 37, in 
matches_with
   for row_a, row_b in zip(self, other): 


Please let me know how to resolve this issue

--
components: Windows
messages: 99164
nosy: p_noblebose
severity: normal
status: open
title: MemoryError While Executing Python Code
type: performance
versions: Python 2.6

___
Python tracker 

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



[issue7582] [patch] diff.py to use iso timestamp

2010-02-10 Thread Brian Curtin

Changes by Brian Curtin :


--
keywords: +needs review
type: behavior -> feature request
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



[issue7900] posix.getgroups() failure on Mac OS X

2010-02-10 Thread Michael Foord

New submission from Michael Foord :

test_posix fails on trunk on Mac OS X (Snow Leopard)

test.test_support.TestFailed: Traceback (most recent call last):
  File "Lib/test/test_posix.py", line 42, in testNoArgFunctions
posix_func()
OSError: [Errno 22] Invalid argument

Python 2.7a3+ (trunk:78129M, Feb 10 2010, 10:40:28) 
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
>>> import posix
>>> posix.getgroups()
Traceback (most recent call last):
  File "", line 1, in 
OSError: [Errno 22] Invalid argument

--
components: Library (Lib)
messages: 99165
nosy: loewis, michael.foord
severity: normal
status: open
title: posix.getgroups() failure on Mac OS X
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue7582] [patch] diff.py to use iso timestamp

2010-02-10 Thread anatoly techtonik

anatoly techtonik  added the comment:

I use this tool in instructions how to generate patches on windows, so I am 
interested to see this fix in the version, that users will likely to use for 
next couple of years, but I'd be happy to see this committed in any branch.

If it is going to be committed in alpha only them I'd like to propose to change 
default diff format to unicode as well.

Please, also review http://bugs.python.org/issue7585 that contains more 
important API change that also prevents diff.py from generating correct patches.

--

___
Python tracker 

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



[issue7585] [patch] difflib should separate filename from timestamp with tab

2010-02-10 Thread anatoly techtonik

anatoly techtonik  added the comment:

The reason is to provide a good usage example.

--

___
Python tracker 

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



[issue7588] unittest.TestCase.shortDescription isn't short anymore

2010-02-10 Thread Michael Foord

Michael Foord  added the comment:

Fixed revision 78130.

--
resolution:  -> accepted
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue7901] Add Vista/7 symlink support

2010-02-10 Thread Robert Paul Allen

New submission from Robert Paul Allen :

I would like to see support for NTFS symbolic links to be added to the os 
module. As simple Popen('mklink') implementation could be used. Any other ideas?

--
components: Library (Lib), Windows
messages: 99170
nosy: ipatrol
severity: normal
status: open
title: Add Vista/7  symlink support
type: feature request

___
Python tracker 

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



[issue7893] unittest: have to subclass TextTestRunner to use alternative TestResult

2010-02-10 Thread Michael Foord

Michael Foord  added the comment:

Fixed revision 78130.

--
resolution:  -> accepted
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue7582] [patch] diff.py to use iso timestamp

2010-02-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc  added the comment:

> I'd like to propose to change default diff format to unicode as well
What kind of "unicode" format is it?

--

___
Python tracker 

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



[issue7901] Add Vista/7 symlink support

2010-02-10 Thread Ezio Melotti

Ezio Melotti  added the comment:

Duplicate of #1578269.

--
nosy: +ezio.melotti
resolution:  -> duplicate
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue7501] python -m unittest path_to_suite_function errors

2010-02-10 Thread Michael Foord

Michael Foord  added the comment:

Use load_tests instead.

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

___
Python tracker 

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



[issue7863] platform module doesn't detect Windows 7

2010-02-10 Thread Brian Curtin

Brian Curtin  added the comment:

I'll look into whatever other trickery could be applied to 2.6/3.1.

The patch against trunk works correctly for Win7, Win 2003 Server SP1, Win XP 
SP2, and Win 2000 Server SP2. platform.platform() outputs the same info for the 
latter three OSes whether or not the patch is applied. 

The csd change will work going back to Windows 2000. If we have to support 
anything prior, which I don't believe we do, then you are correct that it won't 
work. If that's an issue, I can revert that part of the change.

--

___
Python tracker 

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



[issue6608] asctime causing python to crash

2010-02-10 Thread Sridhar Ratnakumar

Changes by Sridhar Ratnakumar :


--
nosy: +srid

___
Python tracker 

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



[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2010-02-10 Thread Sridhar Ratnakumar

Changes by Sridhar Ratnakumar :


--
nosy: +srid

___
Python tracker 

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



[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2010-02-10 Thread Sridhar Ratnakumar

Changes by Sridhar Ratnakumar :


--
nosy: +srid

___
Python tracker 

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



[issue7902] relative import broken

2010-02-10 Thread ganges master

New submission from ganges master :

the relative-import mechanism is broken... at least on python2.6 but i'd guess 
on later versions as well.

consider this package layout:
/tmp/foo/
/tmp/foo/__init__.py
/tmp/foo/bar.py

where bar.py is:
# note this is a relative import and should fail!
from .os import walk
print walk
# and this should also fail
from . import os
print os

running it yields a bug:

$ PYTHONPATH="/tmp" python
Python 2.6.4 (r264:75706, Dec  7 2009, 18:45:15) 
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import foo.bar
  #  ?!?!
Traceback (most recent call last):
  File "", line 1, in 
  File "/tmp/foo/bar.py", line 4, in 
from . import os
ImportError: cannot import name os


"from . import os" fails as expected, but "from .os import walk" works -- 
although it should obviously fail too.


-tomer

--
components: Interpreter Core
files: bar.py
messages: 99176
nosy: gangesmaster
severity: normal
status: open
title: relative import broken
versions: Python 2.6
Added file: http://bugs.python.org/file16201/bar.py

___
Python tracker 

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



[issue7902] relative import broken

2010-02-10 Thread ganges master

ganges master  added the comment:

i believe brett is in charge of this, adding him to the noisy. sorry if it's 
not you :)

--
nosy: +brett.cannon

___
Python tracker 

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



[issue1533] Bug in range() function for large values

2010-02-10 Thread Mark Dickinson

Changes by Mark Dickinson :


--
nosy: +mark.dickinson

___
Python tracker 

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



[issue7903] Configure script incorrect for reasonably recent OpenBSD

2010-02-10 Thread johns

New submission from johns :

Current OpenBSD is at 4.7 with a new release every six months.
diff below:

--- configure  Mon Jun  8 17:22:57 2009
+++ configure.new Wed Feb 10 16:00:34 2010
@@ -2086,7 +2086,7 @@
   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
   # even though select is a POSIX function. Reported by J. Ribbens.
   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
-  OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
+  OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[01234567])
 define_xopen_source=no
 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
 # also defined. This can be overridden by defining _BSD_SOURCE

--
components: Installation
messages: 99178
nosy: johns
severity: normal
status: open
title: Configure script incorrect for reasonably recent OpenBSD
type: compile error
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



[issue7902] relative import broken

2010-02-10 Thread Brett Cannon

Brett Cannon  added the comment:

So doing the import manually through __import__('os', globals(), locals(), 
['walk'], 1) does not work. My guess is it has something to do with the 
IMPORT_FROM opcode (or something related), but I don't have time right now to 
dig deeper.

--

___
Python tracker 

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



[issue7904] urllib.urlparse mishandles novel schemes

2010-02-10 Thread mARK

New submission from mARK :

urlparse.urlsplit('s3://example/files/photos/161565.jpg')
returns
('s3', '', '//example/files/photos/161565.jpg', '', '')
instead of
('s3', 'example', '/files/photos/161565.jpg', '', '')

according to rfc 3986 's3' is a valid scheme name, so the '://' indicates a URL 
with netloc and path parts.

--
components: Extension Modules
messages: 99181
nosy: mbloore
severity: normal
status: open
title: urllib.urlparse mishandles novel schemes
type: behavior
versions: Python 2.5

___
Python tracker 

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



[issue7903] Configure script incorrect for reasonably recent OpenBSD

2010-02-10 Thread Stefan Krah

Stefan Krah  added the comment:

Thanks for reporting. This looks like a duplicate of issue3920.

--
nosy: +skrah

___
Python tracker 

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



[issue7904] urllib.urlparse mishandles novel schemes

2010-02-10 Thread Ezio Melotti

Ezio Melotti  added the comment:

Thanks for the report, could you provide a patch with unit tests?

--
nosy: +ezio.melotti
priority:  -> normal
stage:  -> test needed
versions: +Python 2.6, Python 2.7 -Python 2.5

___
Python tracker 

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



[issue3819] urllib2 sends Basic auth across redirects

2010-02-10 Thread David Fischer

David Fischer  added the comment:

I attached a diff of a fix for this bug. This may not be the ideal fix, but 
hopefully it will give the developer who actually does resolve it a good start.

--
keywords: +patch
Added file: http://bugs.python.org/file16204/urllib2-3819.diff

___
Python tracker 

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



[issue7835] Minor bug in 2.6.4 related to cleanup at end of program

2010-02-10 Thread R. David Murray

R. David Murray  added the comment:

Committed in r78137 to trunk, r78138 py26, r78139 py3k, and r78140 py31.

--
components: +Library (Lib) -Interpreter Core
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-10 Thread Vlastimil Brom

Vlastimil Brom  added the comment:

Thanks for the quick update,
I confirm the fix for both issues;
just another finding (while testing the behaviour mentioned previously - 
msg91917)

The property name normalisation seem to be much more robust now, I just 
encountered an encoding error using a rather artificial input (in python 2.5, 
2.6):

>>> regex.findall(ur"\p{UppercaseÄÄÄLetter}", u"QW\p{UppercaseÄÄÄLetter}as")

Traceback (most recent call last):
  File "", line 1, in 
regex.findall(ur"\p{UppercaseÄÄÄLetter}", u"QW\p{UppercaseÄÄÄLetter}as")
  File "C:\Python25\lib\regex.py", line 213, in findall
return _compile(pattern, flags).findall(string, overlapped=overlapped)
  File "C:\Python25\lib\regex.py", line 599, in _compile
parsed = _parse_pattern(source, info)
  File "C:\Python25\lib\regex.py", line 690, in _parse_pattern
branches = [_parse_sequence(source, info)]
  File "C:\Python25\lib\regex.py", line 702, in _parse_sequence
item = _parse_item(source, info)
  File "C:\Python25\lib\regex.py", line 710, in _parse_item
element = _parse_element(source, info)
  File "C:\Python25\lib\regex.py", line 837, in _parse_element
return _parse_escape(source, info, False)
  File "C:\Python25\lib\regex.py", line 1098, in _parse_escape
return _parse_property(source, info, in_set, ch)
  File "C:\Python25\lib\regex.py", line 1240, in _parse_property
raise error("undefined property name '%s'" % name)
error: 
>>> 

Not sure, how this would be fixed (i.e. whether the error message should be 
changed to unicode, if applicable).

Not surprisingly, in python 3.1, there is a correct message at the end:

regex.error: undefined property name 'UppercaseÄÄÄLetter'

vbr

--

___
Python tracker 

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



[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-10 Thread Brian Curtin

Brian Curtin  added the comment:

False alarm, the failures are my fault. I had a previous version of 
symlink_support, and applying patch 25 added the contents of symlink_support to 
the file again, thus causing an ImportError on that file. Sorry about that.

I removed the file, applied patch 25 again, and the tests pass.

--

___
Python tracker 

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



[issue7903] Configure script incorrect for reasonably recent OpenBSD

2010-02-10 Thread Skip Montanaro

Skip Montanaro  added the comment:

John> Current OpenBSD is at 4.7 with a new release every six months.
John> diff below:
...
John> -  OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0123])
John> +  OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[01234567])

Wouldn't it be better to just use "OpenBSD/4.*" and fix it if/when a new
minor release makes the assumption false?

Skip

--
nosy: +skip.montanaro

___
Python tracker 

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



[issue5754] Shelve module writeback parameter does not act as advertised

2010-02-10 Thread R. David Murray

R. David Murray  added the comment:

Thanks for the patch.  I applied the doc patch and a slightly simplified 
version of the test in r78141 (we tend to just let errors bubble up rather than 
code explicit Fails, since as often as not if you provide a specific message it 
turns out to be wrong when something breaks the test).
I'll merge the change to the other branches as well.

--
assignee: aleax -> r.david.murray
nosy: +r.david.murray
priority:  -> normal
resolution:  -> accepted
stage: test needed -> committed/rejected
status: open -> closed
versions: +Python 2.7, Python 3.1, Python 3.2

___
Python tracker 

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



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-10 Thread Matthew Barnett

Matthew Barnett  added the comment:

I've been aware for some time that exception messages in Python 2 can't be 
Unicode, but I wasn't sure which encoding to use, so I've decided to use that 
of sys.stdout.

It appears to work OK in IDLE and at the Python prompt.

issue2636-20100211.zip is the new version of the regex module.

--
Added file: http://bugs.python.org/file16205/issue2636-20100211.zip

___
Python tracker 

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



[issue7835] Minor bug in 2.6.4 related to cleanup at end of program

2010-02-10 Thread R. David Murray

R. David Murray  added the comment:

Fix modified to catch the case where the shutdown has also deleted module 
dictionary, at MAL's suggestion, in r78142.

--

___
Python tracker 

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



[issue7903] Configure script incorrect for reasonably recent OpenBSD

2010-02-10 Thread johns

johns  added the comment:

Yeah or better yet take out the versioning entirely.

--

___
Python tracker 

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



[issue7905] Shelf 'keyencoding' keyword argument is undocumented and does not work.

2010-02-10 Thread R. David Murray

New submission from R. David Murray :

While working on another shelve issue I noticed that the keyencoding keyword 
argument was added to shelf, but that the value is hardcoded to 'utf-8' in the 
__init__ body.  DbfilenameShelf does not have a keyencoding option, nor does 
open, but BsdDbShelf does.  It seems to me that keyencoding was intended to be 
exposed but the work was not completed.  However I could be wrong...in which 
case the module should probably just use sys.getdefaultencoding.

I've prepared a patch that fixes the hardcoding bug and adds docs for the 
places where the keyword argument is currently accepted.  If this argument is 
kept and is documented, it should presumably be added to DbfilenameShelf and 
open as well.

--
assignee: georg.brandl
components: Documentation, Library (Lib)
files: shelve_keyencoding.patch
keywords: needs review, patch, patch
messages: 99193
nosy: georg.brandl, r.david.murray
priority: low
severity: normal
stage: patch review
status: open
title: Shelf 'keyencoding' keyword argument is undocumented and does not work.
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file16206/shelve_keyencoding.patch

___
Python tracker 

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



[issue2537] re.compile(r'((x|y+)*)*') should fail

2010-02-10 Thread Meador Inge

Meador Inge  added the comment:

> Ruby's behavior seems best to me.

We can obtain the Ruby behavior easily.  There is one check in sre_compile.py 
in the '_simple' function that needs to be removed (see attached patch).  
Whether or not the Ruby behavior is the "correct" behavior I am still not sure. 
 In any case, I think throwing an exception is to aggressive for this case.

--
keywords: +patch
nosy: +minge
Added file: http://bugs.python.org/file16207/issue-2537.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

2010-02-10 Thread R. David Murray

R. David Murray  added the comment:

I agree that caching for speed is something that should be implemented in 
another layer.  It certainly is orthogonal to the writeback issue.  The best 
caching strategy is going to depend on the application, so I don't think 
caching for speed belongs in Shelve itself.  Closing as rejected.

--
nosy: +r.david.murray
priority:  -> normal
resolution:  -> rejected
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue7904] urllib.urlparse mishandles novel schemes

2010-02-10 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Does s3 stand for the amazon s3 services? urlparse does not have it under its 
list of known schemes yet. Does s3 have any specifications as such or is 
aligned towards any of the known schemes (like http or ftp)?

s3 is valid scheme name according to rfc 3986, but urlparse module does not 
seem to recognize it. If we say, s3 to be much similar to http, then it can be 
added to list of known schemes. Does Amazon say anything about it?

--
assignee:  -> orsenthil
nosy: +orsenthil

___
Python tracker 

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



[issue7899] MemoryError While Executing Python Code

2010-02-10 Thread Brian Curtin

Brian Curtin  added the comment:

Can you provide a test case which can reproduce the issue? Specifically one 
which doesn't require the use of your DatabaseLibrary package?

--
nosy: +brian.curtin
priority:  -> normal
stage:  -> test needed
type: performance -> resource usage

___
Python tracker 

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



[issue7904] urllib.urlparse mishandles novel schemes

2010-02-10 Thread mARK

mARK  added the comment:

it's not actually necessary to have a list of known schemes.  any url that has 
a double slash after the colon is expected to follow that with an authority 
section (what urlparse calls "netloc"), optionally followed by a path, which 
starts with a slash.

there are various defined schemes with their own syntax within the URL 
framework, but one is free to invent new ones with the general form
scheme://netloc/path

--

___
Python tracker 

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



[issue7903] Configure script incorrect for reasonably recent OpenBSD

2010-02-10 Thread Skip Montanaro

Skip Montanaro  added the comment:

>> Yeah or better yet take out the versioning entirely.

Perhaps.  Is 1.x treated differently than 2, 3 or 4?

S

--

___
Python tracker 

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



[issue7582] [patch] diff.py to use iso timestamp

2010-02-10 Thread anatoly techtonik

anatoly techtonik  added the comment:

I am sorry - too much windows to reply. This must be *unified*, of course.

--

___
Python tracker 

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