[issue21694] IDLE - Test ParenMatch
Terry J. Reedy added the comment: Attached is the 3.4 file I am ready to commit. Comments on Rietveld. I believe the 3 missed line could be hit by adding a delay to a test, but this seems pretty useless. The test file explicitly tests only two of the methods. Tests of other methods could be written, but since they would mostly be white-box tests that code does exactly what it says it does, this does not seem useful. What *would* be useful is a patch to ParenMatch.set_timeout_last to keep the highlight on for as long as ^0 is held down, if longer that .5 sec. Right now, it flickers on and off. The range bug, if such it is, is in HyperParser(self.editwin, insert).get_surrounding_brackets(). I might take a look. -- Added file: http://bugs.python.org/file35609/test-parenmatch-21694-34.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21694 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21694] IDLE - Test ParenMatch
Terry J. Reedy added the comment: I did the trivial part of a 2.7 backport of 2 name changes, but the real problem is that 2.7 does not have unittest.mock (which is why I have not used it until now). I removed one use with a dummy class, but am leaving the other one in the last test to you. -- Added file: http://bugs.python.org/file35610/test-parenmatch-21694-27.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21694 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21694] IDLE - Test ParenMatch
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21694 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19776] Provide expanduser() on Path objects
Claudiu Popa added the comment: Antoine, how does my latest patch look? -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19776 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15795] Zipfile.extractall does not preserve file permissions
Changes by Claudiu Popa pcmantic...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15795 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5718] Problem compiling ffi part of build on AIX 5.3.
Mark Lawrence added the comment: As we're now on 3.5, AIX is up to 7.1 and there's no patch can we close this one as out of date? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5718 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21652] Python 2.7.7 regression in mimetypes module on Windows
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: - tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21205] Add __qualname__ attribute to Python generators and change default __name__
STINNER Victor added the comment: Updated patch: names must now be strings and cannot be deleted; make _PyEval_EvalCodeWithName private. -- Added file: http://bugs.python.org/file35611/gen_qualname-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21205 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21746] urlparse.BaseResult no longer exists
New submission from Matthew Gilson: The BaseResult has been replaced by namedtuple. This also opens up all of the documented methods on namedtuple which would be nice to have as part of the API. I've taken a stab and re-writing the docs here. Feel free to use it (or not)... -- files: python_doc_patch.patch keywords: patch messages: 220425 nosy: mgilson priority: normal severity: normal status: open title: urlparse.BaseResult no longer exists Added file: http://bugs.python.org/file35612/python_doc_patch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21746 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21746] urlparse.BaseResult no longer exists
Changes by Matthew Gilson m.gils...@gmail.com: -- assignee: - docs@python components: +Documentation nosy: +docs@python versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21746 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21746] urlparse.BaseResult no longer exists
Matthew Gilson added the comment: Sorry, forgot to remove the mention of BaseResult ... -- Added file: http://bugs.python.org/file35613/python_doc_patch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21746 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21746] urlparse.BaseResult no longer exists
Martijn Pieters added the comment: Note that the Python 3 docs also need updating, but need a more extensive patch: https://docs.python.org/3/library/urllib.parse.html#structured-parse-results -- nosy: +mjpieters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21746 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21746] urlparse.BaseResult no longer exists
Matthew Gilson added the comment: This originally came up on stackoverflow: http://stackoverflow.com/questions/24200988/modify-url-components-in-python-2/24201020?noredirect=1#24201020 Would it be helpful if I also added a simple example to the docs as in the example there? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21746 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21744] itertools.islice() goes over all the pre-initial elements even if the iterable can seek
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21744 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)
Mathieu Dupuy added the comment: Could we at least do something cleaner that let the interpreter raise an UnboundLocalError ? Maybe something like NotImplemented ? -- nosy: +deronnax ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2202 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18108] shutil.chown should support dir_fd and follow_symlinks keyword arguments
Claudiu Popa added the comment: Hi. Would you like to provide a patch? -- keywords: +easy nosy: +Claudiu.Popa stage: - needs patch type: - enhancement versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18108 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21697] shutil.copytree() handles symbolic directory incorrectly
Berker Peksag added the comment: Here's a patch. I'm getting the following error without modify Lib/shutil.py: == ERROR: test_copytree_symbolic_directory (test.test_shutil.TestShutil) -- Traceback (most recent call last): File /home/berker/projects/cpython-default/Lib/test/test_shutil.py, line 650, in test_copytree_symbolic_directory shutil.copytree(src_dir, dst_dir) File /home/berker/projects/cpython-default/Lib/shutil.py, line 342, in copytree raise Error(errors) shutil.Error: [('/tmp/tmpiy30_34s/src/link', '/tmp/tmpiy30_34s/dst/link', [Errno 21] Is a directory: '/tmp/tmpiy30_34s/src/link')] -- keywords: +patch nosy: +berker.peksag stage: needs patch - patch review Added file: http://bugs.python.org/file35614/issue21697.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21697 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21747] argvars: error while parsing under windows
New submission from Serhiy Ivanov: have 1.py as: import argparse import sys print (sys.argv) parser = argparse.ArgumentParser(prog='demo') parser.add_argument('--host -h', help='host for the server of %(prog)', nargs=1, required=True, metavar='host') parser.add_argument('--port -p', help='port for the server of %(prog)', nargs=1, required=True, metavar='port') parser.parse_args(sys.argv) and run C:\Python34\python.exe 1.py -h 1. Will obtain: Traceback (most recent call last): File 1.py, line 7, in module parser.parse_args(sys.argv) File C:\Python34\lib\argparse.py, line 1717, in parse_args args, argv = self.parse_known_args(args, namespace) File C:\Python34\lib\argparse.py, line 1749, in parse_known_args namespace, args = self._parse_known_args(args, namespace) File C:\Python34\lib\argparse.py, line 1955, in _parse_known_args start_index = consume_optional(start_index) File C:\Python34\lib\argparse.py, line 1895, in consume_optional take_action(action, args, option_string) File C:\Python34\lib\argparse.py, line 1823, in take_action action(self, namespace, argument_values, option_string) File C:\Python34\lib\argparse.py, line 1016, in __call__ parser.print_help() File C:\Python34\lib\argparse.py, line 2348, in print_help self._print_message(self.format_help(), file) File C:\Python34\lib\argparse.py, line 2332, in format_help return formatter.format_help() File C:\Python34\lib\argparse.py, line 278, in format_help help = self._root_section.format_help() File C:\Python34\lib\argparse.py, line 208, in format_help func(*args) File C:\Python34\lib\argparse.py, line 208, in format_help func(*args) File C:\Python34\lib\argparse.py, line 515, in _format_action help_text = self._expand_help(action) File C:\Python34\lib\argparse.py, line 602, in _expand_help return self._get_help_string(action) % params ValueError: incomplete format -- components: Library (Lib) messages: 220432 nosy: icegood priority: normal severity: normal status: open title: argvars: error while parsing under windows versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21747 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)
R. David Murray added the comment: Sure. Would you like to propose a patch? It does seem that NotImplementedError would be the most appropriate. It could give Christian's reason why it is not implemented. -- stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2202 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16136] Removal of VMS support
Roundup Robot added the comment: New changeset 75b18ff66e41 by Victor Stinner in branch 'default': Issue #16136: VMSError is done, bye bye VMS http://hg.python.org/cpython/rev/75b18ff66e41 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16136 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21744] itertools.islice() goes over all the pre-initial elements even if the iterable can seek
R. David Murray added the comment: Then don't use itertools for that case. itertools is designed for working with *arbitrary* iterables, and arbitrary iterables are not seekable. I'll leave it to Raymond to decide if it is worth making a special-case optimization :) -- nosy: +r.david.murray, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21744 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16136] Removal of VMS support
Roundup Robot added the comment: New changeset 48126f225f10 by Victor Stinner in branch '3.4': Issue #16136: VMSError is done, bye bye VMS http://hg.python.org/cpython/rev/48126f225f10 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16136 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21747] argvars: error while parsing under windows
R. David Murray added the comment: You are missing an 's' after the parens. It should be: %(prog)s -- nosy: +r.david.murray resolution: - not a bug stage: - resolved status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21747 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18967] Find a less conflict prone approach to Misc/NEWS
Donald Stufft added the comment: So Twisted is actually in the process of pulling out their tooling they use for the separate files technique and making it a stand alone project. Seems like it'd make sense to reuse/contribute to that? It's at https://github.com/twisted/newsbuilder -- nosy: +dstufft ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18967 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21719] Returning Windows file attribute information via os.stat()
Ben Hoyt added the comment: Full patch to add this to Python 3.5 attached: * code changes to posixmodule.c and _stat.c * tests added in test_os.py and test_stat.py * docs added to os.rst and stat.rst -- keywords: +patch Added file: http://bugs.python.org/file35615/issue21719.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21719 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21741] Convert most of the test suite to using unittest.main()
Zachary Ware added the comment: Here's a diff against 3.4 produced by the script. Warning: it's rather large. $ hg diff --stat [...] 162 files changed, 199 insertions(+), 942 deletions(-) -- keywords: +patch Added file: http://bugs.python.org/file35616/issue21741.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21741 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21748] glob.glob does not sort its results
New submission from David Jones: ``` for f in glob.glob('input/*/*.dat'): print f ``` outputs: ``` input/ghcnm.v3.2.2.20140611/ghcnm.tavg.v3.2.2.20140611.qca.dat input/ghcnm.v3.2.2.20140506/ghcnm.tavg.v3.2.2.20140506.qca.dat ``` Note that these are not in the right order. Compare with shell which always sorts its globs: ``` drj$ printf '%s\n' input/*/*.dat input/ghcnm.v3.2.2.20140506/ghcnm.tavg.v3.2.2.20140506.qca.dat input/ghcnm.v3.2.2.20140611/ghcnm.tavg.v3.2.2.20140611.qca.dat ``` I think the shell behaviour is better and we should be allowed to rely on glob.glob sorting its result. Note from the documentation: The glob module finds all the pathnames matching a specified pattern according to the rules used by the Unix shell. The Unix shell has always sorted its globs. -- components: Library (Lib) messages: 220441 nosy: drj priority: normal severity: normal status: open title: glob.glob does not sort its results versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21748 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21749] pkgutil ImpLoader does not support frozen modules
New submission from Marc-Andre Lemburg: This leads to problems when using runpy, since it relies on pkgutil to find importers. In Python 2, ImpLoader is used by ImpImporter which is used as fallback importer by get_importer(). get_importer() is used by runpy to implement e.g. the -m option. As a result, -m doesn't work with frozen modules. In Python 3, ImpLoader still exists, but is deprecated. get_importer() also no longer falls back to the ImpImporter as default, so the situation is less bothersome. Here's a patch for Python 3.4.1 which shows how to add support for frozen modules. The same patch also works in Python 2.6 and 2.7. -- components: Distutils, Library (Lib) files: pkgutil-frozen-modules-support.patch keywords: patch messages: 220442 nosy: dstufft, eric.araujo, lemburg priority: normal severity: normal status: open title: pkgutil ImpLoader does not support frozen modules versions: Python 2.7, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file35617/pkgutil-frozen-modules-support.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21749 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21748] glob.glob does not sort its results
R. David Murray added the comment: I think there is no reason to impose the overhead of a sort unless the user wants it...in which case they can sort it. I'm -1 on this change. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21748 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17941] namedtuple should support fully qualified name for more portable pickling
Mark Lawrence added the comment: Just slipped under the radar? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17941 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21745] Devguide: mention requirement to install Visual Studio SP1 on Windows
Roundup Robot added the comment: New changeset 10cca530d14c by Zachary Ware in branch '3.4': Issue #21745: Mention VS2010 SP1 as a solution for LNK1123 errors http://hg.python.org/cpython/rev/10cca530d14c New changeset b5b54073d495 by Zachary Ware in branch 'default': Issue #21745: Merge with 3.4 http://hg.python.org/cpython/rev/b5b54073d495 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21745 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8535] passing optimization flags to the linker required for builds with gcc -flto
Mark Lawrence added the comment: Is this still relevant as GCC 4.9.0 was released on April 22, 2014? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8535 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21745] Devguide: mention requirement to install Visual Studio SP1 on Windows
Roundup Robot added the comment: New changeset 9794412fa62d by Zachary Ware in branch 'default': Issue #21745: Mention VS2010 SP1 as a solution for error LNK1123. http://hg.python.org/devguide/rev/9794412fa62d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21745 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8579] Add missing tests for FlushKey, LoadKey, and SaveKey in winreg
Changes by Claudiu Popa pcmantic...@gmail.com: -- dependencies: +Expose RegUnloadKey in winreg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8579 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21745] Devguide: mention requirement to install Visual Studio SP1 on Windows
Zachary Ware added the comment: Fixed, thanks for the patch! -- assignee: docs@python - zach.ware resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21745 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5999] compile error on HP-UX 11.22 ia64 - 'mbstate_t' is used as a type, but has not been defined as a type
Mark Lawrence added the comment: Should this be closed in favour of issue 12572? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5999 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)
Mark Lawrence added the comment: According to msg140433 this should be closed. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12561 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21745] Devguide: mention requirement to install Visual Studio SP1 on Windows
Ben Hoyt added the comment: Cool, thanks for applying. Out of curiosity, how often is the online devguide HTML updated? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21745 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21745] Devguide: mention requirement to install Visual Studio SP1 on Windows
Zachary Ware added the comment: I'm not sure; I expect your change to be live within a day, probably sooner. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21745 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7057] tkinter doc: more 3.x updates
Mark Lawrence added the comment: The default build (on Windows anyway)is using tcl/tk 8.6 so I believe that we can take this forward now. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7057 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19362] Documentation for len() fails to mention that it works on sets
Mark Lawrence added the comment: This is a very simple docs patch so could we have it committed please? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21652] Python 2.7.7 regression in mimetypes module on Windows
James Y Knight added the comment: Reverting the incorrect commit which caused the regression would be a good start. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19351] python msi installers - silent mode
Steve Dower added the comment: I've noticed this as well. I'm hoping to do a significant rework of the installer for 3.5 and will keep this in mind, but I honestly have no idea how to diagnose this in the current setup. Windows Installer is responsible for the missing entries, and AFAIK the only way it will fail to create them is if our MSI includes invalid data (I'd expect this to show up in the verbose logs). Alternatively, there may be some obscure component flags that 'work' but sometimes don't work, I really don't know. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19351 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21747] argvars: error while parsing under windows
paul j3 added the comment: It's essentially the same issue as http://bugs.python.org/issue21666. An error in the 'help' parameter is not caught until 'print_help' is called (via 'parse_args'). A possible improvement is to test the 'help' string during 'add_argument'. Similar testing for 'nargs' and 'metavar' has been proposed. -- nosy: +paul.j3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21747 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21652] Python 2.7.7 regression in mimetypes module on Windows
R. David Murray added the comment: If I understand correct that patch was itself attempting to fix a regression ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19351] python msi installers - silent mode
Steve Dower added the comment: This may actually be a Windows issue... the keys for uninstall are being written to the Wow6432Node of the registry (on a 64-bit machine), and apparently the Programs and Features panel does not read them from there. The 64-bit installers should be fine (testing one now) since they probably don't redirect the registry writes. I actually have more than twice as many entries under here than in the main view - mostly Visual Studio components - and none of them appear in the panel. I'll try and ping some people here and find out how to fix it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19351 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)
Jim Jewett added the comment: Following up on Mark Lawrence's comment: http://bugs.python.org/issue12572 is collecting the patches required to compile under HP/UX, and the patch there supersedes those on this issue. Closing. -- nosy: +Jim.Jewett resolution: - duplicate status: open - closed superseder: - HP/UX compiler workarounds ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12561 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)
STINNER Victor added the comment: The changeset a7a8ccf69708 (a few months ago) fixed lib_python to not concatenate bytes string and wide character string. I don't see any occurence of char+wchar in the code, so I'm closing the issue. changeset: 87136:a7a8ccf69708 user:Victor Stinner victor.stin...@gmail.com date:Sat Nov 16 00:45:54 2013 +0100 files: Modules/getpath.c description: Don't mix wide character strings and byte strings (Llib/python VERSION): use _Py_char2wchar() to decode lib_python instead. Some compilers don't support concatenating literals: Lwide bytes. Example: IRIX compiler. -- resolution: duplicate - fixed superseder: HP/UX compiler workarounds - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12561 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21652] Python 2.7.7 regression in mimetypes module on Windows
Tim Golden added the comment: Only if you have something better to put in its place! That commit was fixing an existing problem; perhaps not your problem, but someone's. To revert it would simply move the pain around. I hope to be able to work on this fairly soon. If anyone else wants to propose an approach to take this forward, they're welcome to do so. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21518] Expose RegUnloadKey in winreg
Claudiu Popa added the comment: Attached a new version of the patch which cleanups properly after tests. -- Added file: http://bugs.python.org/file35618/issue21518_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21518 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7057] tkinter doc: more 3.x updates
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +serhiy.storchaka -gpolo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7057 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21719] Returning Windows file attribute information via os.stat()
Jim Jewett added the comment: Added version 3.5; is 3.4 somehow still correct? Set stage to patch review as there are still comments to deal with, but it looks pretty close to commit review. -- nosy: +Jim.Jewett stage: - patch review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21719 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21749] pkgutil ImpLoader does not support frozen modules
Jim Jewett added the comment: As best I can tell, this renames the original get_code to _get_code, and then delegates to it after handling the imp.PY_FROZEN case ... why not just add imp.PY_FROZEN to the if/elif chain in the original method? I also note that the call to self._fix_name doesn't do anything helpful unless it is overridden in a subclass -- was this patch really intended as a recipe for subclasses, that avoided super for backwards compatibility? If it is intended to go into the main branch, then someone has to decide whether it is OK to enhance despite being deprecated. If it is just an example, then it should probably be closed with an appropriate status. I'm guessing not a bug, but that isn't quite right either. -- nosy: +Jim.Jewett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21749 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21652] Python 2.7.7 regression in mimetypes module on Windows
Jean-Paul Calderone added the comment: That commit was fixing an existing problem; perhaps not your problem, but someone's. To revert it would simply move the pain around. Doesn't the very same logic apply to the original commit? I hope to be able to work on this fairly soon. Thanks. Much appreciated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21719] Returning Windows file attribute information via os.stat()
Zachary Ware added the comment: Not sure what you were going for on the version, Jim; you added 3.4, but this is a new feature for 3.5. -- versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21719 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21748] glob.glob does not sort its results
Jim Jewett added the comment: I agree with R. David Murray, but it may be worth adding a clarification sentence (or an example with sorted) to the documentation. Changing status to Pending, in hopes that any doc changes would be quick. -- nosy: +Jim.Jewett resolution: - not a bug status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21748 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21652] Python 2.7.7 regression in mimetypes module on Windows
Vladimir Iofik added the comment: Did anyone here managed to reproduce the issue? I tired but I have failed to. I'm still trying though. Anyway I'd start from investigating why a function EnumKey returns Unicode object while according to documentation it should return string. -- nosy: +Vladimir.Iofik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21749] pkgutil ImpLoader does not support frozen modules
Marc-Andre Lemburg added the comment: On 13.06.2014 18:49, Jim Jewett wrote: As best I can tell, this renames the original get_code to _get_code, and then delegates to it after handling the imp.PY_FROZEN case ... why not just add imp.PY_FROZEN to the if/elif chain in the original method? Of course, a proper patch would work that way and I can submit one if there's demand. The attached patch was the result of a programmatic patching system that uses search replace. That's why it uses this awkward style. I also note that the call to self._fix_name doesn't do anything helpful unless it is overridden in a subclass -- was this patch really intended as a recipe for subclasses, that avoided super for backwards compatibility? It does: if fullname is None, it returns self.fullname. If it is intended to go into the main branch, then someone has to decide whether it is OK to enhance despite being deprecated. If it is just an example, then it should probably be closed with an appropriate status. I'm guessing not a bug, but that isn't quite right either. It is deprecated in 3.4, but not in 2.7 and for 2.7 I consider this a bug, since pkgutil claims to support frozen packages in the ImpImporter doc-string. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21749 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21749] pkgutil ImpLoader does not support frozen modules
Marc-Andre Lemburg added the comment: Here's an updated patch for Python 3.4.1 that doesn't use the awkward style :-) -- Added file: http://bugs.python.org/file35619/pkgutil-frozen-modules-support.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21749 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21749] pkgutil ImpLoader does not support frozen modules
Changes by Marc-Andre Lemburg m...@egenix.com: Removed file: http://bugs.python.org/file35617/pkgutil-frozen-modules-support.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21749 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21684] inspect.signature bind doesn't include defaults or empty tuple/dicts
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - test needed versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21684 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21748] glob.glob does not sort its results
Eric V. Smith added the comment: I agree that glob shouldn't sort. In addition, iglob definitely can't sort, and I don't think you want to have glob sort but iglob not sort. -- nosy: +eric.smith status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21748 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21706] Add base for enumerations (Functional API)
Terry J. Reedy added the comment: Looks sensible to me. Except for being name-only, this duplicates the api of enumerate. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21706 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20043] test_multiprocessing_main_handling fails --without-threads
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - terry.reedy nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20043 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21750] mock_open data is visible only once for the life of the class
New submission from Paul Koning: The read_data iterator that supplies bits of read data when asked from unittest.mock.mock_open is a class attribute. The result is that, if you instantiate the class multiple times, that iterator is shared. This isn't documented and it seems counterintuitive. The purpose of mock_open is to act like a file, and read_data is that file's data. A file contains the same data each time you read it. So it would seem better for the data iterator to be an instance attribute, initialized from the mock_open read_data value each time mock_open is called to create a new file instance. -- components: Library (Lib) messages: 220474 nosy: pkoning priority: normal severity: normal status: open title: mock_open data is visible only once for the life of the class type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21750 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20043] test_multiprocessing_main_handling fails --without-threads
Roundup Robot added the comment: New changeset ef491d76ac70 by Terry Jan Reedy in branch '3.4': Issue #20043: Add direct test for _thread. http://hg.python.org/cpython/rev/ef491d76ac70 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20043 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20043] test_multiprocessing_main_handling fails --without-threads
Terry J. Reedy added the comment: I added a direct test import of _thread. Since test_multiprocessing is one file on 2.7 and AMD Fedora without threads is green for 2.7, in spite of the import of threading, I left 2.7 alone. If that changes, this can be reopened and marked for 2.7. -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20043 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21751] Expand zipimport to support bzip2 and lzma
New submission from Donald Stufft: Since Python 3.3 the zipfile module has support bzip2 and lzma compression, however the zipimporter does not support these. It would be awesome if zipimport did support them. -- messages: 220477 nosy: brett.cannon, dstufft, eric.snow, ncoghlan priority: normal severity: normal status: open title: Expand zipimport to support bzip2 and lzma versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21751 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21726] Unnecessary line in documentation
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: docs@python - terry.reedy nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21726 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10740] sqlite3 module breaks transactions and potentially corrupts data
Jim Jewett added the comment: (1) The patch is just to docs, not code, so I'm not entirely sure that I understood it properly. (2) The new semantics are a huge mess to explain. This might be because the old semantics were bad, but the result is the same. I think it would be better to create a different API object. (If I read correctly, you would leave function connect unchanged but also def dbapi_connect.) Then keep this new one as simple as it should be -- which will probably mean leaving out some of the parameters that you deprecate. (3) The existing module documentation does claim to be DB-API 2.0 compliant; you should be explicit in the documentation (including docstring) about which behavior differences affect each of (database correctness/API standards conformance/ease of use). -- nosy: +Jim.Jewett ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19493] Report skipped ctypes tests as skipped
Roundup Robot added the comment: New changeset 6f63fff5c120 by Zachary Ware in branch '3.4': Issue #19493: Refactor ctypes test package. http://hg.python.org/cpython/rev/6f63fff5c120 New changeset 86d14cf2a6a8 by Zachary Ware in branch 'default': Issue #19493: Merge with 3.4 http://hg.python.org/cpython/rev/86d14cf2a6a8 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19493 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21726] Unnecessary line in documentation
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - fixed stage: - resolved status: open - closed versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21726 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21726] Unnecessary line in documentation
Roundup Robot added the comment: New changeset cd08e366d619 by Terry Jan Reedy in branch '2.7': Issue #21726: Remove unnecessary and contextually wrong line. http://hg.python.org/cpython/rev/cd08e366d619 New changeset efa32fcd7a0b by Terry Jan Reedy in branch '3.4': Issue #21726: Remove unnecessary and contextually wrong line. http://hg.python.org/cpython/rev/efa32fcd7a0b -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21726 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21751] Expand zipimport to support bzip2 and lzma
R. David Murray added the comment: See also issue 17004 and issue 5950. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21751 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21752] Document Backwards Incompatible change to logging in 3.4
New submission from Don Spaulding: Discussion of this issue on ML: https://mail.python.org/pipermail/python-dev/2014-June/135048.html The behavior of logging.getLevelName changed in Python 3.4. Previously when passed a string, it would return the corresponding integer value of the level. In 3.4 it was changed to match the behavior of its documentation. The patch can be found in issue #18046. This seems like something that should be documented somewhere. -- assignee: docs@python components: Documentation messages: 220482 nosy: docs@python, donspaulding priority: normal severity: normal status: open title: Document Backwards Incompatible change to logging in 3.4 type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21752 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21753] subprocess shell=True on Windows character escaping
New submission from Jim Jewett: Inspired by https://mail.python.org/pipermail/python-dev/2014-June/135029.html and the following thread. Normal Windows behavior: hg status --rev .^1 M mercurial\commands.py ? pysptest.py hg status --rev .^1 abort: unknown revision '.1'! So, ^ is an escape character. See http://www.tomshardware.co.uk/forum/35565-45-when-special-command-line It probably isn't possible to pre-escape commands for every possible command interpreter, but it makes sense to get the standard shells right. In fact, global function list2cmdline already exists (and is apparently specific to the Microsoft compiler), but ... its rules are not the same as those of the default windows shell. (Per the tomshardware link, those rules (for windows) did change a while back.) I propose a similar list2shellcmd function. Based on my own very incomplete information, it would currently look like: def list2shellcmd(seq): Turn the sequence of arguments into a single command line, with escaped characters. if mswindows: line=list2cmdline(seq).replace(^, ^^) else: line= .join(seq) return line but there may well be escapes (such as \) that are appropriate even for posix. Note that related issue http://bugs.python.org/issue7839 proposes a larger cleanup, such as forbidding the problematic functionality entirely. -- components: Library (Lib) messages: 220483 nosy: Jim.Jewett priority: normal severity: normal status: open title: subprocess shell=True on Windows character escaping type: enhancement versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21753 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21730] test_socket fails --without-threads
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: - terry.reedy nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21730 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21730] test_socket fails --without-threads
Roundup Robot added the comment: New changeset f44275c66fcf by Terry Jan Reedy in branch '3.4': Issue #21730: Add no-thread skip in test_socket. Patch by Berker Peksag. http://hg.python.org/cpython/rev/f44275c66fcf -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21730 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21730] test_socket fails --without-threads
Terry J. Reedy added the comment: It is helpful to note that an issue such as this does not apply to 2.7, so no one needs to check whether the omission is an oversight, and that you know that the patch applies cleanly to both 3.4 and 3.5. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21730 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19362] Documentation for len() fails to mention that it works on sets
Raymond Hettinger added the comment: I'll apply this (if only to bring this vacuous discussion to a close). -- assignee: docs@python - rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21753] Windows cmd.exe character escaping function
R. David Murray added the comment: This should instead be an escape function parallel to the shlex.quote function for unix. I was talking to someone on IRC the other day who had at least a partial implementation, but I guess they haven't opened an issue for it. (At least, I can't find one.) -- nosy: +r.david.murray title: subprocess shell=True on Windows character escaping - Windows cmd.exe character escaping function ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21753 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19493] Report skipped ctypes tests as skipped
Roundup Robot added the comment: New changeset 08a2b36f6287 by Zachary Ware in branch '2.7': Issue #19493: Backport 6f63fff5c120 http://hg.python.org/cpython/rev/08a2b36f6287 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19493 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19493] Report skipped ctypes tests as skipped
Zachary Ware added the comment: Committed; thanks for the review, Serhiy. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19493 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19351] python msi installers - silent mode
Steve Dower added the comment: Apparently keys in Wow6432Node are actually okay, so I'm not much closer to figuring this out. As far as I can tell, the entry I have for Python 2.6.6 (which doesn't appear) has identical information to IronPython 2.7.4 (which does appear). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19351 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10740] sqlite3 module breaks transactions and potentially corrupts data
Aymeric Augustin added the comment: Thanks for your feedback! Indeed this is a documentation patch describing what I could implement if a core dev gave the slightest hint that it stands a small chance of getting included. There's no point in writing code that Python core doesn't want. I designed this API to maximize the chances it would be accepted, based on what I know of Python's development. That's probably why it was merely ignored rather than rejected ;-) More seriously, since I'm interested in improving what the stdlib ships, I have to take backwards compatibility into account. If I just wanted to implement a different API, I'd do it outside of CPython. Yes, I could add PEP 249 compliance considerations to the docs. I'll do it if my general approach is accepted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21741] Convert most of the test suite to using unittest.main()
Terry J. Reedy added the comment: You might add a brief description of why this is good idea, or link to such a discussion. I am +1 on the idea, but a pydev discussion might be needed. How did you test the patch? I don't think that passing the same tests in non-verbose mode is good enough, as an empty test is a pass. What would be convincing is an automated comparison of verbose output before and after that showed that everything run before is run after. There might be more after if something was omitted from a run_unittest call. That past actuality and current possibility is part of the reason for the change. Timing: I think applying this too close to a release might be a bad idea. I am thinking more of human mental adjustments (and the need to refresh some patches) rather than likely technical issues. If this were approved when 3.4.2 were expected within a month, say, I would wait until it were released. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21741 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19362] Documentation for len() fails to mention that it works on sets
Terry J. Reedy added the comment: Raymond, I was planning to do this today along with other small patches (already done). Just say so and I will take it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6966] Ability to refer to arguments in TestCase.fail* methods
R. David Murray added the comment: This appears to be me to be obsolete, given that long messages are now the default, and the message argument enhances the long message rather than replacing it. -- nosy: +r.david.murray resolution: - out of date stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6966 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19351] python msi installers - silent mode
Steve Dower added the comment: Okay, now it looks to me like the install that 'works' ran under the SYSTEM account while the one that didn't work ran under my (admin) user account. This may be caused by running the installer from an elevated command prompt. If it detects that it needs to elevate, then it changes to SYSTEM, but if it detects that it doesn't, it will use the current account. If you can run your install scripts as SYSTEM then I suspect it will work. I'm not yet clear on why it sometimes installs through the one account instead of the other. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19351 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21652] Python 2.7.7 regression in mimetypes module on Windows
Martin v. Löwis added the comment: I can reproduce the issue with the attached script. The problem is not that EnumKey returns a Unicode string (which it never does), but that QueryValueEx returns a Unicode string. See http://hg.python.org/cpython/rev/18cfc2a42772 for the actual change in question. -- Added file: http://bugs.python.org/file35620/finduni.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21652 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21719] Returning Windows file attribute information via os.stat()
Ben Hoyt added the comment: Updated patch attached based on code reviews. I'm replying to the code review here as when I tried to reply on bugs.python.org/review I got a Python exception, AttributeError: NoneType has no attribute something or other. FYI, it seems Django is set up in debug mode, because it was the full colourful traceback with local vars etc. I didn't save this file, sorry! Zach Ware = Either way, these should probably be defined in stat.py as well (sorry; I should have said 'as well as' instead of 'instead of' when I mentioned _stat.c in the email thread). I don't think so -- I thought the purpose of moving them to _stat.c was so you could use the windows.h constants rather than hard-coded integers? But if they're in stat.py, why do they need to be in _stat.c as well? http://bugs.python.org/review/21719/diff/12149/Modules/_stat.c#newcode563 Modules/_stat.c:563: // For some reason FILE_ATTRIBUTE_INTEGRITY_STREAM and PEP 7 bans C++ style comments. Good point. stoneleaf = 'covert' should be 'convert' - can you fix this as part of your patch? ;) Fixed in latest patch. Instead of spelling out FILE_ATTRIBUTE_ each time, can we abbreviate that part to FA_ ? I disagree. I realize FILE_ATTRIBUTE_* is longish, but it's what it's called in the Windows API, so will make these constants much more findable and obvious to Windows programmers (consistent with the Win32 documentation). On non-Windows machines 'st_file_attributes' will be 0? No, it won't be present at all (like the other non-cross-platform attributes). There's no attribute for the value 8? Correct -- see the Win32 API documentation and loewis's comment. haypo = It would be nice to document these options here :) I don't think we should duplicate the Win32 documentation. Ours will just be less thorough and potentially get out of date. I agree we should add a link to the Win32 docs though. Instead of == 0, you can use assertFalse. Could, but I don't like this when I'm doing bit/integer comparisons. Explicit is better. The purpose of the _stat module is to only provide data from the OS, to not hardcode constants. So -1 to provide these constants on all platforms. Agreed. See above. If the constant is only available on new Visual Studio version, we may hardcode the constant to avoid the dependency on a specific Visual Studio version. For example, in unicodeobject.c I used: #ifndef WC_ERR_INVALID_CHARS # define WC_ERR_INVALID_CHARS 0x0080 #endif That's a good way of doing it. I'll use this approach. Modules/posixmodule.c:1437: unsigned long st_file_attributes; Should we use a DWORD here? I don't think so. None of the other values in win32_stat (e.g., st_dev) are defined using DWORD or Win32-style types. See also loewis's comment. loewis == We shouldn't replicate Microsoft's documentation (if for no other reason than copyright). Instead, linking to http://msdn.microsoft.com/en-us/library/windows/desktop/gg258117.aspx might be helpful (as long as Microsoft preserves this URL). Agreed. I'll make this change. -- Added file: http://bugs.python.org/file35621/issue21719-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21719 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21719] Returning Windows file attribute information via os.stat()
Zachary Ware added the comment: Ben Hoyt wrote: I'm replying to the code review here as when I tried to reply on bugs.python.org/review I got a Python exception, AttributeError: NoneType has no attribute something or other. Generally when you get that you can just hit back and try again, it will work by the 4th try ;) I don't think so -- I thought the purpose of moving them to _stat.c was so you could use the windows.h constants rather than hard-coded integers? But if they're in stat.py, why do they need to be in _stat.c as well? The idea is that _stat.c will use system-provided values wherever possible, but stat.py should be as accurate as we can make it to provide a backup for when _stat isn't around (either when it's just not built, which isn't an issue on Windows, or in another Python implementation). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21719 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21719] Returning Windows file attribute information via os.stat()
Ben Hoyt added the comment: The idea is that _stat.c will use system-provided values wherever possible, but stat.py should be as accurate as we can make it to provide a backup for when _stat isn't around (either when it's just not built, which isn't an issue on Windows, or in another Python implementation). Fair call. I've added the constants to stat.py as well. Updated patch attached. -- Added file: http://bugs.python.org/file35622/issue21719-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21719 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10740] sqlite3 module breaks transactions and potentially corrupts data
Jim Jewett added the comment: Removing the existing behavior will almost certainly not be accepted, because of backwards compatibility. Adding new functionality is generally acceptable. Doing that through a new keyword that defaults to the old behavior is fairly common, and generally better than an apparently redundant function. But in this particular case, that makes the new signature and documentation such a mess that I believe a separate function would be the lesser of evils. (And that only if it is clear what the problems with the current situation are. e.g., do the problems only trigger when using the database from too many threads, or is a random network delay enough to trigger problems?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10740] sqlite3 module breaks transactions and potentially corrupts data
Aymeric Augustin added the comment: The problem is super simple: connection = ... cursor = connection.cursor() cursor.execute(SAVEPOINT foo) cursor.execute(ROLLBACK TO SAVEPOINT foo) # will report that the savepoint doesn't exist. Please don't make it look more complicated than it is. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10740 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5904] strftime docs do not explain locale effect on result string
Roundup Robot added the comment: New changeset 31adcc4c4391 by R David Murray in branch '2.7': #5904: Add sentence about the encoding of strftime's result. http://hg.python.org/cpython/rev/31adcc4c4391 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5904 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5904] strftime docs do not explain locale effect on result string
R. David Murray added the comment: Thanks, Caelyn. I used your patch but added a clause showing explicitly how do the unicode conversion. I decided to not add that to the datetime, docs, since they are already pretty clear. -- nosy: +r.david.murray resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5904 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17424] help() should use the class signature
Mark Lawrence added the comment: issue17053 was closed in favour of issue19674 but I don't know if this issue is a duplicate of the former anyway. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17424 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13312] test_time fails: strftime('%Y', y) for negative year
Mark Lawrence added the comment: The failing negative years test is still being skipped. I'm assuming this was not originally intended. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13312 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14102] argparse: add ability to create a man page
Oz Tiram added the comment: @Raymond Hettinger, You don't have to wait anymore. I would be happy if you review the patch, and share your opinion. I might have posted my patch too early. I am still doing changes on the upstream, in my github posted earlier.So, please test the one upstream. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14102 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com