Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: - ncoghlan
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12182
___
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +jnoller, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12174
___
___
Changes by Petri Lehtinen pe...@digip.org:
--
keywords: +patch
nosy: +petri.lehtinen
Added file: http://bugs.python.org/file22122/str_translate_docstring.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12164
Justin Warkentin justin.warken...@gmail.com added the comment:
Sorry, I haven't had a chance to look at this in a couple days. I've been very
busy with work. I'm not sure exactly how to write the test for this, so I don't
know that I'd be much help there.
One last thing, I was just looking
Changes by Petri Lehtinen pe...@digip.org:
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12157
___
___
Python-bugs-list
Petri Lehtinen pe...@digip.org added the comment:
I tested the patch on current 2.7 tip. It works and looks good to me.
--
nosy: +benjamin.peterson, petri.lehtinen, pitrou, stutzbach
___
Python tracker rep...@bugs.python.org
Ram Rachum cool...@cool-rr.com added the comment:
Why is this still marked as test needed?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11969
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
The test should be a diff against Lib/test/test_multiprocessing.py that adds a
unit test.
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11969
Petri Lehtinen pe...@digip.org added the comment:
Should the .pyc/.pyo file writing be disabled altogether if stat() and/or
fstat() is not available. In this case, there's no way to check mtimes, right?
--
nosy: +brett.cannon, ncoghlan, petri.lehtinen
versions: +Python 3.1, Python 3.2,
Petri Lehtinen pe...@digip.org added the comment:
IMO it should be explained in a comment why getattr is used instead of just
self._child_created. Otherwise the patch looks good and useful.
--
nosy: +petri.lehtinen
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
We can use a class attribute to set the attribute before calling __init__:
diff --git a/Lib/subprocess.py b/Lib/subprocess.py
--- a/Lib/subprocess.py
+++ b/Lib/subprocess.py
@@ -664,6 +664,8 @@ _PLATFORM_DEFAULT_CLOSE_FDS = object()
Petri Lehtinen pe...@digip.org added the comment:
STINNER Victor wrote:
We can use a class attribute to set the attribute before calling __init__:
True, this is clever. Will you commit?
--
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
True, this is clever. Will you commit?
I'm not sure that it's the pythonic way to solve such problem. Can you work on
a patch including a test?
--
___
Python tracker
Petri Lehtinen pe...@digip.org added the comment:
I'm not sure that it's the pythonic way to solve such problem. Can you work
on a patch including a test?
Yeah, getattr() might be more Pythonic indeed.
How can this be tested? According to the initial report, exceptions raised in
__del__
STINNER Victor victor.stin...@haypocalc.com added the comment:
Does your filesystem store the modification time? Why don't you have/want
fstat()? Do you have stat() or a similar function?
--
___
Python tracker rep...@bugs.python.org
Roundup Robot devnull@devnull added the comment:
New changeset 7724b53510c4 by Victor Stinner in branch '2.7':
Close #12182: Fix pydoc.HTMLDoc.multicolumn() if Python uses the new (true)
http://hg.python.org/cpython/rev/7724b53510c4
--
nosy: +python-dev
resolution: - fixed
stage: -
STINNER Victor victor.stin...@haypocalc.com added the comment:
Patch applied, thanks for your patch!
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12182
___
Walter Dörwald wal...@livinglogic.de added the comment:
+1 on the documentation changes.
--
nosy: +doerwalter
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12171
___
New submission from Eric V. Smith e...@trueblade.com:
http://docs.python.org/library/decimal.html
In 9.4.2, Decimal objects, some of the methods mention the first and second
parameters, when really it should be self and the argument, usually named
other and sometimes something more specific.
Oleg Oshmyan chor...@inbox.lv added the comment:
We can use a class attribute to set the attribute before calling __init__
Ah, yes, I thought about adding a class attribute as well, but the class
currently does not have any and initializes instance attributes to default
values in __init__,
STINNER Victor victor.stin...@haypocalc.com added the comment:
Should I attempt to modify my patch to include a comment and a test?
Yes please, you can use support.captured_stderr() tool.
--
___
Python tracker rep...@bugs.python.org
Petri Lehtinen pe...@digip.org added the comment:
Oleg Oshmyan wrote:
Should I attempt to modify my patch to include a comment and a test?
Absolutely, go ahead if it's not too much trouble.
--
___
Python tracker rep...@bugs.python.org
New submission from stefanholek ste...@epy.co.at:
This is a continuation of issue #9450.
The 'data' element of a history entry may point to an undo list for the entry.
When freeing the entry the associated undo list must be freed as well, and
'free(data)' alone does not cut it. I have not
Oleg Oshmyan chor...@inbox.lv added the comment:
Here is a new patch; please take a look. Do I understand correctly that I
should now remove the old one?
--
Added file: http://bugs.python.org/file22123/_child_created_2.diff
___
Python tracker
Charles-François Natali neolo...@free.fr added the comment:
In the common case, I don't think that the os.waitpid(0, 0) is the hot spot,
but rather this:
for child in self.active_children:
os.waitpid(child, os.WNOHANG)
It's called every time, and it's O(number of active children).
Erik Cederstrand e...@1calendar.dk added the comment:
Uploaded patch adding unit tests for %V and %u. Patch is against python2.7
--
Added file: http://bugs.python.org/file22125/test_strptime.py.patch
___
Python tracker rep...@bugs.python.org
Erik Cederstrand e...@1calendar.dk added the comment:
Patch by aganders3 doesn't compile. Added comments in review of his patch.
Adding a patch against python2.7 with my changes, which pass all unit tests
posted previously.
--
Added file:
Erik Cederstrand e...@1calendar.dk added the comment:
Documentation (I have no idea how to create a patch for this):
%V ISO week number of the year (Monday as the first day of the week) as a
decimal number (01-53). The week containing January 4 is week 1;
the previous week is the last week of
Charles-François Natali neolo...@free.fr added the comment:
Some precisions:
1) Of course, if a handler changes its process group through setsid/setpgrp, it
won't be waited on.
2) If a handler running on behalf of a process which is the current process
group leader calls setsid, it will get an
New submission from STINNER Victor victor.stin...@haypocalc.com:
Polling should be avoided when it's possible. For subprocess.wait(), we can do
something with signals (SIGCHLD and/or SIGCLD).
sigtimedwait() can be used to wait a the a child process terminated with a
timeout, but not wait a
STINNER Victor victor.stin...@haypocalc.com added the comment:
On Linux, the clone() syscall allows the change the signal send by the child to
the parent when it terminates. It's also possible to choose to not send a
signal when at child exit... But I don't think that subprocess uses such
R. David Murray rdmur...@bitdance.com added the comment:
Since this is a new feature it can only go into 3.3.
Documentation is in the Doc subdirectory of a checkout, and is in the form of
*.rst files. Modify the appropriate .rst file, and the doc update will be
included in the patch you
Fabio Zadrozny fab...@users.sourceforge.net added the comment:
So Michal, it seems no objections were raised?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11798
___
wrobell wrob...@pld-linux.org added the comment:
as well, by default one experiences
checking for /dev/ptmx... not set
configure: error: set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file
when cross compiling
the workaround:
1. create config.site file with the following lines
wrobell wrob...@pld-linux.org added the comment:
next question. when starting compilation i am getting
In file included from Include/Python.h:50,
from ./Modules/python.c:3:
Include/pyport.h:257:13: error: #error This platform's pyconfig.h needs to
define PY_FORMAT_LONG_LONG
Oleg Oshmyan chor...@inbox.lv added the comment:
Looking at my own patch, I've noticed that the comment I added to Popen.__del__
doesn't sound quite right to me in terms of language and doesn't end in a full
stop while all other comments in the same method do. Am I being too picky? I
can't
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Thu, May 26, 2011 at 9:44 AM, R. David Murray rep...@bugs.python.org wrote:
..
Documentation is in the Doc subdirectory of a checkout, and is in the form of
*.rst files. Modify the appropriate .rst file,
More
Changes by Éric Araujo mer...@netwok.org:
--
assignee: tarek - eric.araujo
keywords: +easy
stage: patch review - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12169
___
Éric Araujo mer...@netwok.org added the comment:
This section should help:
http://docs.python.org/dev/library/inspect#classes-and-functions
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12154
Michael Foord mich...@voidspace.org.uk added the comment:
Sure, let's do it. Fabio, care to provide patch with tests and doc changes?
(For 3.3.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11798
Roundup Robot devnull@devnull added the comment:
New changeset 6ee5443773cb by Éric Araujo in branch 'default':
Also add versionchanged directive to the function doc (#11591)
http://hg.python.org/cpython/rev/6ee5443773cb
--
___
Python tracker
Charles-François Natali neolo...@free.fr added the comment:
OpenBSD's struct kevent definition looks fishy:
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/event.h?rev=1.15;content-type=text%2Fplain
struct kevent {
u_int ident; /* identifier for this event */
Roundup Robot devnull@devnull added the comment:
New changeset d5572fd3b768 by Éric Araujo in branch '2.7':
Make test_distutils pass without zlib (fixes #9435)
http://hg.python.org/cpython/rev/d5572fd3b768
--
nosy: +python-dev
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
Can’t reproduce in 3.x, fixed in 2.7.
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
versions: +Python 2.7 -Python 3.2
___
Python tracker rep...@bugs.python.org
Roundup Robot devnull@devnull added the comment:
New changeset 720804a91c01 by Benjamin Peterson in branch '2.7':
raise an ValueError in getvalue() on closed StringIO (closes #12161)
http://hg.python.org/cpython/rev/720804a91c01
--
nosy: +python-dev
resolution: - fixed
stage: -
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. It would be best if you could attach files as plain
text instead of archives.
--
components: +Extension Modules -None
nosy: +eric.araujo, skip.montanaro
versions: +Python 3.1, Python 3.2, Python 3.3 -Python 2.6
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, haypo
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9654
___
Éric Araujo mer...@netwok.org added the comment:
Definitely. We can fix real bugs in distutils, but sometimes it’s best to
avoid disruptive changes and let distutils with its buggy behavior and let the
packaging module have the best behavior.
--
versions: +Python 3.3
Marc-Andre Lemburg m...@egenix.com added the comment:
Éric Araujo wrote:
Éric Araujo mer...@netwok.org added the comment:
Definitely. We can fix real bugs in distutils, but sometimes it’s best to
avoid disruptive changes and let distutils with its buggy behavior and let
the packaging
Ashley Anderson agande...@gmail.com added the comment:
When trying to add cases for %V and %u in the tests, I ran into an issue of
year ambiguity. The problem comes when the ISO year does not match the
Gregorian year for a given date. I think this should be fixed by implementing
the %G
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Thu, May 26, 2011 at 12:07 PM, Ashley Anderson
rep...@bugs.python.org wrote:
I think this should be fixed by implementing the %G directive (ISO year,
which is present in strftime) as well.
Correct.
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
I propose to merge both files, this would ease maintenance
and understanding of how these paths are determined.
You mean to have only one function? I would prefer to keep two functions, but
one should call the another one :) (you
STINNER Victor victor.stin...@haypocalc.com added the comment:
Le jeudi 26 mai 2011 à 14:54 +, Charles-François Natali a écrit :
Charles-François Natali neolo...@free.fr added the comment:
OpenBSD's struct kevent definition looks fishy:
Changes by Éric Araujo mer...@netwok.org:
--
status: open -
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10766
___
Éric Araujo mer...@netwok.org added the comment:
There’s also test.support.swap_attr...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11664
___
Changes by Daniel Stutzbach stutzb...@google.com:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8777
___
___
R. David Murray rdmur...@bitdance.com added the comment:
I would remove the docstring from the new test class...if more tests of message
content are added that docstring won't be accurate. It really isn't needed.
(Also, shouldn't the test method be named test_missingarguments?)
I would also
Éric Araujo mer...@netwok.org added the comment:
The egg-info file for Python itself can go, but what about wsgiref.egg-info?
It was included in 2.5 too to preserve compatibility with code using
pkg_resources.require instead of regular import. I’d like to remove it too:
it’s not needed
Éric Araujo mer...@netwok.org added the comment:
Closing after no reply. If someone can reproduce the bug, please say so and
reopen.
--
stage: - committed/rejected
status: pending - closed
___
Python tracker rep...@bugs.python.org
R. David Murray rdmur...@bitdance.com added the comment:
What is not-a-charset?
I apparently misunderstood what normalize_encodings does. It isn't doing a
lookup in the codecs registry and returning the canonical name for the codec.
Does that mean we actually have to fetch the codec in
Changes by Jordan Stadler jordan.stad...@gmail.com:
Added file: http://bugs.python.org/file22127/issue12042_31.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12042
___
Changes by Jordan Stadler jordan.stad...@gmail.com:
Added file: http://bugs.python.org/file22128/issue12042_32.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12042
___
Jordan Stadler jordan.stad...@gmail.com added the comment:
Alright, patches are up for 3.1 and 3.2. I'm not sure if I can just make one
for the 3.x's so I made both.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12042
Michele Orrù maker...@gmail.com added the comment:
Done.
--
Added file: http://bugs.python.org/file22129/issue10424_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10424
___
wrobell wrob...@pld-linux.org added the comment:
looking into configure.in the above fails due to following check
AC_MSG_CHECKING(for %lld and %llu printf() format support)
the check compiles and tries to _run_ a bit of software to determine lld/llu
support.
that of course fails (we are
Charles-François Natali neolo...@free.fr added the comment:
ident and data are not pointers,
That's not the point.
struct kevent declaration should be the following:
struct kevent {
uintptr_t ident;/* identifier for this event */
short filter; /* filter for
Marc-Andre Lemburg m...@egenix.com added the comment:
R. David Murray wrote:
R. David Murray rdmur...@bitdance.com added the comment:
What is not-a-charset?
I apparently misunderstood what normalize_encodings does. It isn't doing a
lookup in the codecs registry and returning the
Erik Cederstrand e...@1calendar.dk added the comment:
Ashley, can you elaborate on wherein the ambiguity lies? Which combination of
year, ISO week number and ISO weekday would lead to ambiguity?
Regarding documentation, the %G, %V and %u directives are listed in IEEE Std
1003.1, 2004 Edition
New submission from Terry J. Reedy tjre...@udel.edu:
In response to a discussion of a patch removing 'useless' post-increments,
(which issue has apparently come up before)
Guido posted
Sorry to butt in here, but I agree with Eric that it was better
before. There is a common idiom, *pointer++
New submission from Feth AREZKI f...@tuttu.info:
At least on Linux debian sid, it seems that Python 2.6.6 compile builtin does
not like the empty line with only '\r\n' in it.
The following doctest story runs with the attached CRLF'ed file:
fd = open('test_win32.py', 'r')
compile(fd.read(),
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The problem is probably near this code in Lib/doctest.py (in _load_testfile)::
# get_data() opens files as 'rb', so one must do the equivalent
# conversion as universal newlines would do.
return
Michele Orrù maker...@gmail.com added the comment:
+1
What do you think? Ezio, David?
--
title: The email package should defer to the codecs module for all aliases -
The email package should defer to the codecs module for all aliases
___
Python
Ashley Anderson agande...@gmail.com added the comment:
The example that triggered the issue in testing was January 1, 1905. The ISO
date for this day is 1904 52 7. This is reported correctly if you use
datetime.isocalendar() or datetime.strftime('%G'), but you get 1905 if you use
R. David Murray rdmur...@bitdance.com added the comment:
Well, my thought was to avoid having multiple charset alias lists in the
stdlib, and reusing the one in codecs, which is larger than the one in email,
seemed to make sense. This came up because a bug was reported where email
(silently)
New submission from Mike Solomon ms...@gmail.com:
I work on a large app and we noticed that a surprising portion of our heap was
filenames embedded the the bytecode.
This one-line patch to intern filenames reduces our on-disk size about ~15% and
brings down our heap and in-memory object count
Michele Orrù maker...@gmail.com added the comment:
In that case, I could still take care of it; it would be really easy to do.
So, it's up to you to tell me what is the best design choice. (:
--
___
Python tracker rep...@bugs.python.org
Changes by Eric V. Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12188
___
___
Python-bugs-list
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nadeem.vawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12190
___
___
Marc-Andre Lemburg m...@egenix.com added the comment:
R. David Murray wrote:
R. David Murray rdmur...@bitdance.com added the comment:
Well, my thought was to avoid having multiple charset alias lists in the
stdlib, and reusing the one in codecs, which is larger than the one in email,
Benjamin Peterson benja...@python.org added the comment:
How exactly does it bring down your disk space?
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12190
___
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
At least one is really would like to cross-compile.
worber, the config site has to look like (sample for linux i?86, i.e. intel 32
bit, as host platform)
=
ac_cv_little_endian_double=yes
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +haypo
type: performance - resource usage
versions: +Python 3.3 -Python 2.6, Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12190
Erik Cederstrand e...@1calendar.dk added the comment:
Oh, I see, you're talking about strftime(). You're correct that you would need
%G to print the year to which the ISO week containing the specific date
belongs. I see no ambiguity or need for %G in strptime().
--
Feth AREZKI f...@tuttu.info added the comment:
Amaury Forgeot d'Arc wrote:
The problem is probably near this code in Lib/doctest.py (in _load_testfile)::
Hm, I discovered this without using doctest, and used it only to present the
testcase. Are you sure that it relates to Lib/doctest (candid
New submission from Sandro Tosi sandro.t...@gmail.com:
Hi, following up the discussion on
http://mail.python.org/pipermail/python-dev/2011-May/111642.html here'a patch
to introduce shutil.chown() along with doc, tests and a change in os doc to
link to the new function (I also took the
Changes by Sandro Tosi sandro.t...@gmail.com:
--
versions: +Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12191
___
___
Brian Curtin br...@python.org added the comment:
Ok, so it's actually 0a1baa619171 that broke it, not sure how I came up with
the other revision. In any case, it's too hairy to try and piece everything
together across the numerous bug fixes, feature adds, and refactorings in this
area in
R. David Murray rdmur...@bitdance.com added the comment:
There are a number of issues with compile that have been fixed. See #4628 and
#1479099 for example.
Since you say it works with 2.7, and Python3 compile handles \r\n, and 2.6 is
in security fix only mode, I'm closing this as out of
R. David Murray rdmur...@bitdance.com added the comment:
I agree that since we get very few requests to add aliases our current tables
are probably what we want. So adding the MIME_preferred_name mapping
*somewhere* is indeed what I would like to see happen. It doesn't matter to me
whether
Eric V. Smith e...@trueblade.com added the comment:
As a new feature, it can't be added to 2.7.
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12191
___
New submission from Terry J. Reedy tjre...@udel.edu:
BACKGROUND
One of most common recurring topics on python-list (perhaps monthly) is newbies
tripping over a mutation method returning None when they expect the collection.
Today's example: Puzzled by list-appending behavior.
An excerpt from
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12190
___
___
Python-bugs-list mailing list
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file22133/python-2.7-issue_11995.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11995
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Added file: http://bugs.python.org/file22134/python-3.2-issue_11995.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11995
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Added file: http://bugs.python.org/file22135/python-3.3-issue_11995.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11995
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11995
___
Mike Solomon ms...@gmail.com added the comment:
If you have a file with say a hundred functions, and each function contains
the full path of that file on disk, your pyc file will contain about
(100*(path_size+overhead)) bytes. In some cases, this is pretty
significant.
On Thu, May 26, 2011 at
Charles-François Natali neolo...@free.fr added the comment:
I didn't test, but after skimming through the code I think that if an invalid
user name/group name is provided, os.chown is passed None, which will fail with
ValueError.
It would be better to raise an explicit error like no such user
Changes by Charles-François Natali neolo...@free.fr:
Removed file: http://bugs.python.org/file22136/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12190
___
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12192
___
___
Python-bugs-list
1 - 100 of 122 matches
Mail list logo