[issue9069] test_float failure on Solaris

2010-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: Did you have a chance to try a debug build of Python and see if the problem persists there? I'm failing to reproduce this in OpenSolaris 2009.06, running in Parallels on a MacBook Pro (non-debug 32-bit build of Python): dicki...@eratosthenes:~/release26-main

[issue9071] TarFile doesn't support member files with a leading "./"

2010-06-25 Thread Lars Gustäbel
Lars Gustäbel added the comment: This is a duplicate of issue6054 which has been fixed in Python 2.7 (r74571). (Hi, Gustavo!) -- assignee: -> lars.gustaebel nosy: +lars.gustaebel resolution: -> duplicate status: open -> closed ___ Python tracker

[issue9076] Remove PyUnicode_AsDecodedObject/Unicode and PyUnicode_AsEncodedObject/Unicode?

2010-06-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > New submission from STINNER Victor : > > The following 4 functions are public but not documented and not used in > Python3: > - PyUnicode_AsDecodedObject(), PyUnicode_AsEncodedObject() > - PyUnicode_AsDecodedUnicode(), PyUnicod

[issue9076] Remove PyUnicode_AsDecodedObject/Unicode and PyUnicode_AsEncodedObject/Unicode?

2010-06-25 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- assignee: -> d...@python components: +Documentation -Unicode nosy: +d...@python ___ Python tracker ___

[issue9076] Add C-API documentation for PyUnicode_AsDecodedObject/Unicode and PyUnicode_AsEncodedObject/Unicode

2010-06-25 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg : -- title: Remove PyUnicode_AsDecodedObject/Unicode and PyUnicode_AsEncodedObject/Unicode? -> Add C-API documentation for PyUnicode_AsDecodedObject/Unicode and PyUnicode_AsEncodedObject/Unicode ___ Python tracker

[issue9071] TarFile doesn't support member files with a leading "./"

2010-06-25 Thread Free Ekanayaka
Free Ekanayaka added the comment: Thanks for the prompt reply! Cool to know this is already fixed. -- ___ Python tracker ___ ___ Pytho

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-25 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r82214. Now os.path.normcase() raises a TypeError if the arg is not str or bytes. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue9069] test_float failure on Solaris

2010-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: So perhaps the cause is simply that copysign isn't being declared for David's Python builds? If that were the case, I'd expect to see some gcc warnings in the Python build output, something like: warning: implicit declaration of function `copysign' Davi

[issue9069] test_float failure on Solaris

2010-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: David, my pyconfig.h file contains: /* Defined on Solaris to see additional function prototypes. */ #define __EXTENSIONS__ 1 Does yours? -- ___ Python tracker ___

[issue9080] Provide list prepend method (even though it's not efficient)

2010-06-25 Thread Andy Buckley
New submission from Andy Buckley : I know that Python lists aren't designed for efficient prepending, but sometimes when working with small lists it's exactly what needs to be done (search path lists being a common example). For a programmer aware of the performance issue and having convinced

[issue9080] Provide list prepend method (even though it's not efficient)

2010-06-25 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Thanks for bringing this up. I think you have more work to do to successfully make the case that L.insert(0, x) is "difficult" enough to merit the addition of a new list method. There are already at least two in-place insert-at-front list APIs (the seco

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2010-06-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9078] Fix C API documentation of unicode

2010-06-25 Thread Georg Brandl
Georg Brandl added the comment: Looks good to me. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue9080] Provide list prepend method (even though it's not efficient)

2010-06-25 Thread Andy Buckley
Andy Buckley added the comment: Maybe I just value method symmetry/equivalence higher than the designers when it comes to interface expectations. I've seen several "I expected there to be a prepend() method like append() on lists, but there isn't -- what do I do?" emails on list archives when

[issue9077] argparse does not handle arguments correctly after --

2010-06-25 Thread Georg Brandl
Georg Brandl added the comment: Not a bug -- you have to tell argparse that you expect a positional argument. Try without the '--' and an argument that doesn't start with '-', and it will still give you that error. -- nosy: +georg.brandl resolution: -> invalid status: open -> closed

[issue9080] Provide list prepend method (even though it's not efficient)

2010-06-25 Thread Ezio Melotti
Ezio Melotti added the comment: If we add a .prepend() method, people will see it and start using it. Since now there's no 'prepend' method people ask why, and the answer they usually get is "because it not a good idea to add elements on lists (but if you really have to use the 'insert' metho

[issue9080] Provide list prepend method (even though it's not efficient)

2010-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: Andy, the bug-tracker isn't really the best place for this sort of discussion; if you want to take this further I'd suggest mailing the python-ideas mailing list (bigger audience). FWIW, the bar for adding new methods to builtins should be pretty high; I agr

[issue9080] Provide list prepend method (even though it's not efficient)

2010-06-25 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > The argument that "there are already two ways to do it, so why add a third?", > is not bad, but if applied to appending, it would ban the append() method... > except that it's already there. Not quite. First let's consider the insert approach. Unlike

[issue9080] Provide list prepend method (even though it's not efficient)

2010-06-25 Thread Georg Brandl
Georg Brandl added the comment: [insert the usual reference to collections.deque here] -- nosy: +georg.brandl ___ Python tracker ___ _

[issue9080] Provide list prepend method (even though it's not efficient)

2010-06-25 Thread Ezio Melotti
Ezio Melotti added the comment: Here: http://docs.python.org/py3k/tutorial/datastructures.html#using-lists-as-queues -- ___ Python tracker ___ __

[issue9080] Provide list prepend method (even though it's not efficient)

2010-06-25 Thread Andy Buckley
Andy Buckley added the comment: Still not convinced with the reasoning, I'm afraid, but I certainly agree that modifications to built-ins are not to be made lightly. Using deques, which are far less familiar, is not a particularly natural thing to do for a search path, and of course can't be

[issue9077] argparse does not handle arguments correctly after --

2010-06-25 Thread Domen Kožar
Domen Kožar added the comment: I agree — not the best example, here is a better one explaining what behavior should not exist: >>> parser = argparse.ArgumentParser() >>> parser.add_argument('foobar', action='store') >>> parser.add_argument('foobar2', nargs='?') >>> parser.add_argument('foobar3

[issue9079] Make gettimeofday available in time module

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Mark, I am reassigning this to you for commit review. I am changing the title to reflect the visible part of the change. The datetime module gains direct access to system gettimeofday at the C level while time module grows time.gettimeofday() Python

[issue8947] Provide as_integer_ratio() method to Decimal

2010-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: Raymond, do you have any thoughts on this proposal? -- nosy: +rhettinger ___ Python tracker ___ ___

[issue8860] Rounding in timedelta constructor is inconsistent with that in timedelta arithmetics

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: >> The timedelta(seconds=0.6112295) example is handled correctly > No, it's not! It's being rounded *up* where it should be > being rounded *down*. Let me try to reformulate the issue. When use is entering 0.6112295, she means 0.6112295, not 0x1.38f31

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-25 Thread Roland Johnson
Roland Johnson added the comment: Does this also relate to 3.1? Tkinter in not installing for that version under 10.6.4 -- nosy: +RolandJ ___ Python tracker ___

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Deprecating the feature for 3.x is certainly an option. > May be a little drastic though. How drastic would be to stop subclassing datetime from date in 3.2? After all, we don't subclass float form int. -- ___

[issue1578643] various datetime methods fail in restricted mode

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See issue9079. -- dependencies: +Make gettimeofday available in time module ___ Python tracker ___

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-25 Thread Ronald Oussoren
Ronald Oussoren added the comment: AFAIK there is no 64-bit installer for 3.1. There will be one for 3.2. Sridhar: building using the 10.5 SDK should also work by using --enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk. I've recently patched setup.py and distutils to honor the SDK setting

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This proved to require a lot of changes to C implementation because most of timezone arithmetics is done using integer operations with offset in minutes. It is easy, however to do this in pure python implementation which can be found at http://svn.pyth

[issue3485] os.path.normcase documentation/behaviour unclear on Mac OS X

2010-06-25 Thread Ezio Melotti
Ezio Melotti added the comment: I'm reopening this because now the normcase implementation of posixpath has a todo that says "on Mac OS X, this should really return s.lower()." (see r66743). There is some discussion about this in #9018. -- nosy: +ezio.melotti status: closed -> open __

[issue9051] Improve pickle format for aware datetime instances

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The datetime module provides compact pickled representation for date, datetime, time and timedelta instances: type: size date: 34 datetime: 44 time: 36 timedelta: 37 On the other hand, current pickle size for timezone is 64 and the size of an aware da

[issue9081] test_sysconfig failure

2010-06-25 Thread Michael Foord
New submission from Michael Foord : When I do a *full test run* of py3k I get a distutils test failure. It doesn't happen if I run test_distutils on its own: bigmac:py3k michael$ ./python.exe -m test.regrtest -j12 == CPython 3.2a0 (py3k:82215, Jun 25 2010, 13:59:00) [GCC 4.2.1 (Apple Inc. buil

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2010-06-25 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-06-25, at 8:13 AM, Ronald Oussoren wrote: > Sridhar: building using the 10.5 SDK should also work by using > --enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk. I've recently patched > setup.py and distutils to honor the SDK setting when looking

[issue9051] Improve pickle format for aware datetime instances

2010-06-25 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: As part of this, we should ensure references to common timezones, like UTC, only create references to a single instance rather than filling memory with multiple instances. One consequence of this is that shared instances should probably be immutable. -

[issue9079] Make gettimeofday available in time module

2010-06-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: It would be great if Tim Peters could be consulted about some of these ideas. He put a great deal of thought into the API, what should be included and what should be excluded. -- nosy: +rhettinger ___ Python tr

[issue8947] Provide as_integer_ratio() method to Decimal

2010-06-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: -0 I don't think we really need this (we've already got a reasonable conversion to Fraction). In general, we should have a aversion to adding any methods to the decimal API because it is already very fat. Adding more methods makes it harder to figure ou

[issue9079] Make gettimeofday available in time module

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would very much appreciate Tim's input on datetime issues. This particular issue is fairly minor, but Tim's expertise will be invaluable for anything timezone related. I do appreciate the incredible amount of brainpower that went into the design of

[issue8947] Provide as_integer_ratio() method to Decimal

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Raymond, conversion to Fraction does not really help in my use case of supporting timedelta * Decimal by duck typing. I can think of many other use cases where it will be helpful to accept either float or decimal without loss of precision. Is there a

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here is a similar issue which may be easier to fix: >>> def f(a, b=None, *, c=None, d=None): ...pass >>> f(1,2,3) Traceback (most recent call last): File "", line 1, in TypeError: f() takes at most 4 arguments (3 given) Should be "f() takes at

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: belopolsky -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2010-06-25 Thread Germán L . Osella Massa
Germán L. Osella Massa added the comment: Well, using negative indexes for fields can be thought as a new feature with all the consequences mentioned before BUT negative indexes for accessing elements from a sequence, IMHO, is something that anyone would expected to work. That's why at first

[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-25 Thread Joseph Turian
Joseph Turian added the comment: I just got bit by this bug. This documentation (http://docs.python.org/library/struct.html) claims that an unsigned long is 4 bytes. On my machine, it's 8. -- nosy: +Joseph Turian ___ Python tracker

[issue9051] Improve pickle format for aware datetime instances

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching a python prototype implementing interned UTC instance pickling. The patch is against sandbox revision r82218 of datetime.py. Note that the pickling protocol requires that an instance or factory function is defined at the module level. T

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r82220. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: > This documentation (http://docs.python.org/library/struct.html) > claims that an unsigned long is 4 bytes. I don't think it does, if you read it closely. Of course, patches to improve the docs are always welcome. :) If you're looking at the table of format

[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a proposed doc clarification. -- keywords: +patch Added file: http://bugs.python.org/file17770/issue1789_doc.patch ___ Python tracker ___

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Maybe I'm misunderstanding what issue we're talking about here, but wasn't this supposed to be fixed? giampa...@ubuntu:~/svn/python-3.2$ python3.2 Python 3.2a0 (py3k:82220M, Jun 25 2010, 21:38:56) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits"

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-25 Thread R. David Murray
R. David Murray added the comment: Victor: that was exactly the point of my post that you partially quoted :) -- ___ Python tracker ___ __

[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-25 Thread Joseph Turian
Joseph Turian added the comment: That patch gives good clarification. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue1789] assumption about unsigned long byte size in struct module usage

2010-06-25 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: gregory.p.smith -> mark.dickinson status: closed -> open ___ Python tracker ___ ___ Python-bug

[issue9077] argparse does not handle arguments correctly after --

2010-06-25 Thread R. David Murray
R. David Murray added the comment: Still looks like it is working as designed to me. Argpase is *parsing* the arguments, that's part of the whole point. What you are observing is what I would expect from a well behaved unix command (*arguments* before the -- are just arguments, only the int

[issue1776674] glob.glob inconsistent

2010-06-25 Thread Mark Lawrence
Mark Lawrence added the comment: Hardly a show stopper. It's actually a problem(?) with ntpath.py. It could be patched but is it worth it, as this would be yet more work for you guys doing the build/release process? I'd close this on the grounds that it's not worth the effort. -- n

[issue9082] warnings.filterwarnings doesn't work with -O

2010-06-25 Thread Michael Foord
New submission from Michael Foord : warnings.filterwarnings is mostly a bunch of asserts, so it doesn't work when Python is run with -O or -OO. This also means that a bunch of tests fail when run with -O or -OO. Two options are skip the tests or fix filterwarnings. -- components: Libr

[issue9082] warnings.filterwarnings doesn't work with -O

2010-06-25 Thread Michael Foord
Michael Foord added the comment: A third (and better) option, but a deeper change, would be to allow the enabling of asserts on a per-module basis even when Python is run with -O/-OO. This would be great for testing. -- ___ Python tracker

[issue9069] test_float failure on Solaris

2010-06-25 Thread Mark Dickinson
Mark Dickinson added the comment: Now that I've finally managed to get gcc 4.4.4 installed on OpenSolaris... .. I'm still failing to reproduce this bug. :( dicki...@eratosthenes:~/release26-maint$ uname -a SunOS eratosthenes 5.11 snv_134 i86pc i386 i86pc Solaris dicki...@eratosthenes:~/releas

[issue9039] IDLE and module Doc

2010-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Try making an idle.bat file on your desktop. -- nosy: +tjreedy ___ Python tracker ___ ___ Python-bug

[issue2516] Instance methods are misreporting the number of arguments

2010-06-25 Thread R. David Murray
R. David Murray added the comment: I presume Benjamin meant he fixed the special case Alexander reported. -- ___ Python tracker ___ __

[issue9082] warnings.filterwarnings doesn't work with -O

2010-06-25 Thread Michael Foord
Changes by Michael Foord : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9043] 2to3 doesn't handle byte comparison well

2010-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Replacing string indexes with length-1 slices in the 2.x codebase, whether or not one one is running 2to3, seems to be a 'known' technique for Python3 portability and unicode-bytes inter-operability. (It was discussed this week on py-dev list .) But I do not

[issue1528074] difflib.SequenceMatcher.find_longest_match() wrong result

2010-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: This appears to be one of at least three duplicate issues: #1528074, #2986, and #4622. I am closing two, leaving 2986 open, and merging the nearly disjoint nosy lists. (If no longer interested, you can delete yourself from 2986.) #1711800 appears to be slight

[issue4622] SequenceMatcher bug with long sequences

2010-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: This appears to be one of at least three duplicate issues: #1528074, #2986, and #4622. I am closing two, leaving 2986 open, and merging the nearly disjoint nosy lists. (If no longer interested, you can delete yourself from 2986.) #1711800 appears to be slight

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: This appears to be one of at least three duplicate issues: #1528074, #2986, and #4622. I am closing two, leaving 2986 open, and merging the nearly disjoint nosy lists. (If no longer interested, you can delete yourself from 2986.) #1711800 appears to be slight

[issue1524639] Fix Tkinter Tcl-commands memory-leaks

2010-06-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> patch review versions: +Python 3.2 -Python 2.5, Python 3.0 ___ Python tracker ___ ___ Pyth

[issue4726] doctest gets line numbers wrong due to quotes in comments

2010-06-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> works for me status: open -> pending versions: -Python 2.4, Python 2.5 ___ Python tracker ___ _

[issue7673] audioop: check that length is a multiple of the size

2010-06-25 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue4640] optparse - dosn't distinguish between '--option' and '-option'

2010-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, I am interpreting your comment as saying that this is not a bug. If I am wrong, someone can re-open. In any case, the bug would have to be in 2.6 or more realistically, 2.7, since 2.6.final will be out soon. -- nosy: +tjreedy resolution: ->

[issue4775] Incorrect documentation - UTC time

2010-06-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5 ___ Python tracker ___ ___ Python-

[issue4640] optparse - dosn't distinguish between '--option' and '-option'

2010-06-25 Thread Éric Araujo
Éric Araujo added the comment: optparse specifically supports only GNU-style two-dashes long argument. Victor is right, optparse will always understand -thing as -t -h -i -n -g. -- nosy: +merwok resolution: works for me -> invalid stage: -> committed/rejected

[issue1322] platform.dist() has unpredictable result under Linux

2010-06-25 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file8609/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue1322] platform.dist() has unpredictable result under Linux

2010-06-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue9069] test_float failure on Solaris

2010-06-25 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson wrote: > Now that I've finally managed to get gcc 4.4.4 installed on OpenSolaris... > > .. I'm still failing to reproduce this bug. :( > > > dicki...@eratosthenes:~/release26-maint$ uname -a > SunOS eratosthenes 5.11 snv_134 i86pc i386 i86pc Solaris

[issue1222721] tk + setlocale problems...

2010-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: The backspace issue seems to have been fixed. I modified bug.py for 3.1 by removing the coding cookie, changing unicode("Ïðîáà", "KOI8-R") to just "Ïðîáà", and fixing print. Running from IDLE, it ran and displayed a tk window with text entry and labelled butt

[issue4872] Python will not co-exist with MFC (memory leak)

2010-06-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> invalid status: open -> pending versions: -Python 2.5, Python 3.0 ___ Python tracker ___ __

[issue9083] At least some Tools utilities are still Python 2

2010-06-25 Thread Steve Holden
New submission from Steve Holden : C:\Users\sholden>\python31\python \python31\Tools\webchecker\wcgui.py Traceback (most recent call last): File "\python31\Tools\webchecker\wcgui.py", line 63, in from Tkinter import * ImportError: No module named Tkinter This makes is seem pretty clear th

[issue3383] ctypes.util fails to find libc in some environments

2010-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given the patch applied for #4861, I think this should be closed until someone finds that there is still a bug in a current version of Python and determines that there is something to be done. -- nosy: +tjreedy resolution: -> out of date status: open

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Adding tim_one to the nosy list. Tim, It would be great if you could shed some light on the history behind pure python implementation. Why was it developed in the first place? What was the reason not to ship it with python? Thanks. -- nosy:

[issue4925] Improve error message of subprocess when cannot open

2010-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Improved error messages are feature requests because 1) there is no particular guarantee in the doc and 2) changes can break existing code, so should only happen in an new x.y version. When reporting behavior, it is helpful to give *minimal* code that will r

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-25 Thread Tim Peters
Tim Peters added the comment: > It would be great if you could shed > some light on the history behind pure > python implementation. Why was it > developed in the first place? It was rapid prototyping - design decisions were changing daily, and it goes a lot faster to change Python code than

[issue1565525] gc allowing tracebacks to eat up memory

2010-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given comments like "I'm still having problems figuring out what the bug is that you are reporting. (Martin)" and "I must repeat that there is no simple-minded way to 'repair' this. (Tim)", and subsequent changes to Python, should this still be open? If so, f

[issue9083] At least some Tools utilities are still Python 2

2010-06-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gpolo stage: unit test needed -> needs patch type: feature request -> behavior versions: +Python 3.2 ___ Python tracker ___ _

[issue1565525] gc allowing tracebacks to eat up memory

2010-06-25 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> wont fix status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue9082] warnings.filterwarnings doesn't work with -O

2010-06-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> brett.cannon nosy: +brett.cannon priority: normal -> high versions: +Python 2.6, Python 3.1 ___ Python tracker ___ ___

[issue4943] trace.CoverageResults.write_results can't write results file for modules loaded by __path__ manipulation

2010-06-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +easy stage: -> patch review type: -> behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.5 ___ Python tracker

[issue9081] test_sysconfig failure

2010-06-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hurray, I'm not the only one! -- nosy: +pitrou resolution: -> duplicate status: open -> closed superseder: -> test_distutils failure ___ Python tracker __

[issue9038] test_distutils failure

2010-06-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2010-06-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7 -Python 2.4, Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-25 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Tim, thanks for your prompt reply. What would be your opinion on adding datetime.py to the main python tree today? There is momentum behind several features to be added to datetime module and having easily accessible prototype would give similar benefit

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It is hard for me to judge the significance of maintenance burden, but > others reported that having parallel versions of the io module was > helpful. I believe that with proper support in the regression test > suit, it should be quite manageable. For io, we

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2010-06-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can't reproduce under Mandriva Linux: >>> import mimetypes >>> print(mimetypes.guess_extension('image/jpeg')) .jpe >>> mimetypes.init() >>> print(mimetypes.guess_extension('image/jpeg')) .jpe The fact that it returns ".jpe" rather than ".jpg", however, could b

[issue9083] At least some Tools utilities are still Python 2

2010-06-25 Thread Guido van Rossum
Guido van Rossum added the comment: Webchecker is so old, it should be deleted. -- nosy: +gvanrossum ___ Python tracker ___ ___ Python

[issue9077] argparse does not handle arguments correctly after --

2010-06-25 Thread Domen Kožar
Domen Kožar added the comment: Optparse behaved like that, how would one get the same results with argparse? That is by having variable positional parameters to command. And at the same time stop at --. -- ___ Python tracker

[issue1565525] tracebacks eat up memory by holding references to locals and globals when they are not wanted

2010-06-25 Thread Greg Hazel
Greg Hazel added the comment: This is still an issue. The bug I'm reporting had been explained well, I thought, but I'll repeat it in summary: There is no way to pass around traceback objects without holding references to an excessive number of objects. Traceback raising typically does not u

[issue9069] test_float failure on Solaris

2010-06-25 Thread David Kirkby
David Kirkby added the comment: Hi, I had hoped to devote more time to this, but have been able to. I will do at the weekend. I would add I was building 64-bit, so adding the compiler flag -m64 on 'hawk' at least some of the time. Depending on your hardware, assuming you have installed !Ope

[issue9040] using MIMEApplication to attach a PDF raises a TypeError exception

2010-06-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue5045] imaplib should remove length of literal strings

2010-06-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: While IMAP is very much a live protocol, I do not know that any of the currently active core developers know much about it. Imaplib is based on the obsolete RFC2060 of Dev 1996, superseded by 3501 in March 2003, with 6 later updates. (I just found all this ou

  1   2   >