[issue4622] SequenceMatcher bug with long sequences

2008-12-10 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: Python 2.3.4 and later have this bug. But release 2.1.3 doesn't: Python 2.1.3 (#35, Apr 8 2002, 17:47:50) [MSC 32 bit (Intel)] on win32 Type copyright, credits or license for more information. import difflib difflib.SequenceMatcher(None,

[issue4622] SequenceMatcher bug with long sequences

2008-12-10 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: #2986 may be a duplicate of this; #1528074 is relevant too. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4622 ___

[issue4561] Optimize new io library

2008-12-10 Thread Ismail Donmez
Changes by Ismail Donmez [EMAIL PROTECTED]: -- nosy: +cartman ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4561 ___ ___ Python-bugs-list mailing list

[issue4580] slicing of memoryviews when itemsize != 1 is wrong

2008-12-10 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: It's quite possible that I misread the array.array implementation since I only glanced at the code where it fills in the Py_buffer details - I saw the point where it set shape to NULL, but there may have been code later on to fill it in correctly

[issue4580] slicing of memoryviews when itemsize != 1 is wrong

2008-12-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky [EMAIL PROTECTED]: -- nosy: +belopolsky ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4580 ___ ___ Python-bugs-list

[issue4580] slicing of memoryviews when itemsize != 1 is wrong

2008-12-10 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Antoine's latest patch looks to me like it will fix the current actual errors in the 1-D case. Something that may also be considered part of this bug is the fact that m[i] = m[i] doesn't currently work for itemsize 1. There is a XXX comment in

[issue887237] Machine integers

2008-12-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12323/ctypes-numbermixins-1.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue887237 ___

[issue887237] Machine integers

2008-12-10 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: One difficulty with the patch is that the original ctypes code contained a tp_as_number ... This can be solved by changing the order of bases for c_type classes. See attached. Cool! Why didn't I think of that myself?

[issue4610] Unicode case mappings are incorrect

2008-12-10 Thread Alex Stapleton
Alex Stapleton [EMAIL PROTECTED] added the comment: I agree with loewis that ICU is probably the best way to get this functionality into Python. lemburg, yes it seems like extending those methods would be required at the very least. We would probably also need to support ICUs collators as

[issue4619] Invalid Behaviour When a Default Argument is a Mutable Object

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I don't see the need to do anything about this. Python works correctly, and the documentation correctly describes how it works, and how using mutable objects as default values typically doesn't do what the programmer normally expects. In any

[issue4598] IDLE not opening

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Ok, closing that as not reproducable, then. -- resolution: - works for me status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4598

[issue4185] re module treats raw strings as normal strings

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Eh? It's just a doc bug now. [assuming you are wondering why it is out of scope for 2.5.3] I don't understand the actual issue (and don't have time to find out what it is), so somebody else would have to provide a patch. Since there is no

[issue3999] Real segmentation fault handler

2008-12-10 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3999 ___ ___ Python-bugs-list

[issue4597] EvalFrameEx fails to set 'why' for some exceptions

2008-12-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Reopening: this need to be manually merged into 2.6 and 3.0 maintenance branches. + a NEWS entry is still missing. -- nosy: +amaury.forgeotdarc stage: committed/rejected - commit review status: closed - open

[issue4620] Memory leak with datetime used with time.strptime

2008-12-10 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: After running for more than 2 hours, I could not see any memory growth with 2.5.2 on WinXP. -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4620

[issue4589] 'with' loses -bool exceptions

2008-12-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Fixed with r67684 (2.5), r67688 (trunk), r67689 (py3k), r67690 (3.0), r67691 (2.6). -- resolution: accepted - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue1030250] distutils' dry-run wants to create some real build dirs

2008-12-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Committed r67692 (trunk). I don't feel the need to backport: this issue was opened 4 years ago, it is not urgent anymore ;-) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1030250

[issue1030250] distutils' dry-run wants to create some real build dirs

2008-12-10 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]: -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1030250 ___

[issue3999] Real segmentation fault handler

2008-12-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky [EMAIL PROTECTED]: -- nosy: +belopolsky ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3999 ___ ___ Python-bugs-list

[issue4416] state_reset not called on 'state' before sre_search invoked

2008-12-10 Thread Brian Szuter
Brian Szuter [EMAIL PROTECTED] added the comment: Examples: /Python-2.5.2/Modules/_sre.c Lines 3289 - 3297 (scanner_search) /Python-2.5.2/Modules/_sre.c Lines 2349 - 2357 (pattern_subx) /Python-2.5.2/Modules/_sre.c Lines 2197 - 2205 (pattern_split) /Python-2.5.2/Modules/_sre.c Lines 2067 - 2075

[issue4416] state_reset not called on 'state' before sre_search invoked

2008-12-10 Thread Brian Szuter
Changes by Brian Szuter [EMAIL PROTECTED]: -- versions: +Python 2.7 -Python 2.5.3 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4416 ___ ___

[issue4416] state_reset not called on 'state' before sre_search invoked

2008-12-10 Thread Brian Szuter
Brian Szuter [EMAIL PROTECTED] added the comment: This bug was found using a research tool that finds potential neglected condition bugs by examining a code base, deducing rules from the code base, and finding violations of those rules. I have not attempted to demonstrate a problem visible to

[issue4216] subprocess.Popen hangs at communicate() when child exits

2008-12-10 Thread Louis-Dominique Dubeau
Louis-Dominique Dubeau [EMAIL PROTECTED] added the comment: I'm running python 2.5.2 on Ubuntu 8.10. I believe I've also encountered the problem reported here. The scenario in my case was the following: 1. Python process A uses subprocess.Popen to create another python process (B). Process B

[issue4623] IDLE shutdown if I run an edited file contains chinese

2008-12-10 Thread bianpeng
New submission from bianpeng [EMAIL PROTECTED]: I use IDLE edit an script, if the script contains chinese, IDLE crashed if run the script. I put chinese character in commoent or string, and both get the same result. -- components: IDLE files: test.py messages: 77583 nosy: bianpeng

[issue4259] Update pydoc URLs

2008-12-10 Thread A.M. Kuchling
A.M. Kuchling [EMAIL PROTECTED] added the comment: Committed to 2.5 in rev. 67693. Do I need to 'svnmerge block' this revision to prevent future merges from attempting to apply it to trunk? -- status: open - closed ___ Python tracker [EMAIL

[issue4624] Can not import readline on python3.0 (ubuntu 8.04)

2008-12-10 Thread X Xiao
New submission from X Xiao [EMAIL PROTECTED]: I can import readline just fine on AMD64 ubuntu 8.04 under python3.0, however on 32-bit ubuntu 8.04 I could not import readline for python3.0. It says import readline ImportError: No module named readline. I made sure both ubuntu machines have

[issue4624] Can not import readline on python3.0 (ubuntu 8.04)

2008-12-10 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Did you build Python yourself? If so, can you paste the last lines of the build process like this: Failed to find the necessary bits to build these modules: bsddb185 gdbm linuxaudiodev ossaudiodevspwd

[issue4624] Can not import readline on python3.0 (ubuntu 8.04)

2008-12-10 Thread X Xiao
X Xiao [EMAIL PROTECTED] added the comment: I just rebuild it again, it went away. not sure what I did wrong at first try. The last few lines during compilation are: INFO: Can't locate Tcl/Tk libs and/or headers Failed to find the necessary bits to build these modules: _dbm

[issue4624] Can not import readline on python3.0 (ubuntu 8.04)

2008-12-10 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4624 ___

[issue4625] IDLE won't open anymore, .idlerc unaccessible

2008-12-10 Thread Sophia K. Cheng
New submission from Sophia K. Cheng [EMAIL PROTECTED]: Hello, I was able to run IDLE once or twice on my laptop. Then I downloaded kiki and tried to run it but had forgotten to install wxPython. After that, IDLE no longer opens although the command prompt does still work. I get the following

[issue3999] Real segmentation fault handler

2008-12-10 Thread Skip Montanaro
Changes by Skip Montanaro [EMAIL PROTECTED]: -- nosy: +skip.montanaro ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3999 ___ ___ Python-bugs-list

[issue4084] Decimal.max(NaN, x) gives incorrect results when x is finite and long

2008-12-10 Thread Facundo Batista
Facundo Batista [EMAIL PROTECTED] added the comment: Commited in trunk and Py3, thanks Mark! Please, could you commit it in 2.5? The only change I've made in the patch is adding the issue number to Misc/NEWS, the rest is ok. After that, just close this. Thanks again! -- versions:

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2008-12-10 Thread Brett Cannon
New submission from Brett Cannon [EMAIL PROTECTED]: When compile() is called with a string it is a reasonable assumption that it has already been decoded. But this is not in fact the case and leads to errors when trying to use non-ASCII identifiers:: source = # coding=latin-1\n\u00c6 =

[issue4627] Add Mac OS X Disk Images to Python.org homepage

2008-12-10 Thread Carl Johnson
New submission from Carl Johnson [EMAIL PROTECTED]: As recently as Python 2.6.0's release, Python.org had a link to download a disk image with a special newb-friendly installer for OS X. See http://www.python.org/download/releases/2.6/ Now, it's gone in Python 2.6.1, and it was never there

[issue4597] EvalFrameEx fails to set 'why' for some exceptions

2008-12-10 Thread Jeffrey Yasskin
Jeffrey Yasskin [EMAIL PROTECTED] added the comment: Added NEWS in r67685; ported to 2.5 branch in r67687; to 2.6 branch in r67696; to 3.1 branch in r67697; and to 3.0 branch in r67698. -- status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue4084] Decimal.max(NaN, x) gives incorrect results when x is finite and long

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Mark, if you want to backport this, please go ahead. If want me to, assign to me. -- assignee: facundobatista - marketdickinson priority: normal - release blocker ___ Python tracker [EMAIL

[issue4627] Add Mac OS X Disk Images to Python.org homepage

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Unfortunately, nobody is in charge of making disk images (this is a volunteer project entirely), so none might get made. -- nosy: +loewis ___ Python tracker [EMAIL PROTECTED]

[issue4628] No universal newline support for compile() when using bytes

2008-12-10 Thread Brett Cannon
New submission from Brett Cannon [EMAIL PROTECTED]: Passing in bytes to compile() works well for letting the parser handle the decoding of a file when an encoding is specified, but it doesn't take care of universal newlines:: source = b'a = 1\r\nb = 2\r\n' compile(source, 'test', 'exec')

[issue4629] getopt should not accept no_argument that ends with '='

2008-12-10 Thread Wang Chun
New submission from Wang Chun [EMAIL PROTECTED]: Consider the following program tmp.py: import sys, getopt print(getopt.getopt(sys.argv[1:], '', ['help'])) The program accept --help without a value: python helloworld.py --help But if someone invoke the program like: python helloworld.py

[issue4629] getopt should not accept no_argument that ends with '='

2008-12-10 Thread Wang Chun
Changes by Wang Chun [EMAIL PROTECTED]: -- keywords: +patch Added file: http://bugs.python.org/file12325/getopt.py.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4629 ___

<    1   2