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

2011-07-21 Thread Landry Breuil
Landry Breuil 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')) >>>

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

2011-07-21 Thread Sergei Lebedev
Sergei Lebedev 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 requires me to mmap i

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

2011-07-21 Thread Ross Lagerwall
Ross Lagerwall 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 the point? Wouldn't yo

[issue12581] Increased test coverage of test_urlparse

2011-07-21 Thread Petter Haggholm
Petter Haggholm 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 ___ Python

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread Ezio Melotti
Ezio Melotti added the comment: L = set(sum([Ll, Lu, Lt, Lo, Lm], [])) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread py.user
py.user added the comment: >>> [c for c in all_chars if c not in L and ... L ? -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread Ezio Melotti
Ezio Melotti 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 in all_chars if

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

2011-07-21 Thread R. David Murray
R. David Murray added the comment: So this is a doc bug in subprocess? Explaining this clearly doesn't sound like much fun... -- ___ Python tracker ___ ___

[issue12204] str.upper converts to title

2011-07-21 Thread Ezio Melotti
Ezio Melotti added the comment: I think it's an invention, but its meaning is quite clear to me. -- ___ Python tracker ___ ___ Python

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

2011-07-21 Thread Ned Deily
Ned Deily 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 Éric Araujo
Éric Araujo 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

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

2011-07-21 Thread Éric Araujo
Éric Araujo 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 install_distinfo more flexibl

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

2011-07-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12279] Add build_distinfo command to packaging

2011-07-21 Thread Éric Araujo
Éric Araujo 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: later -> rejected sta

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

2011-07-21 Thread Éric Araujo
Éric Araujo 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

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

2011-07-21 Thread Antoine Pitrou
Antoine Pitrou 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 object, but bu

[issue8668] Packaging: add a 'develop' command

2011-07-21 Thread Éric Araujo
Éric Araujo 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 abusing the forma

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

2011-07-21 Thread Éric Araujo
Éric Araujo 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 "Lib/packaging/tests/

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

2011-07-21 Thread py.user
py.user 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 [bytearray(b'ac'), byt

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

2011-07-21 Thread py.user
py.user 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'), bytearray(b'efg

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

2011-07-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Andrew Bennetts
Andrew Bennetts 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 ___

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Éric Araujo
Éric Araujo 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 a Subversion

[issue12528] Implement configurable bitfield allocation strategy

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

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

2011-07-21 Thread Éric Araujo
Éric Araujo 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 http://hgtip.com/tips/beginner/2009-10-22

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

2011-07-21 Thread Éric Araujo
Éric Araujo 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

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

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

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Nick Coghlan
Nick Coghlan 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 parameter tuples to be test

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Nick Coghlan
Nick Coghlan 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 talking about tests.

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Nick Coghlan
Changes by Nick Coghlan : -- Removed message: http://bugs.python.org/msg140819 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2011-07-21 Thread STINNER Victor
STINNER Victor 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 ctypes.util.find_l

[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 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 is replacing. S

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

2011-07-21 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2011-07-21 Thread STINNER Victor
STINNER Victor 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? -- ___ Python track

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

2011-07-21 Thread Vlad Riscutia
Vlad Riscutia added the comment: Ping? This also fixes 6493 (I believe in a cleaner way) -- ___ Python tracker ___ ___ Python-bugs-lis

[issue12555] PEP 3151 implementation

2011-07-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file22705/40ae82fafaed.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue12555] PEP 3151 implementation

2011-07-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file22714/1d8b7f158721.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[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 : >>> barr = bytearray(b'abcde') >>> lst = list('abcde') >>> barr[::-3] = () >>> barr bytearray(b'acd') >>> lst[::-3] = () Traceback (most recent call last): File "", line 1, in ValueError: attempt to assign sequence of size 0 to extended slice of size 2 >>> del lst

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

2011-07-21 Thread Charles-François Natali
Charles-François Natali 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 name + major rel

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

2011-07-21 Thread Martin v . Löwis
Martin v. Löwis 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 informed to not use

[issue12605] Enhancements to gdb 7 debugging hooks

2011-07-21 Thread Dave Malcolm
Dave Malcolm 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 ___ Py

[issue12605] Enhancements to gdb 7 debugging hooks

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

[issue12605] Enhancements to gdb 7 debugging hooks

2011-07-21 Thread Dave Malcolm
New submission from Dave Malcolm : 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 changes this, dividi

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

2011-07-21 Thread Josh Triplett
New submission from Josh Triplett : 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 difficult to compi

[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 : 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 concept of mtime or don't h

[issue12581] Increased test coverage of test_urlparse

2011-07-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-07-21 Thread Landry Breuil
Landry Breuil 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 tra

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

2011-07-21 Thread Charles-François Natali
Charles-François Natali 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 that the offset

[issue12555] PEP 3151 implementation

2011-07-21 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12372] semaphore errors on AIX 7.1

2011-07-21 Thread Charles-François Natali
Charles-François Natali 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 ___ Python tra

[issue12372] semaphore errors on AIX 7.1

2011-07-21 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

[issue12372] semaphore errors on AIX 7.1

2011-07-21 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

[issue12372] semaphore errors on AIX 7.1

2011-07-21 Thread Roundup Robot
Roundup Robot 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 ___ Python tr

[issue12436] Provide reference to detailed installation instructions

2011-07-21 Thread Adam Woodbeck
Changes by Adam Woodbeck : -- nosy: +adam.woodbeck ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[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 : -- nosy: +adam.woodbeck ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread R. David Murray
R. David Murray 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. -- ___ P

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Michael Foord
Michael Foord 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): test_name = case[0]

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

2011-07-21 Thread Mark Dickinson
Mark Dickinson 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 __

[issue12600] Support parameterized TestCases in unittest

2011-07-21 Thread Michael Foord
Michael Foord added the comment: Yeah, without some clear advantages and a clean api / implementation I'm -1. -- ___ Python tracker ___ _

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

2011-07-21 Thread higery
higery 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 instance, wrapper-scripts

[issue12600] Support parameterized TestCases in unittest

2011-07-21 Thread Antoine Pitrou
Antoine Pitrou 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. --

[issue12602] Missing using docs cross-references

2011-07-21 Thread Nick Coghlan
Nick Coghlan added the comment: Should also be an outgoing link to http://bugs.python.org/issue1739468 from the

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

2011-07-21 Thread higery
Changes by higery : -- keywords: +patch Added file: http://bugs.python.org/file22711/6382acfb1685.diff ___ Python tracker ___ ___ Pyth

[issue12602] Missing using docs cross-references

2011-07-21 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___

[issue12602] Missing using docs cross-references

2011-07-21 Thread Nick Coghlan
New submission from Nick Coghlan : General untidiness in the anchor names (and lack of same for entries like

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

2011-07-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread R. David Murray
R. David Murray 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 arguments auto-generated i

[issue7879] Too narrow platform check in test_datetime

2011-07-21 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg140810 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7879] Too narrow platform check in test_datetime

2011-07-21 Thread R. David Murray
R. David Murray 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 arguments auto-generated i

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Michael Foord
Michael Foord added the comment: Note that name clashes *would* result in non-unique testcase ids, so we need to prevent that. -- ___ Python tracker ___

[issue12600] Support parameterized TestCases in unittest

2011-07-21 Thread R. David Murray
R. David Murray 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. -- ___ Python tracke

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

2011-07-21 Thread Kuberan Naganathan
Kuberan Naganathan 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

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

2011-07-21 Thread Sergei Lebedev
Sergei Lebedev 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 XenBus [1]. Unfortun

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

2011-07-21 Thread Ross Lagerwall
Ross Lagerwall 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 definite cases where this u

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Michael Foord
Michael Foord 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 decorator factor that takes a

[issue12576] urlib.request fails to open some sites

2011-07-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2011-07-21 Thread STINNER Victor
STINNER Victor 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 evaluated more than once. *T

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

2011-07-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11669] Clarify Lang Ref "Compound statements" footnote

2011-07-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2011-07-21 Thread STINNER Victor
STINNER Victor 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. -- ___

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

2011-07-21 Thread maniram maniram
maniram maniram 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 _

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

2011-07-21 Thread maniram maniram
maniram maniram added the comment: Thanks for the fast response. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Ezio Melotti wrote: > > Ezio Melotti 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 = Py_UNICODE_TOUPPER(*s); status = 1;

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread Ezio Melotti
Ezio Melotti 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 converted. I'm not sure this

[issue12583] More detailed ImportError messages

2011-07-21 Thread Ram Rachum
Ram Rachum added the comment: Thanks for explaining, I guess it's too complicated. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue12266] str.capitalize contradicts oneself

2011-07-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg 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 = Py_UNICODE_TOLOWER(*s);

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

2011-07-21 Thread Tal Einat
Changes by Tal Einat : -- nosy: +taleinat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

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

2011-07-21 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___

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

2011-07-21 Thread Roundup Robot
Roundup Robot 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. http://hg.python.org/cpython/rev/d26c7b18fc9d New

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

2011-07-21 Thread maniram maniram
New submission from maniram maniram : 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 in the comments in th

[issue6820] Redefinition of HAVE_STRFTIME can cause compiler errors.

2011-07-21 Thread rgpitts
rgpitts 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. 'make patchcheck' has fi