[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py

2012-10-23 Thread Berker Peksag
Berker Peksag added the comment: You are right, thanks Senthil. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16302 ___ ___ Python-bugs-list

[issue16276] OrderedDict constructor do not keep items order

2012-10-23 Thread Antoine Dechaume
Antoine Dechaume added the comment: I did read the docs before submitting, obviously my brain was not plugged in. I am sorry for the noise. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16276

[issue10527] multiprocessing.Pipe problem: handle out of range in select()

2012-10-23 Thread Charles-François Natali
Charles-François Natali added the comment: This problem affects any single use of select(): instead of using an ad-hoc wrapper in each module, it would probably make sense to add a higher level selector class to the select module which would fallback on the right syscall (i.e. poll() if

[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-23 Thread tb
tb added the comment: This is my use case: I am creating a custom DictReader class for reading and accessing the columns white space and case insensitive. For this I created a dict subclass (DictInsensitive) with a custom __getitem__ method. DictReaderInsensitive.__next__ overrides the

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Vinay Sajip
Vinay Sajip added the comment: Sorry, not yet - I haven't been able to spend much time looking at it, but hopefully I will be able to before too long. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16116

[issue1248658] dir should accept dirproxies for __dict__

2012-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is not relevant for supported python releases: in python 2.6 and later my usecase can be implemented using the magic method __dir__. I'm therefore closing this issue. -- resolution: - rejected status: open - closed

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-23 Thread Juho Vuori
Juho Vuori added the comment: Should the bug be closed as it seems to be fixed now? -- nosy: +juho ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10836 ___

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-10-23 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15132 ___ ___ Python-bugs-list

[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2012-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: An 'atTime' argument would work. I'm currently using a subclass of BaseRotatingHandler that implements just the 'MIDNIGHT' option of TimedRotatingFileHandler with a rotation hour argument. The attached patch is a first attempt at implementing the 'atTime'

[issue16286] Optimize a==b and a!=b for bytes and str

2012-10-23 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot this issue when I did the following commit: -- changeset: 79902:b68be1025c42 user:Victor Stinner victor.stin...@gmail.com date:Tue Oct 23 02:48:49 2012 +0200 files: Objects/unicodeobject.c description: Optimize

[issue16245] Update html.entities.html5 dictionary and parseentities.py

2012-10-23 Thread Ezio Melotti
Ezio Melotti added the comment: I think it's ok to have a separate file rather than patching the existing one (see attached patch). If the old script is not used anymore it could be removed, otherwise we could just leave it there. -- stage: needs patch - patch review

[issue6975] symlinks incorrectly resolved on Linux

2012-10-23 Thread Kimmo Mustonen
Kimmo Mustonen added the comment: Tried it out and it seemed to fix the issue. Ported the patch to python3. -- nosy: +tzimmo Added file: http://bugs.python.org/file27668/issue6975_py3.patch ___ Python tracker rep...@bugs.python.org

[issue16241] -X faulthandler is not documented in -X option docs

2012-10-23 Thread Marek Suppa
Marek Suppa added the comment: The appended diff tries to explain the situation a bit and fix this issue. Is it clear enough? -- keywords: +patch nosy: +mrshu Added file: http://bugs.python.org/file27669/issue16241.diff ___ Python tracker

[issue16245] Update html.entities.html5 dictionary and parseentities.py

2012-10-23 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file27670/issue16245-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16245 ___

[issue16210] combine the two type() definitions in built-in function docs

2012-10-23 Thread Pete Sevander
Pete Sevander added the comment: Here's a patch for it. -- keywords: +patch nosy: +sevanteri Added file: http://bugs.python.org/file27671/issue16210.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16210

[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can overwrite fieldnames getter. @property def fieldnames(self): if self._fieldnames is None: try: self._fieldnames = next(self.reader) except StopIteration: pass

[issue16303] typo in error message in pstats.py

2012-10-23 Thread Vladimir Rutsky
New submission from Vladimir Rutsky: Please see attached patch for details. -- files: quote_typo.patch keywords: patch messages: 173594 nosy: vrutsky priority: normal severity: normal status: open title: typo in error message in pstats.py versions: Python 2.7 Added file:

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

2012-10-23 Thread Vladimir Rutsky
New submission from Vladimir Rutsky: re module documentation says: Match Objects always have a boolean value of :const:`True`, so that you can test whether e.g. :func:`match` resulted in a match with a simple if statement. which is confusing - matched objects have boolean value True,

[issue15040] stdlib compatibility with pypy: mailbox module

2012-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84cd07899baf by Petri Lehtinen in branch '2.7': #15040: Close files in mailbox tests for PyPy compatibility http://hg.python.org/cpython/rev/84cd07899baf -- nosy: +python-dev ___ Python tracker

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2012-10-23 Thread Tuukka Hastrup
Tuukka Hastrup added the comment: I'm attaching a patch that changes DocTestSuite's default behaviour as suggested. -- keywords: +patch nosy: +tuukka Added file: http://bugs.python.org/file27673/issue15916.patch ___ Python tracker

[issue15040] stdlib compatibility with pypy: mailbox module

2012-10-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Applied, thanks! -- nosy: +petri.lehtinen resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15040

[issue11175] allow argparse FileType to accept encoding and errors arguments

2012-10-23 Thread Lucas Maystre
Lucas Maystre added the comment: Here's an attempt at implementing this (my first contribution). Some notes: - I tried to keep `__repr__()` backwards compatible. It would have been easier to inherit from `_AttributeHolder`, but maybe this might break some things... - I added some test cases

[issue12886] datetime.strptime parses input wrong

2012-10-23 Thread Hieu Nguyen
Hieu Nguyen added the comment: I have attached a patch for this issue, so that if the format of the input argument doesn't match ISO 8601 format, it will return ValueError: time data xxx does not match format xxx. -- keywords: +patch nosy: +hieu.nguyen Added file:

[issue16245] Update html.entities.html5 dictionary and parseentities.py

2012-10-23 Thread Iuliia Proskurnia
Iuliia Proskurnia added the comment: Version with --patch to modify Lib/html/entities.py automatically -- nosy: +iuliia.proskurnia Added file: http://bugs.python.org/file27676/issue16245-3.diff ___ Python tracker rep...@bugs.python.org

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-23 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: I've attached a proposed fix where the subparser parses to an empty namespace and that namespace is then merged with the parent namespace -- keywords: +patch nosy: +nailor, petri.lehtinen Added file: http://bugs.python.org/file27677/issue9351.patch

[issue11175] allow argparse FileType to accept encoding and errors arguments

2012-10-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Lucas: You only added tests for the repr, you should probably test the actual new functionality, too. -- nosy: +petri.lehtinen stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org

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

2012-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The documentation is okay. :func:`match` returns a Match object (which have a boolean value of True) if match and None (which have a boolean value of False) if doesn't match. -- nosy: +serhiy.storchaka ___

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-23 Thread Kimmo Mustonen
Kimmo Mustonen added the comment: Tried to fix uid/gid issues but I didn't have a system with uid/gid larger than long so wasn't able to verify the fix. -- keywords: +patch nosy: +tzimmo Added file: http://bugs.python.org/file27678/issue2005_py3.patch

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

2012-10-23 Thread R. David Murray
R. David Murray added the comment: Since the quoted paragraph is distant from where the information about the ``None`` return is documented, the wording of the quoted paragraph can be improved to make this clearer: Match Objects always have a boolean value of ``True``. Since ``None`` (which

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Vinay Sajip
Vinay Sajip added the comment: Added fixes in my sandbox repo. Please verify. -- hgrepos: +155 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16116 ___

[issue14897] struct.pack raises unexpected error message

2012-10-23 Thread Matti Mäki
Matti Mäki added the comment: Changed the error message as suggested by http://bugs.python.org/issue14897#msg161493 Also made similar change to struct.pack_into -- keywords: +patch nosy: +makimat Added file: http://bugs.python.org/file27679/issue14897.patch

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- keywords: +patch Added file: http://bugs.python.org/file27680/c89378f64819.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16116 ___

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-10-23 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Added a patch for passing everything of not type basestring to tuple constructor and assigns that to testnames. -- keywords: +patch nosy: +nailor Added file: http://bugs.python.org/file27681/issue15132_py2.patch

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +tmp_fileurl = 'file://localhost' + tmp_file tmp_fileurl = 'file://localhost/' + tmp_file.replace(os.path.sep, '/') -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16301

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-10-23 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Added file: http://bugs.python.org/file27682/issue15132_py3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15132 ___

[issue11175] allow argparse FileType to accept encoding and errors arguments

2012-10-23 Thread Lucas Maystre
Lucas Maystre added the comment: OK, as discussed offline with Petri I'll put some tests to ensure that open() is called the right way (using unittest.mock.patch). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11175

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-10-23 Thread Hynek Schlawack
Hynek Schlawack added the comment: As announced, I hereby present an idea how to solve this problem for 3.4. Please have a look at it. :) -- assignee: docs@python - versions: -Python 3.2, Python 3.3 Added file: http://bugs.python.org/file27683/makedirs-on_wrong_mode-1.diff

[issue16241] -X faulthandler is not documented in -X option docs

2012-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 957a6c00d3af by Andrew Svetlov in branch '3.3': Issue #16241: document -X faulthandler command line option. http://hg.python.org/cpython/rev/957a6c00d3af New changeset 665e3be40ad1 by Andrew Svetlov in branch 'default': Issue #16241: document -X

[issue8913] Document that datetime.__format__ is datetime.strftime

2012-10-23 Thread Heikki Partanen
Heikki Partanen added the comment: Added documentation for __format__ for datetime, time and date, and also added example code for using string.format. Seemed to merge cleanly to 3.4 and 2.7. -- keywords: +patch nosy: +heikki.partanen Added file:

[issue16241] -X faulthandler is not documented in -X option docs

2012-10-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looks good to me, committed. Thanks, Marek. Please, fill PSF Contributor Agreement: http://www.python.org/psf/contrib/ -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16241

[issue16241] -X faulthandler is not documented in -X option docs

2012-10-23 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16241

[issue16241] -X faulthandler is not documented in -X option docs

2012-10-23 Thread Petri Lehtinen
Petri Lehtinen added the comment: Andew: Shouldn't Misc/NEWS be updated, too? -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16241 ___

[issue16241] -X faulthandler is not documented in -X option docs

2012-10-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Do you think so? It was documenting already existed feature. But, if you really want I can do it of course. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16241

[issue16245] Update html.entities.html5 dictionary and parseentities.py

2012-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd8b969d7459 by Ezio Melotti in branch 'default': #16245: add a script to generate the html.entities.html5 dict. http://hg.python.org/cpython/rev/dd8b969d7459 -- nosy: +python-dev ___ Python tracker

[issue16245] Update html.entities.html5 dictionary and parseentities.py

2012-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1eb1c6942ac8 by Ezio Melotti in branch '3.3': #16245: Fix the value of a few entities in html.entities.html5. http://hg.python.org/cpython/rev/1eb1c6942ac8 New changeset 70fab10cd542 by Ezio Melotti in branch 'default': #16245: merge with 3.3.

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Nope, I have backport it to other versions. I shall close it then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10836 ___

[issue16299] __build__ as a temp build directory for setup.py

2012-10-23 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16299 ___ ___

[issue16299] __build__ as a temp build directory for setup.py

2012-10-23 Thread Éric Araujo
Éric Araujo added the comment: Ronald Oussoren on the mailing list: If the name of the build directory bothers you you can change it by adding two lines to ~/.pydistutils.cfg: [build] build-base = __build__ Agreed, closing. -- ___ Python tracker

[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-23 Thread tb
tb added the comment: Okay, that makes my use case obsolete. Overwriting the getter method like this seems obvious ... Somehow this hasn't come to my mind. Sorry for bothering. From my point of view, we can close this issue. Or is there another use case? --

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Serhiy Storchaka added the comment: +tmp_fileurl = 'file://localhost' + tmp_file tmp_fileurl = 'file://localhost/' + tmp_file.replace(os.path.sep, '/') Ok, I realized the mistake. 'file://localhost' + tmpfile is getting expanded to

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Masami HIRATA
Masami HIRATA added the comment: I attached new log file. (generated with 3.3.0 + your patch) -- Added file: http://bugs.python.org/file27685/Python33_with_venv_3.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16116

[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError

2012-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 00e5e963b7d8 by Senthil Kumaran in branch 'default': Fix issue16300: addressing the buildbot failures on windows http://hg.python.org/cpython/rev/00e5e963b7d8 -- ___ Python tracker rep...@bugs.python.org

[issue16301] localhost() and thishost() in urllib/request.py

2012-10-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: Buildbot still failing, but due to different reason. PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'c:\\users\\buildbot\\appdata\\local\\temp\\tmpwwvqao'

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Vinay Sajip
Vinay Sajip added the comment: So you agree that it's working? The include path has the venv's include in it, and the c:\Python33\libs inclusion allows the linking to work. I'll commit the changes to 3.3, 3.4 and close the issue shortly. -- ___

[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list

2012-10-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for the patch. -self.testNames = (self.defaultTest,) +if isinstance(self.defaultTest, str): +self.testNames = (self.defaultTest,) +else: +self.testNames = tuple(self.defaultTest) Is

[issue16245] Update html.entities.html5 dictionary and parseentities.py

2012-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb80df16c4ff by Ezio Melotti in branch 'default': Add Misc/NEWS entry for dd8b969d7459/#16245. http://hg.python.org/cpython/rev/fb80df16c4ff -- ___ Python tracker rep...@bugs.python.org

[issue6972] zipfile.ZipFile overwrites files outside destination path

2012-10-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file27665/zipfile_fix_arcname_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972 ___

[issue6972] zipfile.ZipFile overwrites files outside destination path

2012-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated. Fixed case '../C:/foo' on Windows. -- Added file: http://bugs.python.org/file27686/zipfile_fix_arcname_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6972

[issue16245] Update html.entities.html5 dictionary and parseentities.py

2012-10-23 Thread Ezio Melotti
Ezio Melotti added the comment: I now committed an improved version of the script (thanks Iuliia!) and updated the html.entities.html5 dictionary accordingly. I'm leaving this open because we will have to check if the dictionary is still updated before the release of Python 3.4. --

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2012-10-23 Thread Chris Jerdonek
Chris Jerdonek added the comment: Hmm. This patch still raises the has no docstrings ValueError if not tests is True. And because the patch changes the default DocTestFinder, it's possible that the patch changes behavior in non-error use cases. Why not just return an empty TestSuite if not

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: uid_t and gid_t converters can not be just typedefs. uid_t and gid_t can be unsigned integral types (but including -1). Also should be fixed Modules/grpmodule.c, Modules/pwdmodule.c and Modules/signalmodule.c. --

[issue16297] make csv.DictReader.__init__ use self.fieldnames

2012-10-23 Thread R. David Murray
R. David Murray added the comment: It does seem more logical to implement this in the getter, now that Serhiy has pointed it out :) So let's close this. (Aside: if it were me, I'd move the mangling of the fieldnames into the ListInsensitive __init__ method.) -- resolution: -

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 43f537339107 by Vinay Sajip in branch '3.3': Issue #16116: Now uses corrected include and library paths when building C extensions in a venv. http://hg.python.org/cpython/rev/43f537339107 New changeset 5e9f656c3d67 by Vinay Sajip in branch

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: +- Issue #16116: Fix include and library paths to be correctwhen building C Spaces. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16116

[issue16241] -X faulthandler is not documented in -X option docs

2012-10-23 Thread Marek Šuppa
Marek Šuppa added the comment: I already filled and signed the PSF Contributor Agreement thanks to Petri at the PyCon Finland sprint. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16241

[issue16241] -X faulthandler is not documented in -X option docs

2012-10-23 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thank you, Marek -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16241 ___ ___ Python-bugs-list mailing list

[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2012-10-23 Thread Vinay Sajip
Vinay Sajip added the comment: Thanks for the patch. I've added the weekly test and the documentation update, can you take a look? -- hgrepos: +156 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9556

[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2012-10-23 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- keywords: +patch Added file: http://bugs.python.org/file27687/7b2c68a00118.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9556 ___

[issue9556] Specifying the time a TimedRotatingFileHandler rotates

2012-10-23 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9556 ___ ___

[issue16142] ArgumentParser inconsistent with parse_known_args

2012-10-23 Thread Sam Breese
Sam Breese added the comment: Make that a few days. I fixed the case where the known arg is first, but not the other one. Will get to it soon, hopefully. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16142

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

2012-10-23 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't think the relevant information -- that re match and search return None in the case of no match -- is that distant from the paragraph quoted. This fact is already mentioned FOUR times in the page, in each of the re.match, re.search functions and

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

2012-10-23 Thread R. David Murray
R. David Murray added the comment: Yeah, distant was a poor choice of words. The issue really comes up if you happen to start reading with that section (say when revisiting the docs with an imperfect memory of what you read before). So, I agree that no change is *required*. But adding the

[issue16305] possible segfault in math.factorial

2012-10-23 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc: import math, sys math.factorial(sys.maxsize - 1) (Hit Ctrl-C) Segmentation fault The cause is probably in mathmodule.c::factorial_odd_part(): error: Py_DECREF(outer); done: Py_DECREF(inner); return outer; In case of error, the function

[issue12886] datetime.strptime parses input wrong

2012-10-23 Thread Hieu Nguyen
Hieu Nguyen added the comment: Attached another patch for clearer test cases against this fix (as suggested from Ezio). -- Added file: http://bugs.python.org/file27688/issue12886.patch ___ Python tracker rep...@bugs.python.org

[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32

2012-10-23 Thread Masami HIRATA
Masami HIRATA added the comment: So you agree that it's working? Yes, the patch works correctly. Thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16116 ___

[issue16305] possible segfault in math.factorial

2012-10-23 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +mark.dickinson, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16305 ___ ___

[issue8713] multiprocessing needs option to eschew fork() under Linux

2012-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: A use case for not using fork() is when your parent process opens some system resources of some sort (for example a listening TCP socket). The child will then inherit those resources, which can have all kinds of unforeseen and troublesome consequences (for

[issue8713] multiprocessing needs option to eschew fork() under Linux

2012-10-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, instead of doing fork() + exec() in pure Python, you probably want to use _posixsubprocess.fork_exec(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713

[issue8713] multiprocessing needs option to eschew fork() under Linux

2012-10-23 Thread Christian Heimes
Christian Heimes added the comment: +1 I still have to use parallel python (pp) in our application stack because the fork() approach causes a lot of strange issues in our application. It might be the punishment for embedding a Java runtime env into a Python process, too. :) -- nosy:

[issue16306] Multiple error line for unknown command line parameter

2012-10-23 Thread Thiébaud Weksteen
New submission from Thiébaud Weksteen: Hi, I've just came across an insignificant bug in the Python command line interface. When using an unknown parameter, the same error appears more than once: $ python3 -a -z Unknown option: -a Unknown option: -z Unknown option: -a usage: python3 [option]

[issue9890] Visual C++ Runtime Library Error is there a fix?

2012-10-23 Thread Roger Serwy
Roger Serwy added the comment: I'm closing this issue as a duplicate of #11288. -- resolution: - duplicate status: open - closed superseder: - Python installed from MSI doesn't work ___ Python tracker rep...@bugs.python.org

[issue16306] Multiple error line for unknown command line parameter

2012-10-23 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- components: +Interpreter Core -None keywords: +easy versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306

[issue8913] Document that datetime.__format__ is datetime.strftime

2012-10-23 Thread Éric Araujo
Éric Araujo added the comment: Thanks! Reviewed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8913 ___ ___ Python-bugs-list mailing list