[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-09-15 Thread Brian Curtin
Changes by Brian Curtin : -- keywords: +needs review stage: -> patch review type: -> security versions: -Python 3.4 ___ Python tracker ___

[issue7201] double Endian problem and more on arm

2011-09-15 Thread Meador Inge
Meador Inge added the comment: I think Mark's original pointer to issue1762561 was right on. The last two cases are failing due to the mixed-endian format (mentioned in that issue) used in OABI. You can see this in the output of 'test_endian_double': '182D4454FB210940' != 'FB210940182D4454

[issue12537] mailbox's _become_message is very fragile

2011-09-15 Thread David Lam
David Lam added the comment: Hm, it seems right now that the only time that happens is when creating a message based on an mbox message. The 'status' and 'x-status' attributes are deleted. Any hints on what I could to do figure out what special attributes should be deleted? I was thinking

[issue6715] xz compressor support

2011-09-15 Thread John Reese
Changes by John Reese : -- nosy: -jreese ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-09-15 Thread Nam Nguyen
New submission from Nam Nguyen : The module search path is constructed from PYTHONPATH env-var, then zip path, then HKCU PythonPath, then HKLM PythonPath, then PYTHONPATH define (in pyconfig.h), and finally argv[0]. If PYTHONHOME is available, the PYTHONPATH define is expanded. These paths are

[issue2636] Adding a new regex module (compatible with re)

2011-09-15 Thread Matt Chaput
Matt Chaput added the comment: Not sure if this is better as a separate feature request or a comment here, but... the new version of .NET includes an option to specify a time limit on evaluation of regexes (not sure if this is a feature in other regex libs). This would be useful especially wh

[issue12765] test_packaging failure under Snow Leopard

2011-09-15 Thread Ned Deily
Ned Deily added the comment: The database test failures were due to the fact that, on OS X, the tempdir was created in /var which on OS X is actually a symlink to /private/var so the tests for path inclusion which used startswith were failing. I added a call to os.path.realpath to normalize

[issue12765] test_packaging failure under Snow Leopard

2011-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset d3e072083ff3 by Ned Deily in branch 'default': Issue #12765: Fix packaging.test.test_database failures on OS X due http://hg.python.org/cpython/rev/d3e072083ff3 -- ___ Python tracker

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Nadeem Vawda added the comment: Thanks for getting the ball rolling with that. I'll want to try and familiarize myself with the code for tarfile module before I start changing stuff, but those points shouldn't be hard to fix, one way or the other. -- ___

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda : Removed file: http://bugs.python.org/file23159/3017ee1d548d.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda : Added file: http://bugs.python.org/file23168/591277fe6b4a.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue12988] IDLE on Win7 crashes when saving to Documents Library

2011-09-15 Thread Brian Gernhardt
New submission from Brian Gernhardt : Python 3.2.1 (default, Jul 10 2011, 20:02:51) [MSC v.1500 64 bit (AMD64)] on win32 Steps: 1) Start IDLE 2) Open Save dialog (File > Save or Ctrl-S) 3) Select Libraries from the buttons on the left or the dropdown on top. 4) Double-click on Documents 5) Ente

[issue12935] Typo in findertools.py

2011-09-15 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. Fixed, although findertools is woefully obsolete and no longer exists in Python 3. For working with the Finder in current OS X releases, use appscript instead (http://pypi.python.org/pypi/appscript/). -- assignee: ronaldoussoren ->

[issue12935] Typo in findertools.py

2011-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset b5f4c4085ae6 by Ned Deily in branch '2.7': Issue #12935: Correct typo in findertools. http://hg.python.org/cpython/rev/b5f4c4085ae6 -- nosy: +python-dev ___ Python tracker

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread STINNER Victor
STINNER Victor added the comment: - Click on "Server-side clone" on http://hg.python.org/cpython - on your computer, hg clone default myclone # default if your local clone of cpython, default branch - cd myclone; edit code; hg ci - edit .hg/hgrc to update the repository URL - hg push - for

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread Charles-François Natali
Charles-François Natali added the comment: I only tried on Linux. By the way, what's the simplest way to create a personal clone to test patches on some of the buildbots before committing them? -- ___ Python tracker

[issue8822] datetime naive and aware types should have a well-defined definition that can be cross-referenced

2011-09-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Sep 15, 2011 at 4:17 PM, anatoly techtonik wrote: .. > Does that mean that if aware `datetime` is converted to `date` and > then back, the tzinfo information is lost and object implicitly > becomes naive? Yes, but one cannot convert "back" from d

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread STINNER Victor
STINNER Victor added the comment: The patch looks correct. Did you try it on Linux, FreeBSD and/or Windows? -- ___ Python tracker ___ ___

[issue8822] datetime naive and aware types should have a well-defined definition that can be cross-referenced

2011-09-15 Thread anatoly techtonik
anatoly techtonik added the comment: On Thu, Sep 15, 2011 at 10:42 PM, Alexander Belopolsky wrote: > > Shouldn't we say "datetime and time" instead of "date and time"? > There is no tzinfo attribute in date objects. Does that mean that if aware `datetime` is converted to `date` and then back,

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Stefan Krah added the comment: Mark Dickinson wrote: > Well, they're all in the standard, which is publicly available. I have the real thing. :) > The correctness of the patch depends on: > (2) an assumption that the C implementation will never raise an > 'implementation-defined' signal

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Andrew Jewett
Andrew Jewett added the comment: > That can be done programmatically using the unicodedata module. > The regex module (that will hopefully be include in 3.3) is > also able to match characters that belongs to specific categories. Ezio: Thanks. (New to me, actually) Is this what you mean?:

[issue8822] datetime naive and aware types should have a well-defined definition that can be cross-referenced

2011-09-15 Thread Jakob Malm
Jakob Malm added the comment: > Shouldn't we say "datetime and time" instead of "date and time"? > There is no tzinfo attribute in date objects. Perhaps like this? :class:`datetime` and :class:`time` objects are... -- ___ Python tracker

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Mark Dickinson
Mark Dickinson added the comment: Those two patches (for listobject and itertools) look fine to me. -- ___ Python tracker ___ ___ Pyt

[issue8822] datetime naive and aware types should have a well-defined definition that can be cross-referenced

2011-09-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: -There are two kinds of date and time objects: "naive" and "aware". This +Date and time objects are either "naive" or "aware". This Shouldn't we say "datetime and time" instead of "date and time"? There is no tzinfo attribute in date objects. --

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Mark Dickinson
Mark Dickinson added the comment: > an assumption that the C implementation will never raise an > 'implementation-defined' signal (C99 6.3.1.3p3). Sorry, this should have been more explicit: "will never raise ... when converting long to unsigned long" -- _

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Mark Dickinson
Mark Dickinson added the comment: Gah; did I really misnumber that issue patch? Sorry. > Mark, did you write those rules down somewhere? Well, they're all in the standard, which is publicly available. (Or at least, a draft of the standard that's pretty much interchangeable with the real th

[issue8822] datetime naive and aware types should have a well-defined definition that can be cross-referenced

2011-09-15 Thread Jakob Malm
Jakob Malm added the comment: Patch without reflow attached. This is my first patch to CPython. I considered submitting the patch without reflowing the paragraph, to make the changes clearer, but I thought that that would mean more work for the committer, if the patch were to be accepted. Are

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file23156/multiprocessing_fd.diff ___ Python tracker ___ ___ Python-

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread Charles-François Natali
Changes by Charles-François Natali : Added file: http://bugs.python.org/file23166/multiprocessing_fd-1.diff ___ Python tracker ___ ___ Python-

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
Stefan Krah added the comment: My rationale was something like this: If a compiler optimizes away signed arithmetic overflow, this particular comparison will most likely be in the set of optimizations, since it seems like low hanging fruit. Of course it doesn't guarantee wrapping behavior in ge

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Stefan Krah added the comment: With issue12975.diff, listobject_overflow.diff and itertools_overflow.diff I don't get any more failures. Also, of course issue12975.diff looks correct to me if we assume: http://mail.python.org/pipermail/python-dev/2009-December/094392.html http://yarchive.net/

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file23165/itertools_overflow.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Changes by Stefan Krah : Added file: http://bugs.python.org/file23164/listobject_overflow.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable

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

[issue12987] Demo/scripts/newslist.py has non-commercial license clause

2011-09-15 Thread jan matejek
New submission from jan matejek : from Demo/scripts/newslist.py : # Feel free to copy, distribute and modify this code for # non-commercial use. If you make any useful modifications, let me # know! # # (c) Quentin Stafford-Fraser 1994 # fra...@europarc.xerox.com qs...@cl.cam.

[issue12986] Using getrandbits() in uuid.uuid4() is faster and more readable

2011-09-15 Thread Matt Chaput
New submission from Matt Chaput : Currently the 'uuid' module uses os.urandom (in the absence of a system UUID generation function) to generate random UUIDs in the uuid.uudi4() function. This patch changes the implementation of uuid4() to use random.getrandbits() as the source of randomness in

[issue12785] list_distinfo_file is wrong

2011-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6d52971dd2a by Éric Araujo in branch 'default': Fix packaging.database.Distribution.list_distinfo_files (#12785). http://hg.python.org/cpython/rev/c6d52971dd2a -- nosy: +python-dev ___ Python tracker <

[issue6715] xz compressor support

2011-09-15 Thread Lars Gustäbel
Lars Gustäbel added the comment: Today I played around with lzma support for tarfile based on your last patch (see issue5689). There are a few minor issues that I just wanted to mention, as they break the tarfile testsuite: - LZMAFile does not expose a name attribute. BZ2File doesn't either (

[issue5689] Support xz compression in tarfile module

2011-09-15 Thread Lars Gustäbel
Lars Gustäbel added the comment: Attached is a patch with the current state of my work on lzma integration into tarfile (17 test errors). -- assignee: -> lars.gustaebel keywords: +patch Added file: http://bugs.python.org/file23162/2011-09-15-tarfile-lzma.diff

[issue828450] sdist generates bad MANIFEST on Windows

2011-09-15 Thread Éric Araujo
Éric Araujo added the comment: I’ve just found another problem with MANIFEST files created in Windows: they use CRLF. -- ___ Python tracker ___ ___

[issue5689] Support xz compression in tarfile module

2011-09-15 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Library (Lib) -Extension Modules nosy: +nadeem.vawda title: please support lzma compression as an extension and in the tarfile module -> Support xz compression in tarfile module versions: +Python 3.3 -Python 3.2 ___

[issue12976] select module: only use EVFILT_TIMER if available (kqueue backend)

2011-09-15 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.

[issue10968] threading.Timer should be a class so that it can be derived

2011-09-15 Thread STINNER Victor
STINNER Victor added the comment: > that’s why I posted a patch six weeks ago and asked for a review Oh ok, cool, I missed the patches. -- ___ Python tracker ___ __

[issue12967] AttributeError distutils\log.py

2011-09-15 Thread Éric Araujo
Éric Araujo added the comment: > when installing the distribute package How? Please tell exactly what command you ran with what Python version. > it could be raised on any other usage as sys.stdout does not have > an 'error' attribute. It does, in 3.x. Do you think Python has no tests or no u

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Éric Araujo
Éric Araujo added the comment: Andrew: Thanks for your contribution, but your patch cannot go into 2.7, as we don’t add new features in stable versions (re-read the whole thread if you need more info). This report is still open because we need a doc patch to explain how to work around that.

[issue12960] threading.Condition is not a class

2011-09-15 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 2.6, Python 3.1, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mai

[issue10968] threading.Timer should be a class so that it can be derived

2011-09-15 Thread Éric Araujo
Éric Araujo added the comment: Victor: Yes, I know the doc needs an update, that’s why I posted a patch six weeks ago and asked for a review. -- ___ Python tracker ___

[issue12967] AttributeError distutils\log.py

2011-09-15 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file23147/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-09-15 Thread Evgeny Kapun
Changes by Evgeny Kapun : -- nosy: +abacabadabacaba ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12983] byte string literals with invalid hex escape codes raise ValueError instead of SyntaxError

2011-09-15 Thread Evgeny Kapun
Changes by Evgeny Kapun : -- nosy: +abacabadabacaba ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12820] Tests for Lib/xml/dom/minicompat.py

2011-09-15 Thread John Chandler
John Chandler added the comment: Just to let you know I haven't forgotten this! I've been pretty busy recently so might be a while before I implement the changes to the patch suggested in the code review. John -- ___ Python tracker

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Ezio Melotti
Ezio Melotti added the comment: That can be done programmatically using the unicodedata module. The regex module (that will hopefully be include in 3.3) is also able to match characters that belongs to specific categories. -- ___ Python tracker <

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Andrew Jewett
Andrew Jewett added the comment: Not to get side-tracked, but on a related note, it would be nice if there was a python module which defined sets of unicode characters corresponding to different categories (similar to the categories listed here: http://www.fileformat.info/info/unicode/categor

[issue11610] Improved support for abstract base classes with descriptors

2011-09-15 Thread Darren Dale
Darren Dale added the comment: Any additional comments? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Andrew Jewett
Andrew Jewett added the comment: Proposed solution and patch to follow. Please let me know if I am posting it in the wrong place. The main problem with shlex is that the shlex interface is inadequate to handle unicode. Specifically it is no longer feasible to provide a list of every possib

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Mark Dickinson
Mark Dickinson added the comment: BTW, I suspect that the reason there were no related test failures with the Intel compiler is that most of the problems in the Python code stem from multiplications rather than additions. Probably icc isn't sophisticated enough to optimize those multiplicati

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Mark Dickinson
Mark Dickinson added the comment: I don't see how this is helpful---all it's reporting on is whether that compiler happened to decide to optimize away that particular comparison; something which is going to be highly dependent on compiler version, flags, platform, etc., and still doesn't tel

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
Changes by Stefan Krah : -- versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mail

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
New submission from Stefan Krah : I'm not sure if this is a good idea: I wonder if it would be an option to check for overflow behavior at the bottom of ./configure and print a warning. The patch appears to work for gcc, clang and suncc. It would have caught the problem in #12973. The Intel com

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-09-15 Thread Stefan Krah
Stefan Krah added the comment: The buildbots are fine, though I think that in this instance Gentoo-Non-Debug-3.x is the only bot that actually exercises the new code path. So I tested manually on FreeBSD/clang-3.0 and I don't see anything surprising. -- resolution: -> fixed stage: pat

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread STINNER Victor
STINNER Victor added the comment: > - if the ancillay data is truncated, struct.unpack will raise an exception Well, the current C code doesn't check that the data is truncated and it works correctly, so I don't think that it would be different in Python. And yes, Python adds an extra check t

[issue12982] .pyo file cannot be imported

2011-09-15 Thread STINNER Victor
STINNER Victor added the comment: > Indeed. Thanks. I wish it had been in the documentation. :) This is yet > another reason for me to check how I can submit patches to the doc. :) Read http://docs.python.org/devguide/ to learn how to get the source of the documentation and how to write a

[issue12982] .pyo file cannot be imported

2011-09-15 Thread Eric O. LEBIGOT
Eric O. LEBIGOT added the comment: Indeed. Thanks. I wish it had been in the documentation. :) This is yet another reason for me to check how I can submit patches to the doc. :) I also found out that renaming the .pyo file as .pyc makes Python happy upon import. That's the solution I chos

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Nadeem Vawda added the comment: I've attached another patch that includes proper ReST documentation, a few more tests, and some fixups following Ezio and Amaury's reviews. -- stage: needs patch -> patch review ___ Python tracker

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda : Removed file: http://bugs.python.org/file23129/fe2c9998f329.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda : Removed file: http://bugs.python.org/file23063/f3cf187208ea.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda : Removed file: http://bugs.python.org/file23158/95016f363e6c.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda : Added file: http://bugs.python.org/file23159/3017ee1d548d.diff ___ Python tracker ___ ___ Python-bugs-list mailing li