[issue6671] webbrowser.py doesn't respect xfce default browser
Changes by Aliaksandr Stelmachonak mail.ava...@gmail.com: Added file: http://bugs.python.org/file14680/webbrowser.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6671 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6671] webbrowser.py doesn't respect xfce default browser
Changes by Aliaksandr Stelmachonak mail.ava...@gmail.com: Removed file: http://bugs.python.org/file14678/webbrowser.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6671 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Vlastimil Brom vlastimil.b...@gmail.com 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 system resources and the function doesn't return anything nor raise an exception or crash (within several minutes I tried). The current re engine simply returns the empty matches on all character boundaries in this case. I use win XPh SP3, the behaviour is the same on python 2.5.4 and 2.6.2: It should be reproducible with the following simple code: import re import regex re.findall(, abcde) ['', '', '', '', '', ''] regex.findall(, abcde) _ regards vbr -- nosy: +vbr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6674] Fatal error: deallocating None
New submission from Shashi Gowda connect2sha...@gmail.com: 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. -- components: Interpreter Core files: learn.py messages: 91438 nosy: shashi severity: normal status: open title: Fatal error: deallocating None type: crash versions: Python 2.6 Added file: http://bugs.python.org/file14681/learn.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
John Machin sjmac...@users.sourceforge.net 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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6670] Printing the 'The Python Tutorial'
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6670 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6556] HOME is not a standard environment variable on Windows
Ezio Melotti ezio.melo...@gmail.com 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6556 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6519] Reorder 'with' statement for files in Python Tutorial
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6519 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6674] Fatal error: deallocating None
Skip Montanaro s...@pobox.com 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, it does appear that the Megahal python wrapper is written in C. I don't know where the source is, but it's almost certain the problem lies there, not in the Python interpreter core. I suggest you contact the Megahal author(s). -- nosy: +skip.montanaro ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6670] Printing the 'The Python Tutorial'
Ezio Melotti ezio.melo...@gmail.com 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). While I was trying to debug the problem using the Web Developer plug-in of Firefox and the Edit CSS option the problem disappeared without changing anything. This is quite weird and lead me to think that there could be a priority problem (even if I can't see any other rule that overrides the print rules). Possible solutions could be: 1) add a couple of !important in the print rules; 2) move the print rules somewhere else; 3) create a distinct print CSS where to put all the print rules. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6670 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6675] inf == inf (wrong IEEE 754 behaviour)
New submission from D Hardy diggory.ha...@gmail.com: 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 unittests which use tests like if not (math.fabs(value1 - value2) = 0.0001 * max(math.fabs(value1),math.fabs(value2))): fail don't always fail when they should (when a value is inf). This is a specific example (and probably not the recommended way of testing values in any case), but I think inf != inf is generally considered the correct behaviour. (Although maybe this is left over from the PEP 42 / PEP 754 mess; I wasn't able to find the current status of implementing IEEE 754 behaviour in python.) -- components: None messages: 91443 nosy: Cyborg16 severity: normal status: open title: inf == inf (wrong IEEE 754 behaviour) type: behavior versions: Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
tobias fatb...@web.de 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 stdin as US-ASCII - read the image from stdin as raw binary data - read the description from stdin as a string in some encoding - write the HTTP response header to stdout as US-ASCII - write the response message to stdout in some (other) encoding - write error messages to server log via stderr as US-ASCII Also, there are cases when a cgi script should return binary data instead (e.g., images or archive files) or apply a transfer encoding (e.g., gzip). Although FieldStorage only cares about reading, it still has to cope with intermixed textual and binary data. So the only practical way in my opinion is to use raw binary data and have FieldStorage decode strings on demand, since only the programmer knows whether a field should contain text or binary data. FieldStorage should offer two methods for this purpose: one for reading binary data and another for reading and decoding strings on-the-fly (possibly using a default encoding passed to its constructor). -- nosy: +tobias ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6675] inf == inf (wrong IEEE 754 behaviour)
Tim Peters tim.pet...@gmail.com 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 any value of x (including a NaN). OTOH, +inf != -inf, +inf - -inf == +inf, and -inf - +inf == -inf. Current versions of Python implement all of that. -- nosy: +tim_one ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6675] inf == inf (wrong IEEE 754 behaviour)
Mark Dickinson dicki...@gmail.com 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 values (subnormals, negative zero, infinities, NaNs). You could always write your unittest as: if not (value1 == value2 or relative_error_test). but this still doesn't consider NaNs, and probably doesn't do what you want for subnormals either. Closing as invalid. -- nosy: +marketdickinson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6603] Compilation error if configuref --with-computed-gotos
Artur Frysiak wi...@pld-linux.org 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 rep...@bugs.python.org http://bugs.python.org/issue6603 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: issue2636-20090810.zip should fix the empty-string bug. -- Added file: http://bugs.python.org/file14682/issue2636-20090810.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6674] Fatal error: deallocating None
Changes by Benjamin Peterson benja...@python.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6674 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0
Timothy Farrell tfarr...@swgen.com added the comment: I think you hit the nail on the head. Now we just need (someone) to code it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Matthew Barnett pyt...@mrabarnett.plus.com 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 rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6675] inf == inf (wrong IEEE 754 behaviour)
D Hardy diggory.ha...@gmail.com 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 work well. Sub-normals I don't think are an issue since it doesn't deal with the binary representation (it was never intended to be computationally efficient). It's at: http://code.google.com/p/openmalaria/source/browse/trunk/test/compareOutputsFl -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6675 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6676] expat parser throws Memory Error when parsing multiple files
New submission from Matthew webmas...@adurosolutions.com: 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 object created with xml.parsers.expat.ParserCreate(). Python Version: 2.6.2 Operating System: Ubuntu -- components: XML files: expat-error.py messages: 91452 nosy: realpolitik severity: normal status: open title: expat parser throws Memory Error when parsing multiple files type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file14684/expat-error.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6603] Compilation error if configuref --with-computed-gotos
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue6603 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6676] expat parser throws Memory Error when parsing multiple files
Matthew webmas...@adurosolutions.com added the comment: This also occurs with Python 2.5.1 on OS X -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6676 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6677] Place the term delete within the documentation for os.remove() and os.rmdir()
New submission from Mike Cowperthwaite mi...@lathropengineering.com: 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/library/os.html but searching within that page for delet completely misses os.remove(), os.unlink(), and os.rmdir(). Suggest simply expanding the first sentence of os.remove()'s paragraph to: Remove the file /path/ (delete the file). Similarly for os.rmdir(): Remove the directory /path/ (delete the directory). Also regarding os.rmdir(), it would be nice to add a mention here of this information from os.walk(): rmdir() doesn’t allow deleting a directory before the directory is empty. The URL above is for the 2.6 version (chapter 16.1.4); also seen in the 3.1 documentation (15.1.5); presumably it's also in the development versions. Patching backwards as far as feasible would be appreciated. -- assignee: georg.brandl components: Documentation messages: 91456 nosy: georg.brandl, mcow severity: normal status: open title: Place the term delete within the documentation for os.remove() and os.rmdir() versions: Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6677 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1207589] Right Click Context Menu
Guilherme Polo ggp...@gmail.com 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, then it is assumed that the entry doesn't require such thing. Attaching a patch that does that. It also adds cut/copy/paste to the right menu in IDLE shell. -- Added file: http://bugs.python.org/file14685/rightmenu_copypastecut.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1207589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1207589] Right Click Context Menu
Guilherme Polo ggp...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue1207589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6678] inspect.currentframe documentation omits optional depth parameter
New submission from William Mill bill.m...@gmail.com: 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 the stack. If that is deeper than the call stack, ValueError is raised. The default for depth is zero, returning the frame at the top of the call stack. This function should be used for internal and specialized purposes only. --- The python library documentation, however, doesn't mention the optional depth parameter: --- inspect.currentframe() Return the frame object for the caller’s stack frame. --- I think substituting the help() text for the library documentation's text would be an improvement. -- assignee: georg.brandl components: Documentation messages: 91459 nosy: georg.brandl, llimllib severity: normal status: open title: inspect.currentframe documentation omits optional depth parameter type: feature request versions: Python 2.4, Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6678 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Vlastimil Brom vlastimil.b...@gmail.com 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 http://www.regular- expressions.info/unicode.html using the simple findall like above. It seems, that only the short abbreviated forms of the properties are supported, however, the long variants are handled in different ways. Namely, the properties names containing whitespace or other non-letter characters cause some probably unexpected exception: regex.findall(ur\p{Ll}, uabcDEF) [u'a', u'b', u'c'] # works ok \p{LowercaseLetter} isn't supported, but seems to be handled, as it throws error: undefined property name at the end of the traceback. \p{Lowercase Letter} \p{Lowercase_Letter} \p{Lowercase-Letter} isn't probably expected, the traceback is: regex.findall(ur\p{Lowercase_Letter}, uabcDEF) Traceback (most recent call last): File input, line 1, in module File C:\Python25\lib\regex.py, line 194, in findall return _compile(pattern, flags).findall(string) File C:\Python25\lib\regex.py, line 386, in _compile parsed = _parse_pattern(source, info) File C:\Python25\lib\regex.py, line 465, in _parse_pattern branches = [_parse_sequence(source, info)] File C:\Python25\lib\regex.py, line 477, in _parse_sequence item = _parse_item(source, info) File C:\Python25\lib\regex.py, line 485, in _parse_item element = _parse_element(source, info) File C:\Python25\lib\regex.py, line 610, in _parse_element return _parse_escape(source, info, False) File C:\Python25\lib\regex.py, line 844, in _parse_escape return _parse_property(source, ch == p, here, in_set) File C:\Python25\lib\regex.py, line 983, in _parse_property if info.local_flags IGNORECASE and not in_set: NameError: global name 'info' is not defined Of course, arbitrary strings other than properties names are handled identically. Python 2.6.2 version behaves the same like 2.5.4. vbr -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6679] obsolete paragraph in re doc for re.sub
New submission from Mitchell Model m...@acm.org: 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'. but there is now a flags argument so that paragraph should be deleted. -- assignee: georg.brandl components: Documentation messages: 91461 nosy: MLModel, georg.brandl severity: normal status: open title: obsolete paragraph in re doc for re.sub versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6582] test_telnetlib doesn't test Telnet.write
Changes by Rodrigo Steinmuller Wanderley rwander...@rsw.digi.com.br: Removed file: http://bugs.python.org/file14668/write_test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6582 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6582] test_telnetlib doesn't test Telnet.write
Changes by Rodrigo Steinmuller Wanderley rwander...@rsw.digi.com.br: Added file: http://bugs.python.org/file14686/telnetlib_writetest.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6582 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Gregory P. Smith g...@krypto.org 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! I'll happily commit any passing re module unittest additions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Matthew Barnett pyt...@mrabarnett.plus.com 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 overlapped matches. For example: regex.findall(r(..), abc) ['ab'] regex.findall(r(..), abc, overlapped=True) ['ab', 'bc'] -- Added file: http://bugs.python.org/file14687/issue2636-20090810#3.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5120] Disabling test_ttk_guionly on mac
R. David Murray rdmur...@bitdance.com 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5120 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6680] Python 3.1 fails to build when db.h contains non-UTF-8 characters
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: 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 patch, or completely remove check for db.h. -- components: Build files: python-3.1-setup.py.patch keywords: patch messages: 91465 nosy: Arfrever severity: normal status: open title: Python 3.1 fails to build when db.h contains non-UTF-8 characters versions: Python 3.1 Added file: http://bugs.python.org/file14688/python-3.1-setup.py.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6680 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6681] email.parser clips trailing \n of multipart/mixed part if part ends in \r\n
New submission from Guido van Rossum gu...@python.org: 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: 1. Content-Length given 2. Content-Transfer-Encoding: 8bit 3. Last two bytes of the part body are '\r\n' In this case, the final '\n' is removed from the part body, leaving it a byte short. Note that interior occurrences of '\r\n' work fine, as does any other binary data -- it's only a trailing '\r\n' that breaks. Note that technically perhaps the use of 8bit is invalid; but the same problem happens when using binary instead. The problem can be reproduced in Python 3.x using nearly the same demo by change the cStringIO import to import io. -- components: Library (Lib) files: barry.py messages: 91466 nosy: gvanrossum severity: normal status: open title: email.parser clips trailing \n of multipart/mixed part if part ends in \r\n type: behavior versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file14689/barry.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6681 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6681] email.parser clips trailing \n of multipart/mixed part if part ends in \r\n
Guido van Rossum gu...@python.org added the comment: Older Python versions too. -- versions: +Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6681 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com