[issue6126] Python 3 pdb: shows internal code, breakpoints don't work

2009-08-10 Thread Georg Brandl
Georg Brandl added the comment: That's a good question :) A quick test shows that exec() does honor coding cookies in code given as a bytestring, so simply changing to open(..., "rb") should be fine. -- ___ Python tracker

[issue6126] Python 3 pdb: shows internal code, breakpoints don't work

2009-08-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Reading this patch, is it normal that the file is opened in text mode without an encoding specified? What if the source file uses a different encoding than the default system one? -- nosy: +pitrou ___ Python tracker

[issue6681] email.parser clips trailing \n of multipart/mixed part if part ends in \r\n

2009-08-10 Thread Guido van Rossum
Guido van Rossum added the comment: Older Python versions too. -- versions: +Python 2.5 ___ Python tracker ___ ___ Python-bugs-list ma

[issue6681] email.parser clips trailing \n of multipart/mixed part if part ends in \r\n

2009-08-10 Thread Guido van Rossum
New submission from Guido van Rossum : I am using an edge case of multipart/mixed and find that the multipart/mix parser in the email package is broken. See attached example. Similar code using cgi.FieldStorage (!) works fine. The problem happens through the following combination of factors:

[issue6680] Python 3.1 fails to build when db.h contains non-UTF-8 characters

2009-08-10 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : Python 3.1 fails to build when db.h contains non-UTF-8 characters. Python 3.1 checks for db.h even though Python 3 doesn't contain bsddb module. See also https://bugs.gentoo.org/show_bug.cgi?id=280001 Please at least apply the attached

[issue5120] Disabling test_ttk_guionly on mac

2009-08-10 Thread R. David Murray
R. David Murray added the comment: To follow up your question posted on issue 6527 (sorry for the duplicate), I don't currently have a mac to test on. I might have access to one in a couple weeks, though. -- nosy: +r.david.murray priority: -> normal stage: -> patch review __

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-10 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20090810#3.zip adds more Unicode character properties such as "\p{Lowercase_Letter}", and also Unicode script ranges. In addition, the 'findall' method now accepts an 'overlapped' argument for finding o

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: for each of these discrepancies that you're finding, please consider submitting them as patches that add a unittest to the existing test suite. otherwise their behavior guarantees will be lost regardless of if the suite in this issue is adopted. thanks!

[issue6582] test_telnetlib doesn't test Telnet.write

2009-08-10 Thread Rodrigo Steinmuller Wanderley
Changes by Rodrigo Steinmuller Wanderley : Added file: http://bugs.python.org/file14686/telnetlib_writetest.diff ___ Python tracker ___ ___ Pyt

[issue6582] test_telnetlib doesn't test Telnet.write

2009-08-10 Thread Rodrigo Steinmuller Wanderley
Changes by Rodrigo Steinmuller Wanderley : Removed file: http://bugs.python.org/file14668/write_test.patch ___ Python tracker ___ ___ Python-bu

[issue6679] obsolete paragraph in re doc for re.sub

2009-08-10 Thread Mitchell Model
New submission from Mitchell Model : The documentation of re.sub states: "The pattern may be a string or an RE object; if you need to specify regular expression flags, you must use a RE object, or use embedded modifiers in a pattern; for example, sub("(?i)b+", "x", " ") returns 'x x'."

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-10 Thread Vlastimil Brom
Vlastimil Brom added the comment: I'd like to confirm, that the above reported error is fixed in issue2636-20090810#2.zip While testing the new features a bit, I noticed some irregularity in handling the Unicode Character Properties; I tried randomly some of those mentioned at

[issue6678] inspect.currentframe documentation omits optional depth parameter

2009-08-10 Thread William Mill
New submission from William Mill : help(inspect.currentframe) reads: - _getframe(...) _getframe([depth]) -> frameobject Return a frame object from the call stack. If optional integer depth is given, return the frame object that many calls below the top of th

[issue1207589] Right Click Context Menu

2009-08-10 Thread Guilherme Polo
Guilherme Polo added the comment: > 2) display assigned hot keys in popup menu Is that really necessary ? I've looked for that on some applications I use most and none of them include hot keys in right menus. -- ___ Python tracker

[issue1207589] Right Click Context Menu

2009-08-10 Thread Guilherme Polo
Guilherme Polo added the comment: What do you think about adding a third element for each tuple in rmenu_specs ? This new element would be a string determining the name of a function that would be called to define the state of each entry in the right menu. If None is used in place of a string, t

[issue6677] Place the term "delete" within the documentation for os.remove() and os.rmdir()

2009-08-10 Thread Mike Cowperthwaite
New submission from Mike Cowperthwaite : "Remove" and "unlink" are not the most widely-known verbs that come to mind when thinking about deleting objects from the filesystem. A recent Google search for "python delete file" led to the documentation for the 'os' module: http://docs.python.org/lib

[issue6676] expat parser throws Memory Error when parsing multiple files

2009-08-10 Thread Matthew
Matthew added the comment: This also occurs with Python 2.5.1 on OS X -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue6603] Compilation error if configuref --with-computed-gotos

2009-08-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: It sounds like a compiler bug... It would be nice if people could give results with other gcc versions and builds. (my test was done on x86-64 too, by the way) -- ___ Python tracker

[issue6675] inf == inf (wrong IEEE 754 behaviour)

2009-08-10 Thread Mark Dickinson
Mark Dickinson added the comment: The only issue with subnormals is that a simple relative error test is usually inappropriate. For example, on an IEEE 754 machine 2**-1073 should almost always be considered a good approximation to 2**-1074, since the two floats are adjacent; but the relativ

[issue6676] expat parser throws Memory Error when parsing multiple files

2009-08-10 Thread Matthew
New submission from Matthew : I'm using the Expat python interface to parse multiple XML files in an application and have found that it throws a "Memory Error" exception if multiple calls are made to xmlparser.ParseFile(file) on the same xmlparser object. This occurs even with a vanilla xmlparser

[issue6675] inf == inf (wrong IEEE 754 behaviour)

2009-08-10 Thread D Hardy
D Hardy added the comment: Oh; OK, thanks for the response. Sorry, I've used +/- inf and NaN values in other languages and was under the impression inf != inf under IEEE 754. I think this requires explicitly testing for infinity then. For anyone interested, I've written a test which seems to

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-10 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20090810#2.zip has some further improvements and bugfixes. -- Added file: http://bugs.python.org/file14683/issue2636-20090810#2.zip ___ Python tracker <http://bugs.python.org/issue2

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2009-08-10 Thread Timothy Farrell
Timothy Farrell added the comment: I think you hit the nail on the head. Now we just need (someone) to code it. -- ___ Python tracker ___ ___

[issue6674] Fatal error: deallocating None

2009-08-10 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-10 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20090810.zip should fix the empty-string bug. -- Added file: http://bugs.python.org/file14682/issue2636-20090810.zip ___ Python tracker <http://bugs.python.org/issue2

[issue6603] Compilation error if configuref --with-computed-gotos

2009-08-10 Thread Artur Frysiak
Artur Frysiak added the comment: Adding -fno-caller-saves to OPT in Makefile fixes problem. BTW All compilations done on x86_64 architecture. -- versions: +Python 3.2 ___ Python tracker ___

[issue6675] inf == inf (wrong IEEE 754 behaviour)

2009-08-10 Thread Mark Dickinson
Mark Dickinson added the comment: Section 5.11 of IEEE 754-2008, paragraph 2, says: """Infinite operands of the same sign shall compare equal.""" So Python's behaviour follows the standard here. Producing 'is close to' tests is always tricky if you want to be able to deal with IEEE special va

[issue6675] inf == inf (wrong IEEE 754 behaviour)

2009-08-10 Thread Tim Peters
Tim Peters added the comment: +inf == +inf, and -inf == -inf, are required by the 754 standard. However, +inf - +inf, and -inf - -inf, are required (by the same standard) to signal invalid operation and, if that signal is masked (as it is in Python), to return a NaN. Then NaN == x is false for

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2009-08-10 Thread tobias
tobias added the comment: Actually, I think this whole issue is more complex. For example, consider a (fictious) CGI script where users can upload an image and a description and the script sends a success/error message in return. In this case, one has to: - read the HTTP request header from std

[issue6675] inf == inf (wrong IEEE 754 behaviour)

2009-08-10 Thread D Hardy
New submission from D Hardy : Currently python evaluates infinity as equal to itself in my tests (2.6.2 and 3.0.1+ from ubuntu). I'm not entirely sure whether the behaviour of 'inf == inf' is specified by IEEE 754, but it leads to results like: >>> 1e400 inf >>> 1e400 == 1e500 True And hence

[issue6670] Printing the 'The Python Tutorial'

2009-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: I can reproduce the issue using the "Print preview" on Firefox and on IE, on the tutorial and on other pages as well. The Doc has a couple of print rules at the end of http://docs.python.org/_static/basic.css and they look correct (and they are also W3C valid). Wh

[issue6674] Fatal error: deallocating None

2009-08-10 Thread Skip Montanaro
Skip Montanaro added the comment: Is your mh_python module written in C/C++ or Python? If it's written in C or C++ check your Py_DECREF calls. You are probably doubly decrementing some object which at times refers to Py_None. Do that enough and you eventually try to deallocate it. In fact, i

[issue6519] Reorder 'with' statement for files in Python Tutorial

2009-08-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue6556] "HOME" is not a standard environment variable on Windows

2009-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: I tried to echo both %HOME% and %USERPROFILE% on a few windows systems (XP, 2k3 Server and Vista) and only the latter worked. %HOME% is not set in any of these systems. -- nosy: +ezio.melotti priority: -> normal ___ P

[issue6670] Printing the 'The Python Tutorial'

2009-08-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-10 Thread John Machin
John Machin added the comment: Adding to vbr's report: [2.6.2, Win XP SP3] (1) bug mallocs memory inside loop (2) also happens to regex.findall with patterns 'a{0,0}' and '\B' (3) regex.sub('', 'x', 'abcde') has similar problem BUT 'a{0,0}' and '\B' appear to work OK. -- __

[issue6674] Fatal error: deallocating None

2009-08-10 Thread Shashi Gowda
New submission from Shashi Gowda : I'm using the megahal mh_python module to make a bot instance learn from a several 100 files. The code works as it should for 4-6 files before crashing with this error message "Fatal error: deallocating None" There isn't much documentation on this anywhere. ---

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-10 Thread Vlastimil Brom
Vlastimil Brom added the comment: First, many thanks for this contribution; it's great, that the re module gets updated in that comprehensive way! I'd like to report some issue with the current version (issue2636-20090804.zip). Using an empty string as the search pattern ends up consuming sy

[issue6671] webbrowser.py doesn't respect xfce default browser

2009-08-10 Thread Aliaksandr Stelmachonak
Changes by Aliaksandr Stelmachonak : Removed file: http://bugs.python.org/file14678/webbrowser.py.patch ___ Python tracker ___ ___ Python-bugs-

[issue6671] webbrowser.py doesn't respect xfce default browser

2009-08-10 Thread Aliaksandr Stelmachonak
Changes by Aliaksandr Stelmachonak : Added file: http://bugs.python.org/file14680/webbrowser.py.patch ___ Python tracker ___ ___ Python-bugs-li