[issue21591] exec(a, b, c) not the same as exec a in b, c in nested functions

2014-07-22 Thread Neil Muller
Neil Muller added the comment: Poking at the source of the error suggests the problem is in symtable.c: The offending logic looks to be (around line 1124 in python 2.7 at revision 91767:4cef7b0ec659): if (s-v.Exec.globals) { ... } else { st-st_cur-ste_unoptimized |= OPT_BARE_EXEC

[issue1145257] shutil.copystat() may fail...

2013-01-26 Thread Neil Muller
Neil Muller added the comment: I can't reproduce this bug on windows XP or windows 7 with python 2.7 or python 3.3. Is this still an issue? -- nosy: +Neil Muller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1145257

[issue9637] docs do not say that urllib uses HTTP_PROXY

2012-01-09 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: This patch is now more than a year old with no comment. What needs to happen to get this bug fixed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9637

[issue11439] subversion keyword breakage

2011-07-05 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: SVN_Revision.diff replaces the remaining $Revision$ keywords in 2.7 with the values from the last SVN checkout I have. This seems the correct minimal fix for the issues caused by code parsing the revision tag in Python 2. I've left

[issue11439] subversion keyword breakage

2011-07-05 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: This patch removes or replaces a number SVN keywords which aren't buried in comments. I've removed '__revision__ = $Id$' cases - mainly present in distutils - as no-one appears to using these. I've replaced values in tarfile.py

[issue11439] subversion keyword breakage

2011-03-16 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: This also affects a number of files under Lib, including some that set their version using $Revision$. Since I stumbled on this issue by encountering some code that checks the version string in tkinker breaking, this is an issue

[issue11384] Deprecate, remove or document (correctly) os.popen

2011-03-03 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: See issue6490 , which covers much of the same ground. -- nosy: +Neil Muller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11384

[issue6490] os.popen documentation in 2.6 is probably wrong

2010-12-04 Thread Neil Muller
Changes by Neil Muller drnlmuller+b...@gmail.com: -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6490 ___ ___ Python-bugs

[issue10465] gzip module calls getattr incorrectly

2010-11-20 Thread Neil Muller
New submission from Neil Muller drnlmuller+b...@gmail.com: gzip._PaddedFile.__getattr__ chains out to getattr, but does so incorrectly (found via running the numpy test suite). The attached patch fixes this. -- files: gzip_getattr.diff keywords: patch messages: 121607 nosy: Neil

[issue10465] gzip module calls getattr incorrectly

2010-11-20 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Add a test demonstrating the error. -- Added file: http://bugs.python.org/file19653/gzip_getattr_test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10465

[issue6490] os.popen documentation in 2.6 is probably wrong

2010-11-20 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: The attached patch grabs the os.popen documentation from python 2.7, throws away the deprecation notes, and adds a pointer to subprocess.Popen for more details. -- keywords: +patch nosy: +Neil Muller Added file: http

[issue9637] docs do not say that urllib uses HTTP_PROXY

2010-11-20 Thread Neil Muller
Changes by Neil Muller drnlmuller+b...@gmail.com: -- versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9637

[issue9637] docs do not say that urllib uses HTTP_PROXY

2010-11-20 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: The problem is that the getproxies_environment function converts all environment variables to lower case before deciding whether to use the name. This means that whichever ends up last in os.environment will be used. The attached patch

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2010-11-20 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: #975556 and #1046092 look like they should also be superseded by this. -- nosy: +Neil Muller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1486713

[issue975556] HTMLParser lukewarm on bogus bare attribute chars

2010-11-20 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: This should probably be solved as part of #1486713 . -- nosy: +Neil Muller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue975556

[issue1046092] HTMLParser fix to accept mailformed tag attributes

2010-11-20 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: I think this change is makes the parser far too lenient. Something like the explicit tolerant mode proposed in #1486713 is a better solution. -- nosy: +Neil Muller ___ Python tracker rep

[issue10120] concurrent.futures module is not installed properly

2010-10-16 Thread Neil Muller
New submission from Neil Muller drnlmuller+b...@gmail.com: with make install (r85564), lib/python3.2/concurrent is created, but the futures module is not installed there. The attached trivial patch fixes this here. -- files: futures-Makefile.diff keywords: patch messages: 118858 nosy

[issue10120] concurrent.futures module is not installed properly

2010-10-16 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: There isn't an entry for anyone in maintainers.rst for concurrent.futures either. That should probably also be fixed. -- nosy: +bquinlan ___ Python tracker rep...@bugs.python.org http

[issue1343] XMLGenerator: nice empty/ elements

2010-10-16 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: So what still needs to happen to get this in? Patch still applies to current python 3.2 trunk (r85564). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1343

[issue6231] ElementInclude may drop text

2010-07-21 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: The bug is still present in py3k trunk, the py3k patch still applies, and, as the bug has celebrated it's first birthday, all evidence suggests no-one else cares. -- status: open - languishing versions: +Python 3.2

[issue1343] XMLGenerator: nice empty/ elements

2010-07-21 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Updated version of the patch against current py3k svn (r83022) attached. This is a combined patch, including the previous xml.sax.saxutil changes (including the 'short_empty_elements' keyword) and the new tests. -- nosy: +Neil

[issue3409] ElementPath.Path.findall problem with unicode input

2010-03-30 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: With the recent ElementTree changes on trunk, this bug no longer applies, AFAICS. -- nosy: +Neil Muller, flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3409

[issue1028432] Specify a source baseurl for bdist_rpm.

2010-03-30 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Is it preferable to specify a URL for the Source field in a .spec file (rather than just a filename)? Fedora (see for example http://fedoraproject.org/wiki/Packaging/SourceURL ) encourages using a full url when available, so having

[issue6231] ElementInclude may drop text

2010-03-25 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: It looks like this issue was missed in the recent ElementTree update. Attached is an updated diff for py3k. -- nosy: +flox Added file: http://bugs.python.org/file16646/ElementInclude_py3k.diff

[issue6231] ElementInclude may drop text

2010-03-25 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Similiarly updated patch against current trunk -- Added file: http://bugs.python.org/file16647/ElementInclude.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6231

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2010-03-25 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Poking this issue with updated patches. Patch against py3k. -- Added file: http://bugs.python.org/file16650/posixmodule_comb_py3k.patch ___ Python tracker rep...@bugs.python.org http

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2010-03-25 Thread Neil Muller
Changes by Neil Muller drnlmuller+b...@gmail.com: Added file: http://bugs.python.org/file16651/posixmodule_comb.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2768

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-03-25 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Poking the issue with an updated patch for trunk. -- Added file: http://bugs.python.org/file16652/BaseHTTPServer_continue_3.patch ___ Python tracker rep...@bugs.python.org http

[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-03-25 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: And a py3k version (although the conversion can be improved). -- Added file: http://bugs.python.org/file16653/BaseHTTPServer_continue_3_py3k.patch ___ Python tracker rep...@bugs.python.org

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2010-03-25 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Fair enough. Possible doc patch attached. -- Added file: http://bugs.python.org/file16654/fileno_doc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2768

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2010-03-25 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: More fleshed out doc patch. Mention caveats about using file descriptors directly, add note to ftruncate similar to that for other dangerous methods. -- Added file: http://bugs.python.org/file16655/fileno_doc.diff

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-18 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Updated patch - adds a test for this. -- Added file: http://bugs.python.org/file14316/issue6233_py3k_with_test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6233

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-12 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: This doesn't give the expected answer for the test above Which is obviously due to not comparing apples with apples, as I should be using a byte-string in the py3k example. import xml.etree.ElementTree as ET e = ET.XML(b?xml version

[issue6265] cElementTree ElementTree use different exceptions for XML Errors

2009-06-11 Thread Neil Muller
New submission from Neil Muller drnlmuller+b...@gmail.com: cElementTree will raise a SyntaxError on XML parsing errors, while ElementTree will raise ExpatError. This makes changing between the two a bit more problematic than it could be. See for example https://lists.canonical.com/archives

[issue6266] cElementTree.iterparse ElementTree.iterparse return differently encoded strings

2009-06-11 Thread Neil Muller
New submission from Neil Muller drnlmuller+b...@gmail.com: Consider: from StringIO import StringIO source = StringIO('body xmlns=http://#233;ffbot.org/ns;text/body') import xml.etree.ElementTree as ET events = (start-ns,) context = ET.iterparse(source, events) for action, elem in context

[issue6232] Improve test coverage of ElementTree and cElementTree

2009-06-11 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: some additional notes on the tests disabled for cElementTree: a) cElementTree still reports the last error (bug noted at http://effbot.python-hosting.com/ticket/30 , although not filed in the python bug tracker AFAICS). b) cElementTree

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2009-06-07 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Patch which includes the given fix and adds a test case to cover this (test case from Russell Cloran) -- keywords: +patch nosy: +Neil Muller Added file: http://bugs.python.org/file14211/issue-2746.diff

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2009-06-07 Thread Neil Muller
Changes by Neil Muller drnlmuller+b...@gmail.com: -- nosy: +effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2746 ___ ___ Python-bugs-list

[issue6230] ElementTree.Element and cElementTree.Element have slightly different repr

2009-06-07 Thread Neil Muller
New submission from Neil Muller drnlmuller+b...@gmail.com: ElementTree and cElementTree give slightly different results for repr(Element): import xml.etree.ElementTree as ET import xml.etree.cElementTree as cET repr(ET.ElementTree('tag')) 'Element tag at b7cf506c' repr(cET.ElementTree('tag

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2009-06-07 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Previous patch was missing two lines in the test case. Correct fix uploaded -- Added file: http://bugs.python.org/file14213/issue-2746.diff ___ Python tracker rep...@bugs.python.org http

[issue6231] ElementInclude may drop text

2009-06-07 Thread Neil Muller
New submission from Neil Muller drnlmuller+b...@gmail.com: In some cases, ElementInclude will not include the tail from the current node. Test case and patch against trunk attached (from Simon Cross). -- components: Library (Lib) files: ElementInclude.diff keywords: patch messages

[issue6232] Improve test coverage of ElementTree and cElementTree

2009-06-07 Thread Neil Muller
New submission from Neil Muller drnlmuller+b...@gmail.com: The test coverage for ElementTree and cElementTree could be improved. The attached file adds several more tests for ElementTree (including a number from the ElementTree 1.2.7 pre-release). This excludes the tests suggested in: http

[issue6232] Improve test coverage of ElementTree and cElementTree

2009-06-07 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: This adds the same tests for cElementTree, disabling them in a few cases were the behaviour differs. (Tests include work from Russell Cloran, Jeremy Thurgood, Simon Cross, Adrianna Pinksa and Graham Poulter) -- Added file: http

[issue6230] ElementTree.Element and cElementTree.Element have slightly different repr

2009-06-07 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Same issue affects python 3k - the patch applies there cleanly as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6230

[issue6231] ElementInclude may drop text

2009-06-07 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Same issue affects python 3k. Modified patch (print statement needed changing) added -- Added file: http://bugs.python.org/file14220/ElementInclude_py3k.diff ___ Python tracker rep

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2009-06-07 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Issue also effects p3k. Adapted patch attached. -- versions: +Python 2.6, Python 2.7, Python 3.0, Python 3.1 Added file: http://bugs.python.org/file14221/issue-2746_py3k.diff ___ Python tracker

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2009-06-07 Thread Neil Muller
Changes by Neil Muller drnlmuller+b...@gmail.com: Removed file: http://bugs.python.org/file14211/issue-2746.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2746

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2009-06-07 Thread Neil Muller
Changes by Neil Muller drnlmuller+b...@gmail.com: Removed file: http://bugs.python.org/file14213/issue-2746.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2746

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2009-06-07 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Previous upload of issue_2746 was corrupt. Fixed version uploaded. -- Added file: http://bugs.python.org/file14222/issue-2746.diff ___ Python tracker rep...@bugs.python.org http

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-07 Thread Neil Muller
New submission from Neil Muller drnlmuller+b...@gmail.com: In py3k, ElementTree no longer correctly converts characters to entities when they can't be represented in the requested output encoding. Python 2: import xml.etree.ElementTree as ET e = ET.XML(?xml version='1.0' encoding='iso-8859-1

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-07 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Simple possible patch uploaded This doesn't give the expected answer for the test above, but does work when starting from an XML file in utf-8 encoding. I still need to determine why this happens. -- keywords: +patch Added file

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2009-06-05 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Updated combined patch for python trunk added (indentation issues hopefully also fixed). -- Added file: http://bugs.python.org/file14199/posixmodule_comb.patch ___ Python tracker rep

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2009-06-05 Thread Neil Muller
Neil Muller drnlmuller+b...@gmail.com added the comment: Similar patch for the python 3 branch. -- Added file: http://bugs.python.org/file14200/posixmodule_comb_py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2768

[issue1491] BaseHTTPServer incorrectly implements response code 100

2008-06-21 Thread Neil Muller
Neil Muller [EMAIL PROTECTED] added the comment: The attached patch is against recent svn (r64442), and adds samwyse's refactoring of the class. The test for server responses is made less restrictive when the request isn't HTTP/1.1. -- nosy: +Neil Muller Added file: http

[issue2736] datetime needs and epoch method

2008-05-11 Thread Neil Muller
Neil Muller [EMAIL PROTECTED] added the comment: datetime has fromtimestamp already, so using totimestamp keeps naming consistency (see toordinal and fromordinal). -- nosy: +Neil Muller __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2736

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2008-05-11 Thread Neil Muller
Neil Muller [EMAIL PROTECTED] added the comment: This patch combines the two earlier patches, and also updates the docstrings and os.rst to reflect the changed behaviour. Added file: http://bugs.python.org/file10281/posixmodule_2.patch __ Tracker [EMAIL

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2008-05-10 Thread Neil Muller
Neil Muller [EMAIL PROTECTED] added the comment: The attached patch changes most functions in posixmodule which require a filedescriptor to use PyObjectAsDescriptor There are a few cases, where I'm not certain of the usefulness of changing the functions to support objects with fileno that I've

[issue2768] os.fstat and other os.f* methods should use PyObject_AsFileDescriptor

2008-05-10 Thread Neil Muller
Neil Muller [EMAIL PROTECTED] added the comment: Patches to test_posix.py to also test using file objects in os.fstat and such. Added file: http://bugs.python.org/file10243/test_posix.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2768

[issue1153769] String interpolation needs PEP 237 update

2008-05-10 Thread Neil Muller
Neil Muller [EMAIL PROTECTED] added the comment: Update stdtypes.rst to note that %x, %X, %o can take signed values. Note that %u is consider obsolete (referring to PEP 237) Add a note on the length modifier description to clarify the meaning. -- keywords: +patch nosy: +Neil Muller

[issue2809] string docstring doesn't mention that ' '.split() != ' '.split(' ')

2008-05-10 Thread Neil Muller
New submission from Neil Muller [EMAIL PROTECTED]: split with no sep specified will not return an empty string, whereas split with sep specified will. The attached patch updates the docstring to reflect this for str.split and unicode.split. -- files: split_docstring.diff keywords

[issue2809] string docstring doesn't mention that ' '.split() != ' '.split(' ')

2008-05-10 Thread Neil Muller
Changes by Neil Muller [EMAIL PROTECTED]: -- assignee: - georg.brandl components: +Documentation nosy: +georg.brandl versions: +Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2809