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

2012-11-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16398 ___ ___ Python-bugs-list

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

2012-11-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16398 ___ ___ Python-bugs-list mailing list

[issue8401] Strange behavior of bytearray slice assignment

2012-11-03 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8401 ___

[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 default

[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

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

2012-11-03 Thread Stefan Behnel
Changes by Stefan Behnel sco...@users.sourceforge.net: Added file: http://bugs.python.org/file27865/cystdlibbug.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16392 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue6584

[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,

[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 rep...@bugs.python.org http://bugs.python.org/issue13424

[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 rep...@bugs.python.org

[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 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue16353 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue1605192

[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 rep...@bugs.python.org http://bugs.python.org/issue4683 ___

[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':

[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 rep...@bugs.python.org

[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

[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

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

2012-11-03 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16339 ___ ___ Python-bugs-list

[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 rep...@bugs.python.org http://bugs.python.org/issue13424

[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 rep...@bugs.python.org http://bugs.python.org/issue13424 ___

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

2012-11-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: fixed - stage: committed/rejected - commit review status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13424 ___

[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 ___

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue13424 ___ ___ Python-bugs-list

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue16304 ___

[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(),

[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 to' or

[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 rep...@bugs.python.org http://bugs.python.org/issue16392 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue5411 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue11166

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue9674

[issue9584] Allow curly brace expansion

2012-11-03 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9584 ___ ___

[issue10030] Patch for zip decryption speedup

2012-11-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +serhiy.storchaka versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10030 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue16349

[issue16190] Misleading warning in random module docs

2012-11-03 Thread George Peristerakis
Changes by George Peristerakis peristera...@gmail.com: -- nosy: +George.Peristerakis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16190 ___ ___

[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,

[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.

[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 rep...@bugs.python.org http://bugs.python.org/issue7695

[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

[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.

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue15076 ___

[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

[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 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue5894 ___

[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 rep...@bugs.python.org http://bugs.python.org/issue4318

[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 rep...@bugs.python.org http://bugs.python.org/issue4318 ___ ___

[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 rep...@bugs.python.org http://bugs.python.org/issue4318 ___ ___ Python-bugs-list mailing list

[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 rep...@bugs.python.org http://bugs.python.org/issue15125 ___

[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: -

[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 rep...@bugs.python.org http://bugs.python.org/issue7695 ___

[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

[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

[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

[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 rep...@bugs.python.org

[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

[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 not

[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 rep...@bugs.python.org http://bugs.python.org/issue9846 ___

[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(

[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 markus.magnu...@gmail.com: -- title: argparse: - argparse: append action with default list adds to list instead of overriding ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16399

[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

[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: -

[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). --

[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 (like

[issue11016] Add S_ISDOOR to the stat module

2012-11-03 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11016 ___ ___

[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. --

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue5288

[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 rep...@bugs.python.org http://bugs.python.org/issue1100942

[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 rep...@bugs.python.org http://bugs.python.org/issue13349

[issue16394] Reducing tee() memory footprint

2012-11-03 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- title: Improving tee() memory footprint - Reducing tee() memory footprint ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16394 ___

[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

[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(). -- ___

[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 rep...@bugs.python.org http://bugs.python.org/issue15001

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue11797

[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 rep...@bugs.python.org http://bugs.python.org/issue11797 ___

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

2012-11-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1100942 ___ ___

[issue10182] match_start truncates large values

2012-11-03 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10182 ___ ___ Python-bugs-list

[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 rep...@bugs.python.org

[issue12634] Random Remarks in class documentation

2012-11-03 Thread Ezio Melotti
Ezio Melotti added the comment: See also #16048. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12634 ___ ___ Python-bugs-list mailing list

[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

[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 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

[issue12634] Random Remarks in class documentation

2012-11-03 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12634 ___ ___ Python-bugs-list

[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

[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. --

<    1   2