[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: Added file: http://bugs.python.org/file23158/95016f363e6c.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

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

2011-09-15 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I don't think that it's a problem to remove private functions. Alright. Is it mandatory to send a non-empty message (first argument for sendmsg, b'x' in your patch)? The original C function sends a random byte :-) Some

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: Added file: http://bugs.python.org/file23159/3017ee1d548d.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: Removed file: http://bugs.python.org/file23158/95016f363e6c.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: Removed file: http://bugs.python.org/file23063/f3cf187208ea.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: Removed file: http://bugs.python.org/file23129/fe2c9998f329.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

[issue12982] .pyo file cannot be imported

2011-09-15 Thread Eric O. LEBIGOT
Eric O. LEBIGOT eric.lebi...@normalesup.org 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.

[issue12982] .pyo file cannot be imported

2011-09-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-09-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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,

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

2011-09-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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. --

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: 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

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12985 ___

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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.,

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Andrew Jewett
Andrew Jewett jewett@gmail.com 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

[issue11610] Improved support for abstract base classes with descriptors

2011-09-15 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: Any additional comments? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610 ___ ___

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Andrew Jewett
Andrew Jewett jewett@gmail.com 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:

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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. --

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

2011-09-15 Thread John Chandler
John Chandler therealmetal...@gmail.com 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 -- ___

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

2011-09-15 Thread Evgeny Kapun
Changes by Evgeny Kapun abacabadabac...@gmail.com: -- nosy: +abacabadabacaba ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12983 ___ ___

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

2011-09-15 Thread Evgeny Kapun
Changes by Evgeny Kapun abacabadabac...@gmail.com: -- nosy: +abacabadabacaba ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12729 ___ ___

[issue12967] AttributeError distutils\log.py

2011-09-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file23147/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12967 ___

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

2011-09-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org http://bugs.python.org/issue10968

[issue12960] threading.Condition is not a class

2011-09-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 2.6, Python 3.1, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12960 ___

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue12967] AttributeError distutils\log.py

2011-09-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2011-09-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 rep...@bugs.python.org http://bugs.python.org/issue10968

[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 j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12976 ___ ___ Python-bugs-list mailing list

[issue5689] Support xz compression in tarfile module

2011-09-15 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- 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

[issue828450] sdist generates bad MANIFEST on Windows

2011-09-15 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve just found another problem with MANIFEST files created in Windows: they use CRLF. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828450

[issue5689] Support xz compression in tarfile module

2011-09-15 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de 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

[issue6715] xz compressor support

2011-09-15 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de 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.

[issue12785] list_distinfo_file is wrong

2011-09-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2011-09-15 Thread Matt Chaput
New submission from Matt Chaput m...@whoosh.ca: 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

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

2011-09-15 Thread jan matejek
New submission from jan matejek jmate...@suse.cz: 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

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

2011-09-15 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12986 ___ ___

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file23164/listobject_overflow.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12973 ___

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file23165/itertools_overflow.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12973 ___

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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:

[issue12985] Check signed arithmetic overflow in ./configure

2011-09-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

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

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

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

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

[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 jakob.m...@gmail.com 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

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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 --

[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 alexander.belopol...@gmail.com 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

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Those two patches (for listobject and itertools) look fine to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12973 ___

[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 jakob.m...@gmail.com 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

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Andrew Jewett
Andrew Jewett jewett@gmail.com 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

[issue12973] int_pow() implementation is incorrect

2011-09-15 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Mark Dickinson rep...@bugs.python.org 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

[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 techto...@gmail.com added the comment: On Thu, Sep 15, 2011 at 10:42 PM, Alexander Belopolsky rep...@bugs.python.org 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

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

2011-09-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The patch looks correct. Did you try it on Linux, FreeBSD and/or Windows? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12981

[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 alexander.belopol...@gmail.com added the comment: On Thu, Sep 15, 2011 at 4:17 PM, anatoly techtonik rep...@bugs.python.org wrote: .. Does that mean that if aware `datetime` is converted to `date` and then back, the tzinfo information is lost and object implicitly becomes

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

2011-09-15 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

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

2011-09-15 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue12935] Typo in findertools.py

2011-09-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue12935] Typo in findertools.py

2011-09-15 Thread Ned Deily
Ned Deily n...@acm.org 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:

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

2011-09-15 Thread Brian Gernhardt
New submission from Brian Gernhardt bcg2...@rit.edu: 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

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: Added file: http://bugs.python.org/file23168/591277fe6b4a.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: Removed file: http://bugs.python.org/file23159/3017ee1d548d.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue6715] xz compressor support

2011-09-15 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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. --

[issue12765] test_packaging failure under Snow Leopard

2011-09-15 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 -- ___

[issue12765] test_packaging failure under Snow Leopard

2011-09-15 Thread Ned Deily
Ned Deily n...@acm.org 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

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

2011-09-15 Thread Matt Chaput
Matt Chaput m...@whoosh.ca 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

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-09-15 Thread Nam Nguyen
New submission from Nam Nguyen bits...@gmail.com: 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

[issue6715] xz compressor support

2011-09-15 Thread John Reese
Changes by John Reese jre...@leetcode.net: -- nosy: -jreese ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing

[issue12537] mailbox's _become_message is very fragile

2011-09-15 Thread David Lam
David Lam d...@dlam.me 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

[issue7201] double Endian problem and more on arm

2011-09-15 Thread Meador Inge
Meador Inge mead...@gmail.com 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' !=

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-09-15 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- keywords: +needs review stage: - patch review type: - security versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12989 ___