[issue14097] Improve the introduction page of the tutorial

2012-02-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[issue12119] distutils and python -B

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-02-25 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de 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”

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

2012-02-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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' -

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

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- priority: high - normal stage: committed/rejected - commit review versions: -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13340

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

2012-02-25 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl 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

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

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

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

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

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

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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

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

2012-02-25 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de 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

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

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-02-25 Thread Andi Albrecht
Changes by Andi Albrecht albrecht.a...@gmail.com: -- nosy: +andialbrecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14102 ___ ___

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

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

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

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: -terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8171 ___ ___ Python-bugs-list

[issue14120] ARM Ubuntu 3.x buildbot failing test_dbm

2012-02-25 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: 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

[issue14076] sqlite3 module ignores placeholers in CREATE TRIGGER code

2012-02-25 Thread Christian Schilling
Changes by Christian Schilling initcr...@googlemail.com: -- nosy: +Christian.Schilling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14076 ___ ___

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

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Andi, the author of the blog post, will work on a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14102 ___

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

2012-02-25 Thread Stefan Behnel
New submission from Stefan Behnel sco...@users.sourceforge.net: 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

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

2012-02-25 Thread Tim Golden
Tim Golden m...@timgolden.me.uk 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

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

2012-02-25 Thread Ramchandra Apte
Ramchandra Apte maniandra...@gmail.com added the comment: +1 for Éric Araujo's idea. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14112 ___

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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 rep...@bugs.python.org

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

2012-02-25 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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? --

[issue14082] shutil doesn't copy extended attributes

2012-02-25 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx 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 ncogh...@gmail.com 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

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

2012-02-25 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: On Sat, Feb 25, 2012 at 09:35, Éric Araujo rep...@bugs.python.org 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

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

2012-02-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 tal...@gmail.com 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

[issue14082] shutil doesn't copy extended attributes

2012-02-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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 h...@ox.cx added the comment: If nobody objects, I'd cook up a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14082 ___

[issue14118] _pickle.c structure cleanup

2012-02-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2012-02-25 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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 ge...@python.org 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 rep...@bugs.python.org

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

2012-02-25 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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 valhall...@gmail.com 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

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue5231] Change format of a memoryview

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2012-02-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

[issue14120] ARM Ubuntu 3.x buildbot failing test_dbm

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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 rep...@bugs.python.org

[issue13491] Fixes for sqlite3 doc

2012-02-25 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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 rep...@bugs.python.org

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

2012-02-25 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

[issue14113] Failure in test_strptime on Windows

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com 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 rep...@bugs.python.org

[issue14113] Failure in test_strptime on Windows

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14080 ___ ___

[issue14082] shutil doesn't copy extended attributes

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sounds good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14082 ___ ___ Python-bugs-list

[issue13491] Fixes for sqlite3 doc

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: docs@python - petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13491 ___ ___

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

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2012-02-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: 3.2 patch looks good on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6884 ___

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 -- ___

[issue14004] Distutils filelist selects too many files on Windows

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue14004] Distutils filelist selects too many files on Windows

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 -- ___

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 -- ___

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 -- ___

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 -- ___

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

2012-02-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Discussion resolved in favor of patch. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13637 ___

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

2012-02-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13641 ___ ___

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

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1531415 ___ ___ Python-bugs-list

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

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: So I think the good version proceeds to refresh the _path_cache: _FileFinder(_relaxed_path_cache={'pep3147'}, packages=[('.py', type at remote 0xaaff60), ('.pyc', type at remote 0xab02e0)], _path_mtime=float at remote 0xa66120,

[issue14075] argparse: unused method?

2012-02-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 mer...@netwok.org 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 -

[issue3445] Ignore missing attributes in functools.update_wrapper

2012-02-25 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com 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

[issue3445] Ignore missing attributes in functools.update_wrapper

2012-02-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3445 ___ ___ Python-bugs-list

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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 =

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Antoine Pitrou rep...@bugs.python.org 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

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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':

[issue14114] 2.7.3rc1 chm gives JS error

2012-02-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 rep...@bugs.python.org

[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 felixantoinefortin+pyt...@gmail.com: 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

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

2012-02-25 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review type: - enhancement versions: -Python 3.1, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14122

[issue14118] _pickle.c structure cleanup

2012-02-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue14120] ARM Ubuntu 3.x buildbot failing test_dbm

2012-02-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14120 ___ ___ Python-bugs-list mailing

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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()

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

2012-02-25 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-02-25 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13999 ___

[issue14080] Sporadic test_imp failure

2012-02-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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()

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

2012-02-25 Thread Merlijn van Deen
Merlijn van Deen valhall...@gmail.com 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

[issue14123] Doc change re old and new string formatting

2012-02-25 Thread Christine Jones
New submission from Christine Jones silly.english.knig...@gmail.com: 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()

[issue14124] _pickle.c comment/documentation improvement

2012-02-25 Thread Merlijn van Deen
New submission from Merlijn van Deen valhall...@gmail.com: 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

[issue14124] _pickle.c comment/documentation improvement

2012-02-25 Thread Merlijn van Deen
Changes by Merlijn van Deen valhall...@gmail.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14124 ___ ___ Python-bugs-list

[issue14123] Doc change re old and new string formatting

2012-02-25 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14123 ___ ___ Python-bugs-list

[issue14123] Doc change re old and new string formatting

2012-02-25 Thread Glenn Linderman
Changes by Glenn Linderman v+pyt...@g.nevcal.com: -- nosy: +v+python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14123 ___ ___ Python-bugs-list

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

2012-02-25 Thread Ned Deily
Ned Deily n...@acm.org 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.

[issue14120] ARM Ubuntu 3.x buildbot failing test_dbm

2012-02-25 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org 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 rep...@bugs.python.org

[issue14125] Windows: failures in refleak mode

2012-02-25 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: 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.

  1   2   >