[issue14285] Traceback wrong on ImportError while executing a package

2012-03-12 Thread Marc Schlaich
New submission from Marc Schlaich : It is very simple to reproduce this error. There is an executable package: package/ __init__.py __main__.py The __init__ imports a missing module: import missing_module And the __main__ imports from it: from . import missing_module Now I

[issue14284] unicodeobject error on macosx in build process

2012-03-12 Thread Ezio Melotti
Ezio Melotti added the comment: See #13241. -- nosy: +ezio.melotti resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7) ___ Python tracker

[issue14284] unicodeobject error on macosx in build process

2012-03-12 Thread Hervé Coatanhay
New submission from Hervé Coatanhay : On a fresh install from mercurial on macosx. ./python -SE -m sysconfig --generate-posix-vars Could not find platform dependent libraries Consider setting $PYTHONHOME to [:] Assertion failed: (compact->utf8_length == 0), function _PyUnicode_CheckConsistency

[issue14282] lib2to3.fixer_util.touch_import('__future__', ...) can lead to SyntaxError in code

2012-03-12 Thread Luke Macken
Changes by Luke Macken : -- keywords: +patch Added file: http://bugs.python.org/file24814/python-lib2to3-touch-future-import.patch ___ Python tracker ___ ___

[issue14283] match.pos describes that match object has methods search() and match()

2012-03-12 Thread py.user
New submission from py.user : http://docs.python.org/py3k/library/re.html#re.match.pos http://docs.python.org/py3k/library/re.html#re.match.endpos "which was passed to the search() or match() method of a match object." http://docs.python.org/py3k/library/re.html#re.match.re match object -> regu

[issue14260] re.groupindex available for modification and continues to work, having incorrect data inside it

2012-03-12 Thread py.user
py.user added the comment: the first message shows how it can work with a broken dict Éric Araujo wrote: > But regex.sub is affected only if you manually muck with the dict, right? I can get code from anywhere -- ___ Python tracker

[issue14282] lib2to3.fixer_util.touch_import('__future__', ...) can lead to SyntaxError in code

2012-03-12 Thread Luke Macken
New submission from Luke Macken : Problem: lib2to3.fixer_util.touch_import('__future__', ...) will insert the import statement below all other imports. This will then trigger the following error: SyntaxError: from __future__ imports must occur at the beginning of the file How to reprod

[issue8954] wininst regression: errors when building on linux

2012-03-12 Thread Sean Reifschneider
Sean Reifschneider added the comment: Éric: In http://bugs.python.org/issue8954#msg135902 are you saying: This issue needs to be re-targeted to a newer Python. Close -- won't fix. Something else? This issue seems to be stuck here, any ideas on what needs to be done to move this forward?

[issue14246] Accelerated ETree XMLParser cannot handle io.StringIO

2012-03-12 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a patch that fixes the problem and adds a test. xmlparser_parse from _elementtree will now be able to handle Unicode, encoding it to bytes with UTF-8, parallel to the way it's done in pyexpat. I would appreciate a review for the patch. -- ke

[issue12640] test_ctypes seg fault (test_callback_register_double); armv7; gcc 4.5.1

2012-03-12 Thread python272
python272 added the comment: test_ctypes is successful in 2.7.3rc1, armv7l (using --with-system-ffi (3.0.10); i haven't tested w/out that config option) note: Python-2.7.3rc1/Modules/_ctypes/libffi/configure contains this line: VERSION='3.0.10rc0' (2.7.2 has the same line) but upstream libf

[issue8739] Update to smtpd.py to RFC 5321

2012-03-12 Thread Dan Boswell
Dan Boswell added the comment: I built on Michele's patch during the pycon sprint, addressing some of the concerns rightly raised in previous comment: 1. Turn off the SIZE extension if client uses HELO (though limits are still used internally to limit message size for DoS protection), and rep

[issue14250] for string patterns regex.flags is never equal to 0

2012-03-12 Thread Eli Bendersky
Eli Bendersky added the comment: Oh, sorry I meant http://bugs.python.org/issue13385 -- ___ Python tracker ___ ___ Python-bugs-list m

[issue14281] Add unit test for cgi.escape method

2012-03-12 Thread Brian Landers
New submission from Brian Landers : The cgi.escape method is deprecated, but it should still have test coverage. This patch adds a test for it. -- components: Tests files: cgi_test_escape.patch keywords: patch messages: 155563 nosy: packetslave priority: normal severity: normal status:

[issue14250] for string patterns regex.flags is never equal to 0

2012-03-12 Thread R. David Murray
R. David Murray added the comment: It doesn't look like it. Is that the right issue number? -- ___ Python tracker ___ ___ Python-bug

[issue14250] for string patterns regex.flags is never equal to 0

2012-03-12 Thread Eli Bendersky
Eli Bendersky added the comment: Issue #13358 may be related -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mail

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2012-03-12 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +brian.curtin, georg.brandl, ncoghlan, tim.golden stage: -> test needed type: -> behavior versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker __

[issue14260] re.groupindex available for modification and continues to work, having incorrect data inside it

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: But regex.sub is affected only if you manually muck with the dict, right? If so, then it looks like a case of “it hurts when I do this” (the doctor’s reply: “Don’t do this.”) -- nosy: +eric.araujo ___ Python tracker

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-12 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +belopolsky, facundobatista, haypo, mark.dickinson, rhettinger ___ Python tracker ___ ___ Python-bug

[issue8070] Infinite loop in PyRun_InteractiveLoopFlags() if PyRun_InteractiveOneFlags() raises an error

2012-03-12 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue14250] for string patterns regex.flags is never equal to 0

2012-03-12 Thread R. David Murray
R. David Murray added the comment: Heh. Good point. Documenting this is a clear way may be non-trivial. -- ___ Python tracker ___ _

[issue14250] for string patterns regex.flags is never equal to 0

2012-03-12 Thread py.user
py.user added the comment: >>> import re >>> p = re.compile(br'') >>> p.flags 0 >>> -- title: regex.flags is never equal to 0 -> for string patterns regex.flags is never equal to 0 ___ Python tracker

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2012-03-12 Thread Sean Reifschneider
Sean Reifschneider added the comment: Martin: They are looking for you to review this, in particular see: http://bugs.python.org/issue7511#msg106420 -- assignee: tarek -> loewis nosy: +jafo ___ Python tracker

[issue10037] multiprocessing.pool processes started by worker handler stops working

2012-03-12 Thread Sean Reifschneider
Sean Reifschneider added the comment: The attached patch does change the semantics somewhat, but I don't fully understand how much. In particular: It changes the "get()" call to be turned into "get(timeout=1.0)" if inqueue doesn't have a _reader attribute. In the case that inqueue doesn't ha

[issue1531415] parsetok.c emits warnings by writing to stderr

2012-03-12 Thread Sean Reifschneider
Sean Reifschneider added the comment: Michele: Do you know what needs to be done to determine the resolution to the _warnings/pgen question? If not, maybe asking the question on python-dev could get some advice. -- nosy: +jafo ___ Python tracker

[issue13959] Re-implement parts of imp in pure Python

2012-03-12 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: Nobody can remember everything: I tried in a shell and looked at the docs to find it :) -- ___ Python tracker ___

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-12 Thread R. David Murray
R. David Murray added the comment: Duh. I should have remembered that the io module used None to represent the default encoding. Thanks, Éric. -- ___ Python tracker ___ __

[issue14002] AttributeError in distutils2.pypi.wrapper

2012-03-12 Thread Tetsuya Morimoto
Changes by Tetsuya Morimoto : Removed file: http://bugs.python.org/file24801/distutils2_pypi_wrapper.patch ___ Python tracker ___ ___ Python-b

[issue8942] __path__ attribute of modules loaded by zipimporter is untested

2012-03-12 Thread R. David Murray
R. David Murray added the comment: I committed Tatiana's patch because it looks reasonable to me, but I'm not familiar enough with zipimport to know if additional tests are needed. If you think there are additional tests that should be added, please reopen the issue. -- nosy: +r.davi

[issue8942] __path__ attribute of modules loaded by zipimporter is untested

2012-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7e576ad85663 by R David Murray in branch 'default': #8942: add test for __path__ contents in zipimport tests http://hg.python.org/cpython/rev/7e576ad85663 -- nosy: +python-dev ___ Python tracker

[issue14002] AttributeError in distutils2.pypi.wrapper

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: [Paul] > To what? The individual packages? No, I meant distutils2 bugs. I will open them when I get a minute. You’re right that projects using metadata 1.0 or 1.1 don’t have to use a version conforming to PEP 386, and that packaging should warn when using the c

[issue14184] test_recursion_limit fails on OS X when compiled with clang

2012-03-12 Thread Ned Deily
Ned Deily added the comment: It looks like the increase isn't quite big enough for the clang in Xcode 4.2. Revised patch uses a slightly bigger size. -- Added file: http://bugs.python.org/file24810/issue14184_rev1.patch ___ Python tracker

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-12 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr added the comment: Excellent! Thanks for all remarks, Éric! I'll follow your suggestions and will submit a new patch. -- ___ Python tracker ___ ___

[issue10543] Test discovery (unittest) does not work with jython

2012-03-12 Thread Michael Foord
Michael Foord added the comment: Fixed in 2.7. Worth fixing in Python 3.2 / 3.2 anyway as sourceless distributions (bytecode only) are still possible. -- versions: +Python 3.2, Python 3.3 ___ Python tracker _

[issue2843] New methods for existing Tkinter widgets

2012-03-12 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue14260] re.groupindex available for modification and continues to work, having incorrect data inside it

2012-03-12 Thread Matthew Barnett
Matthew Barnett added the comment: It appears I was wrong. :-( The simplest solution in that case is for it to return a _copy_ of the dict. -- ___ Python tracker ___ __

[issue1178863] Variable.__init__ uses self.set(), blocking specialization

2012-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 79bb99ec2464 by Martin v. Löwis in branch 'default': Issue #1178863: Separate initialisation from setting when initializing http://hg.python.org/cpython/rev/79bb99ec2464 -- nosy: +python-dev ___ Python t

[issue14280] packaging.pypi should not require checksums

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: I’m not sure that this report should not be merged with #14279, but Alexis will judge that. -- assignee: eric.araujo -> alexis title: simple indexes (in wrappers) should not require md5 hashes -> packaging.pypi should not require checksums versions: +3rd

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: We can use locale.getpreferredencoding, or be smarter and just pass down encoding=encoding to TextIOWrapper and let *it* call getpreferredencoding if it’s given a None :) -- ___ Python tracker

[issue14280] simple indexes (in wrappers) should not require md5 hashes

2012-03-12 Thread Jim Fulton
New submission from Jim Fulton : Requiring md5s makes it hard to implement simple indexes with simple web servers, where simple indexes include flat directories of distributions. -- assignee: eric.araujo components: Distutils2 messages: 155542 nosy: alexis, eric.araujo, j1m, tarek prior

[issue14277] time.monotonic docstring does not mention the time unit returned

2012-03-12 Thread Nicholas Riley
Nicholas Riley added the comment: According to http://juliusdavies.ca/posix_clocks/clock_realtime_linux_faq.html, CLOCK_REALTIME can go backwards. CLOCK_MONOTONIC_RAW is best where available (like QueryPerformanceFrequency / mach_absolute_time) and CLOCK_MONOTONIC is pretty good. So I have u

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-12 Thread R. David Murray
R. David Murray added the comment: I think it should use the same default as open, but frankly I couldn't remember the right way to achieve that. Suggestions welcome :) -- nosy: +r.david.murray ___ Python tracker

[issue14279] packaging.pypi should support flat directories of distributions

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: +1 -- stage: -> needs patch title: simple indexes (in wrappers) should support flat directories of distributions -> packaging.pypi should support flat directories of distributions versions: +3rd party, Python 3.3 ___

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch. I commented on not-so-important things on the code review site (which should have sent an email to Tatiana) and wanted to raise an issue here. Is it best that the encoding used defaults to Python’s default encoding (UTF-8) or the I/O defa

[issue14279] simple indexes (in wrappers) should support flat directories of distributions

2012-03-12 Thread Jim Fulton
New submission from Jim Fulton : Currently, distutils2.pypi.wrapper has a notion of a simple index, which has subdirectories for each project as pypi/simple does. This is good. It should also support flat indexes ala a directory of files. -- assignee: eric.araujo components: Distutils

[issue14259] re.finditer() doesn't accept keyword arguments

2012-03-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1adb114343f9 by Sean Reifschneider in branch 'default': closes #14259 re.finditer() now takes keyword arguments: pos, endpos. http://hg.python.org/cpython/rev/1adb114343f9 -- nosy: +python-dev resolution: -> fixed stage: patch review -> co

[issue14278] email.utils.localtime throws exception if time.daylight is False

2012-03-12 Thread Brian Jones
New submission from Brian Jones : In email.utils.localtime, there's a variable 'offset' that will only exist if time.daylight evaluates to True. If time.daylight evaluates to False, you'll get an UnboundLocalError, because 'offset' is being referenced without being assigned. The attached pat

[issue10496] Python startup should not require passwd entry

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: I reviewed haypo’s patch. I’d be happy to update it to address my remarks if you want me to. -- ___ Python tracker ___ _

[issue14251] HTMLParser decode issue

2012-03-12 Thread Ezio Melotti
Ezio Melotti added the comment: I test this again and indeed a bare s.decode() is not enough to fix the problem. The attribute might contain non-ascii characters, and that will result in an error (see for example the "test.py" script attached to #3932). The correct solution is to decode the

[issue5758] fileinput.hook_compressed returning bytes from gz file

2012-03-12 Thread Tatiana Al-Chueyr
Tatiana Al-Chueyr added the comment: I had a lot of help of R. David Murray, could someone review our patch, please? We are specially concerned about backward compatibility. -- keywords: +patch Added file: http://bugs.python.org/file24807/issue5758_fileinput_gzip_with_encoding.patch

[issue14238] python shouldn't need username in passwd database

2012-03-12 Thread STINNER Victor
STINNER Victor added the comment: > This patch fixes the issue but needs review. > It is my first patch ever so be nice :) Python should not decide what is the default home directory. The issue is in the site module: I proposed nonexistent_user.patch in the issue #10496 to fix the issue in th

[issue10496] Python startup should not require passwd entry

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: Adding people from the duplicate report #14238. Georg said: > there should be a guard here that just doesn't add user site directories if > the lookup fails. I concurred and added: > we also need to fix sysconfig; I think the right thing to do would be not to >

[issue14238] python shouldn't need username in passwd database

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: Indeed. -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> "import site failed" when Python can't find home directory (sysconfig._getuserbase) ___ Python tracke

[issue14270] Can't install a project in a specific directory

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: Mathieu is working on a patch. -- stage: -> test needed title: Can't install a package in a specific directory -> Can't install a project in a specific directory versions: +3rd party -Python 2.7, Python 3.1, Python 3.2 __

[issue1178863] Variable.__init__ uses self.set(), blocking specialization

2012-03-12 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1178863] Variable.__init__ uses self.set(), blocking specialization

2012-03-12 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- keywords: +patch versions: +Python 3.3 -Python 3.2 Added file: http://bugs.python.org/file24806/tk.patch ___ Python tracker ___ _

[issue13703] Hash collision security issue

2012-03-12 Thread STINNER Victor
STINNER Victor added the comment: > FWIW I upgraded to ubuntu pangolin beta over the weekend, > which includes 2.7.3rc1, ... > > File "/usr/lib/python2.7/random.py", line 47, in >from os import urandom as _urandom > ImportError: cannot import name urandom It looks like you are using rando

[issue14259] re.finditer() doesn't accept keyword arguments

2012-03-12 Thread Sean Reifschneider
Sean Reifschneider added the comment: Attached is a patch which implements this, including updated tests. I would appreciate a review of this patch. -- assignee: -> ezio.melotti keywords: +needs review, patch stage: -> patch review Added file: http://bugs.python.org/file24805/cpytho

[issue14277] time.monotonic docstring does not mention the time unit returned

2012-03-12 Thread STINNER Victor
STINNER Victor 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) QueryPerforman

[issue14179] Test coverage for lib/re.py

2012-03-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue14179] Test coverage for lib/re.py

2012-03-12 Thread Roundup Robot
Roundup Robot 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:

[issue14276] installing latest version of a project

2012-03-12 Thread Éric Araujo
Éric Araujo 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

[issue14104] Implement time.monotonic() on Mac OS X

2012-03-12 Thread STINNER Victor
STINNER Victor added the comment: Path commited, thanks for the patch Nicholas! -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue14104] Implement time.monotonic() on Mac OS X

2012-03-12 Thread Roundup Robot
Roundup Robot 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

[issue14104] Implement time.monotonic() on Mac OS X

2012-03-12 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue14179] Test coverage for lib/re.py

2012-03-12 Thread Roundup Robot
Roundup Robot 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

[issue14277] time.monotonic docstring does not mention the time unit returned

2012-03-12 Thread Nicholas Riley
New submission from Nicholas Riley : 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

[issue14276] install latest version of a package

2012-03-12 Thread Jan-Jaap Driessen
New submission from Jan-Jaap Driessen : 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, janja

[issue14234] CVE-2012-0876 (hash table collisions CPU usage DoS) for embedded copy of expat

2012-03-12 Thread Gregory P. Smith
Gregory P. Smith 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.Par

[issue14104] Implement time.monotonic() on Mac OS X

2012-03-12 Thread Nicholas Riley
Nicholas Riley added the comment: OK, you have a point :-) New patch attached. -- Added file: http://bugs.python.org/file24804/monotonic-2.patch ___ Python tracker ___

[issue14259] re.finditer() doesn't accept keyword arguments

2012-03-12 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue14275] pysetup create doesn't handle install requirements

2012-03-12 Thread Jan-Jaap Driessen
New submission from Jan-Jaap Driessen : 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 py

[issue14274] pysetup does not look at requires.txt

2012-03-12 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: eric.araujo -> alexis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue14274] pysetup does not look at requires.txt

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé : 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 requi

[issue14104] Implement time.monotonic() on Mac OS X

2012-03-12 Thread Ned Deily
Changes by Ned Deily : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue14259] re.finditer() doesn't accept keyword arguments

2012-03-12 Thread Sean Reifschneider
Sean Reifschneider added the comment: Working on this. -- nosy: +jafo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue14104] Implement time.monotonic() on Mac OS X

2012-03-12 Thread STINNER Victor
STINNER Victor 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

[issue14273] distutils2: logging handler not properly initialized

2012-03-12 Thread Éric Araujo
Éric Araujo 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 initialize

[issue14267] TimedRotatingFileHandler chooses wrong file name due to daylight saving time "spring forward"

2012-03-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +vinay.sajip versions: +Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker ___ ___ Python-bugs

[issue14273] handler not properly initialized

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé : $ ./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 initialize

[issue14184] test_recursion_limit fails on OS X when compiled with clang

2012-03-12 Thread Ned Deily
Ned Deily 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

[issue14104] Implement time.monotonic() on Mac OS X

2012-03-12 Thread Nicholas Riley
Nicholas Riley added the comment: timebase.numer and timebase.denom are always 1 in practice (see the "note" in the tech Q&A); I included them for completeness, but maybe it's just better to not bother? -- ___ Python tracker

[issue14271] remove setup.py from the doc

2012-03-12 Thread Éric Araujo
Éric Araujo 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

[issue12978] Figure out extended attributes on BSDs

2012-03-12 Thread Nicholas Riley
Changes by Nicholas Riley : -- nosy: +bob.ippolito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12978] Figure out extended attributes on BSDs

2012-03-12 Thread Nicholas Riley
Nicholas Riley 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 di

[issue14272] ast.c: windows compile error

2012-03-12 Thread Stefan Krah
New submission from Stefan Krah : The Windows build seems to be broken: Python-ast.c ..\Python\Python-ast.c(459) : error C2059: syntax error : ';'

[issue14271] remove setup.py from the doc

2012-03-12 Thread Tarek Ziadé
New submission from Tarek Ziadé : 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 titl

[issue13394] Patch to increase aifc lib test coverage

2012-03-12 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue14104] Implement time.monotonic() on Mac OS X

2012-03-12 Thread STINNER Victor
STINNER Victor 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 Q&A QA1398. > time * timebase.numer / timebase.denom "time * timebase.n

[issue14269] SMTPD server does not enforce client starting mail transaction with HELO or EHLO

2012-03-12 Thread Dan Boswell
Dan Boswell 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 __

[issue13450] add assertions to implement the intent in ''.format_map test

2012-03-12 Thread Roundup Robot
Roundup Robot 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

[issue14238] python shouldn't need username in passwd database

2012-03-12 Thread Ali Ikinci
Ali Ikinci 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

[issue14270] Can't install a package in a specific directory

2012-03-12 Thread Mathieu Leduc-Hamel
New submission from Mathieu Leduc-Hamel : 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 par

[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2

2012-03-12 Thread Tarek Ziadé
Tarek Ziadé added the comment: see Bug 14263 also -- dependencies: +switch_index_if_fails fails on py2 ___ Python tracker ___ ___ Pyt

[issue13394] Patch to increase aifc lib test coverage

2012-03-12 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patches! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue14002] distutils2 fails to install a package from PyPI on Python 2.7.2

2012-03-12 Thread Tetsuya Morimoto
Tetsuya Morimoto 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

[issue14238] python shouldn't need username in passwd database

2012-03-12 Thread STINNER Victor
STINNER Victor added the comment: See also the issue #10496. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue14238] python shouldn't need username in passwd database

2012-03-12 Thread Arkadiusz Miskiewicz Arkadiusz Miskiewicz
Arkadiusz MiskiewiczArkadiusz Miskiewicz 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 main() File "/usr/share/python2.7/s

[issue14235] test_cmd.py does not correctly call reload()

2012-03-12 Thread Éric Araujo
Éric Araujo added the comment: Ah, right. Will apply your patch. -- assignee: -> eric.araujo versions: +Python 3.2 ___ Python tracker ___ _

[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-03-12 Thread Roundup Robot
Roundup Robot 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

  1   2   >