[issue837234] Tk.quit and sys.exit cause Fatal Error

2007-08-29 Thread Sean Reifschneider

Sean Reifschneider added the comment:

blaforge: I know it's been years, but can you provide code that
reproduces this?  I'm going to switch it to pending state, please
re-open when you include some code to reproduce it.

--
status: open - pending


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

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



[issue1535659] NNTPS support in nntplib

2007-08-29 Thread Bill Janssen

Bill Janssen added the comment:

I'll take a look at this.

--
assignee:  - janssen
nosy: +janssen

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



[issue1055] argument parsing in datetime_strptime

2007-08-29 Thread Martin v. Löwis

New submission from Martin v. Löwis:

In r57374, the ParseTuple string for datetime_strptime was changed from
ss:datetime to uu:datetime, without adjusting the output arguments. It's
not clear to me what the rationale of this change was; it is incorrect
as u outputs Py_UNICODE, not char.

--
assignee: gvanrossum
messages: 55417
nosy: loewis
severity: normal
status: open
title: argument parsing in datetime_strptime
versions: Python 3.0

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



[issue1055] argument parsing in datetime_strptime

2007-08-29 Thread Martin v. Löwis

Changes by Martin v. Löwis:


--
nosy: +gvanrossum

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



[issue1055] argument parsing in datetime_strptime

2007-08-29 Thread Martin v. Löwis

Changes by Martin v. Löwis:


--
nosy:  -gvanrossum

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



[issue1056] test_cmd_line starts python without -E

2007-08-29 Thread Thomas Wouters

New submission from Thomas Wouters:

test_cmd_line tests various things by spawning sys.executable.
Unfortunately it does so without passing the -E argument (which 'make
test' does do) so environment variables like PYTHONHOME and PYTHONPATH
can cause the test to fail.

--
assignee: ncoghlan
components: Tests
messages: 55418
nosy: twouters
priority: high
severity: normal
status: open
title: test_cmd_line starts python without -E
type: crash
versions: Python 2.6

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



[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-29 Thread Thomas Wouters

Thomas Wouters added the comment:

Added tests (by duplicating any slicing operations in the test suite
with extended slice syntax, to force the use of slice-objects ;)

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1617699
_Index: Lib/ctypes/test/test_cast.py
===
--- Lib/ctypes/test/test_cast.py	(revision 57617)
+++ Lib/ctypes/test/test_cast.py	(working copy)
@@ -50,12 +50,16 @@
 def test_other(self):
 p = cast((c_int * 4)(1, 2, 3, 4), POINTER(c_int))
 self.failUnlessEqual(p[:4], [1,2, 3, 4])
+self.failUnlessEqual(p[:4:], [1,2, 3, 4])
 c_int()
 self.failUnlessEqual(p[:4], [1, 2, 3, 4])
+self.failUnlessEqual(p[:4:], [1, 2, 3, 4])
 p[2] = 96
 self.failUnlessEqual(p[:4], [1, 2, 96, 4])
+self.failUnlessEqual(p[:4:], [1, 2, 96, 4])
 c_int()
 self.failUnlessEqual(p[:4], [1, 2, 96, 4])
+self.failUnlessEqual(p[:4:], [1, 2, 96, 4])
 
 def test_char_p(self):
 # This didn't work: bad argument to internal function
Index: Lib/ctypes/test/test_buffers.py
===
--- Lib/ctypes/test/test_buffers.py	(revision 57617)
+++ Lib/ctypes/test/test_buffers.py	(working copy)
@@ -15,6 +15,7 @@
 self.failUnless(type(b[0]) is str)
 self.failUnlessEqual(b[0], a)
 self.failUnlessEqual(b[:], abc\0)
+self.failUnlessEqual(b[::], abc\0)
 
 def test_string_conversion(self):
 b = create_string_buffer(uabc)
@@ -23,6 +24,7 @@
 self.failUnless(type(b[0]) is str)
 self.failUnlessEqual(b[0], a)
 self.failUnlessEqual(b[:], abc\0)
+self.failUnlessEqual(b[::], abc\0)
 
 try:
 c_wchar
@@ -41,6 +43,7 @@
 self.failUnless(type(b[0]) is unicode)
 self.failUnlessEqual(b[0], ua)
 self.failUnlessEqual(b[:], abc\0)
+self.failUnlessEqual(b[::], abc\0)
 
 def test_unicode_conversion(self):
 b = create_unicode_buffer(abc)
@@ -49,6 +52,7 @@
 self.failUnless(type(b[0]) is unicode)
 self.failUnlessEqual(b[0], ua)
 self.failUnlessEqual(b[:], abc\0)
+self.failUnlessEqual(b[::], abc\0)
 
 if __name__ == __main__:
 unittest.main()
Index: Lib/ctypes/test/test_arrays.py
===
--- Lib/ctypes/test/test_arrays.py	(revision 57617)
+++ Lib/ctypes/test/test_arrays.py	(working copy)
@@ -95,6 +95,7 @@
 p = create_string_buffer(foo)
 sz = (c_char * 3).from_address(addressof(p))
 self.failUnlessEqual(sz[:], foo)
+self.failUnlessEqual(sz[::], foo)
 self.failUnlessEqual(sz.value, foo)
 
 try:
@@ -106,6 +107,7 @@
 p = create_unicode_buffer(foo)
 sz = (c_wchar * 3).from_address(addressof(p))
 self.failUnlessEqual(sz[:], foo)
+self.failUnlessEqual(sz[::], foo)
 self.failUnlessEqual(sz.value, foo)
 
 if __name__ == '__main__':
Index: Lib/ctypes/test/test_structures.py
===
--- Lib/ctypes/test/test_structures.py	(revision 57617)
+++ Lib/ctypes/test/test_structures.py	(working copy)
@@ -236,7 +236,9 @@
 
 # can use tuple to initialize array (but not list!)
 self.failUnlessEqual(SomeInts((1, 2)).a[:], [1, 2, 0, 0])
+self.failUnlessEqual(SomeInts((1, 2)).a[::], [1, 2, 0, 0])
 self.failUnlessEqual(SomeInts((1, 2, 3, 4)).a[:], [1, 2, 3, 4])
+self.failUnlessEqual(SomeInts((1, 2, 3, 4)).a[::], [1, 2, 3, 4])
 # too long
 # XXX Should raise ValueError?, not RuntimeError
 self.assertRaises(RuntimeError, SomeInts, (1, 2, 3, 4, 5))
Index: Lib/ctypes/test/test_strings.py
===
--- Lib/ctypes/test/test_strings.py	(revision 57617)
+++ Lib/ctypes/test/test_strings.py	(working copy)
@@ -121,6 +121,7 @@
 def XX_test_initialized_strings(self):
 
 self.failUnless(c_string(ab, 4).raw[:2] == ab)
+self.failUnless(c_string(ab, 4).raw[:2:] == ab)
 self.failUnless(c_string(ab, 4).raw[-1] == \000)
 self.failUnless(c_string(ab, 2).raw == a\000)
 
Index: Lib/ctypes/test/test_memfunctions.py
===
--- Lib/ctypes/test/test_memfunctions.py	(revision 57617)
+++ Lib/ctypes/test/test_memfunctions.py	(working copy)
@@ -30,6 +30,8 @@
 self.failUnlessEqual(cast(a, c_char_p).value, abcdef)
 self.failUnlessEqual(cast(a, POINTER(c_byte))[:7],
  [97, 98, 99, 100, 101, 102, 0])
+self.failUnlessEqual(cast(a, POINTER(c_byte))[:7:],
+ [97, 98, 99, 100, 101, 102, 0])
 
 def 

[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-29 Thread Thomas Wouters

Changes by Thomas Wouters:


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



[issue708374] add offset to mmap

2007-08-29 Thread Huang Peng

Huang Peng added the comment:

I updated the patch for trunk (r57652). In this patch, find, move and
flush methods use offset in mmap buffer instead of offset in file. It
also fix a bug in test_mmap.py and modified mmap document. Please review it.


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


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



[issue1057] Incorrect URL with webbrowser and firefox under Gnome

2007-08-29 Thread Aaron Bingham

New submission from Aaron Bingham:

Under Gnome, Firefox will open the wrong URL when launched by
webbrowser.  For example after running the following interactive session:

[EMAIL PROTECTED]:~ python
Python 2.5.1 (r251:54863, Jun  6 2007, 13:42:30)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux)] on linux2
Type help, copyright, credits or license for more information.
 import webbrowser
 webbrowser.open('http://www.python.org')
True

Firefox attempts to open the URL
file:///home/bingham/%22http://www.python.org%22.

This is caused by a bug in the Python standard library's webbrowser
module that only affects machines running Gnome.

On Gnome, webbrowser runs the command

gconftool-2 -g /desktop/gnome/url-handlers/http/command 2/dev/null

to find the web browser, which prints out a browser command line like

/pkgs/Firefox/2.0/firefox %s

The quotes around %s are preserved when passing the command-line
arguments. The quotes prevent firefox from recognizing the URL and
firefox falls back to treating it as a file name. The webbrowser module
already handles extra quoting around the URL for the BROWSER environment
variable and this same treatment should be applied to the result of
gconftool-2.

The BROWSER environment variable issue, now fixed, is described at
http://bugs.python.org/issue1684254.  The present issue was discussed in
an Ubuntu bug report
(https://bugs.launchpad.net/ubuntu/+source/python2.5/+bug/83974) but was
not resolved.

--
components: Library (Lib)
messages: 55421
nosy: bingham
severity: normal
status: open
title: Incorrect URL with webbrowser and firefox under Gnome
type: behavior
versions: Python 2.5

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



[issue1057] Incorrect URL with webbrowser and firefox under Gnome

2007-08-29 Thread Georg Brandl

Georg Brandl added the comment:

The current code in the 2.5 branch uses shlex.split to postprocess the
command line returned by gconftool too, so this should be already fixed.

--
nosy: +georg.brandl
resolution:  - out of date
status: open - closed

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



[issue1058] Code Example for 'property' bug

2007-08-29 Thread Kenneth Love

New submission from Kenneth Love:

The code example for 'property' in the online documentation appears to
have several syntax errors.

In the class C, the functions getx, setx, and delx all refer to '_x',
but __init__ assigns '__x'.  In other words, single underscores were
used where double underscores were intended (or vice versa?).

NOTE: I was unsure what Type of issue this was based on the provided
list.  I chose compile error because it seemed to be the best fit.

--
components: Documentation
messages: 55423
nosy: KennethLove
severity: minor
status: open
title: Code Example for 'property' bug
type: compile error
versions: Python 2.5

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



[issue1058] Code Example for 'property' bug

2007-08-29 Thread Georg Brandl

Georg Brandl added the comment:

Kenneth Love schrieb:
 New submission from Kenneth Love:
 
 The code example for 'property' in the online documentation appears to
 have several syntax errors.
 
 In the class C, the functions getx, setx, and delx all refer to '_x',
 but __init__ assigns '__x'.  In other words, single underscores were
 used where double underscores were intended (or vice versa?).

This is already fixed in SVN and will be in the next released docs version.
Thanks for reporting!

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

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



[issue1049] socket.socket.getsockname() has inconsistent UNIX/Windows behavior

2007-08-29 Thread Martin v. Löwis

Martin v. Löwis added the comment:

I think it is neither possible nor good to produce a uniform result.
Python traditionally exposes APIs as-is, providing the system actually
has an API with the same name. It never tries to hide differing system
behaviors in the Python wrapper; if systems vary and it is desirable to
provide a uniform API, a different API is added.

However, it is also not possible to make that uniform, as getsockname(3)
 gives an unspecified result, so it is not possible for Python to
actually determine whether there was a meaningful result.

Closing as rejected.

--
nosy: +loewis
resolution:  - rejected
status: open - closed

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



[issue1055] argument parsing in datetime_strptime

2007-08-29 Thread Martin v. Löwis

Changes by Martin v. Löwis:


--
priority:  - normal

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



[issue1040] Unicode problem with TZ

2007-08-29 Thread Martin v. Löwis

Changes by Martin v. Löwis:


--
assignee:  - loewis

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



[issue1040] Unicode problem with TZ

2007-08-29 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc added the comment:

I have a patch for this, which uses MBCS conversion instead of relying
on the default utf-8 (here and several other places). Tested on a French
version of winXP.

Which leads me to the question: should Windows use MBCS encoding by
default when converting between char* and PyUnicode, and not utf-8?
There are some other tracker items which would benefit from this.

After all, C strings can only come from 1) python code, 2) system i/o
and messages, and 3) constants in source code.
IMO, 1) can use the representation it prefers, 2) would clearly lead to
less error if handled as MBCS and 3) only uses 7bit ascii.
There is very little need for utf-8 here.

--
nosy: +amaury.forgeotdarc

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



[issue1040] Unicode problem with TZ

2007-08-29 Thread Thomas Heller

Thomas Heller added the comment:

IMO the very best would be to avoid as many conversions as possible by
using the wide apis on Windows.  Not for _tzname maybe, but for env
vars, sys.argv, sys.path, and so on.  Not that I would have time to work
on that...

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



[issue1029] py3k: io.StringIO.getvalue() returns \r\n

2007-08-29 Thread Guido van Rossum

Guido van Rossum added the comment:

I'ev fixed this slightly differently, by simply changing the *default*
of the newline argument to StringIO to be \n.  This is a good default;
but I see no reason to prevent users from messing with it if they have a
need.

--
nosy: +gvanrossum
resolution:  - fixed
status: open - closed

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



[issue1048] py3k: correction for test_float on Windows

2007-08-29 Thread Guido van Rossum

Guido van Rossum added the comment:

Committed revision 57670.

You will have to watch the buildbots to see if this worked.

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

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



[issue1050] py3k: correction for test_marshal on Windows

2007-08-29 Thread Guido van Rossum

Guido van Rossum added the comment:

Committed revision 57672.
You'll have to watch the buildbots.

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

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



[issue1037] Ill-coded identifier crashes python when coding spec is utf-8

2007-08-29 Thread Guido van Rossum

Guido van Rossum added the comment:

r57674.
I'm not sure this is the right fix though...

--
nosy: +gvanrossum
resolution:  - fixed
status: open - closed

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



[issue1019] Cleanup pass on _curses and _curses_panel

2007-08-29 Thread Guido van Rossum

Guido van Rossum added the comment:

I tried to run the various demos in Demo/curses/ with the new version.
They all work except for xmas.py. Before your patch, they all ran.

So I cannot apply this yet.  (No time to look into it further, alas.)

--
nosy: +gvanrossum

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



[issue1022] use bytes for code objects

2007-08-29 Thread Guido van Rossum

Guido van Rossum added the comment:

I'll defer thinking about this until post-a1.

--
nosy: +gvanrossum

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



[issue1023] [PATCH] Unicode fixes in floatobject and moduleobject

2007-08-29 Thread Guido van Rossum

Guido van Rossum added the comment:

Is this still relevant? The patch fails applying with quit a bit of
fireworks:

patching file moduleobject.c
Hunk #1 FAILED at 66.
Hunk #2 succeeded at 86 (offset -5 lines).
Hunk #3 FAILED at 115.
Hunk #4 FAILED at 128.
3 out of 4 hunks FAILED -- saving rejects to file moduleobject.c.rej
patching file floatobject.c
Reversed (or previously applied) patch detected!  Assume -R? [n] n
Apply anyway? [n] n
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file floatobject.c.rej

--
nosy: +gvanrossum

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



[issue1038] [py3k] pdb does not work in python 3000

2007-08-29 Thread Guido van Rossum

Guido van Rossum added the comment:

Why are you using _runscript(), which is an internal routine? I've had a
fair amount of success with other invocations, like pdb.run().

--
nosy: +gvanrossum

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



[issue1039] Asssertion in Windows debug build

2007-08-29 Thread Guido van Rossum

Guido van Rossum added the comment:

If it works for you, can you submit it?

--
assignee:  - theller
nosy: +gvanrossum

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



[issue1041] io.py problems on Windows

2007-08-29 Thread Guido van Rossum

Guido van Rossum added the comment:

I'm guessing this is fixed now that that patch is submitted.

--
nosy: +gvanrossum
resolution:  - fixed
status: open - closed

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



[issue1055] argument parsing in datetime_strptime

2007-08-29 Thread Guido van Rossum

Guido van Rossum added the comment:

Should be fixed by r57665.  I'm guessing we went a little too fast with
this change.

--
nosy: +gvanrossum
resolution:  - fixed
status: open - closed

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



[issue1617699] slice-object support for ctypes Pointer/Array

2007-08-29 Thread Thomas Wouters

Changes by Thomas Wouters:


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



[issue1023] [PATCH] Unicode fixes in floatobject and moduleobject

2007-08-29 Thread Ero Carrera

Ero Carrera added the comment:

Just took a look. Seems it was fixed in some other patch hence the fireworks

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



[issue1023] [PATCH] Unicode fixes in floatobject and moduleobject

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
resolution:  - duplicate
status: open - closed

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



[issue1060] zipfile cannot handle files larger than 2GB (inside archive)

2007-08-29 Thread Kevin Ar18

New submission from Kevin Ar18:

Summary:
If you have a zip file that contains a file inside of it greater than
2GB, then the zipfile module is unable to read that file.

Steps to Reproduce:
1. Create a zip file several GB in size with a file inside of it that is
over 2GB in size.
2. Attempt to read the large file inside the zip file.  Here's some
sample code:
import zipfile
import re

dataObj = zipfile.ZipFile(zip.zip,r)

for i in dataObj.namelist():
   if(i[-1] == /):
  print dir
   else:
  fileName = re.split(r.*/,i,0)[1]
  fileData = dataObj.read(i)


Result:
Python returns the following error:
File ...\zipfile.py, line 491, in read bytes =
self.fp.read(zinfo.compress_size) 
OverflowError: long it too large to convert to int

Expected Result:
It should copy the data into the variable fileData...

I'll try to post more info in a follow-up.

--
components: Library (Lib)
messages: 55444
nosy: Kevin Ar18
severity: normal
status: open
title: zipfile cannot handle files larger than 2GB (inside archive)
type: compile error
versions: Python 2.6

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



[issue1052] SSL patch for Windows buildbots problem

2007-08-29 Thread Bill Janssen

Bill Janssen added the comment:

Checked in.

--
assignee: nnorwitz - janssen
resolution:  - accepted
status: open - closed

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



[issue1583946] SSL issuer and server names cannot be parsed

2007-08-29 Thread Bill Janssen

Bill Janssen added the comment:

Actually, looking at it further, I'm not sure that it is fixed by the new 
SSL code.  If in fact the issuer or subject field can contain multiple 
name-value pairs with the same name, the dictionary-based approach 
currently used won't work.  We'll need more of an alist approach, with 
name-value tuples in it.  I'd better look into this.

--
assignee:  - janssen

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



[issue783188] support for server side transactions in _ssl

2007-08-29 Thread Bill Janssen

Bill Janssen added the comment:

I'll take on providing the server example.

--
assignee: akuchling - janssen


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

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



[issue889813] making the version of SSL configurable when creating sockets

2007-08-29 Thread Bill Janssen

Bill Janssen added the comment:

Fixed with 2.6 SSL support.

--
resolution:  - fixed
status: open - closed


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

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



[issue1027394] socket.ssl should explain that it is a 2/3 connection

2007-08-29 Thread Bill Janssen

Bill Janssen added the comment:

Fixed with the 2.6 SSL work.

--
resolution:  - fixed
status: open - closed

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



[issue1114345] Add SSL certificate validation

2007-08-29 Thread Bill Janssen

Bill Janssen added the comment:

Fixed in 2.6.

--
resolution:  - fixed
status: open - closed

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



[issue1678077] improve telnetlib.Telnet so option negotiation becomes easie

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
versions: +Python 3.0

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



[issue1683368] object.__init__ shouldn't allow args/kwds

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
versions: +Python 3.0

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



[issue1677872] Efficient reverse line iterator

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
title: Efficient reverse line iterator  - Efficient reverse line iterator
versions: +Python 3.0

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



[issue1720390] Remove backslash escapes from tokenize.c.

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
versions: +Python 3.0

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



[issue1752184] PyHeapTypeObject fix

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
versions: +Python 3.0

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



[issue1762972] 'exec' does not accept what 'open' returns

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
versions: +Python 3.0

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



[issue1774369] Unify __builtins__ - __builtin__

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
versions: +Python 3.0

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



[issue1771260] Errors in site.py not reported properly

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
versions: +Python 3.0

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



[issue1753395] struni: assertion in Windows debug build

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
versions: +Python 3.0

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



[issue1766304] improve xrange.__contains__

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
versions: +Python 3.0

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



[issue504152] rfc822 long header continuation broken

2007-08-29 Thread Skip Montanaro

Skip Montanaro added the comment:

Is this still an issue?  No activity since 2003-11.

--
nosy: +skip.montanaro


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

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



[issue857888] Modules/Setup needs a suppress flag?

2007-08-29 Thread Skip Montanaro

Skip Montanaro added the comment:

That's what the comment character is for.
Closing since there's already a good way
to achieve the desired behavior and because
Modules/Setup is generally not the primary
way to build extensions anymore.

--
assignee:  - skip.montanaro
nosy: +skip.montanaro
resolution:  - rejected
status: open - closed


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

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



[issue1035] bytes buffer API needs to support PyBUF_LOCKDATA

2007-08-29 Thread Gregory P. Smith

Gregory P. Smith added the comment:

I sent an initial patch to the mailing list.  Its too late to be ready
for 3.0a1; I'll fix it up next week.

--
assignee:  - gregory.p.smith

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



[issue504152] rfc822 long header continuation broken

2007-08-29 Thread Guido van Rossum

Changes by Guido van Rossum:


--
versions: +Python 2.4, Python 2.5, Python 2.6, Python 3.0


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

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



[issue1057] Incorrect URL with webbrowser and firefox under Gnome

2007-08-29 Thread Senthil

Senthil added the comment:

I am on Fedora Core 3, gnome 2.6 and I am unable to reproduce this issue.
Could this be a Ubuntu configuration bug. Like adding  quotes after %s
for the firefox command?

--
nosy: +orsenthil

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



[issue1057] Incorrect URL with webbrowser and firefox under Gnome

2007-08-29 Thread Senthil

Senthil added the comment:

Okay. I found the status later. It was fixed then with Python 2.6 which
I am using.

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



[issue1189216] zipfile module and 2G boundary

2007-08-29 Thread Gregory P. Smith

Gregory P. Smith added the comment:

i'll take care of this.

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

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



[issue1060] zipfile cannot handle files larger than 2GB (inside archive)

2007-08-29 Thread Gregory P. Smith

Gregory P. Smith added the comment:

i'll take care of it.  any more info in the interim will be appreciated.

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

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



[issue1003] zipfile password fails validation

2007-08-29 Thread Gregory P. Smith

Gregory P. Smith added the comment:

can you provide a test zip file demonstrating the problem?

--
assignee:  - gregory.p.smith
nosy: +gregory.p.smith
type: crash - behavior

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