[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: I still cannot reproduce this: [EMAIL PROTECTED]:/tmp/h$ ls -l insgesamt 12 -rw-r--r-- 1 martin martin 172 10. Dez 08:40 directory.tar -rw-r--r-- 1 martin martin 1497 25. Feb 2008 pack.py -rw-r--r-- 1 martin martin 1129 10. Dez 08:58 testc

[issue4342] (Tkinter) Please backport these

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I'm skeptical about backporting r59654. Doing so might break existing applications. -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]> _

[issue4342] (Tkinter) Please backport these

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Can you remind me what problem was fixed with r59653? I can't find the Tk tracker anymore on which this apparently was reported. If it fixes a problem with supporting Tcl 8.5, then I will also reject the request. Supporting Tcl 8.5 is a new

[issue4533] 3.0 file.read dreadfully slow

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

[issue4532] Fails to build on QNX 6.3.2

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

[issue4449] AssertionError in Doc/includes/mp_benchmarks.py

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

[issue4565] io write() performance very slow

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

[issue4561] Optimize new io library

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

[issue1717] Get rid of more refercenes to __cmp__

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

[issue4604] close() seems to have limited effect

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

[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: Thomas, do you have an idea what might be causing this problem, or a proposal how to resolve it? -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]>

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: IIUC, no fix for this bug has been proposed, so the issue is no candidate for 2.5.3. -- versions: -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> _

[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: As the patch hasn't been applied to the trunk yet, I'm rejecting it for 2.5.3. -- nosy: +loewis versions: -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> _

[issue4212] email.LazyImporter does not use absolute imports

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: No patch has been proposed, so the issue is not eligible for 2.5.3. -- nosy: +loewis versions: +Python 2.6 -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> _

[issue4222] dis.findlinestarts is missing from dis.__all__ and from the online documentation

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Such a change is out of scope for maintenance releases (in any case, no resolution has been proposed, yet). -- nosy: +loewis versions: +Python 2.7 -Python 2.4, Python 2.5, Python 2.5.3, Python 2.6 ___

[issue4177] Crash in MIMEText on FreeBSD

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: IIUC, no patch has been proposed. So retargetting it to later versions. -- nosy: +loewis versions: +Python 2.7 -Python 2.5, Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]>

[issue4228] struct.pack('L', -1)

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Can you provide a fix within the next two days? Otherwise, I see little chance that this gets fixed in 2.5. -- nosy: +loewis ___ 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: The patch is fine; please apply. -- assignee: -> akuchling nosy: +loewis priority: -> release blocker resolution: -> accepted ___ Python tracker <[EMAIL PROTECTED]>

[issue4278] optparse quirks

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: No patch proposed yet, so retargetting to trunk. -- nosy: +loewis versions: +Python 2.7 -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]>

[issue4071] ntpath.abspath fails for long str paths

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: ocean-city, can you please backport this to the 2.5 branch? -- assignee: -> ocean-city nosy: +loewis priority: -> release blocker resolution: -> accepted ___ Python tracker <[EMAIL PROTECTED]>

[issue4071] ntpath.abspath fails for long str paths

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: As a follow-up: please don't forget to add Misc/NEWS entries (both for the already-committed patch, as well as for the backport). ___ Python tracker <[EMAIL PROTECTED]> _

[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: IIUC, there is no proposed patch yet, so this is out of scope for 2.5.3. -- nosy: +loewis versions: -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4302] smtplib.py initialisation defect

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Backporting is fine with me: any volunteers? -- priority: -> release blocker ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2996] IDLE "find in files" output not formatted optimally

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

[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: Sorry, I thought that by selecting component "Windows" from the first combo box I specify that this problem occurs on a windows machine. I run win xp sp2. As you can see in the screenshot, the unpacked directory has the current date a

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

2008-12-10 Thread Horváth István Róbert
Changes by Horváth István Róbert <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file12315/python_tarfile_win.JPG ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3248] ScrolledText can't be placed in a PanedWindow

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: What problem is solved by ScrolledText.diff that isn't already solved by scrolledtext_masterstr.diff? -- nosy: +loewis priority: -> release blocker ___ Python tracker <[EMAIL PROTECTED]>

[issue3767] tkColorChooser may fail if no color is selected

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

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

2008-12-10 Thread Horváth István Róbert
Changes by Horváth István Róbert <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file12316/python_tarfile_win.JPG ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4379] Py_SAFE_DOWNCAST in FILE_TIME_to_time_t_nsec failing

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: IIUC, the patch relies on VS 2008. So it is not a candidate for 2.5.3. -- nosy: +loewis versions: +Python 2.6, Python 2.7 -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]>

[issue4328] "à" in u"foo" raises a misleading error

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: No patch has been proposed yet, so un-targetting for bugfix branches. -- nosy: +loewis versions: -Python 2.4, Python 2.5, Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]>

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

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Can you provide a test case demonstrating a problem? -- nosy: +loewis versions: +Python 2.7 -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]>

[issue4446] Distutils Metadata Documentation Missing "platforms" Keyword

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

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

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: This change is out of scope for 2.5.3 (plus, the desired behavior still seems to be debated) -- nosy: +loewis versions: -Python 2.5, Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]>

[issue4508] distutils compiler not handling spaces in path to output/src files

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The patch hasn't been accepted for the trunk, yet, so it is not a candidate for a 2.5 backport. -- nosy: +loewis versions: -Python 2.1.1, Python 2.1.2, Python 2.2, Python 2.2.1, Python 2.2.2, Python 2.2.3, Python 2.3, Python 2.4, P

[issue4197] Doctest module does not work with zipped packages

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The precise solution still seems to be debated, so this is out of scope for 2.5.3. -- nosy: +loewis versions: -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]>

[issue4201] Pdb cannot access source code in zipped packages.

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The patch hasn't been accepted for the trunk, yet, so it is out of scope for 2.5.3. Retargetting. -- nosy: +loewis versions: +Python 2.7 -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]>

[issue4368] A bug in ncurses.h still exists in FreeBSD 4.9 - 4.11

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

[issue4567] Registry key not set if unattended installation used

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

[issue4568] Improved optparse "varargs" callback example

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The 2.5 documentation is not in .rst, so I remove these versions. -- nosy: +loewis versions: -Python 2.5, Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> __

[issue4335] inspect.getsourcelines ignores last line in module

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: The patch has not been accepted for the trunk, so backporting it to 2.5.3 is out of scope at this point. -- nosy: +loewis versions: -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]>

[issue4220] Builtins treated as free variables?

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: There is no proposed patch yet, so this is out of scope for 2.5.3. -- nosy: +loewis versions: -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> _

[issue416670] MatchObjects not deepcopy()able

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: As far as I can tell, there is no proposed patch. So this is out of scope for 2.5.3. -- versions: -Python 2.5.3 ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4555] Smelly exports

2008-12-10 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: There is no proposed patch yet, so removing 2.5.3 from the target versions. -- versions: -Python 2.5.3 ___ 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: Unless Facundo or some of the other decimal contributors reviews and applies this patch really quickly, it is out of scope for 2.5.3. -- nosy: +loewis ___ 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

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

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

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

[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

[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

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

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

[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'. __

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

[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

[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

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

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

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

[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

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

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

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

[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

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

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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

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

[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

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

[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

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

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

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

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

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

[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

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

[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

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

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

[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

  1   2   >