Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Hmm, shouldn't self.__class__(self) be a
good default implementation of copy()?
I'd expect any sequence to support this way
of creation from another sequence, even if it's inefficient.
The copy() method isn't being
Antoine Pitrou pit...@free.fr added the comment:
Hello,
Shouldn't this be fixed in _dummy_thread too?
Attached patch contains fix + test.
Oops, thanks for noticing.
(Unfortunately, I was not able to run the tests with my patch:
`python3.2 -m test.regrtest test_dummy_thread` tests my
Nick Coghlan ncogh...@gmail.com added the comment:
We might be able to tapdance our way around the issue by falling back to the
old mechanism when dealing with extension modules without
traverse/clear/dealloc methods.
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Not sure why #812369 is bogged down. The patch simply needs updating for 3.x.
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11349
Changes by Ram Rachum cool...@cool-rr.com:
--
nosy: +cool-RR
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1559549
___
___
Python-bugs-list
Éric Araujo mer...@netwok.org added the comment:
Re: title, I don’t know how to phrase it best. What exactly is the behavior
you request? I put “handle” as in “do the right thing”, that is, “don’t
install the newest version but the one that satisfies all predicates”. I
softened “conflicts”
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9436
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7867
___
___
Python-bugs-list
Filip Gruszczyński grusz...@gmail.com added the comment:
I'll get down to it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8933
___
___
Charles-Francois Natali neolo...@free.fr added the comment:
@Eric.Wolf
Could you try with this:
# Read in anohter chunk of the file
# NOTE: It's possible that an XML tag will be greater than buffsize
# This will break in that situation
-
New submission from Daniel Haertle haer...@uni-bonn.de:
At the beginning of http://docs.python.org/dev/library/getopt.html the line
A more convenient, flexible, and powerful alternative is the optparse module.
routes the user to optparse. Since optparse is deprecated in favor of argparse,
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
I'm trashing your mailbox, but
http://bugs.python.org/file20949/issue11351-2.patch should do
'total+=blen' not 'total+=len'.
Anyway i attach yet a third patch which does some code cleanup in
general and is a bit more of my very
Daniel Haertle haer...@uni-bonn.de added the comment:
Hi Wojciech,
in your tests, at
def test_add_argument10(self):
nargs = (0, 1) = optimized to '?'
opt = self.add_argument(1, None)
self.assertEqual(opt.nargs, argparse.ONE_OR_MORE)
you should change
Changes by Filip Gruszczyński grusz...@gmail.com:
Removed file: http://bugs.python.org/file20942/8933.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8933
___
Filip Gruszczyński grusz...@gmail.com added the comment:
Patch with tests. Hope this is enough.
--
Added file: http://bugs.python.org/file20956/8933.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8933
Antoine Pitrou pit...@free.fr added the comment:
Well the third patch has a lot of spurious style changes that make it harder to
spot the actual changes.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11351
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
Aah, unfortunately - what a shame, this beautiful language ...
But do i need to re-post the real (ouch!) issue11351-2.patch, i.e. with
'total+=blen' instead of 'total+=len'?
Or is it sufficient now with these comments (for
Tobias Brink tobias.br...@gmail.com added the comment:
I added a test but I am not too familiar with the Python test suite. Please
check if the test_init_takes_interpolation_none test is necessary because the
test suite also fails without it if my patch is not applied. Feel free to
remove
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
Maybe Giampaolo' should at least replace these two
PyArg_ParseTupleAndKeywords() near (unpatched) line 5942,
because doing it like this is messes up (at least) vim(1) group
detection, resulting in a lot of bold red mis-brace
New submission from Igor i...@prettysin.info:
Hello!
I see some 'skip' in test_os.py
@unittest.skip(subprocesses aren't inheriting CTRL+C property)
def test_CTRL_C_EVENT(self):
I think, problem with calling SetConsoleCtrlHandler(NULL,0) in parent process,
rather in child. If call
david db.pub.m...@gmail.com added the comment:
On 1 March 2011 18:01, Alex rep...@bugs.python.org wrote:
Alex alex.gay...@gmail.com added the comment:
Why? JSON is incapable of representing most Python datastructures that can
be pickled (i.e. anything that isn't a list, tuple, dict, int,
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Please try to provide a patch which fixes (as in makes the test pass) this
specific issue only. As for other changes such as the code restyling you can
open a separate ticket with another patch.
--
david db.pub.m...@gmail.com added the comment:
Um this isn't a duplicate this is addressing a different module to
multiprocessing. Currently in subprocess you can almost remove the use of
pickle with little to no side-effects.
--
___
Python tracker
david db.pub.m...@gmail.com added the comment:
Can you please re-open this bug ? (unless you feel otherwise).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11359
___
Changes by Igor i...@prettysin.info:
--
keywords: +patch
Added file: http://bugs.python.org/file20958/1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11361
___
Éric Araujo mer...@netwok.org added the comment:
Thanks, the configparser maintainer will review your patch.
Łukasz, you may want to use assertIsNone when you commit.
--
keywords: +needs review
stage: - patch review
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Maybe Giampaolo' should at least replace these two
PyArg_ParseTupleAndKeywords() near (unpatched) line 5942,
because doing it like this is messes up (at least) vim(1) group
detection, resulting in a lot of bold red mis-brace warnings
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
So this is fixed -2.patch supplemented only with
PyArg_ParseTupleAndKeywords() fixed in a way that re-enables
correct syntax highlighting.
--
Added file: http://bugs.python.org/file20959/issue11351-4.patch
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
(GMail imposes a five minute or so delay when used over SMTP, so
the timeline sometimes looks unfortunate.)
So, finally, -2.patch only fixed with 'blen' for 'len'.
Compiles and test ok.
Giampaolo Rodola' g.rod...@gmail.com added
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
But, dear Antoine, i don't know *any* editor that is capable to
handle the following code correctly:
#ifdef __APPLE__
if (!PyArg_ParseTupleAndKeywords(args, kwdict, iiOO|OOi:sendfile,
keywords, out, in, _parse_off_t,
david db.pub.m...@gmail.com added the comment:
I don't have 3.3 installed so I cannot test it, but here is a patch for 2.6. I
am sure it breaks stuff - are there tests for the subprocess module that would
cover the cases that pickle was used for?
--- subprocess.py.orig 2011-03-02
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com:
Removed file: http://bugs.python.org/file20943/posixmodule.naive-apple-patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11351
___
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com:
Removed file: http://bugs.python.org/file20946/issue11351.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11351
___
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com:
Removed file: http://bugs.python.org/file20949/issue11351-2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11351
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11358
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Why do you want to replace pickle by json?
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11359
___
Antoine Pitrou pit...@free.fr added the comment:
But, dear Antoine, i don't know *any* editor that is capable to
handle the following code correctly:
#ifdef __APPLE__
if (!PyArg_ParseTupleAndKeywords(args, kwdict, iiOO|OOi:sendfile,
keywords, out, in, _parse_off_t, offset,
Benjamin Peterson benja...@python.org added the comment:
http://mail.python.org/pipermail/python-dev/2009-October/093057.html
2011/3/1 Antoine Pitrou rep...@bugs.python.org:
Antoine Pitrou pit...@free.fr added the comment:
Not sure why #812369 is bogged down. The patch simply needs updating
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +gregory.p.smith
versions: +Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11361
___
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
I agree with that.
Antoine Pitrou pit...@free.fr added the comment:
If you are asking your editor to simply edit test, it should work fine.
--
___
Python tracker
david db.pub.m...@gmail.com added the comment:
From my reading of the code it may be possible if I execute a command via
Popen that the child had output that went to stderror, because stderror is
associated with the fd of errpipe_write, and it was not to be 'trusted' (lets
say I ran it as
david db.pub.m...@gmail.com added the comment:
Actually I don't think that is possible mmm.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11359
___
david db.pub.m...@gmail.com added the comment:
As the child will have already have exec'ed there will be no exception raised
-- so the parent shouldn't pickle.load from stderror... So unless there is a
path where the parent will end up pickle.load ing the exception that case I put
before is
R. David Murray rdmur...@bitdance.com added the comment:
This would increase the overhead to no purpose, as far as I can see.
Ask or Jesse can reopen this if they think it is worth considering.
--
nosy: +asksol, jnoller, r.david.murray
resolution: - rejected
status: open - closed
david db.pub.m...@gmail.com added the comment:
Um ok.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11358
___
___
Python-bugs-list mailing list
Jesse Noller jnol...@gmail.com added the comment:
I concur with RDM. We need complex data structures, and switching to JSON
represents a non zero amount of work, isn't as fast and pickle works well. If
you want to use JSON as a transport, I would do custom subclassing.
--
david db.pub.m...@gmail.com added the comment:
Fair enough.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11358
___
___
Python-bugs-list
Alexis Metaireau ale...@notmyidea.org added the comment:
Some nitpicks:
In mirrors.get_server_key, the documentation is not up to date with your last
changes (raises an error if there is a problem instead of returning None)
You do use the name 'package' while talking about distributions or
Alexis Metaireau ale...@notmyidea.org added the comment:
Antoine Pitrou on #python-dev made interesting remarks about the validation:
16:19 __ap__ hmm the way the patch does validation is bogus
16:22 __ap__ because it opens the URL a first time, validates it,
then opens it a second time with
Kelsey kelsey.highto...@gmail.com added the comment:
Thanks for the feedback! I agree with the issues raised and will rework the
patch to address them.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11357
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11322
___
___
Python-bugs-list mailing list
New submission from Richard Rabbat rab...@google.com:
image/webp is missing from the mimetypes.py list of valid mimetypes.
webp is an open-source image format and uses vp8 as a codec.
--
components: Library (Lib)
messages: 129786
nosy: Richard.Rabbat
priority: normal
severity: normal
Eric Wolf ebw...@gmail.com added the comment:
I tried the change you suggested. It still fails but now at 572,320 bytes
instead of 900,000. I'm not sure why the difference in bytes read. I'll explore
this more in a bit.
I also converted the BZ2 to GZ and used the gzip module. It's failing
Éric Araujo mer...@netwok.org added the comment:
This was overlooked in r81490, which added the note pointing to argparse. Fixed
in r88696 for the py3k branch (I’ll backport later to 3.2 and 2.7), thanks.
--
nosy: +eric.araujo
resolution: - fixed
stage: - committed/rejected
status:
R. David Murray rdmur...@bitdance.com added the comment:
Is there an IANA registration for this? Any other standards references to it
would be helpful, if it doesn't. See issue 10730 for an example of the
research that went in to the last mimetypes addition.
--
nosy: +r.david.murray
Ram Rachum cool...@cool-rr.com added the comment:
Okay, as an initial suggestion, how about we give every function a
`.__parent_class__` attribute saying which class it is a method of? I feel this
is a bit of a duct tape solution, but I don't see any other alternative.
--
New submission from Sandro Tosi sandro.t...@gmail.com:
Following up http://mail.python.org/pipermail/docs/2011-January/002922.html , I
did a check on all the documented functions of curses and those available from
the module, and wrote a patch to include in the doc the missing ones (text is
Florian Mayer florma...@aim.com added the comment:
Thanks for the fast response and for fixing this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11326
___
Sandro Tosi sandro.t...@gmail.com added the comment:
On Tue, Mar 1, 2011 at 19:50, Sandro Tosi rep...@bugs.python.org wrote:
New submission from Sandro Tosi sandro.t...@gmail.com:
Following up http://mail.python.org/pipermail/docs/2011-January/002922.html ,
I did a check on all the
Charles-Francois Natali neolo...@free.fr added the comment:
I've attached the strace output. I was getting an error with the sbrk
parameter, so I left it out.
Yeah, sbrk is not a syscall ;-)
Let me know if there's anything else I can provide.
Stupid questions:
- have you checked the
New submission from Éric Araujo mer...@netwok.org:
I’m working on removing uses of distutils from the standard library. I found
only one remaining use of distutils.sysconfig; changing it to use sysconfig
should not change the behavior of the test, but I can’t test, so please review
attached
Éric Araujo mer...@netwok.org added the comment:
(I thought auto-nosy was set for Mac.)
--
nosy: +ned.deily, ronaldoussoren
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11364
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
how about we give every function a `.__parent_class__`
attribute saying which class it is a method of?
Won't work. The same function can be used in multiple classes.
The function object is independent of the class.
Ram Rachum cool...@cool-rr.com added the comment:
Raymond: I don't think this matters. We don't need a canonical
`.__parent_class__`, we just need to know where that function is defined so we
could find it when unpickling. In the example that you gave, `f` would have a
`.__parent_class__` of
Ned Deily n...@acm.org added the comment:
LGTM
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11364
___
___
Python-bugs-list mailing list
Éric Araujo mer...@netwok.org added the comment:
Thanks for reviewing. Have you had time to test it or shall I just commit and
wait for the buildbots master to come at me with a big knife if I break them?
--
___
Python tracker
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
This isn't worth introducing poorly thought out hacks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9276
___
Ned Deily n...@acm.org added the comment:
Go for it. It's highly unlikely to break anything but, if so, redirect the
knives my way. I verified that the results from the two sysconfigs are the
same. I don't know that there are any buildbots that currently build a
framework configuration
Ram Rachum cool...@cool-rr.com added the comment:
This isn't worth introducing poorly thought out hacks.
Being able to pickle unbound methods is important. In my project I have objects
that refer to unbound methods. Now these objects are unpickleable. I can't save
them to disk and I can't
Antoine Pitrou pit...@free.fr added the comment:
Being able to pickle unbound methods is important. In my project I have
objects that refer to unbound methods. Now these objects are
unpickleable. I can't save them to disk and I can't use the
multiprocessing module on them. That's a big
Ram Rachum cool...@cool-rr.com added the comment:
[...] try to whip up a patch and upload it if it ends up not too hackish.
To have a non-hackish patch we need a non-hackish idea. The `.__parent_class__`
idea looks hackish to me, but now that I think about it, how is it more hackish
than a
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9276
___
___
Python-bugs-list
Antoine Pitrou pit...@free.fr added the comment:
To have a non-hackish patch we need a non-hackish idea. The
`.__parent_class__` idea looks hackish to me, but now that I think
about it, how is it more hackish than a function's `.__module__`
attribute?
Not much, agreed. You might want to
Charles-Francois Natali neolo...@free.fr added the comment:
After running this under gdb, it turns out that it's actually bzlib's bzRead
that's returning a BZ_STREAM_END after only 900k bytes.
So it confims what I've been suspecting, i.e. that the file is corrupt (I got
the error at exactly
Eric Wolf ebw...@gmail.com added the comment:
Stupid questions are always worth asking. I did check the MD5 sum earlier and
just checked it again (since I copied the file from one machine to another):
ebwolf@ubuntu:/opt$ md5sum /host/full-planet-110115-1800.osm.bz2
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Being able to pickle unbound methods is important. In my project I have
objects that refer to unbound methods. Now these objects are
unpickleable. I can't save them to disk and I can't use the
multiprocessing module on them. That's
Марк Коренберг socketp...@gmail.com added the comment:
patch updated for handling EPIPE
--
title: asyncore does not check for EAGAIN errno - asyncore does not check for
EAGAIN and EPIPE errno
Added file: http://bugs.python.org/file20964/z.patch
___
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - giampaolo.rodola
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11265
___
New submission from STINNER Victor victor.stin...@haypocalc.com:
Buildroot: Making Embedded Linux easy has patches for Python 2.7 to simplify
the cross-compilation of Python:
http://git.buildroot.net/buildroot/tree/package/python
The maintainer, Thomas Petazzoni, told me that the 12 first
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +eric.araujo, tarek
stage: - needs patch
type: - feature request
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11365
Ram Rachum cool...@cool-rr.com added the comment:
Amaury: I don't think ForkingPickler works for unbound methods defined in user
code, which are implemented as functions. I think it only works for
method-descriptors and wrapper-descriptors.
--
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
did you see my example above? it passes methods defined in user code.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9276
___
Eric Wolf ebw...@gmail.com added the comment:
The only problem with the theory that the file is corrupt is that at least
three people have encountered exactly the same problem with three files:
http://mail.python.org/pipermail/tutor/2010-June/076343.html
Colin was using an OSM planet file
STINNER Victor victor.stin...@haypocalc.com added the comment:
buildroot-python-patches.tar.gz: today checkout of the git repository
(package/python).
--
Added file: http://bugs.python.org/file20965/buildroot-python-patches.tar.gz
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
buildboot.patch: the 12 patches combined into a single patch for Python 2.7.
Note: python-2.7-001-support-for-build.patch doesn't apply cleanly on
release27-maint.
--
keywords: +patch
Added file:
Antoine Pitrou pit...@free.fr added the comment:
Well, the patches should be first ported to 3.3 (and need checking that they
don't break anything: test suite, etc.). Then, if you want them to be examined
separately, it might be better to create a separate issue for each.
--
nosy:
Filip Gruszczyński grusz...@gmail.com added the comment:
I'd be happy to provide a patch.
How about extending getopt api to something like this:
optlist, args = getopt.getopt(['-b'], 'e', not_recognized=no %s option,
mate!)
GetoptError: no -b option, mate!
Or maybe you should provide a
Éric Araujo mer...@netwok.org added the comment:
Can you try updating your py3k checkout and applying with “patch -p1”?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11342
___
Filip Gruszczyński grusz...@gmail.com added the comment:
One more solution. Maybe getopt should expose variables that hold error
messages (rather than have them hardcoded in the code), that can be simply
substituted by the user before he runs getopt? But I don't really like this one.
Charles-Francois Natali neolo...@free.fr added the comment:
Stupid questions are always worth asking. I did check the MD5 sum earlier
and just checked it again (since I copied the file from one machine to
another):
ebwolf@ubuntu:/opt$ md5sum /host/full-planet-110115-1800.osm.bz2
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Ok for EAGAIN.
I'm not completely sure about EPIPE on recv() as it is not listed here:
http://www.kernel.org/doc/man-pages/online/pages/man2/recv.2.html
...although I think it's ok to treat it as an alias for connection lost anyway.
In
STINNER Victor victor.stin...@haypocalc.com added the comment:
I uploaded the patch to Rietveld for a review:
http://codereview.appspot.com/4253047
Well, the patches should be first ported to 3.3
Ok, I will ask the author if he can do this job. I uploaded the patches for
Python 2.7 for a
Éric Araujo mer...@netwok.org added the comment:
Filip: The standard way of doing localization is thanks to the gettext module.
Richard: Regarding the contents of the error messages, please make specific
remarks on what is lacking.
--
stage: - needs patch
versions: +Python 3.3
Filip Gruszczyński grusz...@gmail.com added the comment:
I understand I should do something similar to what is done in argparse:
from gettext import gettext as _, ngettext
...
message = ngettext('conflicting option string: %s',
'conflicting option strings: %s',
Antoine Pitrou pit...@free.fr added the comment:
Perhaps your bz2 files are simply multi-stream files? The bz2 module currently
doesn't support them (it only decompresses the first stream); see issue1625 for
a patch.
I'm not an expert on this, but it seems you can do:
$ bzip2 -tvvv foo.bz2
Richard Lowe richl...@richlowe.net added the comment:
I don't find anything lacking about the error messages, I meant that there were
no more specific exceptions, or fields in GetoptError to allow the caller to
tell what was specifically wrong and provide its own localized messages. So
while
Éric Araujo mer...@netwok.org added the comment:
Richard: It’s not common to use subclasses to allow message customization.
Would gettext cover your need?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8841
STINNER Victor victor.stin...@haypocalc.com added the comment:
Fixed in Python 3.3 (r88697) and 3.2 (r88698). Thank you Ray.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11246
Richard Lowe richl...@richlowe.net added the comment:
Sure, just localizing them in the getopt implementation would be fine.
I suggested subclassing to solve the more general problem of the caller being
able to tell one getopt error from another, for which it is a pretty common
solution.
Antoine Pitrou pit...@free.fr added the comment:
_dummy_thread patch committed in r88699, thank you!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11140
___
1 - 100 of 137 matches
Mail list logo