[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok, closing the issue. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue12797] io.FileIO and io.open should support openat

2011-10-31 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks (and for the English lesson ;-) ) -- assignee: -> rosslagerwall resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker __

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-10-31 Thread Марк Коренберг
Марк Коренберг added the comment: Why it is closed as duplicate? nothing said about CLOEXEC in issue12797 -- ___ Python tracker ___ _

[issue3173] external strftime for Python?

2011-10-31 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue2979] use_datetime in SimpleXMLRPCServer

2011-10-31 Thread Florent Xicluna
Florent Xicluna added the comment: Latest comment is unrelated to this feature request. It goes with issue #13305. -- ___ Python tracker ___ _

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Note we only really see the effect if we make sure that gcc > > isn't emitting its "special" memcmp: that's why the -fno-builtin-memcmp > > is SO important on gcc builds! > > I'd rather infer the opposite: given how GCC generates code, this patch > is not w

[issue13304] test_site assumes that site.ENABLE_USER_SITE is True

2011-10-31 Thread Ned Deily
Ned Deily added the comment: LGTM. Thanks for the patch! Committed to 27 (for release in 2.7.3), 32 (3.2.3), and default (3.3). -- assignee: -> ned.deily nosy: +ned.deily resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 2.7, Python 3.2, Pyt

[issue13304] test_site assumes that site.ENABLE_USER_SITE is True

2011-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1689b9cf6b1c by Ned Deily in branch '2.7': Issue #13304: Skip test case if user site-packages disabled (-s or http://hg.python.org/cpython/rev/1689b9cf6b1c New changeset c497011a4769 by Ned Deily in branch '3.2': Issue #13304: Skip test case if use

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2011-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f025427f02b by Florent Xicluna in branch 'default': Fix regression due to changeset 2096158376e5 (issue #13305). http://hg.python.org/cpython/rev/3f025427f02b -- nosy: +python-dev ___ Python tracker

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2011-10-31 Thread Florent Xicluna
Florent Xicluna added the comment: Proposed patch to fix the issue in xmlrpc.client -- keywords: +patch Added file: http://bugs.python.org/file23577/issue13305_xmlrpc_patch.diff ___ Python tracker

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2011-10-31 Thread Florent Xicluna
Florent Xicluna added the comment: There's many discrepancies between OS X and Linux about time formatting... OS X >>> from datetime import datetime >>> datetime(1900, 1, 1).strftime("%6Y") '6Y' Linux >>> from datetime import datetime >>> datetime(1900, 1, 1).strftime("%6Y") '001900' BTW, the

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-10-31 Thread Stefan Krah
Stefan Krah added the comment: For the buildbot failures see #13307. I think that it's indeed a different issue, since AFAIK __pycache__ didn't exist when this one was opened. -- ___ Python tracker

[issue13307] test_bdist_rpm: INSTALLED_FILES does not use __pycache__

2011-10-31 Thread Stefan Krah
New submission from Stefan Krah : The failures seen on the Fedora buildbot are caused by the fact that INSTALLED_FILES does not use __pycache__: [stefan@fedora-14-i386 foo]$ cat build/bdist.linux-i686/rpm/BUILD/foo-0.1/INSTALLED_FILES /usr/local/lib/python3.3/site-packages/foo.py /usr/local/lib

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Richard Saunders
Richard Saunders added the comment: Some more information: Bob Arendt and I have been playing with the Fedora Core .spec file for python on Fedora Core 15: the compile options we found seem to automatically (as we did non invoke this option) invoke '-fno-builtin-memcmp' somehow? We disassembl

[issue13306] Add diagnostic tools to importlib?

2011-10-31 Thread Nick Coghlan
New submission from Nick Coghlan : In discussing the module aliasing PEP on python-ideas, it occurred to me that we could potentially add some useful "sanity check" utilities to an "importlib.diagnostics" subpackage. For example: - scan sys.path looking for entries that are inside packages - s

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2011-10-31 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am not sure this can be fixed without distributing our own implementation of strftime. See issue 3173. -- dependencies: +external strftime for Python? ___ Python tracker

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2011-10-31 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Martin. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2011-10-31 Thread Florent Xicluna
Florent Xicluna added the comment: FWIW, issue #1777412 added support for years < 1000 to Python 3.3 strftime. -- nosy: +belopolsky, haypo stage: test needed -> needs patch versions: -Python 2.7, Python 3.2 ___ Python tracker

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Note we only really see the effect if we make sure that gcc > isn't emitting its "special" memcmp: that's why the -fno-builtin-memcmp > is SO important on gcc builds! I'd rather infer the opposite: given how GCC generates code, this patch is not worthwhile.

[issue13291] latent NameError in xmlrpc package

2011-10-31 Thread Florent Xicluna
Florent Xicluna added the comment: This last issue is in the datetime module. issue #13305 -- status: open -> closed ___ Python tracker ___ _

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2011-10-31 Thread Florent Xicluna
New submission from Florent Xicluna : See msg146725 on issue 13291. on linux >>> datetime(1, 2, 10, 11, 41, 23).strftime("%Y") '1' on osx >>> datetime(1, 2, 10, 11, 41, 23).strftime("%Y") '0001' >>> datetime.strptime('0001', '%Y') datetime.datetime(1, 1, 1, 0, 0) >>> datetime.strptime('1',

[issue13304] test_site assumes that site.ENABLE_USER_SITE is True

2011-10-31 Thread Carl Meyer
Changes by Carl Meyer : Added file: http://bugs.python.org/file23576/d851c64c745a.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 740baff4f169 by Charles-François Natali in branch 'default': Issue #13303: Fix a race condition in the bytecode file creation. http://hg.python.org/cpython/rev/740baff4f169 -- nosy: +python-dev ___ Pytho

[issue13299] namedtuple row factory for sqlite3

2011-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue12797] io.FileIO and io.open should support openat

2011-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: > I'd have written "an opened file descriptor" instead (in 5 places). Yes, 'open' is an adjective as well as a verb, and the correct one in this context. Something that has been opened, such as a sealed jar or envelope, might have been re-closed, but it is no

[issue12797] io.FileIO and io.open should support openat

2011-10-31 Thread Charles-François Natali
Charles-François Natali added the comment: > Is "an open file descriptor" correct in English? I'd have written "an > opened file descriptor" instead (in 5 places). "open" is correct. For example, you say "the store is open", not "the store is opened": "open" is an adjective, whereas "opened" i

[issue13304] test_site assumes that site.ENABLE_USER_SITE is True

2011-10-31 Thread Carl Meyer
Changes by Carl Meyer : Removed file: http://bugs.python.org/file23575/cea40c2d7323.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue13304] test_site assumes that site.ENABLE_USER_SITE is True

2011-10-31 Thread Carl Meyer
Changes by Carl Meyer : -- keywords: +patch Added file: http://bugs.python.org/file23575/cea40c2d7323.diff ___ Python tracker ___ ___

[issue13304] test_site assumes that site.ENABLE_USER_SITE is True

2011-10-31 Thread Carl Meyer
Carl Meyer added the comment: Added a patch implementing my proposed fix. -- hgrepos: +87 ___ Python tracker ___ ___ Python-bugs-list

[issue12797] io.FileIO and io.open should support openat

2011-10-31 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Is "an open file descriptor" correct in English? I'd have written "an opened file descriptor" instead (in 5 places). -- ___ Python tracker _

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I am currently working with Bob Arendt (a colleague who works > frequently with Fedora) to try to put the > -fno-builtin-memcmp in the .spec file for their Python Wouldn't it be better to have it enabled by default in their gcc? -- _

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Richard Saunders
Richard Saunders added the comment: Added branches for specializing for UCS2 and UCS4 types -- Added file: http://bugs.python.org/file23574/unicode_with_memcmp_and_ucs_specialization.patch ___ Python tracker

[issue13281] Make robotparser.RobotFileParser ignore blank lines

2011-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The robotparser is currently doing exactly what it is documented as doing. 20.9. urllib.robotparser — Parser for robots.txt says "For more details on the structure of robots.txt files, see http://www.robotstxt.org/orig.html."; (Since there are no previous deta

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-31 Thread Richard Saunders
Richard Saunders added the comment: Here's a test demonstrating the memcmp optimization effect: --- more ~/PickTest5/Python/string_test3.py a = [] b = [] c = [] d = [] for x in range(0,1000) : a.append("the quick brown fox"+str(x))

[issue13295] Fix HTML produced by http.server

2011-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: Attached patch updates the pages to pass the validation, use HTML 4.01 and specify the encoding of the page in the tag. -- stage: patch review -> commit review versions: -Python 2.7, Python 3.2 Added file: http://bugs.python.org/file23573/issue13295-2.

[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-10-31 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Cheers, thank you for commiting! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-10-31 Thread Senthil Kumaran
Senthil Kumaran added the comment: This is fixed in all codelines. Thanks for your contribution, Jyrki Pulliainen. -- resolution: -> fixed status: open -> closed versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1ef30d6429db by Senthil Kumaran in branch '2.7': Port to 2.7 - issue 10817 - Fix urlretrieve function to raise http://hg.python.org/cpython/rev/1ef30d6429db -- ___ Python tracker

[issue13291] latent NameError in xmlrpc package

2011-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apparently buildbot failures are caused by this commit: == ERROR: test_datetime_before_1900 (test.test_xmlrpc.XMLRPCTestCase) --

[issue12797] io.FileIO and io.open should support openat

2011-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d64d9ac2b78 by Ross Lagerwall in branch 'default': Issue #12797: Added custom opener parameter to builtin open() and FileIO.open(). http://hg.python.org/cpython/rev/0d64d9ac2b78 -- nosy: +python-dev ___

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Here's a patch for Python/import.c using mkstemp(3). AFAICT, mkstemp > should always be available (on Unix of course). This looks fine to me. The code simplification tastes good :) -- ___ Python tracker

[issue13304] test_site assumes that site.ENABLE_USER_SITE is True

2011-10-31 Thread Carl Meyer
New submission from Carl Meyer : If the test suite is run with PYTHONNOUSERSITE=true, the test_s_option test in test_site fails, because it implicitly assumes that site.ENABLE_USER_SITE is True and that site.USER_SITE should unconditionally be in sys.path. This is a practical problem in the re

[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2ca415cbf2ac by Senthil Kumaran in branch '3.2': Fix issue 10817 - Fix urlretrieve function to raise ContentTooShortError http://hg.python.org/cpython/rev/2ca415cbf2ac New changeset e3e5b6f03f79 by Senthil Kumaran in branch 'default': merge from 3.

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch for Python/import.c using mkstemp(3). AFAICT, mkstemp should always be available (on Unix of course). -- Added file: http://bugs.python.org/file23572/import_atomic_race-2.diff ___ Python trac

[issue13170] distutils2 test failures

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: > When I do "import shutil" inside _backport/shutil.py You shouldn’t do that! Our backported module is fully stand-alone. I have fixed the bug with this change in install_data.py: -from shutil import Error +from distutils2._backport.shutil import Error I think

[issue13295] Fix HTML produced by http.server

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: Okay. -- title: html5 template for Lib/http/server.py -> Fix HTML produced by http.server versions: +Python 2.7, Python 3.2 ___ Python tracker ___

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: I think it's internal. While it's not explicitly mentioned in the source, the method is not documented and I don't think people subclassed it. All that it does is changing the regex used to parse the data, and if someone needs to change this, it's probably ea

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Charles-François Natali
Charles-François Natali added the comment: > (it does sound a bit overkill to me :-)) Well, it depends on what we want: - if having a stale bytecode file indefinitely is acceptable, then the '.tmp' suffix approach is OK - if not, then we should use pseudo-random files > If you go that way, yo

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: I declare the original issue closed - there is no reason to switch to HTML 5 in this code. There are side issues, such as the HTML 3.2 perhaps being incorrect; people who want to commit patches in that respect can just go ahead. --

[issue12797] io.FileIO and io.open should support openat

2011-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Updated patch: > * checks for long overflow > * raises original exception if opener returns null > * makes it explicit that "opener" must return an open file descriptor. This looks good to me. You just need to add a "versionchanged" attribute in the documenta

[issue11812] transient socket failure to connect to 'localhost'

2011-10-31 Thread Charles-François Natali
Charles-François Natali added the comment: > Is anybody activelly working on this?. I don't think so. > Should I get involved? Sure, if you have access to a machine on which you can reliably reproduce the problem, it'll be much easier. I would bet on a deficient name resolution service: usi

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Here's a patch using pseudo-random filenames. > I used id(path) to generate a random name: it's faster than getpid(), > and doesn't pollute strace's output (I'm one of strace's biggest > fan :-). If you go that way, you should also modify Python/import.c to u

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch using pseudo-random filenames. I used id(path) to generate a random name: it's faster than getpid(), and doesn't pollute strace's output (I'm one of strace's biggest fan :-). -- Added file: http://bugs.python.org/file23571/impor

[issue9750] sqlite3 iterdump fails on column with reserved name

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: > Sure, I can have a try at it and address the issues you pointed out. Nice! > The URL to the guidelines you provided gives a 404. They’ve moved to http://docs.python.org/devguide meanwhile. > I wouldn't mind either adding to the test suite, but I'm not sure how

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: -def set_cdata_mode(self): +def set_cdata_mode(self, elem): Looks like an incompatible behavior change. Is it only an internal method that will never affect users’ code (even subclasses)? -- ___ Python tracker

[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: > Here's the error message: > error: File not found: > /tmp/tmpsga9lh/foo/build/bdist.linux-i686/rpm/BUILDROOT/foo-0.1-1.i386/usr/local/lib/python3.3/site-packages/foo.pyc Thanks. Some rpm tool is looking for byte-compiled files in the old location, but I’ve fi

[issue11812] transient socket failure to connect to 'localhost'

2011-10-31 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Any progress on this?. I still see frequent OpenIndiana Buildbots failures because of this. Is anybody activelly working on this?. Should I get involved? -- ___ Python tracker _

[issue13288] SSL module doesn't allow access to cert issuer information

2011-10-31 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11638] python setup.py sdist crashes if version is unicode

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: > Here's a test for the bug. Thanks! Some comments are strange, but the patch is a good start. > One way to fix the symptom (maybe not the correct way) would be to edit > tarfile._Stream._init_write_gz I’d rather change distutils, not tarfile. I think the best p

[issue13238] Add shell command helpers to shutil module

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure my question was well phrased. If I have these files: spam.py ham.py foo bar.py will a pattern of '*.py' match all of them with your functions, even the one with an embedded space? -- ___ Python tra

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker ___ ___ Python-bugs-l

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: I’d rather fix the page (look at the diff to find one violation: the first heading is an h2 instead of h1) and use an HTML5 doctype, as it’s just HTML 4.01 + pragmatism. -- ___ Python tracker

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread karl
karl added the comment: Yup. I doesn't bring anything except putting the output in line with the reality of browsers implementations. You may close it. I don't mind. -- ___ Python tracker

[issue9750] sqlite3 iterdump fails on column with reserved name

2011-10-31 Thread Lucas Sinclair
Lucas Sinclair added the comment: Sure, I can have a try at it and address the issues you pointed out. The URL to the guidelines you provided gives a 404. In what form exactly would you like the patch to be ? I wouldn't mind either adding to the test suite, but I'm not sure how to do that.

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: My point is that the HTML5 doctype doesn't bring us anything (except maybe a shorter string), so I don't see the point of changing it. When the HTML5 spec is stable we can switch to it, but even then the update won't change anything. -- ___

[issue13283] removal of two unused variable in locale.py

2011-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0694ebb5db99 by Jesus Cea in branch '2.7': Closes #13283: removal of two unused variable in locale.py http://hg.python.org/cpython/rev/0694ebb5db99 New changeset a479aad0231e by Jesus Cea in branch '3.2': Closes #13283: removal of two unused variab

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Charles-François Natali
Charles-François Natali added the comment: Then we won't write the bytecode any more. But it will be consistent. The solution would be to create a random temporary file (with e.g. mkstemp()): in case of crash, we'll let dangling temporary files, but we'll be able to update the bytecode. I'm no

[issue13283] removal of two unused variable in locale.py

2011-10-31 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: 2.7 is a long term maintenance branch, and this patch is trivial enough. I think it is risk free :) -- assignee: -> jcea nosy: +jcea ___ Python tracker

[issue13295] html5 template for Lib/http/server.py

2011-10-31 Thread karl
karl added the comment: Ezio, Martin, HTML 3.2, HTML 4.01 are not outdated. They have stable specifications. That said their doctypes have not influence at all in browsers. The html5 doctype has been chosen because it was the minimal string of characters that put the browsers into strict m

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: This looks good to me. I'm slightly worried about what happens when there's a stale tmp file (for example if the Python process crashed before renaming it). -- ___ Python tracker

[issue11682] PEP 380 reference implementation for 3.3

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file23096/issue11682_pep380_branch_20110904.diff ___ Python tracker ___ ___ Py

[issue11682] PEP 380 reference implementation for 3.3

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file22616/pep380-missing-docs.diff ___ Python tracker ___ ___ Python-bugs-list

[issue11682] PEP 380 reference implementation for 3.3

2011-10-31 Thread Nick Coghlan
Nick Coghlan added the comment: Bitbucket repo and attached patch updated relative to latest get_opinfo branch (which in turn was updated to apply cleanly against current CPython tip). (I still need to incorporate the doc updates and look into adding keyword argument support) -- Adde

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file21599/dis.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file23019/issue11816_get_opinfo_branch_20110824.diff ___ Python tracker ___ __

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file23095/issue11816_get_opinfo_branch_20110904.diff ___ Python tracker ___ __

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-10-31 Thread Nick Coghlan
Changes by Nick Coghlan : Removed file: http://bugs.python.org/file23197/issue11816_get_opinfo_branch_20110920.diff ___ Python tracker ___ __

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-10-31 Thread Nick Coghlan
Nick Coghlan added the comment: Bitbucket repo and attached patch updated relative to current tip. -- Added file: http://bugs.python.org/file23569/issue11816_get_opinfo_branch_20111031.diff ___ Python tracker ___

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Charles-François Natali
Charles-François Natali added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file23568/import_atomic_race.diff ___ Python tracker ___ __

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread Charles-François Natali
Charles-François Natali added the comment: There's a race in _write_atomic(): """ # On POSIX-like platforms, renaming is atomic path_tmp = path + '.tmp' try: fd = _os.open(path_tmp, _os.O_EXCL | _os.O_CREAT | _os.O_WRONLY) with _io.FileIO(fd, 'wb')

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread STINNER Victor
New submission from STINNER Victor : Traceback (most recent call last): File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/regrtest.py", line 1186, in runtest_inner indirect_test() File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/test_ttk_textonl

[issue1336] subprocess.Popen hangs when child writes to stderr

2011-10-31 Thread Martin v . Löwis
Martin v. Löwis added the comment: ita1024: please don't post to closed issues; your message here will be ignored. -- ___ Python tracker ___ _

[issue2979] use_datetime in SimpleXMLRPCServer

2011-10-31 Thread Charles-François Natali
Charles-François Natali added the comment: 2096158376e5 broke test_xmlrpc: """ == ERROR: test_datetime_before_1900 (test.test_xmlrpc.XMLRPCTestCase) -- Traceba

[issue13226] Expose RTLD_* constants in the posix module

2011-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 05e2bdc00c0c by Victor Stinner in branch 'default': Issue #13226: Update sys.setdlopenflags() docstring http://hg.python.org/cpython/rev/05e2bdc00c0c -- ___ Python tracker

[issue13302] Clarification needed in C API arg parsing

2011-10-31 Thread Sandro Tosi
New submission from Sandro Tosi : Hello, given I can't fully comprehend the user request (sent on docs@ as of http://mail.python.org/pipermail/docs/2011-September/005791.html), I'm just echoing it : >>> recently I embedded Python into one of my applications, which included some string parsing.

[issue1336] subprocess.Popen hangs when child writes to stderr

2011-10-31 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12760] Add create mode to open()

2011-10-31 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: issue12797 would allow things like: def create_exclusive_file(filename): return open(filename, "w", opener=lambda path, mode: os.open(path, mode|os.O_CREAT|os.O_EXCL)) -- ___ Python tracker <

[issue1336] subprocess.Popen hangs when child writes to stderr

2011-10-31 Thread john doe
john doe added the comment: The following piece of code does not seem to be thread-safe: gc.disable() try: os.fork() except: ... If calling subprocess.Popen() is supposed to work from threads without any particular protection, then a lock is needed in subprocess.py: try: spawn_loc

[issue12760] Add create mode to open()

2011-10-31 Thread David Townshend
David Townshend added the comment: I see this has been marked as a duplicate of http://bugs.python.org/issue12797. Please explain how this is, since that proposal does not appear to provide the functionality discussed here. -- ___ Python tracker

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread David Jean Louis
David Jean Louis added the comment: Hmm, I missed your previous message, indeed, unescaping is not handled by this patch, sorry about that. Here's how it is handled in polib: https://bitbucket.org/izi/polib/src/dbafdc621bf4/polib.py#cl-206 -- ___ Py

[issue1234674] filecmp.cmp's "shallow" option

2011-10-31 Thread Sandro Tosi
Sandro Tosi added the comment: Hello, we recently received a this message on docs@ : http://mail.python.org/pipermail/docs/2011-October/006121.html that's actually related to this issue: how can we move it forward? -- nosy: +sandro.tosi versions: +Python 3.3 -Python 3.1 _

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread David Jean Louis
David Jean Louis added the comment: I'm adding an updated patch that also handles unescaped double quote at the beginning of the string. -- versions: +Python 2.6, Python 3.1, Python 3.4 Added file: http://bugs.python.org/file23567/msgfmt.py.diff.update1.diff __

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread Georg Brandl
Georg Brandl added the comment: This should be fixed; the patch doesn't seem correct though, it doesn't handle escapes like eval() would. -- ___ Python tracker ___

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13301] the script Tools/i18n/msgfmt.py allows arbitrary code execution via po files

2011-10-31 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +barry, benjamin.peterson, ezio.melotti, georg.brandl stage: -> patch review versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker ___

[issue13281] Make robotparser.RobotFileParser ignore blank lines

2011-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: If it's added it should be a versionchanged, not a versionadded. I'm also not entirely sure this should be considered a new feature and don't see the point of having a strict mode. IMHO robotparser should honor what the robots.txt files say, and not doing so be

[issue13298] Result type depends on order of operands for bytes and bytearray

2011-10-31 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

  1   2   >