[issue13349] Non-informative error message in index() and remove() functions

2012-11-03 Thread Sean Ochoa
Sean Ochoa added the comment: After discussing with folks on the #python-dev tonight, I learned that I was testing with a list and I should've been using a set. I'm working on a patch now, and I'm almost ready to have it reviewed. -- ___ Python tra

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: > The point is that a working program would stop working. My point is that the program might not be a "working" program, if the function fails silently. Anyway this function is probably not widely used, so I'm fine either ways. -- _

[issue16399] argparse: append action with default list adds to list instead of overriding

2012-11-03 Thread R. David Murray
R. David Murray added the comment: This behavior is inherited from optparse. I think it is more-or-less intentional, and in any case it is of long enough standing that I don't think we can change it. We documented it for optparse in another issue, but I don't think we made the corresponding

[issue12634] Random Remarks in class documentation

2012-11-03 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16304] re: Match Objects always have a boolean value of True

2012-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the patch! I committed a slightly modified version. -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-11-03 Thread R. David Murray
R. David Murray added the comment: It doesn't matter whether it is a bug or not (though it is not in the situation I described). The point is that a working program would stop working. That is the kind of breakage our backward compatibility policy is designed to protect against. --

[issue16304] re: Match Objects always have a boolean value of True

2012-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset dc96df8556d8 by Ezio Melotti in branch '2.7': #16304: clarify match objects docs. Initial patch by Jan Duzinkiewicz. http://hg.python.org/cpython/rev/dc96df8556d8 New changeset 1805fc284201 by Ezio Melotti in branch '3.2': #16304: clarify match obj

[issue12634] Random Remarks in class documentation

2012-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: See also #16048. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue16048] Tutorial-classes-remarks: replace paragraph

2012-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: This seems to be a duplicate of #12634. -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Random Remarks in class documentation ___ Python tracker

[issue10182] match_start truncates large values

2012-11-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-11-03 Thread Éric Araujo
Changes by Éric Araujo : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11797] 2to3 does not correct "reload"

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: More importantly, tests would be great. -- stage: patch review -> test needed ___ Python tracker ___ __

[issue11797] 2to3 does not correct "reload"

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: FixIntern → FixReload -- stage: -> patch review versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ _

[issue11797] 2to3 does not correct "reload"

2012-11-03 Thread Mark Lawrence
Mark Lawrence added the comment: Please find attached a new file with the copyright notice removed. Would someone like to review it please. -- nosy: +BreamoreBoy Added file: http://bugs.python.org/file27875/fix_reload.py ___ Python tracker

[issue15001] segmentation fault with del sys.module['__main__']

2012-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: Same here, I tested the patch on 3.4 (debug and non-debug) and it seems to fix the problem. -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue9495] argparse unittest tracebacks are confusing if an error is raised when not expected

2012-11-03 Thread Mark Lawrence
Mark Lawrence added the comment: Presumably the implementation of PEP 409 on issue 6210 can be used to fix this problem. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-11-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Juarez, Are you planning to implement format validation as you described in msg165882? Without that, date.strptime() is not very useful because it is almost equivalent to datetime.strptime().date(). -- ___ P

[issue15001] segmentation fault with del sys.module['__main__']

2012-11-03 Thread Dmytro Korsakov
Dmytro Korsakov added the comment: I was unable to reproduce the case with stock python 2.7 neither on OSX nor on Linux. System python 3.2 seems to be fine too. At the same time python 2.7 built with debug enabled gets infinite loop and uses all the cpu. However, python 3.4 crashes just as des

[issue16394] Reducing tee() memory footprint

2012-11-03 Thread Ramchandra Apte
Changes by Ramchandra Apte : -- title: Improving tee() memory footprint -> Reducing tee() memory footprint ___ Python tracker ___ ___

[issue13349] Non-informative error message in index() and remove() functions

2012-11-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The original example was about tuples and displaying 'x' instead of '4'. Have that and *all* the others been fixed? -- ___ Python tracker ___ _

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2012-11-03 Thread Mark Lawrence
Mark Lawrence added the comment: Could someone please review this with a view to getting the patch into the 3.4 code base, thanks. -- nosy: +BreamoreBoy ___ Python tracker ___

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2012-11-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Is it practical to implement GPS time as datetime given that we don't have support for leap seconds? -- ___ Python tracker ___ ___

[issue11842] slice.indices with negative step and default stop

2012-11-03 Thread Mark Lawrence
Mark Lawrence added the comment: I think this should be closed as slice.indices behaves exactly as I expect it to, and the returned values are for any sequence and not just range(). -- nosy: +BreamoreBoy ___ Python tracker

[issue11313] Speed up default encode()/decode()

2012-11-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't think a comment explaining that default encoding is utf-8 in python 3.x will improve readability of this code. if (encoding == NULL) return PyUnicode_DecodeUTF8(s, size, errors); seems quite self-explanatory. -- __

[issue11016] Add S_ISDOOR to the stat module

2012-11-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue11016] Add S_ISDOOR to the stat module

2012-11-03 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: After reviewing the code, I agree with Martin v. Löwis that "stat.py" is a joke. Neither can we trust the numerical constants (each OS is free to choose a different meaning) neither the code in "filemode()" can cope with modes with more than a bit active (lik

[issue16355] inspect.getcomments() does not work in the interactive shell

2012-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: That's arguably a bug though. If the pragma was critical the program will silently do the wrong thing by ignoring an existing pragma when the source is missing (e.g. in production, even after passing all the tests locally). -- _

[issue16183] ZipExtFile object close without file handle closed

2012-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6a14f692df1c by Jesus Cea in branch '2.7': Closes #16183: ZipExtFile object close without file handle closed (backporting of Issue #9846) http://hg.python.org/cpython/rev/6a14f692df1c -- nosy: +python-dev resolution: -> fixed stage: -> co

[issue9846] ZipExtFile provides no mechanism for closing the underlying file object

2012-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6a14f692df1c by Jesus Cea in branch '2.7': Closes #16183: ZipExtFile object close without file handle closed (backporting of Issue #9846) http://hg.python.org/cpython/rev/6a14f692df1c -- nosy: +python-dev __

[issue16399] argparse: append action with default list adds to list instead of overriding

2012-11-03 Thread Markus Amalthea Magnuson
Changes by Markus Amalthea Magnuson : -- title: argparse: -> argparse: append action with default list adds to list instead of overriding ___ Python tracker ___

[issue16399] argparse:

2012-11-03 Thread Markus Amalthea Magnuson
New submission from Markus Amalthea Magnuson: If the default value for a flag is a list, and the action append is used, argparse doesn't seem to override the default, but instead adding to it. I did this test script: import argparse parser = argparse.ArgumentParser() parser.add_argument(

[issue9846] ZipExtFile provides no mechanism for closing the underlying file object

2012-11-03 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This code was not backported to python 2.7. See Issue #16183 -- nosy: +jcea ___ Python tracker ___ _

[issue16392] import crashes on circular imports in ext modules

2012-11-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Now that you mention it - wouldn't that suffer from not actually > knowing the FQMN? There's that hack in the dynlib loader that stores > the package context in a global variable so that the module creation > function can figure it out. That might be a reason n

[issue16183] ZipExtFile object close without file handle closed

2012-11-03 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: This bug was solved in python 3.2. Pyhton 3.1 is affected. This is not a windows issue: the file reference is kept in all platforms. This seems to be solved in 2c370065c1b4 and 260ff379115c. See issue #9846. -- nosy: +jcea __

[issue15837] Added test to test_random.py testing Random.shuffle

2012-11-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the patch, thank you Alessandro. -- assignee: rhettinger -> nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue15837] Added test to test_random.py testing Random.shuffle

2012-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 58776cc74e89 by Antoine Pitrou in branch 'default': Issue #15837: add some tests for random.shuffle(). http://hg.python.org/cpython/rev/58776cc74e89 -- nosy: +python-dev ___ Python tracker

[issue11313] Speed up default encode()/decode()

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: MAL suggested adding "a comment explaining why this can be done". If Alexander or someone wants to do that, great! Otherwise, there seems no other reason to leave this issue open. -- nosy: +akuchling ___ Python tra

[issue9974] tokenizer.untokenize not invariant with line continuations

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: I looked at this a bit and made a revised version of the patch that doesn't add any line continuations when the token is ENDMARKER. It works on the example program and a few variations I tried, though I'm not convinced that it'll work for all possible permutat

[issue7695] missing termios constants

2012-11-03 Thread Christian Heimes
Christian Heimes added the comment: The patch looks good to me but it's missing doc updates. -- nosy: +christian.heimes ___ Python tracker ___

[issue5894] Lookup of localised language name by ISO 639 language code and reverse look up

2012-11-03 Thread Christian Heimes
Christian Heimes added the comment: Agreed! Like time zones country and language information are altered ever so often. Babel, zope.i18n and pyicu provide excellent interfaces to the information and can be updated separately from the stdlib. -- nosy: +christian.heimes resolution: -> w

[issue15125] argparse: positional arguments containing - in name not handled well

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: Will apply the doc patches soon™ and wait for Steven’s feedback about the 3.4 behavior change. -- ___ Python tracker ___ _

[issue4318] optparse: formatting of help text/descriptions

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: I have no idea. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue4318] optparse: formatting of help text/descriptions

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: amk: could you say if this applies to argparse? -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue4318] optparse: formatting of help text/descriptions

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: optparse is not being developed anymore. -- nosy: +eric.araujo resolution: -> rejected stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue5894] Lookup of localised language name by ISO 639 language code and reverse look up

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: Suggest closing, as pycountry is available and Babel is excellent. -- nosy: +eric.araujo ___ Python tracker ___

[issue14713] PEP 414 installation hook fails with an AssertionError

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Duplicate of #9974. The tokenizer is choking on lines that end in '\'. So even this can't be parsed: a = 1 + \ 2 -- nosy: +akuchling superseder: -> tokenizer.untokenize not invariant with line continuations ___

[issue16392] import crashes on circular imports in ext modules

2012-11-03 Thread Stefan Behnel
Stefan Behnel added the comment: Now that you mention it - wouldn't that suffer from not actually knowing the FQMN? There's that hack in the dynlib loader that stores the package context in a global variable so that the module creation function can figure it out. That might be a reason not to

[issue15076] Sometimes couldn't import os, shown 'import site' failed, use -v for trackback

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Installation bug; nothing to fix. -- nosy: +akuchling resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue16392] import crashes on circular imports in ext modules

2012-11-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I have detected a compatibility issue when reverting to the 2.x behaviour: extension modules which lie about their name in their PyModuleDef are broken. There are two such modules in 3.3: _io and _decimal. Patch attached, anyway. -- keywords: +patch A

[issue13349] Non-informative error message in index() and remove() functions

2012-11-03 Thread Sean Ochoa
Sean Ochoa added the comment: It seems that this has been fixed. Using simple tests from msg147215: ~/hg/cpython/working $ env-py3.3/bin/python Python 3.3.0 (default, Nov 3 2012, 15:28:29) [GCC 4.7.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>> [].ind

[issue14794] slice.indices raises OverflowError

2012-11-03 Thread Mark Dickinson
Mark Dickinson added the comment: Updated for Serhiy's comments on Rietveld: - fix some refleaks in error cases - streamline the C code somewhat following Serhiy's suggestions. Serhiy: you made a comment on the slice_indices function in test_slice.py: "Can we use Python implementation for

[issue7695] missing termios constants

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Patch seems clearly correct; compiles & works on MacOS. We could just apply this. -- nosy: +akuchling versions: +Python 3.4 -Python 3.3 ___ Python tracker _

[issue16392] import crashes on circular imports in ext modules

2012-11-03 Thread Stefan Behnel
Stefan Behnel added the comment: Hmm, we already do that for packages (i.e. when compiling __init__.py). Looks like this just needs to be done for all modules in Py3. And unless there is a compelling reason for Py_InitModule4() not to do it, I think it should be reverted to its Py2 behaviour.

[issue9584] Allow curly brace expansion

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Help is still needed to debug the failing test_glob.py on Windows. I just tried this patch against 3.4trunk. The first hunk of the glob.py patch doesn't apply because 'for name in glob1(None, basename): yield name' was changed to 'yield from glob1(None, basena

[issue16190] Misleading warning in random module docs

2012-11-03 Thread George Peristerakis
Changes by George Peristerakis : -- nosy: +George.Peristerakis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16349] Document whether it's safe to use bytes for struct format string

2012-11-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think the example should be switched *and* the formats should specify the endianess so the examples work on all systems. -- ___ Python tracker __

[issue10030] Patch for zip decryption speedup

2012-11-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +serhiy.storchaka versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list m

[issue9584] Allow curly brace expansion

2012-11-03 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2012-11-03 Thread George Peristerakis
George Peristerakis added the comment: Correction a typo error in the test. -- Added file: http://bugs.python.org/file27870/issue9674.patch ___ Python tracker ___

[issue16392] import crashes on circular imports in ext modules

2012-11-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that Py_InitModule4 in Python 2 did add the module object to sys.modules (by calling PyImport_AddModule) before returning, but PyModule_Create in Python 3 doesn't. (PEP 3121 doesn't seem to mention PyModule_Create at all, strangely; it seems the PEP does

[issue11166] No exit when daemon thread is running.

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Closing, since the original reporter believes the problem was fixed. -- nosy: +akuchling resolution: -> out of date status: open -> closed ___ Python tracker __

[issue5411] Add xz support to shutil

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: I will upload my patch and compare it with Serhiy’s. Now that 3.3.0 is released, there is no hurry. -- ___ Python tracker ___

[issue16392] import crashes on circular imports in ext modules

2012-11-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: A simple test seems to confirm the problem already existed in 3.2. -- ___ Python tracker ___ ___ Pyt

[issue16024] Doc cleanup regarding path=fd, dir_fd, follow_symlinks, etc

2012-11-03 Thread A.M. Kuchling
A.M. Kuchling added the comment: Patch looks good with two small changes. * "for consistency's sakes" is used in 2 places; this should be "sake", not the plural "sakes". * "Normally the *path* argument specified to functions": 'specified to' sounds wrong, and IMHO would be better as 'provided

[issue16392] import crashes on circular imports in ext modules

2012-11-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Are you sure this worked before 3.3? Regardless, it seems you could fix this issue by adding a single line just after the PyModule_Create() call: __pyx_m = PyModule_Create(&__pyx_moduledef); #endif if (PyDict_SetItemString(PyImport_GetModuleDict(),

[issue16304] re: Match Objects always have a boolean value of True

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch. Note that :const:`True` should be ``True``. -- nosy: +eric.araujo ___ Python tracker ___ ___

[issue14794] slice.indices raises OverflowError

2012-11-03 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch (only cosmetic fixes with respect to the first patch). Thanks Ezio Melotti for comments on #python-dev. -- Added file: http://bugs.python.org/file27869/issue14794_v2.patch ___ Python tracker

[issue13424] Add examples for open’s new opener argument

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: fd leak fixed in 95ea024f0569. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10030] Patch for zip decryption speedup

2012-11-03 Thread Robert de Vries
Robert de Vries added the comment: Patch for python 2.7 Same patch as for python 3, backported to python 2.7 Tested on Linux only. -- Added file: http://bugs.python.org/file27868/zipdecrypt-2.7.patch ___ Python tracker

[issue10030] Patch for zip decryption speedup

2012-11-03 Thread Robert de Vries
Robert de Vries added the comment: Attached you will find the updated patch for the python 3 tree as of now. I have measured a speed-up of more than a factor 100. -- nosy: +rhdv Added file: http://bugs.python.org/file27867/zipdecrypt-3.patch ___ Pyth

[issue13424] Add examples for open’s new opener argument

2012-11-03 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: fixed -> stage: committed/rejected -> commit review status: closed -> open ___ Python tracker ___ ___

[issue13424] Add examples for open’s new opener argument

2012-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See my comments in Rietveld. -- nosy: +serhiy.storchaka type: -> enhancement ___ Python tracker ___ _

[issue13424] Add examples for open’s new opener argument

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: Fixed, thanks! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: +Python 3.4 ___ Python tracker __

[issue16339] Document "exec(stmt, global_dict, local_dict)" form in Python 2?

2012-11-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue16392] import crashes on circular imports in ext modules

2012-11-03 Thread Stefan Behnel
Stefan Behnel added the comment: Since it's quite possible that this has nothing to do with the frozen part of the importlib specifically, I'm removing that bit from the ticket title. -- title: frozen importlib crashes on circular imports in ext modules -> import crashes on circular im

[issue13424] Add examples for open’s new opener argument

2012-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 17b094c08600 by Éric Araujo in branch '3.3': Add examples for opener argument of open (#13424). http://hg.python.org/cpython/rev/17b094c08600 -- nosy: +python-dev ___ Python tracker

[issue16336] Check input in surrogatepass error handler

2012-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for spotting the error and fixing it! -- assignee: -> ezio.melotti resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue16336] Check input in surrogatepass error handler

2012-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 18ed608ee594 by Ezio Melotti in branch '3.2': #16336: fix input checking in the surrogatepass error handler. Patch by Serhiy Storchaka. http://hg.python.org/cpython/rev/18ed608ee594 New changeset 8d5c147f030d by Ezio Melotti in branch '3.3': #1633

[issue4683] urllib2.HTTPDigestAuthHandler fails on third hostname?

2012-11-03 Thread Mark Lawrence
Mark Lawrence added the comment: Are the tests for HTTPAuthDigest still outstanding? -- nosy: +BreamoreBoy ___ Python tracker ___ ___ P

[issue1605192] Make Imap Error more helpful

2012-11-03 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be closed as the code from rev. 54343 is live on Python 3.3. See also Issue6426. -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue16353] add function to os module for getting path to default shell

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: Please use ``sh`` or maybe :command:`sh` (check the sphinx doc) instead of `sh`. -- ___ Python tracker ___

[issue16353] add function to os module for getting path to default shell

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: Any interest in doing like os.get_terminal_size/shutil.get_terminal_size with the os function being basic (i.e. current patch) and the shutil version querying the env var SHELL in addition? -- nosy: +eric.araujo ___ Py

[issue16163] Wrong name in Lib/pkgutil.py:iter_importers

2012-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: I don't think it's necessary to check for UnboundLocalError/NameError in the tests. -- nosy: +ezio.melotti priority: normal -> high stage: -> patch review type: -> behavior ___ Python tracker

[issue13424] Add examples for open’s new opener argument

2012-11-03 Thread Guillaume P
Guillaume P added the comment: Here is a proposed patch to the documentation. -- keywords: +patch nosy: +guillaumep Added file: http://bugs.python.org/file27866/13424.patch ___ Python tracker __

[issue10796] readline completion flaw

2012-11-03 Thread Éric Araujo
Éric Araujo added the comment: I think I get it: Python sets custom delimiters that include '-' because for the Python REPL, it’s not possible to have one identifier with a dash, so it’s considered a delimiter and when you press tab, a new completion is started. For a custom REPL however, you

[issue6584] gzip module has no custom exception

2012-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: The new exception should also be documented, and a versionadded and Doc/whatsnew/3.4.rst entry added. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker

[issue16392] frozen importlib crashes on circular imports in ext modules

2012-11-03 Thread Stefan Behnel
Changes by Stefan Behnel : Added file: http://bugs.python.org/file27865/cystdlibbug.py ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue16392] frozen importlib crashes on circular imports in ext modules

2012-11-03 Thread Stefan Behnel
Stefan Behnel added the comment: Well, it's not like the setup was all that difficult. 1) Install the latest github master of Cython (they provide one-click archives that pip can install for you), 2) change into the CPython stdlib directory and run the script I attached, 3) execute "import os"

[issue10796] readline completion flaw

2012-11-03 Thread hideaki
hideaki added the comment: I think this is the default behavior of readline module. the default word delimiters for completion contains dash(-). so completion breaks at dash. >>> import readline >>> readline.get_completer_delims() ' \t\n`~!@#$%^&*()-=+[{]}\\|;:\'",<>/?' In contrast, the

[issue8401] Strange behavior of bytearray slice assignment

2012-11-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue16398] deque.rotate() could be much faster

2012-11-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16398] deque.rotate() could be much faster

2012-11-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue16398] deque.rotate() could be much faster

2012-11-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Extension Modules -Library (Lib) stage: -> needs patch versions: +Python 3.4 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___

[issue16349] Document whether it's safe to use bytes for struct format string

2012-11-03 Thread Mark Dickinson
Mark Dickinson added the comment: > Also it would be nice to clarify if struct.Struct.format is meant to be > a > byte string. Hmm. That seems wrong to me. After all, the format string is supposed to be a piece of human-readable text rather than a collection of bytes. I think it's borderli

[issue8401] Strange behavior of bytearray slice assignment

2012-11-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7ebc0db5c18 by Ezio Melotti in branch 'default': Merge typo fixes (and the fix for #8401 that I wrongly merged) with 3.3. http://hg.python.org/cpython/rev/a7ebc0db5c18 -- ___ Python tracker

[issue16349] Document whether it's safe to use bytes for struct format string

2012-11-03 Thread Mark Dickinson
Mark Dickinson added the comment: > but also discovered that example outputs are wrong That's documented to some extent: there's a line in the docs that says: "All examples assume a native byte order, size, and alignment with a big-endian machine". Given that little-endian machines are much m

[issue16398] deque.rotate() could be much faster

2012-11-03 Thread Simon Law
New submission from Simon Law: If you look at the implementation of deque.rotate(), it does the equivalent of deque.append(deque.popleft()) or deque.appendleft(deque.pop()). Unfortunately, for larger rotations, the pop() and append() calls just do too much work. Since the documentation recomme

[issue14794] slice.indices raises OverflowError

2012-11-03 Thread Mark Dickinson
Mark Dickinson added the comment: I should note that this patch fixes/changes one other aspect of slice.indices: namely that it used to accept a negative length, and return essentially meaningless results in that case: >>> slice(0, 10, 1).indices(-3) (-3, -3, 1) With the patch, it no

[issue16394] Improving tee() memory footprint

2012-11-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: -serhiy.storchaka stage: -> needs patch type: performance -> enhancement versions: -Python 2.6, Python 3.1 ___ Python tracker ___ __

[issue15125] argparse: positional arguments containing - in name not handled well

2012-11-03 Thread Simon Law
Simon Law added the comment: 15125-2.patch applies to the default branch. It makes dest behave the same for positional and optional arguments in terms of name mangling. Also, there is a backward-compatibility path in Namespace to support old-style getattr() access. However, it's not documente

  1   2   >