[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-15 Thread Tal Einat
Tal Einat added the comment: It seems that the unicodedata module already supplies relevant functions which can be used for this. For example, we can replace char in self._id_first_chars with something like: from unicodedata import normalize, category norm_char = normalize(char)[0]

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-15 Thread Tal Einat
Tal Einat added the comment: Bah, I messed up the code sample in my previous message. It was supposed to be: from unicodedata import normalize, category norm_char_first = normalize(char)[0] is_id_first_char = ( norm_char_first == '_' or category(norm_char_first) in {Lu, Ll, Lt, Lm, Lo,

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-15 Thread Aymeric Augustin
Aymeric Augustin added the comment: Jim, I believe this API decision doesn't affect the patch in a major way. I'll write the rest of the patch and the committer who reviews it will decide. -- ___ Python tracker rep...@bugs.python.org

[issue21756] IDLE - ParenMatch fails to find closing paren of multi-line statements

2014-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I meant what you said in your last paragraph -- not passing a value for the new parameter would keep current behavior. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21756

[issue21751] Expand zipimport to support bzip2 and lzma

2014-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use deflate for Python files and advanced compression methods for large well-compressable package data. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21751

[issue21768] Fix a NameError in test_pydoc

2014-06-15 Thread Claudiu Popa
New submission from Claudiu Popa: There's no 'o' in test_pydoc.TestDescriptions.test_builtin, but 'name'. -- components: Tests files: test_pydoc_nameerror.patch keywords: patch messages: 220618 nosy: Claudiu.Popa priority: normal severity: normal status: open title: Fix a NameError in

[issue21769] Fix a NameError in test_descr

2014-06-15 Thread Claudiu Popa
New submission from Claudiu Popa: Hi. Here's a patch which uses `self.fail` in test_descr instead of `raise TestFailed`. -- components: Tests files: test_descr_nameerror.patch keywords: patch messages: 220619 nosy: Claudiu.Popa priority: normal severity: normal status: open title: Fix

[issue21758] Not so correct documentation about asyncio.subprocess_shell method

2014-06-15 Thread STINNER Victor
STINNER Victor added the comment: IMO it's fine to support bytes on UNIX, os.fsencode() is well defined. On Windows, we may use the same decoder. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21758

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I checked for usage: _id(_first)_chars is only used in _eat_identifier, which is used in one place in get_expression. That is called once each in AutoComplete and CallTips. Both are seldom visible accept as requested (by waiting, for calltips). Calltips is

[issue21770] Module not callable in script_helper.py

2014-06-15 Thread Claudiu Popa
New submission from Claudiu Popa: Using make_zip_pkg from script_helper with compiled=True will lead to the following failure: Traceback (most recent call last): File D:\Projects\cpython\lib\test\test_cmd_line_script.py, line 305, in test_module_in_subpackage_in_zipfile zip_name,

[issue21736] Add __file__ attribute to frozen modules

2014-06-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 15.06.2014 01:53, Nick Coghlan wrote: Can we just drop __file__ and set the origin for frozen modules to something that includes the original file name? This wouldn't really help, because too much code out there uses the __file__ attribute and

[issue21427] installer not working

2014-06-15 Thread Uwe
Uwe added the comment: problem is solved observation - installer problem only occurred on win7 32 bit with prior python installation (my working system) - When repeating the installer problem I noticed that a window was opened very shortly with python.exe running. An error message from this

[issue21519] IDLE : Bug in keybinding validity check

2014-06-15 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: A small bug in line 185 in keybindingDialog.py. 'F2' appears twice and 'F3' is missing. Since this is a typo, I did not create a new issue. -- ___ Python tracker rep...@bugs.python.org

[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-06-15 Thread Tal Einat
Tal Einat added the comment: AutoComplete isn't doing hidden checks. My concern is that auto-completion happens automatically and the parsing is done synchronously, so if the parsing takes a significant amount of time it can cause a delay long enough to be noticeable by users. We should also

[issue18507] import_init() should not use Py_FatalError() but return an error

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Just making sure this hasn't slipped under the radar. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18507

[issue14017] Make it easy to create a new TextIOWrapper based on an existing

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @Nick would you like or even need this in 3.5? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14017

[issue16133] asyncore.dispatcher.recv doesn't handle EAGAIN / EWOULDBLOCK

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Could we have a review of the latest path from Xavier please. Aside, msg172160 add Windows project file for _sha3 module. I choose to build _sha3 as a sparat module as it's rather large (190k for AMD64)., presumably Christian mistyped an issue number?

[issue11322] encoding package's normalize_encoding() function is too slow

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: What's the status of this issue, as we've lived with this really slow implementation for well over three years? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker

[issue15506] configure should use PKG_PROG_PKG_CONFIG

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: I've guessed at the versions impacted, assuming of course that the change proposed inline in msg166915 is acceptable. I'm sorry but I don't know who is best qualified to put on the nosy list for this issue. -- nosy: +BreamoreBoy versions: +Python 2.7,

[issue18875] Automatic insertion of the closing parentheses, brackets, and braces

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: I'd like to see this feature as I've been using IDLE quite a lot recently and I'm so used to seeing it in other IDEs. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org

Re: [issue11322] encoding package's normalize_encoding() function is too slow

2014-06-15 Thread M.-A. Lemburg
On 15.06.2014 15:02, Mark Lawrence wrote: What's the status of this issue, as we've lived with this really slow implementation for well over three years? I guess it just needs someone to write a patch. Note that encoding lookups are cached, so the slowness only becomes an issue if you

[issue14540] Crash in Modules/_ctypes/libffi/src/dlmalloc.c on ia64-hp-hpux11.31

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Is this still a problem given that we're two years on and up to Python 2.7.7? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14540 ___

[issue15954] No error checking after using of the wcsxfrm()

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @Serhiy will you follow up on this? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15954

[issue13779] os.walk: bottom-up

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: The OP is happy with the proposed doc patch so can we have this committed please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13779

[issue21095] EmailMessage should support Header objects

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @David can we have your comments please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21095 ___

[issue10118] Tkinter does not find font

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Is this still a problem with tcl/tk 8.6? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10118 ___

[issue21771] name of 2nd parameter to itertools.groupby()

2014-06-15 Thread Uwe Kleine-König
New submission from Uwe Kleine-König: The name of the 2nd parameter to itertools.groupby() is documented inconsitently. Sometimes it's key, sometimes keyfunc. The code actually uses key, so I adapted all occurences I found to key. from itertools import groupby groupby.__doc__

[issue16181] cookielib.http2time raises ValueError for invalid date.

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: A simple patch is attached so could someone take a look please, thanks. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16181 ___

[issue15025] httplib and http.client are missing response messages for defined WEBDAV responses, e.g., UNPROCESSABLE_ENTITY (422)

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Can someone take a look please as nobody is given against http in the experts index. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15025

[issue16181] cookielib.http2time raises ValueError for invalid date.

2014-06-15 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - patch review versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16181 ___

[issue16587] Py_Initialize breaks wprintf on Windows

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: I'll let our Windows gurus fight over who gets this one :) -- nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16587

[issue14534] Add method to mark unittest.TestCases as do not run.

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Do we have a consensus as to whether or not David's proposed solution is acceptable? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14534

[issue15476] Add code object to glossary

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be closed given msg169859 and msg169861? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15476 ___

[issue15680] PEP 3121 refactoring applied to audioop module

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Could somebody review the attached patch please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15680 ___

[issue21095] EmailMessage should support Header objects

2014-06-15 Thread R. David Murray
R. David Murray added the comment: I have to look at the implementation to remind myself how hard this would be to implement. The goal was to leave Header a legacy API...if you need that level of control, you use the old API. But I can see the functionality argument, and Header *is* a

[issue21763] Clarify requirements for file-like objects

2014-06-15 Thread R. David Murray
R. David Murray added the comment: I don't think that's true, though. file like pretty much means has the file attributes that I actually use. That is, it is context dependent (duck typing). I'm also not sure I see the point in the change. It is inherent in the definition of what ABCs

[issue14534] Add method to mark unittest.TestCases as do not run.

2014-06-15 Thread R. David Murray
R. David Murray added the comment: It's Michael's solution that is under consideration, and I guess no one has felt strongly enough about having it to write a patch. So this issue stays in limbo until someone does. -- ___ Python tracker

[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Can someone review the latest patch please as it's only five additional lines of C code. -- nosy: +BreamoreBoy, steve.dower, zach.ware versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker

[issue6926] socket module missing IPPROTO_IPV6, IPPROTO_IPV4

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: As XP is now out of support here are links http://legacy.python.org/dev/peps/pep-0011/#microsoft-windows http://support.microsoft.com/lifecycle/ that I hope come in useful. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3

[issue18875] Automatic insertion of the closing parentheses, brackets, and braces

2014-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have never actually used this feature, and I do not see it in Notepad++. I worry that some people, especially beginners with no experience of this 'feature' would hate this, so it would have to be optional. Do you literally mean 'parentheses' or also square

[issue11717] conflicting definition of ssize_t in pyconfig.h

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Is the patch acceptable? -- nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11717

[issue4918] Windows installer created with Python X.Y does not work with Python X.Y+1

2014-06-15 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- components: -Distutils2 nosy: +dstufft versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4918

[issue18875] Automatic insertion of the closing parentheses, brackets, and braces

2014-06-15 Thread Tal Einat
Tal Einat added the comment: I like the idea, though it's really just nice to have. This is a very common in IDEs these days, and whoever finds it annoying will be able to disable it. If we do this, we should go all the way and close square and curly brackets, parenthesis, and quotes

[issue21772] platform.uname() not EINTR safe

2014-06-15 Thread Tor Colvin
New submission from Tor Colvin: platform.uname() periodically spews EINTR errors on mac - so use subproces.communicate() which is EINTR safe after http://bugs.python.org/issue1068268 Calling f.read() on naked os.open() output can produce IOError: [Errno 4] Interrupted system call. Attached

[issue21709] logging.__init__ assumes that __file__ is always set

2014-06-15 Thread Vinay Sajip
Vinay Sajip added the comment: Isn't __code__ implementation-specific? Further data point: the contents of __code__ might be implementation-specific (as there are no other Python 3 implementations), but the 2.x equivalent, func_code, is to be found in CPython, Jython, IronPython and PyPy,

[issue10118] Tkinter does not find font

2014-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, On Windows, 3.4 comes with tck/tk 8.6. I am guessing that you built not on windows. In any case, tkinter has had several patches since you last posted, not all backported to 2.7, so an updated report with 3.4 or 3.5 and 8.6 would help delineate the

[issue9693] asynchat push_callable() patch

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Is this ever likely to get applied given the arrival of asyncio? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9693 ___

[issue6911] Document changes in asynchat

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Is it worth applying the latest patch given that asynchat is deprecated in favour of asyncio? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6911

[issue18959] Create a Superseded modules section in standard library ToC

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Would somebody review the attached patch please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18959 ___

[issue15476] Index code object and link to code object definition

2014-06-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is no entry for 'code object' (unlike, for instance 'class object'). There is an entry for 'code' and a subentry for 'object' with four links. The fourth link is to the short definition in the library manual:

[issue14759] BSDDB license missing from liscense page in 2.7.

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: I think msg160322 and msg160339 are saying this isn't an issue. If I'm correct it can be closed. If I'm wrong who is best placed to provide the needed patch? -- nosy: +BreamoreBoy ___ Python tracker

[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2014-06-15 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1102 ___ ___ Python-bugs-list

[issue20578] BufferedIOBase.readinto1 is missing

2014-06-15 Thread Nikolaus Rath
Nikolaus Rath added the comment: As discussed on python-devel, I'm attaching a new patch that uses memoryview.cast to ensure that the pure-Python readinto() now works with any object implementing the buffer protocol. -- Added file: http://bugs.python.org/file35647/issue20578_r5.diff

[issue21763] Clarify requirements for file-like objects

2014-06-15 Thread Nikolaus Rath
Nikolaus Rath added the comment: On 06/15/2014 08:29 AM, R. David Murray wrote: I don't think that's true, though. file like pretty much means has the file attributes that I actually use. That is, it is context dependent (duck typing). Well, but when you pass your file-like object to

[issue18875] Automatic insertion of the closing parentheses, brackets, and braces

2014-06-15 Thread Tal Einat
Tal Einat added the comment: Well, I was wrong. I can't find anything of the sort in my old IDLE files. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18875 ___

[issue20578] BufferedIOBase.readinto1 is missing

2014-06-15 Thread Nikolaus Rath
Nikolaus Rath added the comment: (refreshed patch, no changes) -- Added file: http://bugs.python.org/file35648/issue20578_r6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20578 ___

[issue8029] bug in 2to3 dealing with print FOO, followed by sys.stdout.write('')

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @Benjamin could you review the patch please. -- nosy: +BreamoreBoy type: - behavior versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8029

[issue15954] No error checking after using of the wcsxfrm()

2014-06-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have no Windows and can't provide relevant test case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15954 ___

[issue8630] Keepends param in codec readline(s)

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: As codecs.py has changed I've generated a patch file which adds the missing parameters. I looked at test_codecs.py but could only find one reference to the StreamReaderWriter class in WithStmtTest. I'm sorry but I'll have to leave writing tests for

[issue21773] Fix a NameError in test_enum

2014-06-15 Thread Claudiu Popa
New submission from Claudiu Popa: There's a bug in test_enum.TestStdLib.test_pydoc, print_diffs is undefined and using assertEqual seems to be clearer. -- components: Tests files: test_enum.patch keywords: patch messages: 220669 nosy: Claudiu.Popa, ethan.furman priority: normal

[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2014-06-15 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- stage: test needed - patch review versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19714 ___

[issue9008] CGIHTTPServer support for arbitrary CGI scripts

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @Senthil Kumaran/orsenthil can you pick this up as implied in msg107919? -- nosy: +BreamoreBoy type: - enhancement versions: +Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue19714] Add tests for importlib.machinery.WindowsRegistryFinder

2014-06-15 Thread Claudiu Popa
Claudiu Popa added the comment: Attached a new version of the patch. The previous one called find_spec twice in the same test. -- Added file: http://bugs.python.org/file35651/issue19714_2.patch ___ Python tracker rep...@bugs.python.org

[issue15506] configure should use PKG_PROG_PKG_CONFIG

2014-06-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15506 ___ ___ Python-bugs-list mailing list

[issue21771] name of 2nd parameter to itertools.groupby()

2014-06-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21771 ___ ___ Python-bugs-list mailing list

[issue21772] platform.uname() not EINTR safe

2014-06-15 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21772 ___ ___ Python-bugs-list mailing list

[issue15954] No error checking after using of the wcsxfrm()

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: @Serhiy you don't need Windows, msg170593 refers to a Linux man page. Reading your msg170595 I'd guess that you've got confused with a similar function that is Windows specific. -- ___ Python tracker

[issue21774] Fix a NameError in xml.dom.minidom

2014-06-15 Thread Claudiu Popa
New submission from Claudiu Popa: Hi. This patch fixes a NameError found in xml.dom.minidom. Here's an example for reproducing it: from xml.dom import minidom dom = minidom.parseString(a1/a) pi = dom.createProcessingInstruction('xml-stylesheet',

[issue21771] name of 2nd parameter to itertools.groupby()

2014-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: There is a bit an inconsistency but it is more helpful than harmful most of the time. The glossary defines a key-function which is used in a number of places such such as sorted(), min(), nsmallest() and others. In all those cases, the parameter for the

[issue15955] gzip, bz2, lzma: add option to limit output size

2014-06-15 Thread Nadeem Vawda
Nadeem Vawda added the comment: Sorry, I just haven't had any free time lately, and may still not be able to give this the attention it deserves for another couple of weeks. Serhiy, would you be interested in reviewing Nikolaus' patch? -- ___ Python

[issue21774] Fix a NameError in xml.dom.minidom

2014-06-15 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21774 ___

[issue21775] shutil.copytree() crashes copying to VFAT on Linux: AttributeError: 'PermissionError' object has no attribute 'winerror'

2014-06-15 Thread Greg Ward
New submission from Greg Ward: When using shutil.copytree() on Linux to copy to a VFAT filesystem, it crashes like this: Traceback (most recent call last): File /data/src/cpython/3.4/Lib/shutil.py, line 336, in copytree copystat(src, dst) File /data/src/cpython/3.4/Lib/shutil.py, line

[issue21775] shutil.copytree() crashes copying to VFAT on Linux: AttributeError: 'PermissionError' object has no attribute 'winerror'

2014-06-15 Thread Greg Ward
Greg Ward added the comment: In 3.3 and earlier, copytree() crashes roughly as described in issue1545, with shutil.Error that wraps the underlying Operation not permitted error from trying to chmod() something in a VFAT filesystem. Since this appears to accurately reflect what's coming from

[issue8677] Modules needing PY_SSIZE_T_CLEAN

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: Given the rise of the 64 bit machine I'd guess that this needs completing sooner rather than later. I'd volunteer myself but I've never heard of the '#' format codes, let alone know anything about them :-( -- nosy: +BreamoreBoy

[issue21775] shutil.copytree() crashes copying to VFAT on Linux: AttributeError: 'PermissionError' object has no attribute 'winerror'

2014-06-15 Thread Greg Ward
Greg Ward added the comment: Bad news: because reproducing this requires sudo (to mount an arbitrary filesystem), I'm not sure it's possible/desirable to add test code for it. Good news: the fix is trivial, and it passes my manual test. Here's a patch: --- a/Lib/shutil.py +++ b/Lib/shutil.py

[issue21763] Clarify requirements for file-like objects

2014-06-15 Thread Nick Coghlan
Nick Coghlan added the comment: Asking the question Does it quack and walk *enough* like a duck for my code to work and my tests to pass? is part of the nature of ducktyping. ABCs are definitely a useful guide to expectations, but even there it's possible to lie to the interpreter and have

[issue21774] Fix a NameError in xml.dom.minidom

2014-06-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset ca33faa214ab by Raymond Hettinger in branch '3.4': Issue #21774: Fix incorrect variable in xml.dom.minidom http://hg.python.org/cpython/rev/ca33faa214ab -- nosy: +python-dev ___ Python tracker

[issue21774] Fix a NameError in xml.dom.minidom

2014-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. I'm curious how did you notice this? -- resolution: - fixed status: open - closed versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21774

[issue21774] Fix a NameError in xml.dom.minidom

2014-06-15 Thread Claudiu Popa
Claudiu Popa added the comment: My pleasure. I run Pylint from time to time over stdlib in order to find false positives for Pylint and in the process I stumble across these type of bugs. -- ___ Python tracker rep...@bugs.python.org

[issue4896] Faster why variable manipulation in ceval.c

2014-06-15 Thread Mark Lawrence
Mark Lawrence added the comment: I'm guessing that a patch to ceval.c that's this old wouldn't apply cleanly now. I'll rework it but only if the changes are highly likely to be accepted. Given the mixed results previously reported this is not guaranteed. Opinions please. -- nosy:

[issue21763] Clarify requirements for file-like objects

2014-06-15 Thread Nikolaus Rath
Nikolaus Rath added the comment: Maybe I'm missing some important point here, but I think that the documentation ought to tell me how I have to design a file-like object such that it fulfills all expectations of the standard library. Yes, you can get away with less than that in many

[issue15795] Zipfile.extractall does not preserve file permissions

2014-06-15 Thread William Ehlhardt
Changes by William Ehlhardt williamehlha...@gmail.com: -- nosy: +Orborde ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15795 ___ ___

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-06-15 Thread R. David Murray
R. David Murray added the comment: Thanks Caelyn. This patch also needs a doc patch and a whatsnew entry in order to be complete. It's not obvious to me where the relevant documentation is, though, so perhaps we instead have missing documentation that should be addressed in a separate

[issue9008] CGIHTTPServer support for arbitrary CGI scripts

2014-06-15 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9008 ___ ___ Python-bugs-list

[issue21763] Clarify requirements for file-like objects

2014-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: [R David Murray] I don't think that's true, though. file like pretty much means has the file attributes that I actually use. That is, it is context dependent (duck typing). That is pretty much on-target. Also, the phrase file-like has been used very

[issue19495] Enhancement for timeit: measure time to run blocks of code using 'with'

2014-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Perhaps a time-elapsed context manager would be a better fit in the contextlib module (which contains more general purpose macro-level tools usable for many different tasks) rather than the timeit module (which is more narrowly tailored to high-quality

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, we often do whatsnew entries later in the development cycle. I think this can go forward without whatsnew. The doc entry could be as simple as a ..versionchanged 2.5 include() now supports recursive Xincludes or somesuch. -- nosy:

[issue4896] Faster why variable manipulation in ceval.c

2014-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Before evaluating this further, the timings should be updated for the current 3.5 code and using the various compilers for the difference OSes. Also, it would be nice to run Antoine's suite of benchmarks. -- nosy: +haypo, rhettinger priority:

[issue19495] Enhancement for timeit: measure time to run blocks of code using 'with'

2014-06-15 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Mon, Jun 16, 2014 at 02:09:22AM +, Raymond Hettinger wrote: Perhaps a time-elapsed context manager would be a better fit in the contextlib module (which contains more general purpose macro-level tools usable for many different tasks) rather than

[issue19495] Enhancement for timeit: measure time to run blocks of code using 'with'

2014-06-15 Thread Guido van Rossum
Guido van Rossum added the comment: I agree with Raymond -- this is a common pattern but there are many variations that are hard to catch in a single implementation. E.g. at Dropbox we have a decorator like this that lets you specify an identifier for the block you name, and which logs the

[issue19495] Enhancement for timeit: measure time to run blocks of code using 'with'

2014-06-15 Thread Guido van Rossum
Guido van Rossum added the comment: FWIW, I definitely don't think this belongs in the timeit module, unless you are going to treat that module as a namespace package, which I don't like much (though in Java I think it's a pretty common pattern). If we have to have it, contextlib sounds fine

[issue13779] os.walk: bottom-up

2014-06-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 351c1422848f by Benjamin Peterson in branch '2.7': clarify when the list of subdirectories is read (closes #13779) http://hg.python.org/cpython/rev/351c1422848f New changeset b10322b5ef0f by Benjamin Peterson in branch '3.4': clarify when the list

[issue21741] Convert most of the test suite to using unittest.main()

2014-06-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: There are a couple things I really like about this idea: * In the past, we've had cases of TestXXX classes being omitted, so chunks of the test suite weren't being run. You patch will fix that and let test discovery just work. * The code is shorter, more

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-15 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5207 ___ ___ Python-bugs-list

[issue21767] singledispatch docs should explicitly mention support for abstract base classes

2014-06-15 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21767 ___ ___ Python-bugs-list

[issue5207] extend strftime/strptime format for RFC3339 and RFC2822

2014-06-15 Thread Martin Panter
Martin Panter added the comment: For RFC 2822, perhaps email.utils.parsedate() is good enough? For RFC 3339, Issue 15873 has been opened for the datetime module. It has more discussion and code, so perhaps this bug can be closed as a duplicate? --