[issue11159] Sax parser crashes if given unicode file name

2013-01-13 Thread Christian Heimes
Christian Heimes added the comment: I don't think that the file system encoding is the correct answer here. AFAIR expat uses UTF-8 encoded strings. Python 3.x uses PyArg_ParseTupleAndKeywords() with "s" which converts PyUnicode to PyBytes with the utf-8 codec. -- nosy: +christian.heime

[issue16959] rlcompleter doesn't work if __main__ can't be imported

2013-01-13 Thread Aaron Meurer
Aaron Meurer added the comment: For completion, here's the corresponding App Engine issue I opened: http://code.google.com/p/googleappengine/issues/detail?id=8665. -- ___ Python tracker ___

[issue16959] rlcompleter doesn't work if __main__ can't be imported

2013-01-13 Thread Aaron Meurer
New submission from Aaron Meurer: The rlcompleter module does not work if __main__ cannot be imported, even though it can be used without it. For example, on the App Engine, __main__ is not usable. If one creates the example app described at https://developers.google.com/appengine/docs/pyt

[issue11159] Sax parser crashes if given unicode file name

2013-01-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue16954] Add docstrings for ElementTree module

2013-01-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2013-01-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: 3.3 and 3.4 branches should now be fixed. 2.7 and 3.2 still need to be fixed and the code from connections.py removed. Sorry for the mess up. -- assignee: giampaolo.rodola -> ___ Python tracker

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2013-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 831f49cc00fc by Giampaolo Rodola' in branch 'default': fix for previous commit related to issue 10527 which didn't have the intended effect as per http://bugs.python.org/issue10527#msg179895 http://hg.python.org/cpython/rev/831f49cc00fc --

[issue16958] The sqlite3 context manager does not work with isolation_level=None

2013-01-13 Thread R. David Murray
R. David Murray added the comment: B, yes. So you would view the connection context manager acting as an actual transaction manager as a new feature? Would you be OK with adding that feature to the existing context manager in 3.4 (since currently the context manager is a noop in autocommit m

[issue16958] The sqlite3 context manager does not work with isolation_level=None

2013-01-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: "changes will get committed immediately inside the with, which is simply broken" What do you mean by that? A. Changes ought to be committed immediately, but are not; it is broken, and changes must be committed immediately. - or - B. What actually happens is th

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2013-01-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Damn, you're right. I must have messed up something while porting the patch from 3.2 all the way up to 3.4 as the merge produced some conflicts. -- ___ Python tracker _

[issue16958] The sqlite3 context manager does not work with isolation_level=None

2013-01-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +nagylzs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue8145] Documentation about sqlite3 isolation_level

2013-01-13 Thread R. David Murray
R. David Murray added the comment: Opened issue 16958 for the transaction manager problem. -- ___ Python tracker ___ ___ Python-bugs-li

[issue16958] The sqlite3 context manager does not work with isolation_level=None

2013-01-13 Thread R. David Murray
New submission from R. David Murray: Its operation is also not particularly intuitive if isolation_level is not None, so its documentation needs some clarification. Currently the transaction manager does nothing on enter, and does a commit or rollback on exit, depending on whether or not there

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2013-01-13 Thread Richard Oudkerk
Richard Oudkerk added the comment: It looks like the change to multiprocessing/connection.py committed does not match the one uploaded as issue10527-3.patch changeset 81174:e971a70984b8 1.1 --- a/Lib/multiprocessing/connection.py 1.2 +++ b/Lib/multiprocessing/connection.py 1.3 @@

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2013-01-13 Thread Richard Oudkerk
Richard Oudkerk added the comment: > What do you mean? The intent was to use poll() instead of select() > anywhere available in order to avoid running out of fds. > The change didn't affect Windows because as of right now select() is > the only thing available. The change *only* effects Window

[issue8145] Documentation about sqlite3 isolation_level

2013-01-13 Thread R. David Murray
R. David Murray added the comment: I misspoke, the transaction manager does do something useful in non-None isolation level. I'm still going to open a bug about isolation_level None. -- ___ Python tracker

[issue8145] Documentation about sqlite3 isolation_level

2013-01-13 Thread R. David Murray
R. David Murray added the comment: Here is a revised patch. I am leaving out the changes relating to the transaction manager. It turns out that the transaction manager doesn't do anything useful even if isolation_level is not None. I'm going to open a new issue to discuss the best way to fi

[issue16935] unittest should understand SkipTest at import time during test discovery

2013-01-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Should be: "module = support.import_module('module')" -- ___ Python tracker ___ ___ Python-bugs-list

[issue16935] unittest should understand SkipTest at import time during test discovery

2013-01-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Without the proposed enhancement, you could also combine Éric's approach with the original patch by doing something like: try: support.import_module(module) except SkipTest: module = None def setUpModule(): if module is None: raise SkipTest

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2013-01-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: What do you mean? The intent was to use poll() instead of select() anywhere available in order to avoid running out of fds. The change didn't affect Windows because as of right now select() is the only thing available. -- __

[issue16955] multiprocessing.connection poll() always returns false

2013-01-13 Thread Richard Oudkerk
Richard Oudkerk added the comment: This should be fixed now. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker _

[issue16955] multiprocessing.connection poll() always returns false

2013-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e1c81ab5ad97 by Richard Oudkerk in branch '3.3': Issue #16955: Fix the poll() method for multiprocessing's socket http://hg.python.org/cpython/rev/e1c81ab5ad97 New changeset d904a741afde by Richard Oudkerk in branch 'default': Issue #16955: Fix the

[issue15651] PEP 3121, 384 refactoring applied to elementtree module

2013-01-13 Thread Eli Bendersky
Eli Bendersky added the comment: I looked at the patch a bit more in depth and must admit that I'm reluctant to apply it. It's a very large patch with very little documentation about what steps are taken and why, and I just don't see the motivation. The way I see it, PEP 384 is great for comp

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2013-01-13 Thread Eli Bendersky
Eli Bendersky added the comment: OK, thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue16957] shutil.which() shouldn't look in working directory on unix-y systems

2013-01-13 Thread Thomas Kluyver
New submission from Thomas Kluyver: There's a 'short circuit' in shutil.which(), described as 'If we're given a full path which matches the mode and it exists, we're done here.' It also matches if an executable file of the same name is present in the working directory, although on most Unix-y

[issue16935] unittest should understand SkipTest at import time during test discovery

2013-01-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16500] Add an 'atfork' module

2013-01-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16398] deque.rotate() could be much faster

2013-01-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: Jesús, I backported this to 2.7 because it was affecting intended usability of multiple parts of the API. The current code had the egregious and unintended side-effect of touching every data element during a rotate -- this resulted in a huge number of unne

[issue10527] multiprocessing.Pipe problem: "handle out of range in select()"

2013-01-13 Thread Richard Oudkerk
Richard Oudkerk added the comment: The commits did not have the intended effect. They just define a _poll() function (and only on Windows) and it is not referenced anywhere else. I will look in to fixing this -- on 2.7 and 3.2 this will need to be done in the C code. -- resolution: f

[issue16955] multiprocessing.connection poll() always returns false

2013-01-13 Thread Richard Oudkerk
Richard Oudkerk added the comment: Thanks for the report. It seems to only affect Windows, and only when using sockets rather than pipes. Till this is fixed you could use temp = bool(multiprocessing.connection.wait([cl], 1)) instead of temp = cl.poll(1) As I mentioned on the other

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2013-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think Éric means different spaces, spaces in empty tags ( vs ). I don't know what the standard says about this. It should a separated issue. As for line continuations in docs, in all cases where they are occurred, a space used before a backslash for reada

[issue1159051] Handle corrupted gzip files with unexpected EOF

2013-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue2128] sys.argv is wrong for unicode strings

2013-01-13 Thread Michael Herrmann
Michael Herrmann added the comment: Hi, is it correct that this bug no longer appears in Python 2.7.3? I checked the changelogs of 2.7, but couldn't find anything. Thanks! Michael -- nosy: +mherrmann.at ___ Python tracker

[issue444582] Finding programs in PATH, adding shutil.which

2013-01-13 Thread Brian Curtin
Brian Curtin added the comment: Please open a separate issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue16920] multiprocessing.connection listener gets MemoryError onrecv

2013-01-13 Thread Richard Oudkerk
Richard Oudkerk added the comment: > If someone used regular sockets deliberately, they could crash > multiprocessing server code deliberately. Any chance of doing a real message > length check against the embedded message length check? You can do message = conn.recv_bytes(maxlength) if yo

[issue444582] Finding programs in PATH, adding shutil.which

2013-01-13 Thread Thomas Kluyver
Thomas Kluyver added the comment: The 'short circuit' appears to do what I'd consider the wrong thing when an executable file of the same name exists in the working directory. i.e. which('setup.py') can return 'setup.py', even though running 'setup.py' in a shell doesn't work (you need ./setup

[issue16500] Add an 'atfork' module

2013-01-13 Thread Georg Brandl
Georg Brandl added the comment: Might make sense to put this in atexit.atfork() to avoid small-module inflation? -- nosy: +georg.brandl ___ Python tracker ___ ___

[issue16956] Allow signed line number deltas in the code object's line number table

2013-01-13 Thread Mark Shannon
Changes by Mark Shannon : -- keywords: +patch Added file: http://bugs.python.org/file28718/dd04caae6647.diff ___ Python tracker ___ __

[issue16956] Allow signed line number deltas in the code object's line number table

2013-01-13 Thread Mark Shannon
New submission from Mark Shannon: The restriction that line numbers must be monotonically increasing w.r.t bytecode offset in the co_lnotab array prevents a number of beneficial transformations in the bytecode compiler. This patch allows negative line number deltas and uses this capability to

[issue16535] json encoder unable to handle decimal

2013-01-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6975] symlinks incorrectly resolved on POSIX platforms

2013-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't really understand your algorithm. Why do you need a stack? It should be simply iterative: - if the symlink is relative, prepend the symlink target to the rest - if the symlink is absolute, discard the current path and prepend the symlink target to the r

[issue16955] multiprocessing.connection poll() always returns false

2013-01-13 Thread John Brearley
New submission from John Brearley: In the attached multiprocessing.connection simple client script, the poll() method is always returning false. If I force the temp variable to 1, the recv()method happily gets the incoming data. I had hoped to use the poll() method to implement a timeout error

[issue16920] multiprocessing.connection listener gets MemoryError onrecv

2013-01-13 Thread John Brearley
John Brearley added the comment: Hi Richard: Thanks for the update. Yes, the multiprocessing.communication.Client works much better. The residual issue left here is wether Python is vulnerable to a DOS attack. If someone used regular sockets deliberately, they could crash multiprocessing server c

[issue16954] Add docstrings for ElementTree module

2013-01-13 Thread Eli Bendersky
Eli Bendersky added the comment: Definitely. And this is one of those issues where I can wholeheartedly say that patches are welcome :-) Even incremental patching will be OK (i.e. patches documenting single methods or groups of methods). Incidentally, while replacing the comment by docstring

[issue16580] Add examples to int.to_bytes and int.from_bytes

2013-01-13 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- title: Add examples to int.to_bytres and int.from_bytes -> Add examples to int.to_bytes and int.from_bytes ___ Python tracker ___ ___

[issue14208] No way to recover original argv with python -m

2013-01-13 Thread Daniel Shahaf
Daniel Shahaf added the comment: Antoine Pitrou wrote on Sun, Jan 13, 2013 at 10:19:20 +: > > Antoine Pitrou added the comment: > > > I'm not seeing a good justification for doing anything more, though: > > > > - needing to access this information is an exceedingly niche use case > > - I d

[issue1633941] for line in sys.stdin: doesn't notice EOF the first time

2013-01-13 Thread Jaroslav Henner
Changes by Jaroslav Henner : -- nosy: +jary ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue16953] select module compile errors with broken poll()

2013-01-13 Thread Jeffrey Armstrong
Changes by Jeffrey Armstrong : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue16954] Add docstrings for ElementTree module

2013-01-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Perhaps almost all Doxygen comments in ElementTree module should be converted to docstrings. -- assignee: docs@python components: Documentation, XML messages: 179881 nosy: docs@python, eli.bendersky, serhiy.storchaka priority: normal severity: norma

[issue16953] select module compile errors with broken poll()

2013-01-13 Thread Jeffrey Armstrong
New submission from Jeffrey Armstrong: On a platform with a broken poll() function (as detected during configure), Modules/selectmodule.c fails to compile. The error occurs at two points: ./Modules/selectmodule.c:2100: `select_poll' undeclared here (not in a function) ./Modules/selectmodule.c:

[issue16945] rewrite CGIHTTPRequestHandler to always use subprocess

2013-01-13 Thread Charles-François Natali
Changes by Charles-François Natali : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue16951] expand on meaning of 'string literals that rely on significant trailing whitespace'

2013-01-13 Thread Ezio Melotti
Ezio Melotti added the comment: I think the sentence is already clear enough --- editors often remove trailing spaces, so if they are significant (e.g. if they are in a string literal) they are at risk. This is actually more a general advice than a styling guideline, so I'm not even sure it b

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2013-01-13 Thread Eli Bendersky
Eli Bendersky added the comment: On Sun, Jan 13, 2013 at 6:09 AM, Éric Araujo wrote: > > Éric Araujo added the comment: > > I don’t think a space before the slash should be added. (It was common in > the days of XHTML 1 because of an SGML parsing hack.) > Ok, will fix. -- __

[issue16952] test_kqueue failure on NetBSD/OpenBSD

2013-01-13 Thread Charles-François Natali
New submission from Charles-François Natali: test_kqueue fails on both NetBSD and OpenBSD: http://buildbot.python.org/all/builders/AMD64 NetBSD 5.1.2 [SB] 2.7/builds/206/steps/test/logs/stdio http://buildbot.python.org/all/builders/x86 OpenBSD 5.1 [SB] 2.7/builds/153/steps/test/logs/stdio """

[issue16951] expand on meaning of 'string literals that rely on significant trailing whitespace'

2013-01-13 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: > I don't think there is a more concise way of putting it in the PEP. Is it not more important to be clear than to be concise? Can't you put this info that PEP, or at least a link to this issue? -- ___ Python t

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2013-01-13 Thread Éric Araujo
Éric Araujo added the comment: I don’t think a space before the slash should be added. (It was common in the days of XHTML 1 because of an SGML parsing hack.) -- nosy: +eric.araujo ___ Python tracker

[issue16915] mode of socket.makefile is more limited than documentation suggests

2013-01-13 Thread Antoon Pardon
Antoon Pardon added the comment: I think one could argue for allowing mode "r+" instead of "wb". Because "w" suggest truncation, which doesn't make sense on sockets either. But in the end I agree that allowing 'r', 'w', 'b' and 't' is probably the best compromise available. -- __

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2013-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 58168d69b496 by Eli Bendersky in branch 'default': Close #14377: Add a new parameter to ElementTree.write and some module-level http://hg.python.org/cpython/rev/58168d69b496 -- nosy: +python-dev resolution: -> fixed stage: patch review -> c

[issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

2013-01-13 Thread Eli Bendersky
Changes by Eli Bendersky : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

2013-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 849eb27baf1c by Eli Bendersky in branch '3.2': Issue #16922: fixed findtext() to return empty Unicode string instead of empty bytes object when there's no text. http://hg.python.org/cpython/rev/849eb27baf1c New changeset 6323e5f1ed81 by Eli Benders

[issue2226] Small _abcoll Bugs / Oddities

2013-01-13 Thread Ramchandra Apte
Ramchandra Apte added the comment: Bump. -- nosy: +ramchandra.apte ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue13659] Add a help() viewer for IDLE's Shell.

2013-01-13 Thread Ramchandra Apte
Ramchandra Apte added the comment: Patch LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue16535] json encoder unable to handle decimal

2013-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Decimal numbers should simply be serializable by default. It doesn't make sense to add a specialized option. -- components: +Library (Lib) type: behavior -> enhancement ___ Python tracker

[issue11844] Update json to upstream simplejson latest release

2013-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue16535. I doubt that json should support decimals in this manner, with special boolean parameter instead of general fabric function. Current simlejson has too many special parameters. -- nosy: +serhiy.storchaka _

[issue14377] Modify serializer for xml.etree.ElementTree to allow forcing the use of long tag closing

2013-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated (tostring() and tostringlist() refet to write() about short_empty_elements parameter). Perhaps descriptions of encoding and method parameters should not be repeated too? > Why do you force short_empty_elements to be keyword only? Because seque

[issue11159] Sax parser crashes if given unicode file name

2013-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ported tests for nonascii System-Id on 3.x. If no one objects I'll commit this next week. -- Added file: http://bugs.python.org/file28714/sax_unicode_fn-3.x.patch ___ Python tracker

[issue11844] Update json to upstream simplejson latest release

2013-01-13 Thread Ezio Melotti
Ezio Melotti added the comment: Is there any reason why the two codebases are maintained separately instead of being kept in sync? (and what's the reason for simplejson to be still maintained? faster release cycles? compatibility with older Python versions?) -- __

[issue11159] Sax parser crashes if given unicode file name

2013-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file28268/sax_unicode_fn-2.7.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue11159] Sax parser crashes if given unicode file name

2013-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file28268/sax_unicode_fn-2.7.patch ___ Python tracker ___ ___ Python-bugs-l

[issue11844] Update json to upstream simplejson latest release

2013-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Which simplejson features or fixes exactly are missing from the json module? -- nosy: +pitrou ___ Python tracker ___ ___

[issue14468] Update cloning guidelines in devguide

2013-01-13 Thread Ezio Melotti
Ezio Melotti added the comment: I made a separate repo to implement this and divided the previous commits in smaller ones: https://bitbucket.org/ezio_melotti/devguide-14468 If this is OK, I'll start regrouping the FAQs in faqs.rst and then move there the section about long-term development of f

[issue16951] expand on meaning of 'string literals that rely on significant trailing whitespace'

2013-01-13 Thread Georg Brandl
Georg Brandl added the comment: It means not write a = "abc" as a = """abc """ with the four spaces trailing at the end of the line. I don't think there is a more concise way of putting it in the PEP. -- nosy: +georg.brandl resolution: -> works for me status: open -> clos

[issue16951] expand on meaning of 'string literals that rely on significant trailing whitespace'

2013-01-13 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe: In PEP 8, there is: > Don't write string literals that rely on significant trailing whitespace It's not clear to me what this means, and therefore likely needs further explanation, or maybe an example. -- assignee: docs@python components: Docu

[issue14468] Update cloning guidelines in devguide

2013-01-13 Thread Nick Coghlan
Nick Coghlan added the comment: The combination of the last two suggestions sounds good to me. -- ___ Python tracker ___ ___ Python-bu

[issue16950] the old raise syntax is not legal in Python 3

2013-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 89db18c77152 by Georg Brandl in branch 'default': Closes #16950: update wording about raise syntax. http://hg.python.org/peps/rev/89db18c77152 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> closed _

[issue16949] removal of string exceptions is already done

2013-01-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf68a42a43bf by Georg Brandl in branch 'default': Closes #16949: update wording about string exceptions. http://hg.python.org/peps/rev/bf68a42a43bf -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status: open -> clos

[issue16950] the old raise syntax is not legal in Python 3

2013-01-13 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- keywords: +patch Added file: http://bugs.python.org/file28713/raise-exception.diff ___ Python tracker ___ ___

[issue16950] the old raise syntax is not legal in Python 3

2013-01-13 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe: There is an outdated statement that "the old form of raising exceptions *will* be removed in Python 3". It's ambiguous in that you don't know if such was ever in Python 3, and it is also time-sensitive (and now outdated). -- assignee: docs@pyth

[issue14208] No way to recover original argv with python -m

2013-01-13 Thread Nick Coghlan
Nick Coghlan added the comment: I'm not seeing a good justification for doing anything more, though: - needing to access this information is an exceedingly niche use case - I don't see any way for raw_argv to be useful in a cross-implementation manner. - the exposure as sys._configuration.raw_a

[issue14208] No way to recover original argv with python -m

2013-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm not seeing a good justification for doing anything more, though: > > - needing to access this information is an exceedingly niche use case > - I don't see any way for raw_argv to be useful in a cross-implementation > manner. I expect it to be useful in t

[issue16949] removal of string exceptions is already done

2013-01-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue16949] removal of string exceptions is already done

2013-01-13 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe: This part of the PEP is written as if string exceptions are currently being removed, which is not the case. Also, it is probably more accurate to say "they are forbidden *and* are removed", instead of "they are forbidden *because* they are are removed.

[issue14468] Update cloning guidelines in devguide

2013-01-13 Thread Ezio Melotti
Ezio Melotti added the comment: I used FAQ-style titles to make easier to find the solution starting from a problem ("how do I do X?") and because I was planning to add more, but I can revert them to normal titles. So that would result in 4 sections: * Active branches (was "In what branches sh

[issue14208] No way to recover original argv with python -m

2013-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > For PEP 432, I'm proposing to expose this as sys._configuration.raw_argv I think sys.raw_argv would be as good. It's not really (not only) a configuration item. -- ___ Python tracker

[issue14468] Update cloning guidelines in devguide

2013-01-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: I think it could cause confusion to have FAQs spread across two different files because then we'll have to distinguish between two FAQs in our hyperlinks, and it won't be obvious which FAQ page contains which questions. I would recommend creating a new section

[issue14468] Update cloning guidelines in devguide

2013-01-13 Thread Ezio Melotti
Ezio Melotti added the comment: I added more comments on bitbucket to indicate the new parts, the ones that have been moved, and the ones that have been removed. That should make reviews easier. I still haven't looked at the original FAQs (in faqs.rst), and still have to decide what should g

[issue14468] Update cloning guidelines in devguide

2013-01-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: I just talked to Ezio on IRC about this. I think it will be a lot easier to review and see what's going on with these changes if they are put forth in smaller, bite-sized pieces and committed incrementally. It's harder to understand and have a dialogue about

[issue16879] distutils.command.config uses fragile constant temporary file name

2013-01-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11844] Update json to upstream simplejson latest release

2013-01-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16899] Add support for C99 complex type (_Complex) as ctypes.c_complex

2013-01-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16850] Add "e" mode to open(): close-and-exec (O_CLOEXEC) / O_NOINHERIT

2013-01-13 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

2013-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed. Patch updated. -- Added file: http://bugs.python.org/file28711/etree_finditer_empty-3.2.patch ___ Python tracker ___ _

[issue16922] ElementTree.findtext() returns empty bytes object instead of empty string

2013-01-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file28675/etree_finditer_empty-3.2.patch ___ Python tracker ___ ___ Python-

[issue16398] deque.rotate() could be much faster

2013-01-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why only 2.7 and 3.4? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list maili