[issue10271] warnings.showwarning should allow any callable object

2011-07-21 Thread lekma
lekma lekma...@gmail.com added the comment: Thank you very much for your help -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10271 ___ ___

[issue11629] Reference implementation for PEP 397

2011-07-21 Thread Mark Hammond
Mark Hammond skippy.hamm...@gmail.com added the comment: The most recent version of PEP397 has removed all mentioned of this reference implementation - the C implementation at https://bitbucket.org/vinay.sajip/pylauncher/ is now the reference. -- resolution: - out of date status:

[issue11435] Links to source code should now point to hg repo

2011-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 79d2682c4fc5 by Ezio Melotti in branch '3.2': #11435: link to the correct branch. http://hg.python.org/cpython/rev/79d2682c4fc5 New changeset 3028b5ab92c0 by Ezio Melotti in branch 'default': #11435: dummy merge

[issue11435] Links to source code should now point to hg repo

2011-07-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I fixed the URL in 3.2. The 2.7 docs link to the Subversion repo. Can I update them? 2.7 doesn't have the source directive, do you want to replace all the svn links manually? If so, either reopen this issue or create a new one.

[issue12568] Add functions to get the width in columns of a character

2011-07-21 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12568 ___ ___

[issue6820] Redefinition of HAVE_STRFTIME can cause compiler errors.

2011-07-21 Thread rgpitts
rgpitts richard.pi...@cdl.co.uk added the comment: As Python 2.6 is now security only and 2.7 is last major release I've patched this against Python 3.2 because pyconfig.h hadn't changed much since 2.6. I've done as Amaury suggested and changed the HAVE_XXX symbols to define 1 like autoconf.

[issue12601] Spelling error in the comments in the webbrowser module.

2011-07-21 Thread maniram maniram
New submission from maniram maniram maniandra...@gmail.com: At line 235 there is a comment which contains secons which should be changed to seconds. -- components: Library (Lib) messages: 140793 nosy: maniram.maniram priority: normal severity: normal status: open title: Spelling error

[issue12601] Spelling error in the comments in the webbrowser module.

2011-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3bc80b6f7cd8 by Ezio Melotti in branch '3.2': #12601: fix typo. http://hg.python.org/cpython/rev/3bc80b6f7cd8 New changeset d26c7b18fc9d by Ezio Melotti in branch 'default': #12601: merge with 3.2.

[issue12601] Spelling error in the comments in the webbrowser module.

2011-07-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Fixed, thanks for the report! -- assignee: - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue12590] First line and cursor not visible when opening files

2011-07-21 Thread Tal Einat
Changes by Tal Einat talei...@gmail.com: -- nosy: +taleinat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12590 ___ ___ Python-bugs-list mailing

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: I think it would be better to use this code: if (!Py_UNICODE_ISUPPER(*s)) { *s = Py_UNICODE_TOUPPER(*s); status = 1; } s++; while (--len 0) { if (Py_UNICODE_ISLOWER(*s)) { *s =

[issue12583] More detailed ImportError messages

2011-07-21 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Thanks for explaining, I guess it's too complicated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12583 ___

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Do you mean if (!Py_UNICODE_ISLOWER(*s)) { (with the '!')? This sounds fine to me, but with this approach all the uncased characters will go through a Py_UNICODE_TO* macro, whereas with the current code only the cased ones are

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Ezio Melotti wrote: Ezio Melotti ezio.melo...@gmail.com added the comment: Do you mean if (!Py_UNICODE_ISLOWER(*s)) { (with the '!')? Sorry, here's the correct version: if (!Py_UNICODE_ISUPPER(*s)) { *s =

[issue12601] Spelling error in the comments in the webbrowser module.

2011-07-21 Thread maniram maniram
maniram maniram maniandra...@gmail.com added the comment: Thanks for the fast response. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12601 ___

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-21 Thread maniram maniram
maniram maniram maniandra...@gmail.com added the comment: It seems currently that in python 3.2 sys.platform is linux2 even though it is running linux 3 -- nosy: +maniram.maniram ___ Python tracker rep...@bugs.python.org

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It seems currently that in python 3.2 sys.platform is linux2 even though it is running linux 3 It's maybe because you ran ./configure with Linux 2.x.y (see msg138254). Try make distclean ./configure --with-debug make.

[issue11669] Clarify Lang Ref Compound statements footnote

2011-07-21 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11669 ___ ___ Python-bugs-list

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12589 ___ ___

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Is HAVE_DECL_ISINF defined in pyconfig.h? PyLong_FromDouble() uses Py_IS_INFINITY(x): -- /* Py_IS_INFINITY(X) * Return 1 if float or double arg is an infinity, else 0. * Caution: *X is

[issue12576] urlib.request fails to open some sites

2011-07-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12576 ___ ___

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Well, pyflakes will tell you about name clashes within a TestCase (unless you're shadowing a test on a base class which I guess is rarely the case)... When we generate the tests we could add the parameter reprs to the docstring. A

[issue12556] Disable size checks in mmap.mmap()

2011-07-21 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I don't like the idea of adding an argument which doesn't have a counterpart in the POSIX version (especially to address such corner cases). Indeed, it seems rather messy for a corner case that may well not exist. If there are

[issue12556] Disable size checks in mmap.mmap()

2011-07-21 Thread Sergei Lebedev
Sergei Lebedev superbo...@gmail.com added the comment: Do you have an example of a /proc entry with st_size == 0 that can be mmapped (mapping /proc/sys/debug/exception-trace fails with EACCESS)? Yes, I've ran into the issue, while trying to mmap /proc/xen/xsd_kva, which is an interface to

[issue12545] Incorrect handling of return codes in the posix_lseek function in posixmodule.c

2011-07-21 Thread Kuberan Naganathan
Kuberan Naganathan kubi...@gmail.com added the comment: Hi. I'm unable ( or have to jump through lots of hoops ) to submit this patch myself for regulatory reasons. Can someone else submit this please? Thanks. -- ___ Python tracker

[issue12600] Support parameterized TestCases in unittest

2011-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Note that this is fairly simple to do now via subclassing, so any proposed API would need to show a clear benefit over that approach to be worth the extra complexity in the unittest code base. --

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Note that name clashes *would* result in non-unique testcase ids, so we need to prevent that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7897

[issue7879] Too narrow platform check in test_datetime

2011-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Please implement name+argtuple first and build auto-naming on top of that. Nick's approach would not allow me to specify a custom (hand coded) name for each set of arguments, which is my normal use case. I also would not like the

[issue7879] Too narrow platform check in test_datetime

2011-07-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg140810 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7879 ___

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Please implement name+argtuple first and build auto-naming on top of that. Nick's approach would not allow me to specify a custom (hand coded) name for each set of arguments, which is my normal use case. I also would not like the

[issue12556] Disable size checks in mmap.mmap()

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

[issue12602] Missing using docs cross-references

2011-07-21 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: General untidiness in the anchor names (and lack of same for entries like script) Missing incoming: - from Invoking the Interpreter in the tutorial - direct link from runpy.run_module to -m switch - direct link from runpy.run_path to script

[issue12602] Missing using docs cross-references

2011-07-21 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - docs@python components: +Documentation nosy: +docs@python versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12602

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-21 Thread higery
Changes by higery shoulderhig...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file22711/6382acfb1685.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12394 ___

[issue12602] Missing using docs cross-references

2011-07-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Should also be an outgoing link to http://bugs.python.org/issue1739468 from the script entry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12602

[issue12600] Support parameterized TestCases in unittest

2011-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Note that this is fairly simple to do now via subclassing, so any proposed API would need to show a clear benefit over that approach to be worth the extra complexity in the unittest code base. Agreed. Let's not add cruft to unittest.

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-21 Thread higery
higery shoulderhig...@gmail.com added the comment: I hope people can help me test this patch especially on non-Windows platforms. The main implementation resides in build_scripts.py. Usage: Just add a 'wrapper-scripts-entries' variable in setup.cfg, which takes a list type as its value. For

[issue12600] Support parameterized TestCases in unittest

2011-07-21 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Yeah, without some clear advantages and a clean api / implementation I'm -1. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12600

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The result of: struct.pack(d, float(inf)) would also be interesting. I'd expect to see: '\x7f\xf0\x00\x00\x00\x00\x00\x00' -- ___ Python tracker rep...@bugs.python.org

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: David, I don't understand - it looks like Nick's suggestion would allow you to create a name per case, that's the point of it! You could even do this: def _name_from_case(name, cases): for idx, case in enumerate(cases, start=1):

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Oh, I see. Make the name the first element of the argtuple and then strip it off. Well, that will work, it just seems bass-ackwards to me :) And why is it 'case'? I thought we were talking about tests. --

[issue10503] os.getuid() documentation should be clear on what kind of uid it is referring

2011-07-21 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10503 ___ ___

[issue12436] Provide reference to detailed installation instructions

2011-07-21 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12436 ___ ___

[issue12372] semaphore errors on AIX 7.1

2011-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f5a7d413638d by Charles-François Natali in branch '2.7': Issue #12372: POSIX semaphores are broken on AIX: don't use them. http://hg.python.org/cpython/rev/f5a7d413638d -- nosy: +python-dev

[issue12372] semaphore errors on AIX 7.1

2011-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f0475f78d45c by Charles-François Natali in branch '3.2': Issue #12372: POSIX semaphores are broken on AIX: don't use them. http://hg.python.org/cpython/rev/f0475f78d45c --

[issue12372] semaphore errors on AIX 7.1

2011-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 44a02d6b74e4 by Charles-François Natali in branch 'default': Merge - Issue #12372: POSIX semaphores are broken on AIX: don't use them. http://hg.python.org/cpython/rev/44a02d6b74e4 --

[issue12372] semaphore errors on AIX 7.1

2011-07-21 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Patch committed: this should fix POSIX semaphores failures on AIX. Reshmi, thanks for reporting this! -- resolution: - fixed stage: commit review - committed/rejected status: open - closed

[issue12555] PEP 3151 implementation

2011-07-21 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12555 ___ ___

[issue12556] Disable size checks in mmap.mmap()

2011-07-21 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: By the way, I've checked mmap(2) manpage -- it looks like the C-version has nothing against mmaping 0-sized files, Why does Python's `mmap` still checks file size? It doesn't check explicitely that the size is non-0, but rather

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-21 Thread Landry Breuil
Landry Breuil lan...@openbsd.org added the comment: import struct struct.pack(d, float(inf)) b'\x7f\xf0\x00\x00\x00\x00\x00\x00' struct.pack(f, float(inf)) b'\x7f\x80\x00\x00' And yes, HAVE_DECL_ISINF is defined to 1 in pyconfig.h -- ___ Python

[issue12581] Increased test coverage of test_urlparse

2011-07-21 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12581 ___ ___

[issue12603] pydoc.synopsis breaks if filesystem returns mtime of 0 (common for filesystems without mtime)

2011-07-21 Thread Josh Triplett
New submission from Josh Triplett j...@joshtriplett.org: In Python 2.7.2, pydoc.py's synopsis contains this code implementing a cache: mtime = os.stat(filename).st_mtime lastupdate, result = cache.get(filename, (0, None)) if lastupdate mtime: Many filesystems don't have any

[issue12604] VTRACE macro in _sre.c should use do {} while (0)

2011-07-21 Thread Josh Triplett
New submission from Josh Triplett j...@joshtriplett.org: In _sre.c, the VTRACE macro normally gets defined to nothing. It later gets used as the body of control structures such as else without braces, which causes many compilers to warn (to catch stray semicolons like else;). This makes it

[issue12605] Enhancements to gdb 7 debugging hooks

2011-07-21 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: I'm attaching patches to handle some more events in the gdb7 debugging hooks for CPython (aka Tools/gdb/libpython.py). Currently, the hooks only care about C frames that are the bytecode interpreter (i.e. PyEval_EvalFrameEx) This patch

[issue12605] Enhancements to gdb 7 debugging hooks

2011-07-21 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- keywords: +patch Added file: http://bugs.python.org/file22712/more-frames-in-gdb-hooks-py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12605

[issue12605] Enhancements to gdb 7 debugging hooks

2011-07-21 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: (On 2.7, I needed import_site=True to get the new tests to work from a fresh build: import time wasn't being found otherwise) -- Added file: http://bugs.python.org/file22713/more-frames-in-gdb-hooks-2.7.patch

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm still in favor of keeping sys.platform == 'linux3', and you? Still -1. It should be renamed to 'linux' in future releases, and back-patched to 'linux2' for maintenance releases. As for releases that are already out - users should be

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-21 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Still -1. It should be renamed to 'linux' in future releases, and back-patched to 'linux2' for maintenance releases. I really don't see any advantage to this solution: - sys.platform currently has a clear and documented value (OS

[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2011-07-21 Thread py.user
New submission from py.user port...@yandex.ru: barr = bytearray(b'abcde') lst = list('abcde') barr[::-3] = () barr bytearray(b'acd') lst[::-3] = () Traceback (most recent call last): File stdin, line 1, in module ValueError: attempt to assign sequence of size 0 to extended slice of size 2

[issue12555] PEP 3151 implementation

2011-07-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file22714/1d8b7f158721.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12555 ___

[issue12555] PEP 3151 implementation

2011-07-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file22705/40ae82fafaed.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12555 ___

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2011-07-21 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: Ping? This also fixes 6493 (I believe in a cleaner way) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6068 ___

[issue12556] Disable size checks in mmap.mmap()

2011-07-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: That's what I thought, it's really uncommon: in that case, I'm reluctant to making such a change, for the reason explained above. Ross, Victor? Why do you want a mmap? Why not using a file? --

[issue12556] Disable size checks in mmap.mmap()

2011-07-21 Thread Ralf Schmitt
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12556 ___ ___ Python-bugs-list

[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2011-07-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I happen to prefer del myself, but I agree that the two mutable sequence classes should behave the same. The manual 4.6.4 says s[i:j:k] = t the elements of s[i:j:k] are replaced by those of t (1) 1. t must have the same length as the slice it

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: You may try: $ ./python import ctypes import ctypes.util libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c')) isinf = libc.isinf isinf.argtypes = (ctypes.c_double,) isinf(0.0) 0 isinf(float('inf')) 1 (try

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- Removed message: http://bugs.python.org/msg140819 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7897 ___

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Sorry, misclicked and removed this comment from David: Oh, I see. Make the name the first element of the argtuple and then strip it off. Well, that will work, it just seems bass-ackwards to me :) And why is it 'case'? I thought we were

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: In my example, I needed a word to cover each entry in the collection of parameter tuples. 'case' fit the bill. The reason I like the builder approach is that it means the simplest usage is to just create a list (or other iterable) of

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Georg, could index directives be used to create link targets? (see http://bugs.python.org/issue11975#msg137447) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975

[issue11435] Links to source code should now point to hg repo

2011-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the commit, I intended to do it these days. For 2.7, I was indeed talking about updated all manual links. sed is my friend :) -- status: closed - open ___ Python tracker

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Great to hear these news! I will pull from your clone and test on linux2 as soon as possible. In your Mercurial configuration file, you should set the git option so that diffs can display editions to binary files. See

[issue12528] Implement configurable bitfield allocation strategy

2011-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: My review of the patch: http://bugs.python.org/review/12528/show -- nosy: +amaury.forgeotdarc stage: - patch review ___ Python tracker rep...@bugs.python.org

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Well, pyflakes will tell you about name clashes within a TestCase Seen that :) (unless you're shadowing a test on a base class which I guess is rarely the case)... That too, in our own test suite (test_list or test_tuple, I have that change in

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Andrew Bennetts
Andrew Bennetts s...@users.sourceforge.net added the comment: You may be interested an existing, unittest-compatible library that provides this: http://pypi.python.org/pypi/testscenarios -- nosy: +spiv ___ Python tracker rep...@bugs.python.org

[issue12591] text files returned by subprocess.Popen with universal_newlines=True are not iterable

2011-07-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12591 ___ ___ Python-bugs-list

[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2011-07-21 Thread py.user
py.user port...@yandex.ru added the comment: I happen to prefer del myself but I agree that the two mutable sequence classes should behave the same. del is not so flexible as assignement cmpr = [bytearray(i.encode('ascii')) for i in ('abcd', 'efgh', 'ijkl')] cmpr [bytearray(b'abcd'),

[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2011-07-21 Thread py.user
py.user port...@yandex.ru added the comment: the former could be like: del cmpr[0][::-2], cmpr[1][::2], cmpr[2][1::2] it's ok how to implement this with del ? cmpr [bytearray(b'abcd'), bytearray(b'efgh'), bytearray(b'ijkl')] cmpr[0][::-2], cmpr[1][::2] = (), cmpr[2][1::2] cmpr

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Failure on POSIX (linux2): ERROR: test_install_wrapper_scripts (packaging.tests.test_command_build_scripts.BuildScriptsTestCase) -- Traceback (most recent call last): File

[issue8668] Packaging: add a 'develop' command

2011-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Great. I’ve been re-reading some old threads in the spirit of “pth files are evil”, so I wondered whether we could/should avoid them, but I think the criticism was directed against pth files edited after the initial installation, and pth files

[issue12591] text files returned by subprocess.Popen with universal_newlines=True are not iterable

2011-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The universal_newlines feature is rather poorly named in Python 3.x, since it does much more than that (the resulting files yield and expect unicode strings rather than bytes objects). The problem is that io.TextIOWrapper needs a buffered I/O

[issue11435] Links to source code should now point to hg repo

2011-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Georg or Benjamin: The PEP/documents/scripts used for releases should also mention/edit the version in Doc/tools/sphinxext/pyspecific.py. -- nosy: +benjamin.peterson ___ Python tracker

[issue12279] Add build_distinfo command to packaging

2011-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I kept this report open to address “test command needs dist-info”, but there’s already a report about that (#12302) and I think it’s clearer to keep this one closed as a discussion archive linked from the develop bug. -- resolution:

[issue11435] Links to source code should now point to hg repo

2011-07-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: -pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11435 ___ ___ Python-bugs-list mailing

[issue12302] packaging test command needs access to .dist-info

2011-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: For #8668 (develop command), higery has written code that reuses install_distinfo to create the dist-info dir in the build dir. It requires #12344, which I will commit when Thomas has time to finish his patch. We also need to make

[issue12204] str.upper converts to title

2011-07-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch looks good, with one issue: I’ve never encountered “cased character” before, is it an accepted term or an invention in our docs? -- ___ Python tracker rep...@bugs.python.org

[issue11055] OS X IDLE 3.2 Save As menu accelerator opens two Save windows

2011-07-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: A fix for this problem has been released in ActiveTcl 8.5.10.1 as of 2011-07-21. -- resolution: - out of date stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue12204] str.upper converts to title

2011-07-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I think it's an invention, but its meaning is quite clear to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12204 ___

[issue12591] text files returned by subprocess.Popen with universal_newlines=True are not iterable

2011-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: So this is a doc bug in subprocess? Explaining this clearly doesn't sound like much fun... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12591

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: import sys; hex(sys.maxunicode) '0x10' import unicodedata; unicodedata.unidata_version '6.0.0' import unicodedata all_chars = list(map(chr, range(0x11))) Ll = [c for c in all_chars if unicodedata.category(c) == 'Ll'] Lu = [c for c

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread py.user
py.user port...@yandex.ru added the comment: [c for c in all_chars if c not in L and ... L ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12266 ___

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: L = set(sum([Ll, Lu, Lt, Lo, Lm], [])) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12266 ___

[issue12581] Increased test coverage of test_urlparse

2011-07-21 Thread Petter Haggholm
Petter Haggholm pet...@petterhaggholm.net added the comment: Added suggested changes from review, removed (rather useless) repr test; left parse.py changes alone (see review comments for rationale) -- Added file: http://bugs.python.org/file22715/urlparsetest.patch

[issue12556] Disable size checks in mmap.mmap()

2011-07-21 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: That's what I thought, it's really uncommon: in that case, I'm reluctant to making such a change, for the reason explained above. Ross, Victor? Even if Linux did accept a a length of 0 (which it doesn't since 2.6.12), what would be

[issue12556] Disable size checks in mmap.mmap()

2011-07-21 Thread Sergei Lebedev
Sergei Lebedev superbo...@gmail.com added the comment: Passing mmap(2) a 0 length doesn't make much sense anyway - for example, Linux returns EINVAL. Yup, but passing mmap(2) a zero-sized file and a non-zero length works just fine. Why do you want a mmap? Why not using a file? Because Xen

[issue12589] test_long.test_nan_inf() failed on OpenBSD (powerpc)

2011-07-21 Thread Landry Breuil
Landry Breuil lan...@openbsd.org added the comment: Python 3.2.1 (default, Jul 18 2011, 10:56:33) [GCC 4.2.1 20070719 ] on openbsd4 Type help, copyright, credits or license for more information. import ctypes import ctypes.util libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c'))