[issue14899] Naming conventions and guidelines for packages and namespace packages
Benoît Bryon ben...@marmelune.net added the comment: I didn't provided the patch because the work is still at early stage. I planned to provide a patch when the development branch is quite mature. I created the issue early so that other people can contribute. But I maybe I'd better read PEP 1 again... because it looks like a PEP (which may lead back to this ticket when it's time for implementation). I'm to post a proposal to python-list or python-ideas mailing lists. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14899 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14907] SSL module cannot handle unicode filenames
New submission from Marc Schlaich marc.schla...@googlemail.com: Here is a short example to reproduce the error: import socket, ssl sock = socket.socket() sock = ssl.wrap_socket(sock, cert_reqs=ssl.CERT_REQUIRED, ca_certs=u'ä.crt') sock.connect((None, None)) Traceback (most recent call last): File stdin, line 1, in module File C:\Python27\lib\ssl.py, line 322, in connect self._real_connect(addr, False) File C:\Python27\lib\ssl.py, line 305, in _real_connect self.ca_certs, self.ciphers) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 0: ordinal not in range(128) -- components: Library (Lib), Unicode messages: 161554 nosy: ezio.melotti, ms4py priority: normal severity: normal status: open title: SSL module cannot handle unicode filenames type: crash versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14907 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12014] str.format parses replacement field incorrectly
Petri Lehtinen pe...@digip.org added the comment: I added some comments on rietveld. These are only nit-picking about style and mostly reflect my personal taste, not show stoppers in any case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12014 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4841] io's close() not handling errors correctly
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 83d500908ffc by Hynek Schlawack in branch '2.7': #4841: Fix FileIO constructor to honor closefd when called repeatedly http://hg.python.org/cpython/rev/83d500908ffc New changeset 8a58670048c9 by Hynek Schlawack in branch '3.2': #4841: Fix FileIO constructor to honor closefd when called repeatedly http://hg.python.org/cpython/rev/8a58670048c9 New changeset d2b511592cc5 by Hynek Schlawack in branch 'default': #4841: Fix FileIO constructor to honor closefd when called repeatedly http://hg.python.org/cpython/rev/d2b511592cc5 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4841 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4841] io's close() not handling errors correctly
Hynek Schlawack h...@ox.cx added the comment: I’ve committed due to haypo's wish on IRC. ;) -- resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4841 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
New submission from Dirkjan Ochtman dirk...@ochtman.nl: There's datetime.fromtimestamp() and datetime.timetuple(), but no datetime.timestamp(). It should be possible to round-trip a UNIX timestamp through a datetime.datetime. -- messages: 161558 nosy: djc priority: normal severity: normal status: open title: datetime.datetime should have a timestamp() method versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14814] Implement PEP 3144 (the ipaddress module)
Hynek Schlawack h...@ox.cx added the comment: Cool, you actually did reviews. :) I’ve updated the patch, anything else? (to my excuse, I originally didn’t want to tamper with code, but now the patch is actually useful and not just pretty ;)) -- Added file: http://bugs.python.org/file25702/ipaddress-pep8-and-dead-code-v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14907] SSL module cannot handle unicode filenames
Hynek Schlawack h...@ox.cx added the comment: Seems to work fine in Python 3.2+. Two possibilities: 1. document ca_certs is str only 2. encode with sys.getfilesystemencoding() if unicode Would have to be fixed in ssl.get_server_certificate too and maybe even more, I did just a quick glance. -- nosy: +hynek type: crash - behavior versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14907 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14909] Fix incorrect use of *Realloc() and *Resize()
New submission from Kristján Valur Jónsson krist...@ccpgames.com: A number of places were using PyMem_Realloc() apis and PyObject_GC_Resize() with incorrect error handling. In case of errors, they would leak the original object. This patch fixes those cases. -- files: realloc.diff keywords: patch messages: 161561 nosy: kristjan.jonsson priority: normal severity: normal status: open title: Fix incorrect use of *Realloc() and *Resize() type: resource usage versions: Python 3.3 Added file: http://bugs.python.org/file25703/realloc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14909 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib) nosy: +belopolsky, lemburg type: - enhancement versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4841] io's close() not handling errors correctly
Changes by Hynek Schlawack h...@ox.cx: -- stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4841 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14835] plistlib: output empty elements correctly
Hynek Schlawack h...@ox.cx added the comment: Sidney, would you mind adding a regression test for both cases? Ned, Ronald what's your take on this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14835 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14835] plistlib: output empty elements correctly
Ronald Oussoren ronaldousso...@mac.com added the comment: The patch looks fine, but as you noticed there should be a test case for this. I'm -1 w.r.t. applying this to 3.2 or 2.7, it is a functional change that isn't a bug (Apple's libraries will happily read empty arrays that are written as array/array). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14835 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14835] plistlib: output empty elements correctly
Ronald Oussoren ronaldousso...@mac.com added the comment: Sidney: Would you be willing to sign the contributor agreement? The following page contains more information on the agreement: http://www.python.org/psf/contrib/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14835 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14910] argparse disable abbreviation
Changes by Jens Jährig jaehrig.j...@googlemail.com: -- components: None nosy: jens.jaehrig priority: normal severity: normal status: open title: argparse disable abbreviation type: enhancement versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14910 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14911] generator.throw() documentation inaccurate
New submission from Kristján Valur Jónsson krist...@ccpgames.com: the documentation for generator.throw() does not mention the fact that it has the same semantics for the three arguments as a raise expression has. The first two arguments can be: throw(exc_type, None) throw(exc_type, value) throw(exc_type, exc_instance) throw(exc_instance, None) -- assignee: docs@python components: Documentation messages: 161565 nosy: docs@python, kristjan.jonsson priority: normal severity: normal status: open title: generator.throw() documentation inaccurate versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14910] argparse disable abbreviation
New submission from Jens Jährig jaehrig.j...@googlemail.com: argparse uses per default abbreviation in unambiguous cases. I don't want abbreviation and i'd like to disable it. But theres no option to do this. http://docs.python.org/library/argparse.html#argument-abbreviations Only to override the Handler like suggested here: http://stackoverflow.com/questions/10750802/python-argparse-disable-abbreviation/10751356#10751356 # Example # import argparse parser = argparse.ArgumentParser() parser.add_argument('--send', action='store_true') parser.parse_args(['--se']) # returns Namespace(send=True) But i want it only to be true when the full parameter is supplied. To prevent user errors. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14910 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14910] argparse: disable abbreviation
Changes by Jens Jährig jaehrig.j...@googlemail.com: -- title: argparse disable abbreviation - argparse: disable abbreviation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14910 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14912] Pdb does not stop at a breakpoint after a restart command and source changes
New submission from Xavier de Gaye xdeg...@gmail.com: In the following session, main.py is changed just before the restart command. Pdb does not stop at Breakpoint 1 after the last continue. $ python -m pdb main.py /path_to/main.py(1)module() - def foo(): (Pdb) import sys; print(sys.version) 3.2.2 (default, Dec 27 2011, 17:35:55) [GCC 4.3.2] (Pdb) break foo Breakpoint 1 at /path_to/main.py:1 (Pdb) list 1 B- def foo(): 2 x = 1 3 x = 2 4 5 foo() [EOF] (Pdb) continue /path_to/main.py(2)foo() - x = 1 (Pdb) restart Restarting main.py with arguments: main.py /path_to/main.py(1)module() - def bar(): (Pdb) list 1 B- def bar(): 2 x = 1 3 x = 2 4 5 def foo(): 6 bar() 7 8 foo() [EOF] (Pdb) continue The program finished and will be restarted /path_to/main.py(1)module() - def bar(): (Pdb) -- components: Library (Lib) messages: 161567 nosy: xdegaye priority: normal severity: normal status: open title: Pdb does not stop at a breakpoint after a restart command and source changes type: behavior versions: Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14908] datetime.datetime should have a timestamp() method
Alexander Belopolsky alexander.belopol...@gmail.com added the comment: See issue2736. -- nosy: +Alexander.Belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14908 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3177] Add shutil.open
Larry Hastings la...@hastings.org added the comment: As an example, ``os.startfile(a.py)`` will usually run `a.py` in the Python interpreter, while ``xdg-open a.py`` it will usually open the source code in an editor on Linux. Well, so how about on UNIX shutil.launch (or whatever it's called) first checks to see if we're referring to a file. If we are, check to see if it's marked executable. If it is, execute it under a shell. Failing *that* we could run xdg-open where available. -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3177 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14913] tokenize the source to manage Pdb breakpoints
New submission from Xavier de Gaye xdeg...@gmail.com: Pdb behavior is not consistent with GNU gdb behavior when setting a breakpoint on an empty line, a comment or a multi-line statement (the breakpoint is ignored by pdb on a non-first line of a multi-line statement and rejected on empty lines or comment lines). It is also confusing that, when a breakpoint is set on a function definition, pdb also stops at the function definition execution when the module is being loaded. Pdb performance: When a breakpoint is set in a module, pdb sets the trace function on all the frames whose function is defined in this module (and the trace function is run for each line in the function), regardless of the fact that the function may not have any breakpoint. Pdb breakpoint management problems: --- See issue 14789, issue 14792, issue 14795, issue 14808 and issue 14912. Pdb rejects setting a breakpoint in a function or method defined in a non imported submodule of a package, but accepts to set it when the non imported module is not in a package. For example with 'asyncore.close_all' and 'logging.info': $ python Python 3.2.2 (default, Dec 27 2011, 17:35:55) [GCC 4.3.2] on linux2 Type help, copyright, credits or license for more information. import pdb; pdb.run('def foo(): pass') string(1)module() (Pdb) break asyncore.close_all Breakpoint 1 at /usr/local/lib/python3.2/asyncore.py:580 (Pdb) break logging.info *** The specified object 'logging.info' is not a function or was not found along sys.path. When a breakpoint is set at the line number of a function definition, the algorithm used to find the first statement of the function (the actual breakpoint) is not robust, so that when another breakpoint is also set at this fuction using the function name instead of the line number, then this last breakpoint hides the first one. Use tokenize: - One solution is to parse the module source to build a description of each function and method defined in the source: The description is the set of line_set of a function. A line_set is either the line(s) of a function definition statement, or a group of consecutive statement lines, or a group of the physical lines of a logical line. The attached patch implements this solution with std lib tokenize: When a breakpoint is set at an empty line or a comment in a function, pdb stops at the next statement. When a breakpoint is set at a multi-line statement (but not a function definition statement), pdb stops at the first line of the multi-line statement. When a breakpoint is set at a line in a function definition or at a function name, pdb stops at the first statement in this function. Attempting to set a breakpoint on a line outside a function definition is rejected with an error message. Pdb does not stop anymore at the function definition execution when the module is loaded. The trace function is only set on frames whose function has one breakpoint or more. The patch fixes issue 14789, issue 14792, issue 14795, issue 14808 and issue 14912. The patch fixes the problem of setting a breakpoint in a function or method defined in package submodule when the submodule is not imported. The patch fixes the problem described above of having a breakpoint set by function name hide a breakpoint set by line number. The patch includes test cases for all those issues. Parser performance: a file is only parsed when a breakpoint is set in this file (and parsed only once of course). Some performance results of the parser on a laptop: * rpdb2.py from the rpdb2 project: 14500 lines parsed in 2.0 seconds * a more reasonable (but still large) file size with turtle.py from the std library: 4100 lines parsed in 0.6 second -- components: Library (Lib) files: pdb_default.patch keywords: patch messages: 161570 nosy: xdegaye priority: normal severity: normal status: open title: tokenize the source to manage Pdb breakpoints type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file25704/pdb_default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14913 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14789] after continue, Pdb stops at a line without a breakpoint
Xavier de Gaye xdeg...@gmail.com added the comment: Parsing the modules source seems a better way to fix this problem, see issue 14913. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14789 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14792] setting a bp on current function, Pdb stops at next line although no bp
Xavier de Gaye xdeg...@gmail.com added the comment: Parsing the modules source seems a better way to fix this problem, see issue 14913. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14792 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14795] Pdb incorrectly handles a method breakpoint when module not imported
Xavier de Gaye xdeg...@gmail.com added the comment: Parsing the modules source seems a better way to fix this problem, see issue 14913. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14795 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14808] Pdb does not stop at a breakpoint set on the line of a function definition
Xavier de Gaye xdeg...@gmail.com added the comment: Parsing the modules source seems a better way to fix this problem, see issue 14913. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14808 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14912] Pdb does not stop at a breakpoint after a restart command and source changes
Xavier de Gaye xdeg...@gmail.com added the comment: Parsing the modules source seems a better way to fix this problem, see issue 14913. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14912 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14881] multiprocessing.dummy craches when self._parent._children does not exist
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1f5d2642929a by Richard Oudkerk in branch '2.7': Issue #14881: Allow normal non-main thread to spawn a dummy process http://hg.python.org/cpython/rev/1f5d2642929a New changeset 0528ec18e230 by Richard Oudkerk in branch '3.2': Issue #14881: Allow normal non-main thread to spawn a dummy process http://hg.python.org/cpython/rev/0528ec18e230 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14881 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome
Alexander O alexan...@vonoesterreich.com added the comment: stupid question but why shouldn't this be possible ? class Element(_Element): def __init__(self,name,**kwargs): _Element.__init__(self,name) attributes = kwargs.get(attributes) children = kwargs.get(children) for key,value in attributes.iteritems(): self.setAttribute(key,value) for child in children: self.appendChild(child) -- nosy: +avono ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12098] Child process running as debug on Windows
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12098 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9400] multiprocessing.pool.AsyncResult.get() messes up exceptions
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9400 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12882] mmap crash on Windows
Richard Oudkerk shibt...@gmail.com added the comment: Without more information I will close this. -- resolution: - invalid stage: - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12882 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12091] multiprocessing: simplify ApplyResult and MapResult with threading.Event
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 57d6265beaaa by Richard Oudkerk in branch 'default': Issue #12091: simplify ApplyResult and MapResult with threading.Event http://hg.python.org/cpython/rev/57d6265beaaa -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12091 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14548] garbage collection just after multiprocessing's fork causes exceptions
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 59567c117b0e by Richard Oudkerk in branch 'default': Issue #14548: Make multiprocessing finalizers check pid before running http://hg.python.org/cpython/rev/59567c117b0e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable
Jim Jewett jimjjew...@gmail.com added the comment: Chris Lambacher On Wed, Apr 25, 2012 at 10:50 AM, Martin v. Löwis added the comment: lambacck: I'm -1, but I'm willing to yield ... regular users won't have to deal with negative consequences that enabling this by default may have. I'm quite opposed to your proposed conditional approach; I think this will be highly confusing to users. Could you clarify what you think will be confusing? I see (a slight variant of) Chris Lambacher's conditional approach as the obvious best choice, if it is feasible. (1) The default is What you are already doing. (2) If this is your only install, then assume you do want it on the path, as many newbies would. The only tweak is that if there is already a path to an *older-but-compatible* version, then its path entry should be replaced (not added to). Or are you concerned that there may be differences of opinion on whether or not 3.4 is sufficiently compatible with 3.3, and that making the default context-sensitive will cause this to be Python's problem, rather than the application's? -jJ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3561 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14914] pysetup installed distribute despite dry run option being specified
New submission from Nick Coghlan ncogh...@gmail.com: After approving the pyvenv PEP, I decided to play around with the other big packaging enhancement in 3.3: pysetup. The following command installed distribute: pysetup3.3 -n install distribute The -n *should* have caused that to be a dry run, but it actually installed the module. -- assignee: eric.araujo components: Distutils2 messages: 161582 nosy: alexis, eric.araujo, ncoghlan, tarek priority: critical severity: normal stage: test needed status: open title: pysetup installed distribute despite dry run option being specified type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14914 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14915] pysetup may leave a package in a half-installed state
New submission from Nick Coghlan ncogh...@gmail.com: Do make altinstall from trunk. Try running pysetup3.3 install distutils2 This won't work properly, because distutils2 uses Python 2 syntax. However, after running that command: pysetup3.3 remove distutils2 complains that distutils2 is not installed, but import distutils2 works at the 3.3. command prompt -- assignee: eric.araujo components: Distutils2 messages: 161583 nosy: alexis, eric.araujo, ncoghlan, tarek priority: high severity: normal status: open title: pysetup may leave a package in a half-installed state versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14915 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists
Eric V. Smith e...@trueblade.com added the comment: See also test_namespace_pkgs.py ZipWithMissingDirectory.test_missing_directory which is currently marked as expectedFailure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14905 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable
Jim Jewett jimjjew...@gmail.com added the comment: On Thu, May 24, 2012 at 8:11 PM, Brian Curtin br...@python.org added the comment: does anyone think something like this dialog http://i.imgur.com/18zPD.png be helpful? yes. After choosing the directory to install to and before choosing the features, it's a simple dialog explaining that the Path feature is available and what it does. But it might make sense to put that on the same screen where you choose whether or not to check the box, even if that box (ands it checkedness state) also gets carried over to a choose-all-options screen. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3561 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14796] Calendar module test coverage improved
Changes by Oleg Plakhotnyuk oleg...@gmail.com: Removed file: http://bugs.python.org/file25632/test_calendar.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14796 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14796] Calendar module test coverage improved
Changes by Oleg Plakhotnyuk oleg...@gmail.com: Added file: http://bugs.python.org/file25705/test_calendar.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14796 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout
New submission from Kevin Barry ta0k...@gmail.com: I have been trying to get PyRun_InteractiveLoop to run on a pty (Linux) without replacing stdin and stdout with that pty; however, it seems like Python (2.6.6) is hard-coded to only run interactively on stdin and stdout. Compile the attached program with: gcc `python-config --cflags` working.c -o working `python-config --ldflags` and run it with: ./working xterm -S/0 and you should see that there is no interactivity in the xterm that's opened. Compile the attached file with: gcc -DREADLINE_HACK `python-config --cflags` working.c -o working `python-config --ldflags` -lreadline -lcurses and run it with: ./working xterm -S/0 to see how it runs with my best attempt to get it to function properly with a readline hack. Additionally, try running: ./working xterm -S/0 /dev/null ./working xterm -S/0 /dev/null both of which should cause interactivity in the xterm to fail, indicating that Python is checking stdin/stdout for tty status when determining if it should run interactively (i.e. it's not checking the tty status of the file passed to PyRun_InteractiveLoop.) Am I somehow using this function wrong? I've been trying to work around this problem for a while, and I don't think I should be using readline hacks (especially since they don't port to other OSes with ptys, e.g. OS X.) I even tried to patch the call to PyOS_Readline in tok_nextc (Parser/tokenizer.c) to use tok-fp instead of stdin/stdout, which caused I/O to use the pty but it still failed to make interactivity work. Thanks! Kevin Barry -- components: Interpreter Core, Library (Lib) files: working.c messages: 161586 nosy: Kevin.Barry priority: normal severity: normal status: open title: PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file25706/working.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14916 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14917] Make os.symlink on Win32 detect if target is directory
New submission from Larry Hastings la...@hastings.org: The prototype for os.symlink on Windows adds a target_is_directory flag, which indicates whether or not the destination is a directory. Surely we could detect that and pass in the correct value ourselves? A quick GetFileAttributes() call would do. I doubt this would make the function much slower, as it's about to write to that area of the disk anyway. And if os.symlink is a performance-critical function on Windows I'll eat my hat. Since os.symlink support for Windows shipped in 3.2, we can't get rid of the argument at the same time. But we could just ignore it, and since it's marked as optional people could start removing it, and maybe we could deprecate it. -- components: Windows messages: 161587 nosy: larry priority: low severity: normal stage: needs patch status: open title: Make os.symlink on Win32 detect if target is directory type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14917 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14918] Incorrect explanation of TypeError exception
New submission from Thanos Tsouanas tha...@sians.org: # This correctly raises a type error, but the explanation # that comes with it is bad: def foo(x, y, z=28): return foo(x, z=8) # TypeError: foo() takes at least 2 arguments (2 given) -- messages: 161588 nosy: Thanos.Tsouanas priority: normal severity: normal status: open title: Incorrect explanation of TypeError exception type: behavior versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14918 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14915] pysetup may leave a package in a half-installed state
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14915 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14914] pysetup installed distribute despite dry run option being specified
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14914 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14910] argparse: disable abbreviation
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +bethard, tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14910 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14901] Python Windows FAQ is Very Outdated
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14897] struct.pack raises unexpected error message
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14897 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14871] Rewrite the command line parsers and actions system used in distutils2
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14871 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14881] multiprocessing.dummy craches when self._parent._children does not exist
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14881 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14617] confusing docs with regard to __hash__
Ethan Furman et...@stoneleaf.us added the comment: Newest changes uploaded. -- Added file: http://bugs.python.org/file25707/__hash__3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14617 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14858] 'pysetup create' off-by-one when choosing classification maturity status interactively.
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14858 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14919] what disables one from adding self to the nosy list
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: It's implied in the devguide[1] that there are cases where one won't have permission to edit the nosy list. Can someone mention on that text what cases are those. I thought everybody who is logged in had such permissions. 1: http://docs.python.org/devguide/triaging.html#nosy-list -- components: Devguide messages: 161590 nosy: ezio.melotti, tshepang priority: normal severity: normal status: open title: what disables one from adding self to the nosy list ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14919 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14919] what disables one from adding self to the nosy list
R. David Murray rdmur...@bitdance.com added the comment: Me too. I think the implication of that devguide entry is wrong. -- nosy: +r.david.murray stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14919 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14881] multiprocessing.dummy craches when self._parent._children does not exist
Terry J. Reedy tjre...@udel.edu added the comment: 3.3 commit is http://hg.python.org/cpython/rev/9373ca8c6c55 Richard, it did not record here because you just said 'Merge' rather than #14881 merge ;-). Great to see a crasher fixed. Ready to close? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14881 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14893] Tutorial: Add function annotation example to function tutorial
Zachary Ware zachary.w...@gmail.com added the comment: Thanks for the review :). Replied and here's the updated patch. -- Added file: http://bugs.python.org/file25708/annotations_tutorial.v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14893 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14712] Integrate PEP 405
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14712 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14901] Python Windows FAQ is Very Outdated
Michael Driscoll m...@pythonlibrary.org added the comment: Here are a few proposals that spring to mind: 1a) Update all Windows references to Windows 7 or Vista/7. We can include XP, but I think Microsoft is dropping support next year. 1b) Update all Python references to the current version instead of 2.2 and 2.3. I don't know why there's a mix of two different versions in the document anyway. 2) Drop the question How do I make Python scripts executable? Python files have been working on Windows for me since 2.5 just by double-clicking them. I don't see any reason to mention the command-file hack. 3) Drop the question Why does Python sometimes take so long to start? I personally haven't seen this happen except with some scripts that actually have a lot of stuff to load, like certain wxPython stuff I've written. 4) Change the question Where is Freeze for Windows? to the question How do I make Python scripts into an executable? and then drop all mention of ye olde Freeze and put some information in there pointing to PyInstaller, py2exe (last updated 2008, so maybe not?), cx_freeze, bb_freeze or whatever. 5) I don't see any mention of PyWin32 or comtypes in the FAQ. While ctypes has a brief mention in the os.kill() section, it's not really explained. We might want to mention those. 6) We might want to drop the os.popen() stuff since that was deprecated / removed in favor of subprocess, right? 7) Drop the questions about Windows 95/98 issues 8) I don't think the question How do I extract the downloaded documentation on Windows? is even applicable any more 9) Is the question Missing cw3215mt.dll (or missing cw3215.dll) still relevant? I've never experienced that on any machine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14890] typo in difflib
Éric Araujo mer...@netwok.org added the comment: Thanks for wanting to contribute nonetheless! Don’t hesitate to make patches for other bugs. You may be interested in the core-mentorship mailing list http://mail.python.org/mailman/listinfo/core-mentorship where any question will receive a friendly answer (python-dev can be rough :) -- nosy: +eric.araujo resolution: - works for me stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14911] generator.throw() documentation inaccurate
Changes by Éric Araujo mer...@netwok.org: -- stage: - needs patch versions: -Python 3.1, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14910] argparse: disable abbreviation
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.3 -Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14910 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14901] Python Windows FAQ is Very Outdated
Éric Araujo mer...@netwok.org added the comment: The freeze script may have been moved in 3.2. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14901] Python Windows FAQ is Very Outdated
Éric Araujo mer...@netwok.org added the comment: Thanks for the detailed remarks. Some of the proposed changes may not apply to the 2.7 and 3.2 versions, which for example support XP if I remember correctly. 1b: Sure, patch welcomed. 6: os.system is discouraged, but os.popen still exists in 3.x (it’s implemented on top of subprocess) I leave the rest to the people with more Windows knowledge. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14879] invalid docs for subprocess exceptions with shell=True
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14879 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14878] Improve documentation for generator.send method
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. Are you interested in making a patch? Guidelines are in the devguide. -- nosy: +eric.araujo stage: - needs patch title: send statement from PEP342 is poorly documented. - Improve documentation for generator.send method versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14878 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object
Éric Araujo mer...@netwok.org added the comment: I am not sure the parsers should be lenient. One could argue that it’s the stream that is broken if it contains non-compliant XML or JSON. Can you tell more about the use case? -- nosy: +eli.bendersky, eric.araujo, ezio.melotti, pitrou, rhettinger versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14858] 'pysetup create' off-by-one when choosing classification maturity status interactively.
Éric Araujo mer...@netwok.org added the comment: Thanks for the report and fix. Someone interested in contributing can turn your fix into a patch with a test. -- keywords: +easy stage: - needs patch versions: +3rd party, Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14858 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14731] Enhance Policy framework in preparation for adding email6 policies as provisional
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9388c671d52d by R David Murray in branch 'default': #14731: refactor email policy framework. http://hg.python.org/cpython/rev/9388c671d52d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14731 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14731] Enhance Policy framework in preparation for adding email6 policies as provisional
R. David Murray rdmur...@bitdance.com added the comment: I decided to keep the Compat32 class public both because it simplifies the documentation and because there doesn't seem to be a good reason to hide it. I'm leaving this issue open pending adding some discussion to What's New. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14731 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14901] Python Windows FAQ is Very Outdated
Michael Driscoll m...@pythonlibrary.org added the comment: I know Python 3.x still runs on XP too, but should we continue to mention it in our documentation? I don't know. Part of the reason I wrote up all that was to see if people had any well thought out arguments one way or the other on these things. As for this freeze module, I can't find it even in Python 2.4's Tools folder or any other folder either. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14901] Python Windows FAQ is Very Outdated
Michael Driscoll m...@pythonlibrary.org added the comment: Should the patch for 1b replace Python 2.2 with Python 2.7/3.2 or just Python 3.2? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object
Antoine Pitrou pit...@free.fr added the comment: ElementTree supports incremental parsing with the iterparse() method, not sure it fills your use case: http://docs.python.org/dev/library/xml.etree.elementtree.html#xml.etree.ElementTree.iterparse As for the json module, it doesn't have such a facility. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14901] Python Windows FAQ is Very Outdated
Brian Curtin br...@python.org added the comment: I'd rather it tried to stay as version agnostic as could be, but favoring 3.x in general. I wouldn't tie it down to any particular version because we'll have to come back in several years and update Python 3.3 to Python 3.8. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object
Frederick Ross madhad...@gmail.com added the comment: Antoine, It's not iterative parsing, it's a sequence of XML docs or json objects. Eric, the server I'm retrieving from, for real time searches, steadily produces a stream of (each properly formed) XML or json documents containing new search results. However, at the moment I have to edit the stream on the fly to wrap an outer tag around it and remove any DTD in inner elements, or I can't use the XML parser. Such a workaround isn't possible with the json parser, since it has no iterative parsing mode. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14901] Python Windows FAQ is Very Outdated
Éric Araujo mer...@netwok.org added the comment: I know Python 3.x still runs on XP too, but should we continue to mention it in our documentation? I don't know. Part of the reason I wrote up all that was to see if people had any well thought out arguments one way or the other on these things. In my opinion it is simple. PEP 11 defines when platforms are abandoned. If a stable version like 3.2 supports XP, then its doc should say so. Should the patch for 1b replace Python 2.2 with Python 2.7/3.2 or just Python 3.2? One patch for 2.7 can modernize the code, but as Brian said there is no reason to use 2.7-only idioms; just remove the really old or inelegant things. (I haven’t looked at the FAQ to see what exactly is outdated.) The patch for 3.2 will have to use 3.x syntax. Note that you can make one of the two patches and let the committer port. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object
R. David Murray rdmur...@bitdance.com added the comment: I think it is perfectly reasonable for a parser to leave the file pointer in some undefined further location into the file when it detects extra stuff and produces an error message. One can certainly argue that producing that error message is a feature (detect badly formed documents). I also think that your use case is a perfectly reasonable one, but I think a mode that supports your use case would be an enhancement. -- nosy: +r.david.murray type: - enhancement versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14881] multiprocessing.dummy craches when self._parent._children does not exist
Richard Oudkerk shibt...@gmail.com added the comment: I'll, remember that in future;-) Closing. -- resolution: - fixed stage: - committed/rejected status: open - closed type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14881 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12091] multiprocessing: simplify ApplyResult and MapResult with threading.Event
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12091 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14548] garbage collection just after multiprocessing's fork causes exceptions
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14548 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14901] Python Windows FAQ is Very Outdated
Michael Driscoll m...@pythonlibrary.org added the comment: Could we say just Python and ignore the version number? Or would Python 2.7 work for the 2.7 branch patch since there isn't supposed to be a 2.8 and then for Python 3 we could go with 3.x? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14901] Python Windows FAQ is Very Outdated
Éric Araujo mer...@netwok.org added the comment: I’m not sure we understand each other. Can you give examples of the outdated code samples so that we can discuss something concrete? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3177] Add shutil.open
Hobs hobsonl...@gmail.com added the comment: Could even add an `operation` parameter to let the caller select actions, including 'auto' implemented as Larry suggests. Sometimes you feel like trusting the user's xdg-open preferences/settings. Sometimes you don't. Easy enough to let the caller choose, rather than the OS. operation in ['auto', 'run', 'edit', 'display', 'browse', 'explore', 'share', 'send', 'like', 'email', 'open', 'xdg-open', ...] # can be incrementally added/implemented Each op requires 1 conditional and gives a lot more utility without requiring much more launch/action code that hasn't already been tested/debugged on all relevant platforms. And the `operation` parameter is a semi-standard used by MS, easing the transition for Win-devs migrating gui code to python and linux (or cross-platform implementations). On Fri, May 25, 2012 at 4:40 AM, Larry Hastings rep...@bugs.python.orgwrote: Larry Hastings la...@hastings.org added the comment: As an example, ``os.startfile(a.py)`` will usually run `a.py` in the Python interpreter, while ``xdg-open a.py`` it will usually open the source code in an editor on Linux. Well, so how about on UNIX shutil.launch (or whatever it's called) first checks to see if we're referring to a file. If we are, check to see if it's marked executable. If it is, execute it under a shell. Failing *that* we could run xdg-open where available. -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3177 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3177 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9244] multiprocessing.pool: Worker crashes if result can't be encoded
Richard Oudkerk shibt...@gmail.com added the comment: The patch was applied to 3.x branch in 0aa8af79359d and partially backported to 2.7 in 26bbff4562a7 - see #9400. I will close. -- nosy: +sbt resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13751] multiprocessing.pool hangs if any worker raises an Exception whose constructor requires a parameter
Richard Oudkerk shibt...@gmail.com added the comment: This is a duplicate of #9244 and #9400 which have been fixed by wrapping unpicklable exceptions in picklable exceptions. The larger issue of many exception classes being unpicklable, is dealt with in #1692335. -- resolution: - duplicate stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13751 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13751] multiprocessing.pool hangs if any worker raises an Exception whose constructor requires a parameter
Changes by Richard Oudkerk shibt...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13751 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object
Frederick Ross madhad...@gmail.com added the comment: In the case of files, sure, it's fine. The error gives me the offset, and I can go pull it out and buffer it, and it's fine. Plus XML is strict about having only one document per file. For streams, none of this is applicable. I can't seek in a streaming network connection. If the parser leaves it in an unusable state, then I lose everything that may follow. It makes Python unusable in certain, not very rare, cases of network programming. I'll just add that Haskell's Parsec does this right, and should be used as an example. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14852] json and ElementTree parsers misbehave on streams containing more than a single object
R. David Murray rdmur...@bitdance.com added the comment: Well, if the stream isn't seekable then I don't see how it can be left in any state other than the same one it leaves a file (read ahead as much as it read to generate the error). So unfortunately by our backward compatibility rules I still think this will be a new feature. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14920] help(urllib.parse) fails when LANG=C
New submission from Tuukka Tolvanen tuukka.tolva...@gmail.com: LANG=C python3.2 -c 'import urllib.parse; help(urllib.parse)' Traceback (most recent call last): File string, line 1, in module File /usr/lib/python3.2/site.py, line 477, in __call__ return pydoc.help(*args, **kwds) File /usr/lib/python3.2/pydoc.py, line 1778, in __call__ self.help(request) File /usr/lib/python3.2/pydoc.py, line 1828, in help else: doc(request, 'Help on %s:', output=self._output) File /usr/lib/python3.2/pydoc.py, line 1564, in doc pager(render_doc(thing, title, forceload)) File /usr/lib/python3.2/pydoc.py, line 1372, in pager pager(text) File /usr/lib/python3.2/pydoc.py, line 1392, in lambda return lambda text: pipepager(text, 'less') File /usr/lib/python3.2/pydoc.py, line 1413, in pipepager pipe.write(text) UnicodeEncodeError: 'ascii' codec can't encode character '\xab' in position 5495: ordinal not in range(128) presumably the offending part is quote_from_bytes(b'abc def«') - 'abc%20def%AB' debian python3.2 3.2.3~rc2-1 macports python32 @3.2.3_0 -- components: None messages: 161618 nosy: timeless, tt priority: normal severity: normal status: open title: help(urllib.parse) fails when LANG=C type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14920 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12338] multiprocessing.util._eintr_retry doen't recalculate timeouts
Richard Oudkerk shibt...@gmail.com added the comment: _eintr_retry was removed by 99ef4501205b. -- resolution: - out of date stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12338 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14920] help(urllib.parse) fails when LANG=C
R. David Murray rdmur...@bitdance.com added the comment: This works fine for me on Gentoo Linux with both 3.2.3+ (ie: what's in the repo) and 3.2.2. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14920 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14920] help(urllib.parse) fails when LANG=C
R. David Murray rdmur...@bitdance.com added the comment: Ah, I should clarify: Gentoo's 3.2.2. I'm sure they've added some patches, just like Debian. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14920 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0
Serhiy Storchaka storch...@gmail.com added the comment: Here is a patch for 3.3. All of the tests pass successfully. Unfortunately, it is a little slow, but I tried to minimize the losses. -- Added file: http://bugs.python.org/file25709/issue8271-3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8271 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14731] Enhance Policy framework in preparation for adding email6 policies as provisional
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14731 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14901] Python Windows FAQ is Very Outdated
Michael Driscoll m...@pythonlibrary.org added the comment: Okay. Here are a couple from http://docs.python.org/faq/windows.html#how-do-i-run-a-python-program-under-windows: You may also find that you have a Start-menu entry such as Start ‣ Programs ‣ Python 2.2 ‣ Python (command line) Then just a little farther down are several example paths with c:\Python23\python Then in http://docs.python.org/faq/windows.html#how-can-i-embed-python-into-a-windows-application there's the following line: Do _not_ build Python into your .exe file directly. On Windows, Python must be a DLL to handle importing modules that are themselves DLL’s. (This is the first key undocumented fact.) Instead, link to pythonNN.dll; it is typically installed in C:\Windows\System. NN is the Python version, a number such as “23” for Python 2.3. In http://docs.python.org/faq/windows.html#pyrun-simplefile-crashes-on-windows-but-not-on-unix-why there's this line: The Python 1.5.* DLLs (python15.dll) are all compiled with MS VC++ 5.0 and with multithreading-DLL options (/MD). I see fixed http://docs.python.org/faq/windows.html#how-do-i-emulate-os-kill-in-windows as it mentions BOTH Python 2.7 and 3.2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14901 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14921] New trove classifier for simple printers of nested lists
New submission from Daniel Holth dho...@fastmail.fm: Based on the supply, there is a tremendous demand for printers of nested lists (as long as they are not too complicated). But how will I find and compare the available options? Add a trove classifier Topic :: Nested Lists to ease the search burden. -- messages: 161624 nosy: dholth priority: normal severity: normal status: open title: New trove classifier for simple printers of nested lists type: enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14921 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14920] help(urllib.parse) fails when LANG=C
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14920 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14921] New trove classifier for simple printers of nested lists
Changes by Daniel Holth dho...@fastmail.fm: -- resolution: - postponed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14921 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14920] help(urllib.parse) fails when LANG=C
R. David Murray rdmur...@bitdance.com added the comment: Serhiy: did you add 3.3 because you can reproduce it on 3.3? -- components: +Library (Lib) -None ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14920 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14731] Enhance Policy framework in preparation for adding email6 policies as provisional
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8ba99b810b40 by R David Murray in branch 'default': #14731: add preliminary What's New entry for policy framework. http://hg.python.org/cpython/rev/8ba99b810b40 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14731 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com