[issue8739] Update to smtpd.py to RFC 5321
Juhana Jauhiainen juhana.jauhiai...@gmail.com added the comment: Since Michele has been already working on this I could help with the cleanup once it's separated as a new issue. David: Thanks for your comments. I wasn't sure if I should make a general solution or not and ended up making this one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14257] minor error in glossary wording regarding __hash__
Chris Rebert pyb...@rebertia.com added the comment: I regret to inform you that those changes made the sentence in question ungrammatical. Removing the word method will make it grammatical again (as originally suggested). -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14257 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8739] Update to smtpd.py to RFC 5321
Michele Orrù maker...@gmail.com added the comment: Patch attached. A few considerations: in case of syntax error, the server responds with MAIL FROM:address [SP mail-parameters ] CRLF according to http://tools.ietf.org/html/rfc5321#section-3.3 (instead of MAIL FROM:address). Note that this could break something, as far as backwards compatibility is concerned. Looking at http://tools.ietf.org/html/rfc3030#section-4.2 , I was wondering whether the size parameter on MAIL FROM should have implications on the RCPT TO command (i.e., we should check that the foreign email accepts that size). Finally, right now the size parameter is not considered until greater than max_message_size. This could let the user push an email with a size greater than the on declared (but smaller than max_message_size). Tests for command line and cleanup will be on another issue. Waiting for directives :) , -- ù -- Added file: http://bugs.python.org/file24793/issue8739.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1531415] parsetok.c emits warnings by writing to stderr
Michele Orrù maker...@gmail.com added the comment: This is not the proper workflow for bug tracking. No one is working on this right now is not the same as This bug is invalid. No one worked on this ticket almost *seven years* after I filed it. You are right. Sorry for that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1531415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14261] Cleanup in smtpd module
New submission from Michele Orrù maker...@gmail.com: This issue is related to 8739 . As pointed in http://bugs.python.org/issue8739#msg155385, « tests are in the form FooTest instead of TestFoo, smtpd imports modules used only in __main__, warnings can be handled the appropriate module, __import__ shall not be used » and, as bitdancer said in http://bugs.python.org/issue8739#msg153244 «there are no tests for the smtpd command line functionality» Also, note that currently the main has a bug: s/options\.max_message_size/size_limit/ -- components: Library (Lib) messages: 155448 nosy: Juhana.Jauhiainen, ezio.melotti, maker, r.david.murray priority: normal severity: normal status: open title: Cleanup in smtpd module type: enhancement versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14261 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14262] Allow using decimals as arguments to `timedelta`
New submission from Ram Rachum r...@rachum.com: Please allow using decimals as arguments to `timedelta`, so the following code won't raise an exception: Python 3.3.0a1 (default, Mar 4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import datetime import decimal datetime.timedelta(hours=decimal.Decimal(7)) Traceback (most recent call last): File stdin, line 1, in module TypeError: unsupported type for timedelta hours component: Decimal It's really annoying to have to convert all the arguments to `float` every time I instantiate a `timedelta`. -- components: Library (Lib) messages: 155449 nosy: cool-RR priority: normal severity: normal status: open title: Allow using decimals as arguments to `timedelta` versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14262 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10296] ctypes catches BreakPoint error on windows 32
Patrick pjlby...@gmail.com added the comment: This affects me too. -- nosy: +pjlbyrne ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10296 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14204] Support for the NPN extension to TLS/SSL
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14204 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14102] argparse: add ability to create a man page
Changes by Ingo Fischer fredistdurs...@googlemail.com: -- nosy: +Ingo.Fischer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14249] unicodeobject.c: aliasing warnings
Stefan Krah stefan-use...@bytereef.org added the comment: Benjamin Peterson rep...@bugs.python.org wrote: gcc 4.5 doesn't warn for me. Is this a compiler bug in 4.4 or 4.5? That is, are these actual aliasing violations? I see this with 4.4 but also with 4.6 when using -Wstrict-aliasing=2. However, nothing bad happens when I compile with -fstrict-aliasing. I think, but I would have to consult the standard again to be sure, that technically this might be an aliasing violation in C99, since 'pblock' does not have the type of 'block'. unsigned long block = * (unsigned long *) _q; unsigned short *pblock = (unsigned short*)block; -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14249 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1648923] HP-UX: -lcurses missing for readline.so
GaaL33 ubu...@l3p3t1t.net added the comment: I confirm that there's still a build issue. I've tried to compile python 2.7.2 on HP-UX 11.31. And it crashes with : ld -b build/temp.hp-ux-B.11.31-ia64-2.7/images/Python-2.7.2/Modules/readline.o -L/usr/lib/termcap -L/usr/local/lib -L/usr/local/lib/hpux32 -lreadline -o build/lib.hp-ux-B.11.31-ia64-2.7/readline.so /usr/lib/hpux32/dld.so: Unsatisfied code symbol 'tgetent' in load module '/usr/local/lib/hpux32/libreadline.so'. sh[3]: 11780 Killed *** Error exit code 137 adding -lcurses to the command resolves the problem. -- nosy: +gaal33 versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1648923 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8942] __path__ attribute of modules loaded by zipimporter is untested
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: I'm working on it -- nosy: +tati_alchueyr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8942 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1648923] HP-UX: -lcurses missing for readline.so
R. David Murray rdmur...@bitdance.com added the comment: OK, reopening. I've added 3.2 and 3.3 as I imagine the same problem will exist there. Now we need someone to propose a patch to fix it. -- resolution: out of date - stage: test needed - needs patch status: closed - open versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1648923 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error
Tim Lesher tles...@gmail.com added the comment: Corrected const warning in previous patch. -- Added file: http://bugs.python.org/file24794/8070-use-default-encoding-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8070 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8010] tkFileDialog.askopenfiles crashes on Windows 7
Changes by Tim Lesher tles...@gmail.com: -- nosy: +tlesher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8010 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12919] Control what module is imported first
Changes by Éric Araujo mer...@netwok.org: -- nosy: +carljm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12919 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()
Anthony Tuininga anthony.tuini...@gmail.com added the comment: All, I have trimmed this patch down to the bare minimum required to solve this problem. Please review this as I would dearly love to have this committed. The error received without this patch is MSIError: unknown error 103 This occurs when there are no more records to fetch from the view. The patch simply returns None when there are no more records to fetch -- similar to what is done by the DB API. -- Added file: http://bugs.python.org/file24795/_msi_fetch.patch.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1102 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14243] NamedTemporaryFile unusable under Windows
Dave Abrahams d...@boostpro.com added the comment: Nick, not to belabor this, but I guess you don't understand the use-case in question very well, or you'd see that delete=False doesn't cover it. The use case is this: I have to write a test for a function that takes a filename as a parameter and opens and reads from the file with that name. The test should conjure up an appropriate file, call the function, check the results, and clean up the file afterwards. It doesn't matter when the file gets cleaned up, as long as it is cleaned up eventually. Having to explicitly delete the file is exactly the kind of boilerplate one wants to avoid in situations like this. Even if Windows allows a file to be opened for reading (in some circumstances) when it is already open for writing, it isn't hard to imagine that Python might someday have to support an OS that didn't allow it under any circumstances. It is also a bit perverse to have to keep the file open for writing after you're definitively done writing it, just to prevent it from being deleted prematurely. I can understand most of the arguments you make against close-without-delete, except those (like the above) that seem to come from a you shouldn't want that; it's just wrong stance. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14243] NamedTemporaryFile unusable under Windows
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8942] __path__ attribute of modules loaded by zipimporter is untested
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: Improved test so the __path__ of a package loaded from a zip file, using zipimporter, is checked. -- keywords: +patch Added file: http://bugs.python.org/file24796/issue8942_test_for_zipimporter.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8942 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14260] re.groupindex available for modification and continues to work, having incorrect data inside it
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The re module creates the dict purely for the benefit of the user, and as it's a normal dict, it's mutable. An alternative would to use an immutable dict or dict-like object, but Python doesn't have such a class, and it's probably not worth writing one just for this use-case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14260 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13842] Cannot pickle Ellipsis or NotImplemented
Łukasz Langa luk...@langa.pl added the comment: There is indeed a 5% performance gain from using PyUnicode_FromString instead of the generic Py_BuildValue function. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13842 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12342] characters with ord above 65535 fail to display in IDLE
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13842] Cannot pickle Ellipsis or NotImplemented
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5832d3622473 by Łukasz Langa in branch 'default': Fixes #13842: cannot pickle Ellipsis or NotImplemented. http://hg.python.org/cpython/rev/5832d3622473 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13842 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13842] Cannot pickle Ellipsis or NotImplemented
Changes by Łukasz Langa luk...@langa.pl: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13842 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11664] Add patch method to unittest.TestCase
Michael Foord mich...@voidspace.org.uk added the comment: mock is being added to Python 3.3 as unittest.mock - so a helper TestCase.patch should delegate to unittest.mock.patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11664 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14263] switch_index_if_fails fails on py2
New submission from Tarek Ziadé ziade.ta...@gmail.com: distutils2 pysetup install is not working on py2 because the wrapper tries to pull func.f_name, which does not exist. -- assignee: tarek messages: 155463 nosy: eric.araujo, j1m, tarek priority: critical severity: normal status: open title: switch_index_if_fails fails on py2 versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14263] switch_index_if_fails fails on py2
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14263] switch_index_if_fails fails on py2
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- components: +Distutils2 nosy: +alexis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14264] can't install zope.event 3.4.0
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: tarek components: Distutils2 nosy: alexis, eric.araujo, j1m, tarek priority: high severity: normal status: open title: can't install zope.event 3.4.0 type: behavior versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14264 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14264] can't install zope.event 3.4.0
New submission from Tarek Ziadé ziade.ta...@gmail.com: it gets 3.4.1 for some reason -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14264 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14238] python shouldn't need username in passwd database
Ali Ikinci a...@ikinci.info added the comment: I have started to work on this. -- nosy: +aikinci ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14264] can't install zope.event 3.4.0
Changes by Jan-Jaap Driessen janjaapdriessen+pythonb...@gmail.com: -- nosy: +janjaapdriessen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14264 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14263] switch_index_if_fails fails on py2
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 32a95541829c by Tarek Ziade in branch 'default': Fixed a function name lookup in distutils2.pypi.wrapper (#14263) http://hg.python.org/distutils2/rev/32a95541829c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14263 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14265] Fully qualified test name in failure output
New submission from Michael Foord mich...@voidspace.org.uk: Somewhere in the failure message for tests Guido would like to see the fully qualified test name, suitable for copying and pasting into a test runner invocation for running just that test. -- assignee: michael.foord components: Library (Lib) messages: 155467 nosy: michael.foord priority: normal severity: normal status: open title: Fully qualified test name in failure output versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14265 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14265] Fully qualified test name in failure output
R. David Murray rdmur...@bitdance.com added the comment: +10 :) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14265 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13476] Simple exclusion filter for unittest autodiscovery
Michael Foord mich...@voidspace.org.uk added the comment: This would be nice (more powerful) as a general test method exclusion filter: so run test discovery or fetch the specified test module / class and then exclude individual tests that match the pattern. We're looking to add a general test include filter, so it is the natural complement to that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13476 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14264] can't install zope.event 3.4.0
Éric Araujo mer...@netwok.org added the comment: Can you increase logging level and paste log messages? -- stage: - test needed versions: +3rd party, Python 3.3 -Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14264 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5758] fileinput.hook_compressed returning bytes from gz file
Tatiana Al-Chueyr tatiana.alchu...@gmail.com added the comment: Working on this -- nosy: +tati_alchueyr ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5758 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13703] Hash collision security issue
Jon Vaughan jsvaug...@gmail.com added the comment: FWIW I upgraded to ubuntu pangolin beta over the weekend, which includes 2.7.3rc1, and I'm also experiencing a problem with urandom. File /usr/lib/python2.7/email/utils.py, line 27, in module import random File /usr/lib/python2.7/random.py, line 47, in module from os import urandom as _urandom ImportError: cannot import name urandom Given Roger Serwy's comment it sounds like a beta ubuntu problem, but thought it worth mentioning. -- nosy: +jsvaughan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14264] Comparison bug in distutils2.version
Éric Araujo mer...@netwok.org added the comment: More info: The command to reproduce the bug is “pysetup install zope.event (3.4.0)”, which gets zope.event 3.4.1. The bug comes from d2.version.VersionPredicate.match: predicate = VersionPredicate('zope.event (3.4.0)') predicate.match('3.4.0') True predicate.match('3.4.1') True predicate.match('3.4.2') True predicate.match('3.6.2') False -- title: can't install zope.event 3.4.0 - Comparison bug in distutils2.version ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14264 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat
Gregory P. Smith g...@krypto.org added the comment: reviewing now. -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14234 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14204] Support for the NPN extension to TLS/SSL
Colin Marc colinm...@gmail.com added the comment: More updates to the patch. -- Added file: http://bugs.python.org/file24797/npn_patch_py3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14204 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14266] pyunit script as shorthand for python -m unittest
New submission from Michael Foord mich...@voidspace.org.uk: python -m unittest ... is a pain to type. A pyunit script would be a nice shorthand. (unittest2 has a unit2 script that does this.) -- assignee: michael.foord components: Library (Lib) messages: 155476 nosy: michael.foord priority: normal severity: normal stage: needs patch status: open title: pyunit script as shorthand for python -m unittest versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14266 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14266] pyunit script as shorthand for python -m unittest
Antoine Pitrou pit...@free.fr added the comment: And it should do discover by default, IMO (like nose does). -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14266 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14104] Implement time.monotonic() on Mac OS X
Nicholas Riley com-python-b...@sabi.net added the comment: Attached is a patch which implements time.monotonic() using mach_absolute_time() / mach_timebase_info(). This was recommended by Apple in their technical QA 1398: https://developer.apple.com/library/mac/#qa/qa1398/ -- keywords: +patch nosy: +nriley Added file: http://bugs.python.org/file24798/monotonic.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14266] pyunit script as shorthand for python -m unittest
Michael Foord mich...@voidspace.org.uk added the comment: Right unit2 on its own does discover by default now. (On head, not sure if that's released yet.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14266 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14264] Comparison bug in distutils2.version
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1e0ca4594a2a by Tarek Ziade in branch 'default': Removed the trailing zero wiping (#14264) http://hg.python.org/distutils2/rev/1e0ca4594a2a -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14264 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2377] Replace __import__ w/ importlib.__import__
Brett Cannon br...@python.org added the comment: So after looking at import.c and how it handles stuff, I have decided how I already implemented __import__() triggering __import__() itself is fine. So Antoine can just stay confused by my comment as it is now a moot point. =) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14267] TimedRotatingFileHandler chooses wrong file name due to daylight saving time spring forward
New submission from Matt Mullins mokom...@gmail.com: As logs were rotated at midnight this morning (at the end of the day 2012-03-11), we detected that the logs were incorrectly renamed to *.log.2012-03-10, causing logs from Saturday to be overwritten. I believe this bug is related to the transition to daylight saving time, as this is the only day in recent history that this has occurred. I have attached a script to reproduce this bug. This works reliably in the US/Pacific time zone. To run it, execute rm foo.log* ; sudo date 03112359.55 python logger_test.py. This will cause ten records to be logged, across the midnight boundary from 2012-03-11 23:59:55 to 2012-03-12 00:00:05. Expected behavior: the logs from 2012-03-11 up to, but not including, 2012-03-12 00:00:00 should be written to a file named foo.log.2012-03-11, and the remainder of the log entries should be written to foo.log. Actual behavior: the logs from 2012-03-11 23:59 through, but not including, 2012-03-12 00:00 are instead written to a file named foo.log.2012-03-10, and the remainder of the log entries are written to foo.log. This does not happen for any other day. For example: running sudo date 02152359.55 in the above procedure correctly names the file foo.log.2012-02-15. -- components: Library (Lib) files: logger_test.py messages: 155482 nosy: Matt.Mullins priority: normal severity: normal status: open title: TimedRotatingFileHandler chooses wrong file name due to daylight saving time spring forward type: behavior versions: Python 2.6, Python 2.7 Added file: http://bugs.python.org/file24799/logger_test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14267 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14268] _move_file is broken because of a bad mock
New submission from Tarek Ziadé ziade.ta...@gmail.com: the mocked list_installed_files() returns a list of files instead of a list of (path, md5, path) -- assignee: tarek components: Distutils2 messages: 155483 nosy: alexis, eric.araujo, tarek priority: normal severity: normal status: open title: _move_file is broken because of a bad mock versions: Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14260] re.groupindex available for modification and continues to work, having incorrect data inside it
py.user port...@yandex.ru added the comment: Matthew Barnett wrote: The re module creates the dict purely for the benefit of the user this dict affects on regex.sub() import re p = re.compile(r'abc(?Pndef)') p.groupindex {'n': 1} p.groupindex['n'] = 2 p.sub(r'\gn', 'abcdef') Traceback (most recent call last): File /usr/local/lib/python3.2/sre_parse.py, line 811, in expand_template literals[index] = s = g(group) IndexError: no such group During handling of the above exception, another exception occurred: Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python3.2/re.py, line 286, in filter return sre_parse.expand_template(template, match) File /usr/local/lib/python3.2/sre_parse.py, line 815, in expand_template raise error(invalid group reference) sre_constants.error: invalid group reference -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14260 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2377] Replace __import__ w/ importlib.__import__
Brett Cannon br...@python.org added the comment: Looks like Windows as a PC/import_nt.c:_PyWin_FindRegisteredModule() function used to find modules in the registry. Probably should care about that at some point (I guess). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14238] python shouldn't need username in passwd database
Ali Ikinci a...@ikinci.info added the comment: This patch fixes the issue but needs review. It is my first patch ever so be nice :) -- keywords: +patch Added file: http://bugs.python.org/file24800/issue14238.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14268] _move_file is broken because of a bad mock
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c0a9ba08ebe3 by Tarek Ziade in branch 'default': fixed a test mock issue (#14268) http://hg.python.org/distutils2/rev/c0a9ba08ebe3 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14268 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14238] python shouldn't need username in passwd database
Éric Araujo mer...@netwok.org added the comment: Thanks you for your contribution! I hope you’ll find fun bugs to make patches for. Your patch looks too simplistic; in the discussion, we agreed that if the lookup fails, the site module should not add user site directories (see http://docs.python.org/library/site#site.USER_SITE or PEP 370), and your patch does not seem to do that. Moreover, this bug has repercussions on the sysconfig module (see my previous message), which needs edits too. BTW, I don’t know how we can test a patch for this bug; arekm, how do you run Python from a UID without passwd entry? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13394] Patch to increase aifc lib test coverage
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fc3a63ed1f67 by Ezio Melotti in branch '3.2': #13394: add more tests for the aifc module. Patch by Oleg Plakhotnyuk. http://hg.python.org/cpython/rev/fc3a63ed1f67 New changeset 512d3ad81fb9 by Ezio Melotti in branch 'default': #13394: add more tests for the aifc module and use warnings.warn instead of print. Patch by Oleg Plakhotnyuk. http://hg.python.org/cpython/rev/512d3ad81fb9 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13394 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO
New submission from Dan Boswell fruitn...@gmail.com: The current SMTP RFC (5321) states that 'a client MUST issue HELO or EHLO before starting a mail transaction'. The SMTP server should issue '503 Bad sequence of commands' if a client sends MAIL, RCPT or DATA commands before it sends an HELO/EHLO; currently it does not. To reproduce: 1. Start smtpd.py 2. Telnet to localhost 8025 3. Send 'MAIL from:f...@example.com' To which you'll see '250 OK' instead of '503 Bad sequence of commands' -- components: Library (Lib) messages: 155490 nosy: fruitnuke priority: normal severity: normal status: open title: SMTPD server does not enforce client starting mail transaction with HELO or EHLO type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14269 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13842] Cannot pickle Ellipsis or NotImplemented
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5353357382e2 by Łukasz Langa in branch 'default': #13842: check whether PyUnicode_FromString succeeded http://hg.python.org/cpython/rev/5353357382e2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13842 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14235] test_cmd.py does not correctly call reload()
Éric Araujo mer...@netwok.org added the comment: Ah, right. Will apply your patch. -- assignee: - eric.araujo versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14235 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14238] python shouldn't need username in passwd database
Arkadiusz MiskiewiczArkadiusz Miskiewicz ar...@maven.pl added the comment: $ LC_ALL=C sudo -u '#' -g '#' /bin/sh -c 'unset HOME ; python -c ' Traceback (most recent call last): File /usr/share/python2.7/site.py, line 567, in module main() File /usr/share/python2.7/site.py, line 549, in main known_paths = addusersitepackages(known_paths) File /usr/share/python2.7/site.py, line 278, in addusersitepackages user_site = getusersitepackages() File /usr/share/python2.7/site.py, line 253, in getusersitepackages user_base = getuserbase() # this will also set USER_BASE File /usr/share/python2.7/site.py, line 243, in getuserbase USER_BASE = get_config_var('userbase') File /usr/share/python2.7/sysconfig.py, line 522, in get_config_var return get_config_vars().get(name) File /usr/share/python2.7/sysconfig.py, line 426, in get_config_vars _CONFIG_VARS['userbase'] = _getuserbase() File /usr/share/python2.7/sysconfig.py, line 184, in _getuserbase return env_base if env_base else joinuser(~, .local) File /usr/share/python2.7/sysconfig.py, line 171, in joinuser return os.path.expanduser(os.path.join(*args)) File /usr/share/python2.7/posixpath.py, line 260, in expanduser userhome = pwd.getpwuid(os.getuid()).pw_dir KeyError: 'getpwuid(): uid not found: ' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14238] python shouldn't need username in passwd database
STINNER Victor victor.stin...@gmail.com added the comment: See also the issue #10496. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2
Tetsuya Morimoto tetsuya.morim...@gmail.com added the comment: I can reproduce it on Mac OS X. I made a patch which checks the func_name attribute of function before it refers. It works for me. However, I wonder if a function has both func.im_self and func.func_name? Tell me the background because I'm newbie for distutils2. -- keywords: +patch nosy: +t2y Added file: http://bugs.python.org/file24801/distutils2_pypi_wrapper.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14002 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13394] Patch to increase aifc lib test coverage
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the patches! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13394 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2
Tarek Ziadé ziade.ta...@gmail.com added the comment: see Bug 14263 also -- dependencies: +switch_index_if_fails fails on py2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14002 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14270] Can't install a package in a specific directory
New submission from Mathieu Leduc-Hamel marra...@gmail.com: When using distutils2.install.install_from_infos to install a package, no matter if you have an install_path parameter or not, it doesn't work. The problem seems to resided at: distutils2.install._run_install_from_archive Doesn't have any dest_dir parameter -- assignee: eric.araujo components: Distutils2 messages: 155498 nosy: alexis, eric.araujo, mlhamel, tarek priority: normal severity: normal status: open title: Can't install a package in a specific directory versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14270 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14238] python shouldn't need username in passwd database
Ali Ikinci a...@ikinci.info added the comment: I would suggest that this issue is the same as http://bugs.python.org/issue10496 like Victor pointed out and would say close it because it is a duplicate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13450] add assertions to implement the intent in ''.format_map test
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 995cddd15313 by Eric V. Smith in branch '3.2': str.format_map tests don't do what they say: fix to actually implement the intent of the test. Closes #13450. http://hg.python.org/cpython/rev/995cddd15313 New changeset 0df295d590a8 by Eric V. Smith in branch 'default': str.format_map tests don't do what they say: fix to actually implement the intent of the test. Closes #13450. Patch by Akira Li. http://hg.python.org/cpython/rev/0df295d590a8 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13450 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO
Dan Boswell fruitn...@gmail.com added the comment: Attached a diff containing a unit-test for this behavior. -- keywords: +patch Added file: http://bugs.python.org/file24802/failing_test.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14269 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14104] Implement time.monotonic() on Mac OS X
STINNER Victor victor.stin...@gmail.com added the comment: Attached is a patch which implements time.monotonic() using mach_absolute_time() / mach_timebase_info(). Is it possible that mach_timebase_info() fails? No according to the Technical QA QA1398. time * timebase.numer / timebase.denom time * timebase.numer may overflow, you should maybe multiply using the double type to avoid the overflow. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13394] Patch to increase aifc lib test coverage
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13394 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14271] remove setup.py from the doc
New submission from Tarek Ziadé ziade.ta...@gmail.com: http://docs.python.org/dev/packaging/index.html we still have setup.py pages here from the old doc -- assignee: eric.araujo components: Distutils2 messages: 155503 nosy: alexis, eric.araujo, j1m, tarek priority: normal severity: normal status: open title: remove setup.py from the doc versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14271 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14272] ast.c: windows compile error
New submission from Stefan Krah stefan-use...@bytereef.org: The Windows build seems to be broken: Python-ast.c ..\Python\Python-ast.c(459) : error C2059: syntax error : ';' ..\Python\Python-ast.c(461) : error C2059: syntax error : '}' ..\Python\Python-ast.c(549) : error C2065: 'AST_object' : undeclared identifier ..\Python\Python-ast.c(581) : error C2065: 'AST_object' : undeclared identifier ..\Python\Python-ast.c(581) : error C2059: syntax error : ')' ..\Python\Python-ast.c(596) : fatal error C1903: unable to recover from previous error(s); stopping compilatio n dtoa.c 10..\Python\dtoa.c -- components: Build messages: 155504 nosy: skrah priority: normal severity: normal status: open title: ast.c: windows compile error type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14272 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12978] Figure out extended attributes on BSDs
Nicholas Riley com-python-b...@sabi.net added the comment: I've spent a few hours looking at xattr and the Linux/OS X (10.4+) implementations. Bob Ippolito's xattr module implements the OS X xattr interface on Linux, Solaris (9+) and FreeBSD. Linux and OS X are pretty close; FreeBSD and Solaris are substantially different from either and the Solaris implementation is somewhat incomplete/broken. The OS X differences from Linux are: • Instead of l* functions, the XATTR_NOFOLLOW option • XATTR_NOSECURITY and XATTR_NODEFAULT are in the headers but essentially unavailable as the kernel code always returns EINVAL for them. • XATTR_SHOWCOMPRESSION to expose the HFS compression stuff, which I can't imagine many people needing • XATTR_MAXNAMELEN (but no equivalent to XATTR_SIZE_MAX). Linux has a corresponding XATTR_NAME_MAX, which we should probably expose too. • XATTR_FINDERINFO_NAME and XATTR_RESOURCEFORK_NAME for some standard attribute names. I would imagine these are worth exposing. I don't see any problems supporting the currently exposed Linux API on OS X (I could probably find a usable value for XATTR_SIZE_MAX), but it's unclear if that is the right way to go forward. Suggestions? -- nosy: +nriley ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12978 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12978] Figure out extended attributes on BSDs
Changes by Nicholas Riley com-python-b...@sabi.net: -- nosy: +bob.ippolito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12978 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14271] remove setup.py from the doc
Éric Araujo mer...@netwok.org added the comment: I have a clone with this fix and many more improvements. -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Update packaging documentation versions: +3rd party -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14271 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14104] Implement time.monotonic() on Mac OS X
Nicholas Riley com-python-b...@sabi.net added the comment: timebase.numer and timebase.denom are always 1 in practice (see the note in the tech QA); I included them for completeness, but maybe it's just better to not bother? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14184] test_recursion_limit fails on OS X when compiled with clang
Ned Deily n...@acm.org added the comment: 3.2 also fails when compiled on 10.7 with clang. Issue9670 had increased the secondary stack size for OS X and FreeBSD by an empirically-determined amount to reduce the chance of crashes for recursive function calls. Continuing that somewhat kludgey strategy, the attached patch increases the stack size on OS X to a value such that the test no longer crashes. It also separates the values for FreeBSD and OS X. -- keywords: +patch stage: needs patch - patch review versions: +Python 3.2 Added file: http://bugs.python.org/file24803/issue14184.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14184 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14273] handler not properly initialized
New submission from Tarek Ziadé ziade.ta...@gmail.com: $ ./pysetup dwqqwddwq No handlers could be found for logger distutils2 -- assignee: eric.araujo components: Distutils2 messages: 155509 nosy: alexis, eric.araujo, tarek priority: high severity: normal status: open title: handler not properly initialized versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14267] TimedRotatingFileHandler chooses wrong file name due to daylight saving time spring forward
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +vinay.sajip versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14267 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14273] distutils2: logging handler not properly initialized
Éric Araujo mer...@netwok.org added the comment: I’ve seen that too when running “python -m packaging.run”, but I don’t understand why the behavior is different when running pysetup vs. ./pysetup vs. python -m: all of these run the same code. -- nosy: +vinay.sajip title: handler not properly initialized - distutils2: logging handler not properly initialized versions: +3rd party -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14273 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14104] Implement time.monotonic() on Mac OS X
STINNER Victor victor.stin...@gmail.com added the comment: timebase.numer and timebase.denom are always 1 in practice In this case, you will not lose precision and it's safe to cast to double to multiply and divide ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14259] re.finditer() doesn't accept keyword arguments
Sean Reifschneider j...@tummy.com added the comment: Working on this. -- nosy: +jafo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14259 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14104] Implement time.monotonic() on Mac OS X
Changes by Ned Deily n...@acm.org: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14274] pysetup does not look at requires.txt
New submission from Tarek Ziadé ziade.ta...@gmail.com: the installer needs to read requires.txt to build the deps list as well -- assignee: eric.araujo components: Distutils2 messages: 155513 nosy: alexis, eric.araujo, tarek priority: normal severity: normal status: open title: pysetup does not look at requires.txt type: behavior versions: 3rd party, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14274 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14274] pysetup does not look at requires.txt
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: eric.araujo - alexis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14274 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14275] pysetup create doesn't handle install requirements
New submission from Jan-Jaap Driessen janjaapdriessen+pythonb...@gmail.com: Distutils2 pysetup can take an existing setuptools based project and convert it into the distutils2 setup.cfg syntax using `pysetup create`. The install requirements are not converted: {{{ svn co svn+ssh://svn.zope.org/repos/main/zope.dublincore/trunk pysetup create }}} The original dependencies in 'install_requires' in setup.py are not found in the resulting setup.cfg. -- assignee: eric.araujo components: Distutils2 messages: 155514 nosy: alexis, eric.araujo, j1m, janjaapdriessen, tarek priority: normal severity: normal status: open title: pysetup create doesn't handle install requirements type: behavior versions: Python 2.6, Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14275 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14259] re.finditer() doesn't accept keyword arguments
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14259 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14104] Implement time.monotonic() on Mac OS X
Nicholas Riley com-python-b...@sabi.net added the comment: OK, you have a point :-) New patch attached. -- Added file: http://bugs.python.org/file24804/monotonic-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat
Gregory P. Smith g...@krypto.org added the comment: Oddly, test_sax fails once this patch is applied (using 3.1). debugging now. test_sax test test_sax failed -- Traceback (most recent call last): File /home/greg/sandbox/python/cpython/3.1/Lib/xml/sax/expatreader.py, line 207, in feed self._parser.Parse(data, isFinal) xml.parsers.expat.ExpatError: unbound prefix: line 1, column 59 During handling of the above exception, another exception occurred: Traceback (most recent call last): File /home/greg/sandbox/python/cpython/3.1/Lib/test/test_sax.py, line 310, in test_5027_1 parser.parse(test_xml) File /home/greg/sandbox/python/cpython/3.1/Lib/xml/sax/expatreader.py, line 107, in parse xmlreader.IncrementalParser.parse(self, source) File /home/greg/sandbox/python/cpython/3.1/Lib/xml/sax/xmlreader.py, line 123, in parse self.feed(buffer) File /home/greg/sandbox/python/cpython/3.1/Lib/xml/sax/expatreader.py, line 211, in feed self._err_handler.fatalError(exc) File /home/greg/sandbox/python/cpython/3.1/Lib/xml/sax/handler.py, line 38, in fatalError raise exception xml.sax._exceptions.SAXParseException: unknown:1:59: unbound prefix -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14234 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14276] install latest version of a package
New submission from Jan-Jaap Driessen janjaapdriessen+pythonb...@gmail.com: I would like to install the latest version of a package. The pysetup command does not give me easy access to do this. Can we add an 'upgrade' method? -- assignee: eric.araujo components: Distutils2 messages: 155517 nosy: alexis, eric.araujo, janjaapdriessen, tarek priority: normal severity: normal status: open title: install latest version of a package versions: Python 2.6, Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14276 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14277] time.monotonic docstring does not mention the time unit returned
New submission from Nicholas Riley com-python-b...@sabi.net: Currently: help(time.monotonic) Help on built-in function monotonic in module time: monotonic(...) monotonic() - float Monotonic clock. The reference point of the returned value is undefined so only the difference of consecutive calls is valid. -- components: Library (Lib) messages: 155518 nosy: nriley priority: normal severity: normal status: open title: time.monotonic docstring does not mention the time unit returned versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14179] Test coverage for lib/re.py
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset cc48eef234dd by Ezio Melotti in branch '2.7': #14179: add tests for re.compile. Patch by Florian Mladitsch. http://hg.python.org/cpython/rev/cc48eef234dd -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14179 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14104] Implement time.monotonic() on Mac OS X
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14104] Implement time.monotonic() on Mac OS X
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3c875719e46d by Victor Stinner in branch 'default': Issue #14104: Implement time.monotonic() on Mac OS X, http://hg.python.org/cpython/rev/3c875719e46d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14104] Implement time.monotonic() on Mac OS X
STINNER Victor victor.stin...@gmail.com added the comment: Path commited, thanks for the patch Nicholas! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14276] installing latest version of a project
Éric Araujo mer...@netwok.org added the comment: When you install a project for the first time and you don’t specify a version number, i.e. pysetup install spam, the latest version (or the latest final version (non-alpha/beta/rc), Alexis knows better) should be installed. This could be added to the docs. If you later run “pysetup install spam (X.Y)” where X.Y is a higher version than what’s installed, then the project should be upgraded, unless it breaks other project’s dependencies (i.e. ham depends on spam X.Y). There aren’t probably any tests for this. If you have a version of spam installed and want to upgrade to the latest version that still satisfies other installed projects’ dependencies, without having to give a version number, (your request IIUC), then you could use a trick like “pysetup install spam ( 99.99)” (untested). However, I agree that “pysetup install --upgrade spam” is a better UI: it’s less kludgy and already familiar to pip and easy_install users. -- stage: - needs patch title: install latest version of a package - installing latest version of a project versions: +3rd party -Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14276 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14179] Test coverage for lib/re.py
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset fafe12f2a030 by Ezio Melotti in branch '3.2': #14179: add tests for re.compile. Patch by Florian Mladitsch. http://hg.python.org/cpython/rev/fafe12f2a030 New changeset 4a5eafcdde11 by Ezio Melotti in branch 'default': #14179: merge with 3.2. http://hg.python.org/cpython/rev/4a5eafcdde11 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14179 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14179] Test coverage for lib/re.py
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the patch! -- assignee: - ezio.melotti resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14179 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14277] time.monotonic docstring does not mention the time unit returned
STINNER Victor victor.stin...@gmail.com added the comment: time.monotonic() has 3 implementations: * Windows: QueryPerformanceCounter() with QueryPerformanceFrequency() * Mac OS X: mach_absolute_time() with mach_timebase_info() * UNIX: clock_gettime(CLOCK_MONOTONIC_RAW) or clock_gettime(CLOCK_MONOTONIC) QueryPerformanceFrequency() returns the frequency in counts per second according to the doc. http://msdn.microsoft.com/en-us/library/windows/desktop/ms644905(v=vs.85).aspx mach_absolute_time() with mach_timebase_info() returns a number of seconds, but Python uses *1e-9. clock_gettime() uses a timespec structure and Python uses *1e-9. It looks like to mention that time.monotonic() unit is seconds. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14277 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com