[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
[issue14731] Enhance Policy framework in preparation for adding email6 policies as provisional
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - fixed status: open - closed ___ 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
[issue14921] New trove classifier for simple printers of nested lists
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +eric.araujo ___ 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
[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0
Ezio Melotti ezio.melo...@gmail.com added the comment: Do you have any benchmark results? -- ___ 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
[issue12586] Provisional new email API: new policy implementing custom header objects
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0189b9d2d6bc by R David Murray in branch 'default': #12586: add provisional email policy with new header parsing and folding. http://hg.python.org/cpython/rev/0189b9d2d6bc -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12586 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14922] mailbox.Maildir.get_message() may fail when Maildir dirname is a unicode string
New submission from Pablo Oliveira pa...@sifflez.org: I'm using Python 2.7.3rc2 from debian sid packages. If a mailbox.Maildir object is created with a unicode dirname, retrieving a message tagged with maildir flags with get() or get_message() fails with the following exception: Traceback (most recent call last): File reproduce.py, line 21, in module mb.get_message(key) File /usr/lib/python2.7/mailbox.py, line 343, in get_message msg.set_info(name.split(self.colon)[-1]) File /usr/lib/python2.7/mailbox.py, line 1480, in set_info raise TypeError('info must be a string: %s' % type(info)) TypeError: info must be a string: type 'unicode' Since python os.path module seems to cope with unicode paths http://docs.python.org/howto/unicode.html, it would be nice to fix this issue. Attached is a simple script reproducing the bug. The following patch seems to solve the issue for me: --- /usr/lib/python2.7/mailbox.py 2012-04-23 01:25:48.0 +0200 +++ mailbox.py 2012-05-26 00:34:03.585347627 +0200 @@ -1474,7 +1474,7 @@ def set_info(self, info): Set the message's info string. -if isinstance(info, str): +if isinstance(info, basestring): self._info = info else: raise TypeError('info must be a string: %s' % type(info)) Regards, Pablo Oliveira. -- components: Library (Lib) files: reproduce.py messages: 161629 nosy: poliveira priority: normal severity: normal status: open title: mailbox.Maildir.get_message() may fail when Maildir dirname is a unicode string type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file25710/reproduce.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14922 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14775] Dict untracking can result in quadratic dict build-up
stw sil...@googlemail.com added the comment: So the tuple is linked-in to the garbage collection list before its contents are constructed? It is. It typically happens when you do (in C code): Ok, thanks. I couldn't see how a tuple could be created before its contents in python code, but it is clearly possible in C. I have written up some documentation on how untracking is handled in the gc - please see the attached patch. It summarises our discussion and some of the posts in issue #4688. -- Added file: http://bugs.python.org/file25711/untracking_docs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14775 ___ ___ 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: Could even add an `operation` parameter to let the caller select actions, [...] operation in ['auto', 'run', 'edit', 'display', 'browse', 'explore', 'share', 'send', 'like', 'email', 'open', 'xdg-open', ...] # can be incrementally added/implemented IIRC ShellExecute on Windows has support for verbs like this. But how would we implement support for explore / share / send / like on Mac OS X and Linux? The only flag I can think of supporting in a cross-platform way would be execute=True, which on Windows would mean try the verb run before trying the default, and on OS X and Linux would mean look for the execute bit / the #! signature and run it if possible first before using xdg-open. -- ___ 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
[issue14673] add sys.implementation
Changes by Eric Snow ericsnowcurren...@gmail.com: Added file: http://bugs.python.org/file25712/issue14673_as_module.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14673] add sys.implementation
Changes by Eric Snow ericsnowcurren...@gmail.com: Added file: http://bugs.python.org/file25713/issue14673_as_type.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14673] add sys.implementation
Changes by Eric Snow ericsnowcurren...@gmail.com: Added file: http://bugs.python.org/file25714/issue14673_as_structseq.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14673] add sys.implementation
Changes by Eric Snow ericsnowcurren...@gmail.com: Added file: http://bugs.python.org/file25715/issue14673_as_simple_namespace.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14673] add sys.implementation
Eric Snow ericsnowcurren...@gmail.com added the comment: I've just attached 4 patches, one for each of the likeliest implementations. All 4 ran the test suite successfully. In my mind, the simple namespace one is the best fit. However, it involves adding a new built-in type (though a private one). If that is too controversial or too much new stuff to iron out for 3.3, I'd be okay with any of the others. In reality I'd like to see that new namespace type added to Python, but that's a proposition I'll take up elsewhere. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14673] add sys.implementation
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14673 ___ ___ 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
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ea25ce432343 by Senthil Kumaran in branch '3.2': Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg http://hg.python.org/cpython/rev/ea25ce432343 New changeset cb62c958dd6a by Senthil Kumaran in branch 'default': Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg http://hg.python.org/cpython/rev/cb62c958dd6a -- nosy: +python-dev ___ 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
[issue14858] 'pysetup create' off-by-one when choosing classification maturity status interactively.
Sharif Nassar mrwack...@gmail.com added the comment: Even better: diff -r 747eec42e7ae distutils2/create.py --- a/distutils2/create.py Mon May 21 17:01:44 2012 -0400 +++ b/distutils2/create.py Fri May 25 19:04:22 2012 -0700 @@ -674,7 +674,7 @@ %s Status''' % '\n'.join('%s - %s' % (i, maturity_name(n)) - for i, n in enumerate(PROJECT_MATURITY)) + for i, n in enumerate(PROJECT_MATURITY, 1 )) while True: choice = ask(dedent(maturity_question), required=False) -- nosy: +Sharif.Nassar ___ 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
[issue14920] help(urllib.parse) fails when LANG=C
Senthil Kumaran sent...@uthcode.com added the comment: I have fixed the help to include only ascii characters ( represented in hex) so that conversion to bytes is represented in the help and also the terminal whose LANG is C is able to display them too. On Ubuntu, when I had LANG=C, locale gave the following o/p and the previous help, (which broke for the Tuukka Tolvanen) was working fine too. LANG=C LANGUAGE=en_US:en LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=C LC_COLLATE=en_US.UTF-8 LC_MONETARY=C LC_MESSAGES=en_US.UTF-8 LC_PAPER=C LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C LC_ALL= I guess, the original bug could be related to settings differing on gentoo. Anyways, the help docstring is changed now. -- assignee: - orsenthil nosy: +orsenthil resolution: - fixed stage: - committed/rejected status: open - closed ___ 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
[issue14919] what disables one from adding self to the nosy list
Ezio Melotti ezio.melo...@gmail.com added the comment: I thought everybody who is logged in had such permissions. That part of the sentence refers to users that are not logged in. It can be removed if you think it's confusing/unnecessary. -- assignee: - ezio.melotti type: - enhancement ___ 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
[issue14858] 'pysetup create' off-by-one when choosing classification maturity status interactively.
Todd DeLuca todddel...@gmail.com added the comment: That was my first thought, but if python2.5 compatibility is important, I don't think using the start parameter is an option. http://docs.python.org/library/functions.html#enumerate Changed in version 2.6: The start parameter was added. Regards, Todd On Fri, May 25, 2012 at 9:59 PM, Sharif Nassar rep...@bugs.python.orgwrote: Sharif Nassar mrwack...@gmail.com added the comment: Even better: diff -r 747eec42e7ae distutils2/create.py --- a/distutils2/create.py Mon May 21 17:01:44 2012 -0400 +++ b/distutils2/create.py Fri May 25 19:04:22 2012 -0700 @@ -674,7 +674,7 @@ %s Status''' % '\n'.join('%s - %s' % (i, maturity_name(n)) - for i, n in enumerate(PROJECT_MATURITY)) + for i, n in enumerate(PROJECT_MATURITY, 1 )) while True: choice = ask(dedent(maturity_question), required=False) -- nosy: +Sharif.Nassar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14858 ___ -- ___ 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
[issue12586] Provisional new email API: new policy implementing custom header objects
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 331cceee3b45 by R David Murray in branch 'default': #12586: Expand What's New email entry with provisional policy features. http://hg.python.org/cpython/rev/331cceee3b45 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12586 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12586] Provisional new email API: new policy implementing custom header objects
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 09e97829ed1e by R David Murray in branch 'default': Add news entries for #14731 and #12586. http://hg.python.org/cpython/rev/09e97829ed1e -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12586 ___ ___ 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 09e97829ed1e by R David Murray in branch 'default': Add news entries for #14731 and #12586. http://hg.python.org/cpython/rev/09e97829ed1e -- ___ 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
[issue12586] Provisional new email API: new policy implementing custom header objects
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2b6f183091b9 by R David Murray in branch 'default': #12586: Fix a small oversight in the new email policy header setting code. http://hg.python.org/cpython/rev/2b6f183091b9 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12586 ___ ___ 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
Terry J. Reedy tjre...@udel.edu added the comment: There are other paramaters that take optional 'files'. Whatever change is made should be done uniformly for all. 'File' is unfortunately vague, as it could mean file object or file name or both. If file name, it could be str only or (for 2.7), str and unicode. I an not sure of what the 2.7 standard is, if there is one. Allowing unicode could be seen as an enhancement, but it depends on the original intention and/or default 2.7 interpretation of 'file'. -- nosy: +giampaolo.rodola, janssen, pitrou, terry.reedy ___ 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
[issue9527] Add aware local time support to datetime module
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset df12ce0c96eb by R David Murray in branch 'default': #665194: Add a localtime function to email.utils. http://hg.python.org/cpython/rev/df12ce0c96eb -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue665194] datetime-RFC2822 roundtripping
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset df12ce0c96eb by R David Murray in branch 'default': #665194: Add a localtime function to email.utils. http://hg.python.org/cpython/rev/df12ce0c96eb -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue665194 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12586] Provisional new email API: new policy implementing custom header objects
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12586 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9864] email.utils.{parsedate, parsedate_tz} should have better return types
R. David Murray rdmur...@bitdance.com added the comment: We ended up deciding to keep backward compatibility and add datetime support as a new API. All of these changes are now checked in to default. (See issue 665194, as well as issue 12586.) -- resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - datetime-RFC2822 roundtripping ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9864 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14626] os module: use keyword-only arguments for dir_fd and nofollow to reduce function count
Larry Hastings la...@hastings.org added the comment: Here's my first pass at a patch. For this patch, I took the proposal to its logical extreme: I removed every function in os that was both mildly redundant with an existing function *and* has been added since 3.2, and moved that functionality to the equivalent existing function, making it accessible with the use of keyword-only parameters. Specifically: This function has been removed, and instead | this parameter has been added to | |this function | || v vv - faccessat dir_fd access faccessat effective_idsaccess faccessat follow_symlinks access fchmodat dir_fd chmod fchmodat follow_symlinks chmod fchownat dir_fd chown fchownat follow_symlinks chown fexecvefd execve fgetxattr fd getxattr flistdir fd listdir flistxattr fd listxattr fremovexattr fd removexattr fsetxattr fd setxattr fstatatdir_fd stat futimens fd utime futimesfd utime futimesat dir_fd utime lgetxattr follow_symlinks getxattr linkat dst_dir_fd link linkat src_dir_fd link linkat follow_symlinks link llistxattr follow_symlinks listxattr lremovexattr follow_symlinks removexattr lsetxattr follow_symlinks setxattr lutimesfollow_symlinks utime mkdiratdir_fd mkdir mkfifoat dir_fd mkfifoat mknodatdir_fd mknod open dir_fd openat readlinkat dir_fd readlink renameat dst_dir_fd rename renameat src_dir_fd rename symlinkat dir_fd symlink unlinkat dir_fd unlink unlinkat remove_directory unlink utimensat dir_fd utime utimensat follow_symlinks utime Additionally, we *could* deprecate this function, | as I have added this parameter | |to this function: | || v vv -- fchdir fd chdir fchmod fd chmod fstat fd stat fstatvfs fd statvfs lchflags follow_symlinks chflags lchmod follow_symlinks chmod fchown fd chown lchown follow_symlinks chown lstat follow_symlinks stat I doubt we'll ever deprecate those functions. This patch does not deprecate those functions. I don't propose deprecating those functions. Notes: * What do you do on platforms where the functionality isn't available? I believe it's better to always accept parameters, but throw a NotImplementedError if the functionality they represent is unavailable on the current platform. Adding and removing parameters based on the current platform... that way lies madness. (It's like scrollbars that pop in and out of existance depending on whether or not you need them. Better that the scrollbars are always there, and simply disabled when the content fits in the current window. Users like a stable foundation under their feet.) * The patch is... pretty big. But you can divide-and-conquer it into a series of self-contained parts. First I add path_converter, then I modify existing functions / remove new functions. Each of those can be reviewed in isolation. Also, the new implementations generally follow the same pattern: initialize call PyArg_ParseTupleAndKeywords error out early if user asks for functionality unavailable on the current platform ensure that combinations of parameters (dir_fd, fd, follow_symlinks) are permitted do actual work, turning on/off advanced functionality based on configure ifdefs (HAVE_FCHOWNAT etc) if error, raise exception compute return value exit: cleanup all path variables return return_value Here's a list of all the functions I added arguments to: access chdir chflags chmod chown execve getxattr link listdir listxattr mkdir mkfifo mknod open readlink removexattr rename setxattr stat statvfs symlink unlink utime * The one new bit of technology: a PyArg_ParseTuple converter function called path_converter. Here's its documentation: /* * A PyArg_ParseTuple converter function * that handles filesystem paths in the manner * preferred by the os module. * * path_converter accepts (Unicode) strings and their * subclasses, and bytes and their subclasses. What * it does with the argument depends on the platform: * * * On Windows, if we get a (Unicode) string we * extract the wchar_t * and return it;
[issue14858] 'pysetup create' off-by-one when choosing classification maturity status interactively.
Éric Araujo mer...@netwok.org added the comment: distutils indeed supports 2.5-2.7. The first proposed fix should be fine, what’s needed is a unit test (more info in the devguide). -- stage: needs patch - test needed ___ 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