[issue16030] xrange repr broken for large arguments

2012-09-24 Thread Mark Dickinson
New submission from Mark Dickinson: Python 2.7.3+ (2.7:f51d11405f1d+, Sep 24 2012, 21:39:19) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> xrange(0, sys.maxint, sys.maxint-1) xrange(0, -4, 92233720368547758

[issue16022] Mistake in "What's New in Python 3.3"

2012-09-24 Thread STINNER Victor
STINNER Victor added the comment: @Georg: You should include this fix in Python 3.3 final. @Raymond: FYI, I removed your warning :) -- nosy: +georg.brandl, haypo, rhettinger resolution: fixed -> status: closed -> open ___ Python tracker

[issue7897] Support parametrized tests in unittest

2012-09-24 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue16029] pickle.dumps(xrange(sys.maxsize)) produces xrange(0)

2012-09-24 Thread Mark Dickinson
Mark Dickinson added the comment: Opened issue #16030 for the repr issue. The patch for this issue still lacks a fix for the stop value. -- ___ Python tracker ___ _

[issue16022] Mistake in "What's New in Python 3.3"

2012-09-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 35289291a2e6 by Victor Stinner in branch 'default': Close #16022: What's New in Python 3.3 document is no more at beta stage http://hg.python.org/cpython/rev/35289291a2e6 -- nosy: +python-dev resolution: -> fixed stage: -> committed/reject

[issue16022] Mistake in "What's New in Python 3.3"

2012-09-24 Thread STINNER Victor
Changes by STINNER Victor : -- priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue15954] No error checking after using of the wcsxfrm()

2012-09-24 Thread STINNER Victor
STINNER Victor added the comment: Dummy question: can you provide an example of strings that make wcsxfrm() failing? -- ___ Python tracker ___ __

[issue16022] Mistake in "What's New in Python 3.3"

2012-09-24 Thread Georg Brandl
Georg Brandl added the comment: Done. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16013] small csv reader bug

2012-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch. >>> list(csv.reader(['foo,"'])) [['foo', '']] >>> list(csv.reader(['foo,"'], strict=1)) Traceback (most recent call last): File "", line 1, in _csv.Error: unexpected end of data >>> list(csv.reader(['foo,^'], escapechar='^')) [['foo', '\n']

[issue16013] small csv reader bug

2012-09-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file27284/csv_eof-3.2.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue15954] No error checking after using of the wcsxfrm()

2012-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Dummy question: can you provide an example of strings that make wcsxfrm() > failing? No, I can not (on Linux). -- ___ Python tracker ___ _

[issue15954] No error checking after using of the wcsxfrm()

2012-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What error message is most appropriate here? Can we return the original string instead of exception? -- ___ Python tracker ___ __

[issue16009] Json error messages could provide more information about the error

2012-09-24 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue16001] small ints: cache string representation

2012-09-24 Thread STINNER Victor
STINNER Victor added the comment: My initial idea was to cache str(int) for any integer, but it may waste memory for huge numbers. -- ___ Python tracker ___

[issue16001] small ints: cache string representation

2012-09-24 Thread STINNER Victor
STINNER Victor added the comment: Here is a micro benchmark: --- # run it using: # benchmark.py script bench_int_str.py [--file=output] # https://bitbucket.org/haypo/misc/src/tip/python/benchmark.py def run_benchmark(bench): bench.timeit('S(123)', setup='S=str') bench.timeit('S(1) == S(2

[issue16001] small ints: cache string representation

2012-09-24 Thread STINNER Victor
STINNER Victor added the comment: Oops, I forgot to attach the new patch: small_ints_cache_str-2.patch optimizes also str % args (copy the string when needed if the reference count is not 1). -- Added file: http://bugs.python.org/file27286/small_ints_cache_str-2.patch _

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-09-24 Thread STINNER Victor
STINNER Victor added the comment: See also issue #15612 for a possible optimization on StringIO (use _PyUnicodeWriter). -- ___ Python tracker ___ ___

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-09-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16011] "in" should be consistent with return value of __contains__

2012-09-24 Thread Neal Parikh
Neal Parikh added the comment: I don't, but thanks for passing that along. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16027] pkgutil doesn't support frozen modules

2012-09-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue16024] Doc cleanup regarding path=fd, dir_fd, follow_symlinks, etc

2012-09-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16030] xrange repr broken for large arguments

2012-09-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue15612] Rewrite StringIO to use the _PyUnicodeWriter API

2012-09-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16015] Incorrect startup header in tutorial

2012-09-24 Thread Éric Araujo
Éric Araujo added the comment: Suggest closing: I think this causes no issue and changing it would have no benefit. -- nosy: +eric.araujo ___ Python tracker ___

[issue16026] csv.DictReader argument names documented incorrectly

2012-09-24 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +easy stage: -> needs patch versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker ___ _

[issue16013] small csv reader bug

2012-09-24 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +needs review stage: -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue16031] relative import headaches

2012-09-24 Thread James Hutchison
New submission from James Hutchison: This might even be a bug I've stumbled upon but I'm listing it as an enhancement for now. I really feel that relative imports in Python should just work. Regardless of the __name__, I should be able to import below me. Likewise, it should work even if I've

[issue16015] Incorrect startup header in tutorial

2012-09-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5f4841977bee by Chris Jerdonek in branch '3.2': Issue #16015: Fix NameError doctest example in tutorial introduction. http://hg.python.org/cpython/rev/5f4841977bee New changeset dae33c2e916b by Chris Jerdonek in branch 'default': Issue #16015: Merge

[issue16015] Incorrect startup header in tutorial

2012-09-24 Thread Chris Jerdonek
Chris Jerdonek added the comment: I don't mind fixing the year suggestion (in the interest of "realism" and for practice). -- nosy: +chris.jerdonek ___ Python tracker ___ __

[issue16001] small ints: cache string representation

2012-09-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: -1 for this entire effort. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16032] IDLE 3.2 is crashing multiple times

2012-09-24 Thread Omanand Jha Vatsa
New submission from Omanand Jha Vatsa: Crashed multiple times on clicking Preferences in IDLE menu. It is crashing while trying to copying things from the IDLE shell. -- assignee: ronaldoussoren components: Macintosh files: Python_2012-09-24-234004_BLMACPRO3137C.crash messages: 171212 n

[issue16032] IDLE 3.2 is crashing multiple times

2012-09-24 Thread Ned Deily
Ned Deily added the comment: This is due to a bug in the current Cocoa Tk as released in ActiveTcl 8.5.12.1 (and 8.5.12). Try installing the previous ActiveTcl version, 8.5.11.1, which I just discovered is still available here: http://downloads.activestate.com/ActiveTcl/releases/8.5.11.1/ --

[issue16033] IDLE crashes when debugging and saving

2012-09-24 Thread jimbo1qaz
New submission from jimbo1qaz: Have the debugger open, stopped on a breakpoint, and save the open file. The whole thing will bomb after the save finishes. Changes are not lost, but I have to reopen IDLE and lose history and breakpoints. -- components: IDLE messages: 171214 nosy: jimbo1

[issue16033] IDLE crashes when debugging and saving

2012-09-24 Thread Ned Deily
Ned Deily added the comment: What operating system are you using? Which python 3.2 are you using (i.e. a particular installer downloaded from python.org, built from source, etc)? If known, which version of Tcl/Tk are you using? -- nosy: +ned.deily ___

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-24 Thread Victor Hooi
New submission from Victor Hooi: Hi, I was writing a script to parse BZ2 blogfiles under Python 2.6, and I noticed that bz2file (http://pypi.python.org/pypi/bz2file) seemed to perform much slower than with bz2 (native): http://stackoverflow.com/questions/12575930/is-python-bz2file-slower-than

[issue16033] IDLE crashes when debugging and saving

2012-09-24 Thread Ned Deily
Ned Deily added the comment: With 3.2.3 (on OS X), if I open a new edit window, enter a few files, save the file, set a breakpoint on a line, then save the file again (with or without having debug on), the following exception occurs but IDLE keeps running: Exception in Tkinter callback Traceba

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-24 Thread Ned Deily
Changes by Ned Deily : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue16033] IDLE crashes when debugging and saving

2012-09-24 Thread Roger Serwy
Roger Serwy added the comment: This was fixed in issue9803, but after the 3.2.3 release. I'm closing this issue as a duplicate. -- resolution: -> duplicate status: open -> closed superseder: -> IDLE closes with save while breakpoint open ___ Python

[issue11103] Python 3.2 installer doesn't register file extensions on Windows 7

2012-09-24 Thread Roger Serwy
Roger Serwy added the comment: The latest 3.2.3 release for Win7-64 registers the .py extensions properly, with "Open" and "Edit with IDLE". I'm closing this issue as out of date. -- nosy: +serwy resolution: -> out of date status: open -> closed ___

[issue16031] relative import headaches

2012-09-24 Thread Nick Coghlan
Nick Coghlan added the comment: There is no magic bullet, but there are a whole mess of backwards compatibility constraints. Closing this as a duplicate, because there's no clear resolvable RFE here beyond the known issues with circular imports and the differences between lazy and eager impor

[issue15869] IDLE: Include .desktop file and icon

2012-09-24 Thread Roger Serwy
Roger Serwy added the comment: I tried the provided .desktop files and they work with Gnome 3.4. -- keywords: +easy nosy: +serwy title: Include .desktop file and icon -> IDLE: Include .desktop file and icon ___ Python tracker

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks as bz2 in Python 3.3 has bad buffering. Reading by larger chunks shows the same speed in 2.7 and 3.3. -- components: +Library (Lib) -None nosy: +storchaka ___ Python tracker

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, I was able to restore performance (using same code as in zipfile). The patch will be later. -- ___ Python tracker ___ _

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-24 Thread Victor Hooi
Victor Hooi added the comment: Hi, I didn't have any buffering size set before, so I believe it defaults to 0 (no buffering), right? Wouldn't this be the behaviour on both 2.x and 3.x? I'm using a 1.5 Mb bzip2 file - I just tried setting buffering to 1000 and 100, and it didn't seem to ma

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-09-24 Thread Victor Hooi
Victor Hooi added the comment: Hi, Aha, whoops, sorry Serhiy, didn't see your second message - I think you and I posted our last messages at nearly the same time... Cool, looking forward to your patch =). Also, is there any chance you could provide a more detailed explanation of what's going

[issue16032] IDLE 3.2 is crashing multiple times

2012-09-24 Thread Omanand Jha Vatsa
Omanand Jha Vatsa added the comment: I have tried re-installing to 8.5.11.1. Still same issue. I am on Mac OSX 10.7.4 version. -- status: pending -> open ___ Python tracker ___

[issue16032] IDLE 3.2 is crashing multiple times

2012-09-24 Thread Ned Deily
Ned Deily added the comment: Odd, it works for me. Check to make sure it really got installed: $ cd /Library/Frameworks/Tk.framework/ $ grep PATCH tkConfig.sh TK_PATCH_LEVEL='.11' You could manually delete the frameworks and try installing again: $ cd /Library/Frameworks $ sudo rm -r ./Tcl.fr

<    1   2