Berker Peksag added the comment:
You are right, thanks Senthil.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16302
___
___
Python-bugs-list
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
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
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
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
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
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
___
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15132
___
___
Python-bugs-list
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'
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
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
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
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
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
___
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
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
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:
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,
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
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
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
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
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:
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
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
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
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
___
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
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
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
___
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
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
___
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
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
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
___
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
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
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
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:
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
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
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
___
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
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
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.
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
___
Changes by Éric Araujo mer...@netwok.org:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16299
___
___
É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
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?
--
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
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
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
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'
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.
--
___
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
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
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
___
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
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.
--
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
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.
--
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: -
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
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
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
Andrew Svetlov added the comment:
Thank you, Marek
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16241
___
___
Python-bugs-list mailing list
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
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
___
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
___
___
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
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
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
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
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
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
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +mark.dickinson, rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16305
___
___
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
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
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:
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]
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
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
Éric Araujo added the comment:
Thanks! Reviewed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8913
___
___
Python-bugs-list mailing list
83 matches
Mail list logo