[issue16302] Fix ResourceWarning in Lib/test/test_urllib.py
Berker Peksag added the comment: You are right, thanks Senthil. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16302 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16276] OrderedDict constructor do not keep items order
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10527] multiprocessing.Pipe problem: handle out of range in select()
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 available, or /dev/poll on Solaris- like). Doesn't Solaris have poll()? If so then I don't see why one would want to use /dev/poll in the single fd case. Because it offers better performance than poll(): you don't have to keep passing the FD at each syscall (note that I'm not talking about the signal FD case, but about a generic polling API). Also note that microbenchmarks with one FD isn't really meaningful, since in real life the FD won't be ready at least part of the time: like Antoine, I think that worrying about performance impact is really a premature optimization (unless real benchmarks prove otherwise). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10527 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16297] make csv.DictReader.__init__ use self.fieldnames
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 original DictReader.__next__ by returning a DictInsensitive. I also override the DictReader.fieldnames property to lower/strip all fieldnames. See http://stackoverflow.com/a/12970460/1251007 for an example. This is all functional with the current csv.DictReader. All entries in DictReaderInsensitive.fieldnames are in lower case and without white space and by iterating over the lines I get dictionaries where I can access the keys white space/case insensitive. Now, the problem is: If I want the check wether a specific fieldname is present in the input file, I have strip()/lower() by hand: csv_in = DictReaderInsensitive(open(input_file, 'rU')) if Fieldname to check.strip().lower() in csv_in.fieldnames To do this automatically, I created a ListInsensitive as a subclass of list: class ListInsensitive(list): def __contains__(self, item): return list.__contains__(self, item.strip().lower()) Now I want csv.DictReader to use that new class. I thought of overwriting the setter method, but here lies the current problem. I can overwrite the setter method, but csv.DictReader does not use the setter method internally. My setter method looks like this: @fieldnames.setter def fieldnames(self, value): if value == None: self._fieldnames = None else: self._fieldnames = ListInsensitive() for name in value: self._fieldnames.append(name.strip().lower()) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16297 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1248658] dir should accept dirproxies for __dict__
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1248658 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10836] urllib.request.urlretrieve calls URLError with 3 args
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15132 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9556] Specifying the time a TimedRotatingFileHandler rotates
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' option, it is currently lacking documentation and tests for the 'WEEKLY' value for 'when'. -- status: pending - open versions: +Python 3.4 -Python 3.2 Added file: http://bugs.python.org/file27667/issue9556.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9556 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16286] Optimize a==b and a!=b for bytes and str
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 PyUnicode_RichCompare() for Py_EQ and Py_NE: always use memcmp() -- I will benchmark the overhead of memcmp() on short strings. We may check the first and last characters before calling memcmp() to limit the overhead of calling a function. I also read that GCC uses its builtin memcmp() which is slower than the memcmp() of the GNU libc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16286 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16245] Update html.entities.html5 dictionary and parseentities.py
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6975] symlinks incorrectly resolved on Linux
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 http://bugs.python.org/issue6975 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16241] -X faulthandler is not documented in -X option docs
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 rep...@bugs.python.org http://bugs.python.org/issue16241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16245] Update html.entities.html5 dictionary and parseentities.py
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16210] combine the two type() definitions in built-in function docs
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16297] make csv.DictReader.__init__ use self.fieldnames
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 self.line_num = self.reader.line_num if not isinstance(self._fieldnames, ListInsensitive): self._fieldnames = ListInsensitive(name.strip().lower() for name in self._fieldnames) return self._fieldnames -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16297 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16303] typo in error message in pstats.py
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: http://bugs.python.org/file27672/quote_typo.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16303 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16304] re: Match Objects always have a boolean value of True
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, doesn't matched - False. -- assignee: docs@python components: Documentation messages: 173595 nosy: docs@python, vrutsky priority: normal severity: normal status: open title: re: Match Objects always have a boolean value of True versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16304 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15040] stdlib compatibility with pypy: mailbox module
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 rep...@bugs.python.org http://bugs.python.org/issue15040 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings
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 rep...@bugs.python.org http://bugs.python.org/issue15916 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15040] stdlib compatibility with pypy: mailbox module
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11175] allow argparse FileType to accept encoding and errors arguments
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 for `__repr__()`, but that's it. I don't think there's any other sensible test to do, as we're really just passing stuff to `open()` - not sure about the style, especially line breaks... -- keywords: +patch nosy: +lum Added file: http://bugs.python.org/file27674/filetype11175.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12886] datetime.strptime parses input wrong
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: http://bugs.python.org/file27675/issue12886.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12886 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16245] Update html.entities.html5 dictionary and parseentities.py
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 http://bugs.python.org/issue16245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9351] argparse set_defaults on subcommands should override top level set_defaults
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11175] allow argparse FileType to accept encoding and errors arguments
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 http://bugs.python.org/issue11175 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16304] re: Match Objects always have a boolean value of True
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16304 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16304] re: Match Objects always have a boolean value of True
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 has a boolean value of ``False``) is returned when there is no match, you can test whether there was a match with a simple ``if`` statement. -- nosy: +r.david.murray versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16304 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14897] struct.pack raises unexpected error message
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14897 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15132 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16301] localhost() and thishost() in urllib/request.py
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11175] allow argparse FileType to accept encoding and errors arguments
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior
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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16241] -X faulthandler is not documented in -X option docs
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 faulthandler command line option. http://hg.python.org/cpython/rev/665e3be40ad1 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8913] Document that datetime.__format__ is datetime.strftime
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: http://bugs.python.org/file27684/issue8913.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8913 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16241] -X faulthandler is not documented in -X option docs
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16241] -X faulthandler is not documented in -X option docs
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16241] -X faulthandler is not documented in -X option docs
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16241] -X faulthandler is not documented in -X option docs
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16245] Update html.entities.html5 dictionary and parseentities.py
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 rep...@bugs.python.org http://bugs.python.org/issue16245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16245] Update html.entities.html5 dictionary and parseentities.py
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. http://hg.python.org/cpython/rev/70fab10cd542 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10836] urllib.request.urlretrieve calls URLError with 3 args
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16299] __build__ as a temp build directory for setup.py
Changes by Éric Araujo mer...@netwok.org: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16299] __build__ as a temp build directory for setup.py
É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 rep...@bugs.python.org http://bugs.python.org/issue16299 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16297] make csv.DictReader.__init__ use self.fieldnames
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? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16297 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16301] localhost() and thishost() in urllib/request.py
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 'file://localhostc:\something\..' Yeah, the final '/' missing was the problem. tmp_file.replace(...) is be better too, initial unwrap was encoding / and url2pathname to //. replacing path sep with '/' would be better. Thanks for the suggestion, Serhiy. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16301 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16300] Windows raises ValueError for file:///file/not/exists instead of URLError
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 http://bugs.python.org/issue16300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16301] localhost() and thishost() in urllib/request.py
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' http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/862/steps/test/logs/stdio fixing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16301 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16116 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15132] Let unittest.TestProgram()'s defaultTest argument be a list
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 there any reason this is a tuple instead of a list? A list would be more flexible. In contrast, the _convert_names() function used in this line of code sets self.testNames to be a list of test names: self.testNames = _convert_names(args) (from http://hg.python.org/cpython/file/8576bf1c0302/Lib/unittest/main.py#l161 ) By the way, this can only go into Python 3.4 as it is an enhancement. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15132 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16245] Update html.entities.html5 dictionary and parseentities.py
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 http://bugs.python.org/issue16245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6972] zipfile.ZipFile overwrites files outside destination path
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6972] zipfile.ZipFile overwrites files outside destination path
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16245] Update html.entities.html5 dictionary and parseentities.py
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. -- components: +Library (Lib) stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings
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 tests is True? IIRC, this was the conclusion of the issue 14649 discussion. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15916 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)
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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16297] make csv.DictReader.__init__ use self.fieldnames
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: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16297 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32
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 'default': Closes #16116: Merged fix from 3.3. http://hg.python.org/cpython/rev/5e9f656c3d67 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16116 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16241] -X faulthandler is not documented in -X option docs
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16241] -X faulthandler is not documented in -X option docs
Andrew Svetlov added the comment: Thank you, Marek -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9556] Specifying the time a TimedRotatingFileHandler rotates
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9556] Specifying the time a TimedRotatingFileHandler rotates
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9556] Specifying the time a TimedRotatingFileHandler rotates
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16142] ArgumentParser inconsistent with parse_known_args
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16304] re: Match Objects always have a boolean value of True
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 regex.match, regex.search methods, plus implied by the helper function used in the examples. Personally I think no change is required, but if the docs are going to be changed, I recommend going all the way and showing the usual re idiom with an example: Match Objects always have a boolean value of ``True``. Since ``None`` (which has a boolean value of ``False``) is returned when there is no match, you can test whether there was a match with a simple ``if`` statement. For example:: mo = re.search(pattern, string) if mo: process(mo) -- nosy: +stevenjd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16304 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16304] re: Match Objects always have a boolean value of True
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 example of the usual idiom as you suggest seems like it might be worthwhile. I'm fine with either course of action (or inaction, as the case may be). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16304 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16305] possible segfault in math.factorial
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 returns a released reference instead of NULL. -- messages: 173643 nosy: amaury.forgeotdarc priority: normal severity: normal status: open title: possible segfault in math.factorial type: crash versions: Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16305 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12886] datetime.strptime parses input wrong
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 http://bugs.python.org/issue12886 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16116] Can not install C extension modules to inside a venv on Python 3.3.0 for Win32
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16305] possible segfault in math.factorial
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +mark.dickinson, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16305 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8713] multiprocessing needs option to eschew fork() under Linux
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 example that listening TCP socket will be left open in the child when it is closed in the parent, and so trying to bind() to the same port again will fail). Generally, I think having an option for zero-sharing spawning of processes would help code quality. -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8713] multiprocessing needs option to eschew fork() under Linux
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8713] multiprocessing needs option to eschew fork() under Linux
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: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
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] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information. $ python -a -z Unknown option: -a Unknown option: -z Unknown option: -a usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ... Try `python -h' for more information. -- components: None messages: 173649 nosy: tweksteen priority: normal severity: normal status: open title: Multiple error line for unknown command line parameter type: behavior versions: Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9890] Visual C++ Runtime Library Error is there a fix?
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 http://bugs.python.org/issue9890 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16306] Multiple error line for unknown command line parameter
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 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8913] Document that datetime.__format__ is datetime.strftime
Éric Araujo added the comment: Thanks! Reviewed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8913 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com