[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]> ___ ___

[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

[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, '', 'exec')

[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]>

[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 PROT

[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]

[issue4259] Update pydoc URLs

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[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? I don't fully understand the question (did you wonder whether to invoke the block on the trun

[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 f

[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 = '

[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: -

[issue3999] Real segmentation fault handler

2008-12-10 Thread Skip Montanaro
Changes by Skip Montanaro <[EMAIL PROTECTED]>: -- nosy: +skip.montanaro ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[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 followin

[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]> ___ _

[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 _sql

[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
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 hav

[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 PROTE

[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 sev

[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

[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

[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]> ___ ___ Pytho

[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

[issue3999] Real segmentation fault handler

2008-12-10 Thread Alexander Belopolsky
Changes by Alexander Belopolsky <[EMAIL PROTECTED]>: -- nosy: +belopolsky ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-lis

[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]> ___ _

[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]>

[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]>

[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]> _

[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 ___

[issue3999] Real segmentation fault handler

2008-12-10 Thread Gabriel Genellina
Changes by Gabriel Genellina <[EMAIL PROTECTED]>: -- nosy: +gagenellina ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[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

[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]> ___

[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

[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 w

[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_ classes. >See attached. Cool! Why didn't I think of that myself? __

[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]> ___ _

[issue887237] Machine integers

2008-12-10 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: > I wonder if a patch for ctypes like this (which is not yet complete) > could be used to implement this, or MUST it be implemented in C? For the intended purpose of giving access to raw machine arithmetics, I would think a C implement

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2008-12-10 Thread Bill Janssen
Bill Janssen <[EMAIL PROTECTED]> added the comment: Unrelated? OK, but in fact I fixed this in 3.0 by providing a different internal API to _ssl.c. But you're right, that's an optimization. ___ Python tracker <[EMAIL PROTECTED]>

[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 commen

[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]> ___ ___ Python-bugs-lis

[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 correctl

[issue4561] Optimize new io library

2008-12-10 Thread Ismail Donmez
Changes by Ismail Donmez <[EMAIL PROTECTED]>: -- nosy: +cartman ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing

[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]> ___ _

[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.Sequence

[issue3999] Real segmentation fault handler

2008-12-10 Thread Adam Olsen
Changes by Adam Olsen <[EMAIL PROTECTED]>: -- nosy: +Rhamphoryncus ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list maili

[issue4594] Can't compile with -O3, on ARM, with gcc 3.4.4

2008-12-10 Thread John Stracke
John Stracke <[EMAIL PROTECTED]> added the comment: You may be right; I haven't used autoconf before, so I don't know. But I'll give it a shot. ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue4617] SyntaxError when free variable name is also an exception target

2008-12-10 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- nosy: +jhylton ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mail

[issue3999] Real segmentation fault handler

2008-12-10 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: fault.py: catch two segfaults in Python and C contexts. Added file: http://bugs.python.org/file12322/fault.py ___ Python tracker <[EMAIL PROTECTED]> _

[issue2734] 2to3 converts long(itude) argument to int

2008-12-10 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- assignee: collinwinter -> benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4185] re module treats raw strings as normal strings

2008-12-10 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Eh? It's just a doc bug now. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-l

[issue4622] SequenceMatcher bug with long sequences

2008-12-10 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Python 3.0rc1+ similar. -- nosy: +LambertDW versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> ___ ___

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

2008-12-10 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: New patch addressing the above issues. You can also review it at http://codereview.appspot.com/10441 Added file: http://bugs.python.org/file12321/issue4580-2.patch ___ Python tracker <[EMAIL PROTECTED]>

[issue4622] SequenceMatcher bug with long sequences

2008-12-10 Thread eliben
New submission from eliben <[EMAIL PROTECTED]>: Here's a reproduction of the error: Python 2.5.2 (r252:60911, Oct 20 2008, 09:11:31) [GCC 3.4.6 20060404 (Red Hat 3.4.6-10)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import difflib >>> >>> difflib.Sequenc

[issue4303] [2.5 regression] ctypes fails to build on arm-linux-gnu

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Unfortunately, the ARM buildbot is down right now, so no tests can be performed. ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4303] [2.5 regression] ctypes fails to build on arm-linux-gnu

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: That's the revision I meant, yes. It seems that ffi_info just got renamed, so I misread the change. In any case, it's (now) unclear how this did compile before, as ffi_closure was always referenced in ctypes.h...

[issue3166] Make conversions from long to float correctly rounded.

2008-12-10 Thread Mark Dickinson
Changes by Mark Dickinson <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file12312/long_as_double2.patch ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3166] Make conversions from long to float correctly rounded.

2008-12-10 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Minor cleanup of long_as_double2.patch. Added file: http://bugs.python.org/file12320/long_as_double2.patch ___ Python tracker <[EMAIL PROTECTED]>

[issue4617] SyntaxError when free variable name is also an exception target

2008-12-10 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- priority: release blocker -> deferred blocker ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4621] zipfile returns string but expects binary

2008-12-10 Thread Francesco Ricciardi
New submission from Francesco Ricciardi <[EMAIL PROTECTED]>: Each entry of a zip file, as read by the zipfile module, can be accessed via a ZipInfo object. The filename attribute of ZipInfo is a string. However, the read method of a ZipFile object expects a binary as argument, or at least this is

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

2008-12-10 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Thanks for your comments. I'll provide an updated patch later today and let you take a look. > * Memoryview object should report it's length as self->view.shape[0] > unless self->view.shape is NULL (indicating in this case a 0-d array or > s

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

2008-12-10 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: > * I don't see where array.array getbuf implementation is broken. It > looks correct to me. It sets view.shape to NULL unless the consumer > asked for the shape information to be reported in which case it sets it > equal to a pointer to t

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

2008-12-10 Thread Travis Oliphant
Travis Oliphant <[EMAIL PROTECTED]> added the comment: Another comment on statements made * I don't see where array.array getbuf implementation is broken. It looks correct to me. It sets view.shape to NULL unless the consumer asked for the shape information to be reported in which case it se

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

2008-12-10 Thread Quentin Gallet-Gilles
Quentin Gallet-Gilles <[EMAIL PROTECTED]> added the comment: Tried it with Python 2.5.2 on WinXP, I see no memory growth either. -- nosy: +quentin.gallet-gilles ___ Python tracker <[EMAIL PROTECTED]>

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

2008-12-10 Thread Skip Montanaro
Skip Montanaro <[EMAIL PROTECTED]> added the comment: Can you reproduce this with a script that does nothing more than while True: myDate = datetime.datetime(*(time.strptime("2008-12-10T14:00:03", "%Y-%m-%dT%H:%M:%S")[:6])) I tried with both Python 2.4.5 on Solaris and Python built from CVS (

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

2008-12-10 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Mutable function arguments and class variables are python's mechanisms to provide data persistence at these scope levels. Quite opposite of design flaw, they are necessary! Write a decorator to change the behavior where you'd like an emp

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

2008-12-10 Thread Travis Oliphant
Travis Oliphant <[EMAIL PROTECTED]> added the comment: My perspective on statements made: * Memoryview object should report it's length as self->view.shape[0] unless self->view.shape is NULL (indicating in this case a 0-d array or scalar). In this case, it should raise an error. * The buff

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

2008-12-10 Thread Travis Oliphant
Travis Oliphant <[EMAIL PROTECTED]> added the comment: I will take some time in the next week to look at this issue. Thank you for bringing these bugs to my attention. I did not finish the memoryview implementation, due to other demands on my time. I appreciate the efforts of so many to pick

[issue4598] IDLE not opening

2008-12-10 Thread Elizabeth Chang
Elizabeth Chang <[EMAIL PROTECTED]> added the comment: It is working now though so there is no error message anymore. I had to move tk and tcl Python25/Lib. When I hadn't done that, it said it was looking for tk8.4 under a series of directories and it didn't find it. When I moved tk8.4 folder

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

2008-12-10 Thread Grégoire Weber
Grégoire Weber <[EMAIL PROTECTED]> added the comment: I'd like to second rhr. The current behaviour is is not according to Pythons design principle of least surprise. After 5+ years of Python experience as Zope and Plone developer I recently fell into that trap. - Just for information (Disc

[issue2734] 2to3 converts long(itude) argument to int

2008-12-10 Thread Robin Stocker
Changes by Robin Stocker <[EMAIL PROTECTED]>: -- nosy: +robin.stocker ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list ma

[issue2734] 2to3 converts long(itude) argument to int

2008-12-10 Thread Reto Schüttel
Reto Schüttel <[EMAIL PROTECTED]> added the comment: This is even worse in case of attributes (like in pyephem for the observer object): class Foo(object): def __init__(self): self.long = 1 x = Foo() print x.long 2to3 produces: --- attr.py (original) +++ att

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

2008-12-10 Thread BEGUE
New submission from BEGUE <[EMAIL PROTECTED]>: When I use the following line in my process (my process run these line each 10 seconds), memory size increases progressively : myDate = datetime.datetime(*(time.strptime(dateString, "%Y-%m-%dT%H:%M:%S")[0:6])) the '*' operator unpacks the tuple, pro

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

2008-12-10 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: No, it is NOT a bug. The behavior will NOT chance. I'm marking this bug as a documentation issue. -- assignee: -> georg.brandl components: +Documentation -Interpreter Core nosy: +georg.brandl versions: +Python 2.6, Python 2.7, Pyth

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

2008-12-10 Thread Robert Hunger
New submission from Robert Hunger <[EMAIL PROTECTED]>: Reopening of issue 4181. Evaluating default parameter values when the function definition is executed is a design bug. Even the documentation of this behaviour (see http://docs.python.org/reference/compound_stmts.html#index-754) makes this

[issue4618] print_function and unicode_literals don't work together

2008-12-10 Thread STINNER Victor
STINNER Victor <[EMAIL PROTECTED]> added the comment: The TypeError("can't write str to text stream") comes from the newline written by builtin_print(). Workaround: print(u"foo", end=u"\n", file=StringIO()). -- nosy: +haypo ___ Python tracker <[EMAI

[issue4618] print_function and unicode_literals don't work together

2008-12-10 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone <[EMAIL PROTECTED]>: Consider: [EMAIL PROTECTED]:~$ ~/Projects/python/branches/release26-maint/python Python 2.6+ (trunk:66997, Oct 23 2008, 16:02:09) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type "help", "copyright", "credits" or "license" for more

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

2008-12-10 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Thanks for your two messages, Nick, they make things clearer for me and I'll make the necessary modifications in the patch some time today. ___ Python tracker <[EMAIL PROTECTED]>

[issue4613] Can't figure out where SyntaxError: can not delete variable 'x' referenced in nested scope us coming from in python shows no traceback

2008-12-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: I filed issue4617 about the hidden "del e" problem. Meanwhile, you may try to change some variable names, specially the exception target (the 'e' in 'except Exception as e') -- assignee: -> amaury.forgeotdarc priority: critica

[issue4617] SyntaxError when free variable name is also an exception target

2008-12-10 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc <[EMAIL PROTECTED]>: This issue comes from issue4613. The following code raises a SyntaxError("can not delete variable 'e' referenced in nested scope"): def f(): e = None def g(): e try: pass except Exception as e:

[issue4616] tarfile does not set the creation date and time of the extracted directories

2008-12-10 Thread Horváth István Róbert
Horváth István Róbert <[EMAIL PROTECTED]> added the comment: Wooow, you're fast! :-) We use Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32, so that will help us! Thank you, Robert On Wed, Dec 10, 2008 at 12:04 PM, Lars Gustäbel <[EMAIL PROTECTED]>wrote: > >

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

2008-12-10 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Regarding ndim > 0 and shape=NULL, the PEP doesn't allow it. Any code that does it is already broken - we're just making it fail cleanly at the point where it is broken rather than in some obscure fashion somewhere else. ___

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

2008-12-10 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: The reason memoryview's current len() implementation is wrong is because its indexing is per element in the original object, not per byte: >>> a = array('i', range(10)) >>> m = memoryview(a) >>> for i in range(len(m)): ... print(m[i]) ... b'\

[issue4616] tarfile does not set the creation date and time of the extracted directories

2008-12-10 Thread Lars Gustäbel
Lars Gustäbel <[EMAIL PROTECTED]> added the comment: Apparently it is not. os.utime() was fixed for Windows in Python 2.5 (r45925), so it should be possible for tarfile to set directory times now. I will prepare a patch. ___ Python tracker <[EMAIL PROTECTED]>

[issue4303] [2.5 regression] ctypes fails to build on arm-linux-gnu

2008-12-10 Thread Thomas Heller
Thomas Heller <[EMAIL PROTECTED]> added the comment: > It seems that ffi_info moved into ctypes.h: could that have caused the > breakage? Not sure what you mean exactly (there is no ffi_info in ctypes.h), but I assume you are referring to svn rev. 62504? ___

[issue4616] tarfile does not set the creation date and time of the extracted directories

2008-12-10 Thread Lars Gustäbel
Lars Gustäbel <[EMAIL PROTECTED]> added the comment: Directory times are explicitly not set. The comment in TarFile.utime() says that it is an error on Windows to use utime on directories. I am no Windows expert, so I don't know if that is still true. ___ Pyth

[issue1711800] SequenceMatcher bug with insert/delete block after "replace"

2008-12-10 Thread Raymond Hettinger
Raymond Hettinger <[EMAIL PROTECTED]> added the comment: Tim, any comments or interest? -- assignee: -> tim_one nosy: +rhettinger, tim_one ___ Python tracker <[EMAIL PROTECTED]> __

[issue4302] smtplib.py initialisation defect

2008-12-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: Done. Fixed in r67686 (release25-maint). -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4302] smtplib.py initialisation defect

2008-12-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: I will backport this. -- assignee: -> ocean-city ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4610] Unicode case mappings are incorrect

2008-12-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg <[EMAIL PROTECTED]> added the comment: Python uses the Unicode database for the mapping and this only contains 1-1 mappings. The special cases (mostly 1-2 mappings) are not included. It would be nice to have them available as well, but I guess we'd have to write them in code r

[issue4613] Can't figure out where SyntaxError: can not delete variable 'x' referenced in nested scope us coming from in python shows no traceback

2008-12-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: I think I understand. This simple code does not compile with python 3.0: def f(): e = None def g(): e try: pass except Exception as e: pass # SyntaxError here??? The reason is that since 3.0, a

[issue4303] [2.5 regression] ctypes fails to build on arm-linux-gnu

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The question is whether it used to build in 2.5.2, but doesn't build anymore now. If that's what happening, it is a regression. It seems that ffi_info moved into ctypes.h: could that have caused the breakage? ___

[issue4071] ntpath.abspath fails for long str paths

2008-12-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment: >can you please backport this to the 2.5 branch? Sorry for clarification. Which should I backport r67154 or quick_hack_for_getfullpathname_v2.patch? ___ Python tracker <[EMAIL PROTECTED]>

[issue4303] [2.5 regression] ctypes fails to build on arm-linux-gnu

2008-12-10 Thread Thomas Heller
Thomas Heller <[EMAIL PROTECTED]> added the comment: Is this really a regression? I do not think so; the libffi library included with the Python 2.5 ctypes does not support closures on the arm. See file Modules/_ctypes/libffi/src/arm/ffitarget.h, it contains '#define FFI_CLOSURES 0'. __

[issue4616] tarfile does not set the creation date and time of the extracted directories

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Can you debug this? Where specifically does the problem occur? -- assignee: -> lars.gustaebel nosy: +lars.gustaebel ___ Python tracker <[EMAIL PROTECTED]> _

[issue1868] threading.local doesn't free attrs when assigning thread exits

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Since no specific patch was proposed for 2.5.3, I'm untargetting it for 2.5. -- versions: -Python 2.5, Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> _

[issue3863] 2.6rc1: test_threading hangs on FreeBSD 6.3 i386

2008-12-10 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- priority: high -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Pyth

[issue1040026] os.times() is bogus

2008-12-10 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- keywords: -easy ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list m

[issue1040026] os.times() is bogus

2008-12-10 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- priority: normal -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue1711800] SequenceMatcher bug with insert/delete block after "replace"

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Without a patch, this is not a candidate for 2.5.3. -- nosy: +loewis versions: +Python 2.7 -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> __

[issue1706039] Added clearerr() to clear EOF state

2008-12-10 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- priority: normal -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue858809] Use directories from configure rather than hardcoded

2008-12-10 Thread Martin v. Löwis
Changes by Martin v. Löwis <[EMAIL PROTECTED]>: -- versions: -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs

  1   2   >