[issue14097] Improve the "introduction" page of the tutorial

2012-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: > Be careful with whitespace changes. Here I agree with you and disagree with the PEP 8 (specifically where it says that "hypot2 = x*x + y*y" and "c = (a+b) * (a-b)" are "wrong"). In - >>> 3+1j*3 + >>> 3 + 1j * 3 I intentionally added spaces around all the

[issue12119] distutils and python -B

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: I thought about this and am not sure about my position. I am 100% convinced that what packaging does is the right thing. Modules like py_compile, compileall (in 3.2+) and packaging are able to compile with or without optimization depending on options that are g

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Hi Éric, some questions: 1)if test_tools is going to be the test for all the Tools (at least until it grows to much), shoudn't be be module doc something like “””Tests for scripts in Tools/**“”” 2)is the SkipTest “reindent” specific? Cheers, franc

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: Even if they know the meaning of "shallow" (which is not a really common word AFAICT), they might not know what it means in this context. Adding an entry to glossary might be a better solution. In this context I think the best solution would be to actually show

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: There are some minor errors in your v3 patch. I've attached a v4 that fixes them (as usual, tested on Windows and Linux): - s/special/sep/ in glob_to_re() - Add missing l(.) to filenames in test_process_template under 'graft d' >> - test_glob_to_re() was doin

[issue13340] list.index does not accept None as start or stop

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo : -- priority: high -> normal stage: committed/rejected -> commit review versions: -Python 2.7, Python 3.2 ___ Python tracker ___

[issue4256] argparse: provide a simple way to get a programmatically useful list of options

2012-02-25 Thread Zbyszek Szmek
Zbyszek Szmek added the comment: ZSH can just present it in a prettier way, and also includes slightly more info (the short explanations, ordering). > could print out enough information for both systems. Exactly. ZSH can use bash completion, but then it doesn't display the extra info. It wou

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: >> - test_glob_to_re() was doing two levels of escaping (r'\' -> r'') >> for its expected output when it should only do one (r'\' -> r'\\'). > Fix merged. I don’t fully understand why one place needs two escapes and the > others just one. I agree that thi

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Thanks a bunch. I’ll offer you cookies when we meet :) >> Fix merged. I don’t fully understand why one place needs two escapes and >> the others just one. > The places that use one level of escaping are the ones that deal with the > regex string directly. > In

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: [Éric] > New docstring: > > Tests for scripts in the Tools directory. > > This file contains regression tests for some of the scripts found in the > Tools directory of a Python checkout or tarball, such as reindent.py. > > When I commit I’ll also send to pyt

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: > if test_tools is going to be the test for all the Tools (at least until it > grows to much), Seriously, we don’t care about the size of test files. test_argparse.py is 4777 lines long :) > shoudn't be be module doc something like “””Tests for scripts in Tools

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: >>> Fix merged. I don’t fully understand why one place needs two escapes and >>> the others just one. >> The places that use one level of escaping are the ones that deal with the >> regex string directly. >> In glob_to_re() itself, the string you're building is

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Sorry, my fault: I meant "Test for Tools" instead of """Tests for reindent.py.""" (Im not talking about the skip message but the test documentation or the first line 0,0...) -- ___ Python tracker

[issue8171] bdist_wininst builds wrongly for --plat-name=win-amd64

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: I’ll look into this when I get to set up a Windows VM and learn more about wininst. -- assignee: tarek -> eric.araujo components: +Distutils2 nosy: +alexis, eric.araujo stage: patch review -> test needed versions: +3rd party, Python 3.3 -Python 3.1 _

[issue14102] argparse: add ability to create a man page

2012-02-25 Thread Andi Albrecht
Changes by Andi Albrecht : -- nosy: +andialbrecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8170] Wrong Paths for distutils build --plat-name=win-amd64

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Martin, Mark, can either of you comment on this? -- nosy: +eric.araujo, loewis, mhammond -terry.reedy versions: +Python 3.3 -Python 3.1 ___ Python tracker

[issue8171] bdist_wininst builds wrongly for --plat-name=win-amd64

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14120] ARM Ubuntu 3.x buildbot failing test_dbm

2012-02-25 Thread Nadeem Vawda
New submission from Nadeem Vawda : The ARM Ubuntu 3.x buildbot often fails test_dbm: http://www.python.org/dev/buildbot/all/builders/ARM%20Ubuntu%203.x/builds/364/steps/test/logs/stdio http://www.python.org/dev/buildbot/all/builders/ARM%20Ubuntu%203.x/builds/367/steps/test/logs/stdio http://www.

[issue14076] sqlite3 module ignores placeholers in CREATE TRIGGER code

2012-02-25 Thread Christian Schilling
Changes by Christian Schilling : -- nosy: +Christian.Schilling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14102] argparse: add ability to create a man page

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Andi, the author of the blog post, will work on a patch. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue14121] add a convenience C-API function for unpacking iterables

2012-02-25 Thread Stefan Behnel
New submission from Stefan Behnel : In the context of better interfacing of PyPy with Cython, it appears that simple looking things like PyTuple_GET_ITEM() are often rather involved in PyPy's C-API implementation. However, since functions/macros like these are used very frequently, this has an

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-25 Thread Tim Golden
Tim Golden added the comment: On 25/02/2012 08:09, Ezio Melotti wrote: > Even if they know the meaning of "shallow" (which is not a really common word > AFAICT) FWIW it's pretty much the only way of saying what it means. I've no idea how many people used it last year or anything, but if I need

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-25 Thread Ramchandra Apte
Ramchandra Apte added the comment: +1 for Éric Araujo's idea. -- nosy: +ramchandra.apte ___ Python tracker ___ ___ Python-bugs-list m

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: For the record: this issue blocks 3.2 as well. -- nosy: +benjamin.peterson, georg.brandl versions: +Python 2.7, Python 3.2 ___ Python tracker

[issue14081] Allow "maxsplit" argument to str.split() to be passed as a keyword argument

2012-02-25 Thread Nick Coghlan
Nick Coghlan added the comment: Ezio: I spotted an extraneous '[' hanging around in the updated doc signature for split, but otherwise looked fine. Éric: you're probably right, but I was sending them a note to suggest a simpler alternative, only to discover that the obvious approach of "maxsp

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: 18bbfed9aafa is the changeset that introduced the copy button. Maybe the part in the "extrahead" (in Doc/tools/sphinxext/layout.html, see also first chunk of the diff) block shouldn't be included in chm? -- ___ Python

[issue14082] shutil doesn't copy extended attributes

2012-02-25 Thread Hynek Schlawack
Hynek Schlawack added the comment: I'd tend to always copy xattrs – it seems that's what the user would expect to happen. A new parameter to _forbid_ it might make sense. However, I feel that there are already enough parameters in place. :-/ -- ___

[issue14116] Lock.__enter__() method returns True instead of self

2012-02-25 Thread Nick Coghlan
Nick Coghlan added the comment: "with Lock() as lock:" doesn't make any sense - you need to share the lock with other threads or code for it be useful, which means you can't create it inline in the with statement header. Instead, you have to store it somewhere else (usually as a closure refer

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-25 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: On Sat, Feb 25, 2012 at 09:35, Éric Araujo wrote: > What about this: > >  All slice operations return a new list containing the requested elements.   > This > -means that the following slice returns a shallow copy of the list *a*:: > +means that the follo

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: > FWIW it's pretty much the only way of saying what it means. However, even using "not deep" here would still be ambiguous. What's a deep copy? What's a non-deep copy? Using "shallow" might be a problem, but the real problem is that regardless of the wording,

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: JQuery and the other scripts (like sidebar.js) are part of Sphinx, whereas the copy button is something that was added to our instances only, by changing the template. -- ___ Python tracker

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2012-02-25 Thread Thomas Leonard
Thomas Leonard added the comment: Just to add a couple of data points to argue in favour of a secure-by-default behaviour: 0install.net: http://secunia.com/advisories/47935 (spoofing attack due to certificate names not being validated) Mozilla is recommending people avoid using Python's bui

[issue14082] shutil doesn't copy extended attributes

2012-02-25 Thread Charles-François Natali
Charles-François Natali added the comment: I'm also in favor of adding extended attributes to copy2: """ Similar to shutil.copy(), but metadata is copied as well """ extended attributes are metadata. And there are already too many copy functions... -- ___

[issue14082] shutil doesn't copy extended attributes

2012-02-25 Thread Hynek Schlawack
Hynek Schlawack added the comment: If nobody objects, I'd cook up a patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue14118] _pickle.c structure cleanup

2012-02-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm -1 on splitting the file. This is C, splitting it up will make it *harder* to understand, as you have to search across multiple files to find anything. If you want to make it more readable, I propose that you a) put a comment in the top explaining how the

[issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar

2012-02-25 Thread Steven Bethard
Steven Bethard added the comment: Yes, this is a known bug (Issue 11874). Patches welcome. -- resolution: -> duplicate superseder: -> argparse assertion failure with brackets in metavars ___ Python tracker _

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Georg Brandl
Georg Brandl added the comment: Be sure to notify me when you have committed a fix, as changes made now in the 3.2 branch will *not* show up in the final release. -- ___ Python tracker

[issue14074] argparse allows nargs>1 for positional arguments but doesn't allow metavar to be a tuple

2012-02-25 Thread Steven Bethard
Steven Bethard added the comment: Looks like the problem is that "_format_action_invocation" is not being as careful with the different possibilities for metavar as "_format_args" is. Patches welcome! -- ___ Python tracker

[issue14118] _pickle.c structure cleanup

2012-02-25 Thread Merlijn van Deen
Merlijn van Deen added the comment: See https://bitbucket.org/valhallasw/cpython/src/ee0d2beaf6a4/Modules/_pickle.c for a rough structure overview - which maybe also explains why I thought restructuring made sense in the first place. However, I'm not the person who has to maintain the module.

[issue7433] MemoryView memory_getbuf causes segfaults, double call to tp_releasebuffer

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev ___ Python track

[issue5231] Change format of a memoryview

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev ___ Python track

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev ___ Python track

[issue12834] PyBuffer_ToContiguous() incorrect for non-contiguous arrays

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev ___ Python track

[issue8305] memoview[0] creates an invalid view if ndim != 1

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev ___ Python track

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3f9b3b6f7ff0 by Stefan Krah in branch 'default': - Issue #10181: New memoryview implementation fixes multiple ownership http://hg.python.org/cpython/rev/3f9b3b6f7ff0 -- nosy: +python-dev ___ Python track

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2012-02-25 Thread Charles-François Natali
Charles-François Natali added the comment: > +1 to Antoine’s proposal of removal. Agreed. Here's a patch. Do note, however, that it's a behavior change: the address_string() method is documented to return a resolved hostname (when possible). -- keywords: +needs review stage: test nee

[issue14120] ARM Ubuntu 3.x buildbot failing test_dbm

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: Also failing on 3.2: http://www.python.org/dev/buildbot/all/builders/ARM%20Ubuntu%203.2/builds/227/steps/test/logs/stdio -- versions: +Python 3.2 ___ Python tracker ___

[issue13491] Fixes for sqlite3 doc

2012-02-25 Thread Petri Lehtinen
Petri Lehtinen added the comment: Both patches look good to me. The text_factory example is OK on 2.7 because the OptimizedUnicode flag works correctly there. -- ___ Python tracker ___

[issue12801] C realpath not used by os.path.realpath

2012-02-25 Thread Charles-François Natali
Charles-François Natali added the comment: > - os.realpath() uses canonicalize_file_name() if available, or use > realpath() with a buffer of MAXPATHLEN bytes MAXPATHLEN is not necessarily defined (e.g. on the Hurd): if it's not defined, it is set either to MAX_PATH (if it's defined an greate

[issue14113] Failure in test_strptime on Windows

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: Also failing on the Windows 7 bot: http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%203.x/builds/4453/steps/test/logs/stdio -- ___ Python tracker

[issue14113] Failure in test_strptime on Windows

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5aa731bae5e by Nadeem Vawda in branch 'default': Use assertEqual in test_strptime for better failure messages (cf. issue #14113). http://hg.python.org/cpython/rev/d5aa731bae5e -- nosy: +python-dev ___ P

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah added the comment: I've trouble debugging this: Is the new version of importlib already being used? I'm stepping through the offending pep3147 import, which should correspond to this line in test_dot.py: m = __import__('pep3147') Until here Python/import.c is used: find_mod

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue14082] shutil doesn't copy extended attributes

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Sounds good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue13491] Fixes for sqlite3 doc

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: docs@python -> petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: I’ll commit the 2.7 patch, see how buildbots fare, then commit the 3.2 version (also attached in case someone wants to test it). -- Added file: http://bugs.python.org/file24638/filelist-regex-bugs-3.2.diff ___ Python t

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is this expected? Looks rather strange to me, it means we have importlib importers on sys.path_importer_cache. Still, the fact that path == '.' above (in _FileFinder as well as find_module_path) makes it difficult to understand the later failure. --

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: A link to a glossary may be better than a link to the top of the copy module. I wonder if we could use glossary markup in the copy module docs instead of adding terms to the global glossary. Tim: I like “undeep”, it’s used to describe a geographical feature of

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda added the comment: 3.2 patch looks good on Windows. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue9691] sdist includes files that are not in MANIFEST.in

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47788c90f80b by Éric Araujo in branch '2.7': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/47788c90f80b -- nosy: +python-dev ___ Python tracker

[issue13193] packaging.tests.test_manifest and distutils.tests.test_filelist failures

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47788c90f80b by Éric Araujo in branch '2.7': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/47788c90f80b -- ___ Python tracker

[issue14004] Distutils filelist selects too many files on Windows

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47788c90f80b by Éric Araujo in branch '2.7': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/47788c90f80b -- nosy: +python-dev ___ Python tracker

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 47788c90f80b by Éric Araujo in branch '2.7': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/47788c90f80b -- nosy: +python-dev ___ Python tracker

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 020364d3e359 by Éric Araujo in branch '2.7': Add test file for scripts in Tools (#13447). http://hg.python.org/cpython/rev/020364d3e359 -- nosy: +python-dev ___ Python tracker

[issue14004] Distutils filelist selects too many files on Windows

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73aa4c9305b3 by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/73aa4c9305b3 -- ___ Python tracker

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73aa4c9305b3 by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/73aa4c9305b3 -- ___ Python tracker

[issue9691] sdist includes files that are not in MANIFEST.in

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73aa4c9305b3 by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/73aa4c9305b3 -- ___ Python tracker

[issue13193] packaging.tests.test_manifest and distutils.tests.test_filelist failures

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73aa4c9305b3 by Éric Araujo in branch '3.2': Fix long-standing bugs with MANIFEST.in parsing on Windows (#6884). http://hg.python.org/cpython/rev/73aa4c9305b3 -- ___ Python tracker

[issue13637] binascii.a2b_* functions could accept unicode strings

2012-02-25 Thread R. David Murray
R. David Murray added the comment: Discussion resolved in favor of patch. -- status: open -> closed ___ Python tracker ___ ___ Python

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-25 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue13447] Add tests for some scripts in Tools/scripts

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Hi Mark. You’re the author of Tools/parser/test_unparse.py; any objection if I move it to the new Lib/test/test_tools.py file, so that all tests for Tools are in one place? -- nosy: +mark.dickinson ___ Python tracker

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah added the comment: OK, I stepped in parallel through the non-failing and the failing versions. The first divergence is when _path_mtime is compared. The comparison in the good version returns 'False', the one in the bad version returns 'True': Good version (Fedora 16): (gdb) p w $1

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah added the comment: So I think the good version proceeds to refresh the _path_cache: <_FileFinder(_relaxed_path_cache={'pep3147'}, packages=[('.py', ), ('.pyc', )], _path_mtime=, modules=[('.cpython-33m.so', ), ('.abi3.so', ), ('.so', ), ('.py', ), ('.pyc', )], path='.', _cache_re

[issue14075] argparse: unused method?

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Hm, I was about to commit this and did a double-take. Are we 100% sure that nobody in the whole wide world of Python does not override this function? Shouldn’t we first send a DeprecationWarning in 3.3 and remove later? --

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-25 Thread Éric Araujo
Éric Araujo added the comment: Most buildbots are green, one has a test_subprocess failure, others are still building, but I have to go soon. Release managers, please graft this fix when the bots are all green. -- resolution: -> fixed stage: patch review -> committed/rejected _

[issue3445] Ignore missing attributes in functools.update_wrapper

2012-02-25 Thread Yaniv Aknin
Yaniv Aknin added the comment: Shouldn't this be fixed in 2.7 as well? It's a bug, it's in the wild, and it's causing people to do ugly (and maybe not 100% reliable) things like https://code.djangoproject.com/browser/django/trunk/django/utils/decorators.py#L68 -- nosy: +Yaniv.Aknin

[issue3445] Ignore missing attributes in functools.update_wrapper

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah added the comment: And indeed, with this patch ... diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -777,6 +777,8 @@ mtime = _os.stat(self.path).st_mtime except OSError

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le samedi 25 février 2012 à 16:59 +, Stefan Krah a écrit : > Bad version: > > $ ./python -m test test_dot > [1/1] test_dot > 1330188676.0 1330188676.0 This might be what triggers the issue, but it's not the cause. Even with a bad mtime, the __file__ should

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah added the comment: Antoine Pitrou wrote: > This might be what triggers the issue, but it's not the cause. Even with > a bad mtime, the __file__ should still be the right one, so there must > be something else. It definitely triggers the issue because the problem also occurs on Fedo

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 64b9ff3c91bb by Ezio Melotti in branch '2.7': #14114: don't include copybutton.js in the htmlhelp output. http://hg.python.org/cpython/rev/64b9ff3c91bb New changeset 7f651187b25c by Ezio Melotti in branch '3.2': #14114: don't include copybutton.js

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Ezio Melotti
Ezio Melotti added the comment: Should be fixed now, let me know if it works. (Thanks Georg for the help.) -- stage: -> committed/rejected type: -> behavior ___ Python tracker ___

[issue14122] operator: div() instead of truediv() in documention since 3.1.2

2012-02-25 Thread Félix-Antoine Fortin
New submission from Félix-Antoine Fortin : A small regression was introduced by the changeset 57209 in the documentation of the operator module. In the abstract operations table in section 9.3.1 the first of two lines on Division, the associated function should be : truediv() instead of div(),

[issue14122] operator: div() instead of truediv() in documention since 3.1.2

2012-02-25 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review type: -> enhancement versions: -Python 3.1, Python 3.4 ___ Python tracker ___ _

[issue14118] _pickle.c structure cleanup

2012-02-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the effort, but I'm rejecting this now. I'm not fundamentally opposed to restructing this code, but I do think that your change would be a slight loss of readability. If you absolutely cannot stand working with such a large code, please try to fin

[issue14120] ARM Ubuntu 3.x buildbot failing test_dbm

2012-02-25 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah added the comment: What happens is that if self._fill_cache() is called, cache_module='pep3147' and cache={'pep3147'}. Then 'cache_module in cache' is true and the function returns: loader('pep3147', './pep3147/__init__.py') Otherwise, find_module() returns None, control is han

[issue13999] Queue references in multiprocessing doc points to Queue module and not to self

2012-02-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5d4f2f994f75 by Sandro Tosi in branch '2.7': Issue #13999: refer to multiprocessing.Queue when needed http://hg.python.org/cpython/rev/5d4f2f994f75 -- nosy: +python-dev ___ Python tracker

[issue13999] Queue references in multiprocessing doc points to Queue module and not to self

2012-02-25 Thread Sandro Tosi
Changes by Sandro Tosi : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: > What happens is that if self._fill_cache() is called, cache_module='pep3147' > and cache={'pep3147'}. Then 'cache_module in cache' is true and the function > returns: > > loader('pep3147', './pep3147/__init__.py') > > Otherwise, find_module() returns Non

[issue6784] byte/unicode pickle incompatibilities between python2 and python3

2012-02-25 Thread Merlijn van Deen
Merlijn van Deen added the comment: Ok, this is my first attempt at the Pickler part of the C implementation. I'll have to adapt the python implementation to match this one. All BytestrPicklerTests in test_bytestrpickle.py pass, and ./python -m test -G -v test_pickle passes. Comments on styl

[issue14123] Doc change re old and new string formatting

2012-02-25 Thread Christine Jones
New submission from Christine Jones : Change to this http://docs.python.org/py3k/library/stdtypes.html as suggested by Nick Coghlan here http://www.gossamer-threads.com/lists/python/dev/969817 "The formatting operations described here are modelled on C's printf() syntax. They only support forma

[issue14124] _pickle.c comment/documentation improvement

2012-02-25 Thread Merlijn van Deen
New submission from Merlijn van Deen : As suggested by loewis in msg154233, I created some documentation to help people get started with _pickle.c. -- assignee: docs@python components: Documentation, Extension Modules files: _pickle_c_doc.diff keywords: patch messages: 154284 nosy: docs

[issue14124] _pickle.c comment/documentation improvement

2012-02-25 Thread Merlijn van Deen
Changes by Merlijn van Deen : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14123] Doc change re old and new string formatting

2012-02-25 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14123] Doc change re old and new string formatting

2012-02-25 Thread Glenn Linderman
Changes by Glenn Linderman : -- nosy: +v+python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue14112] tutorial intro talks of "shallow copy" concept without explanation

2012-02-25 Thread Ned Deily
Ned Deily added the comment: "shallow copy" and "deep copy" are both standard computer science terms by no means unique to or invented by Python. We should be cautious about documentation bloat and trying to redefine standard terms. http://en.wikipedia.org/wiki/Object_copy#Shallow_copy

[issue14120] ARM Ubuntu 3.x buildbot failing test_dbm

2012-02-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I was missing libgdbm-dev on that machine. I just installed it and am running the buildbottests by hand. Let's see if that fixes things. -- ___ Python tracker _

[issue14125] Windows: failures in refleak mode

2012-02-25 Thread Stefan Krah
New submission from Stefan Krah : The following tests fail on Windows in refleak mode. I used 24ca28cc9c9c as a reference point. Build is x64. Summary: test_concurrent_futures, test_datetime, test_multiprocessing, test_strftime and test_time are leaking. C:\Users\stefan\hg\master\PCbuild>amd

  1   2   >