Lars Gustäbel added the comment:
@Thomas:
I think your proposal adds a little too much complexity. Also, ExFileObject is
not used during iteration, and we would like to detect broken archives without
unpacking all the data segments first.
I have written patches for Python 2 and 3.
Changes by Cédric Krier cedric.kr...@b2ck.com:
--
nosy: +ced
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1818
___
___
Python-bugs-list mailing
Thomas Guettler added the comment:
I thought about this again.
It could be solved with the help of a ByteCountingStreamReader.
With ByteCountingStreamReader I mean a wrapper around a stream like
codescs.StreamReader. But the ByteCountingStreamReader should not changes the
content, but just
R. David Murray added the comment:
Indeed, if you replace the except clause with a 'del x', you get the same
UnboundLocalError. This is working as designed.
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
Eric V. Smith added the comment:
It's trying to say that i is optional, as stated in the footnote. I agree it
would be better written as s.pop(i), since square brackets are otherwise used
in that section as indexing operators. But the footnote should stay, explaining
what happens if you omit
Antoine Pitrou added the comment:
I don't know about __index__, but there's the ages-old discussion of allowing
some kind of __json__ hook on types. Of course, none of those solutions would
allow round-tripping.
--
___
Python tracker
Changes by Eric V. Smith e...@trueblade.com:
--
versions: -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24323
___
___
R. David Murray added the comment:
So in python2, some were json serializable and some weren't? Yes, I'd call
that a quirk :)
So back to the question of whether it makes sense for json to look for
__index__ to decide if something can be serialized as an int. If not, I don't
think there is
New submission from Mark Lawrence:
The first of them.
3C:\cpython\PCbuild\obj\win32_Debug\python3dll\python3_d.def : warning
LNK4197: export 'PyArg_Parse' specified multiple times; using first
specification
--
components: Build, Windows
messages: 244364
nosy: BreamoreBoy, paul.moore,
Cyd Haselton added the comment:
All,
Just checking in as it has been a while...is there anything I need to do on my
end for this port?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23496
Antoine Pitrou added the comment:
I wouldn't call it a bug in Numpy (a quirk perhaps?). Numpy ints are
fixed-width ints, so some of them can inherit from Python int in 2.x, but not
in 3.x.
But not all of them do, since the bitwidth can be different:
issubclass(np.int64, int)
True
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +njs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24313
___
___
Python-bugs-list mailing list
Martin Olsen added the comment:
I have python (2.7.9 3.4.3) installed with prefix=/ which causes problems
when change_root() doesn't lstrip() the path separators.
I have applied Ivailo's patch from 2015-02-13 and handful of packages without
issues.
Attached is a port of the patch to 3.4.3.
Matěj Stuchlík added the comment:
+1 from the Python team from Fedora, the patch looks good from downstream
standpoint.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23968
___
New submission from eimista:
In section
(https://docs.python.org/3.5/library/stdtypes.html#mutable-sequence-types)
written s.pop([i]). But this syntax doesn't work.
Maybe the correct notation will be s.pop(i)?
--
assignee: docs@python
components: Documentation
messages: 244365
nosy:
Roundup Robot added the comment:
New changeset 968af3838553 by Yury Selivanov in branch '3.5':
Issue 24315: Make collections.abc.Coroutine derived from Awaitable
https://hg.python.org/cpython/rev/968af3838553
New changeset a7a9c8631d0e by Yury Selivanov in branch 'default':
Issue 24315: Make
Changes by Yury Selivanov yseliva...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24315
___
Yury Selivanov added the comment:
Stefan,
Because of
https://mail.python.org/pipermail/python-committers/2015-May/003410.html I've
decided to commit 24315 and 24316 today. Please try to check that everything
works before new beta 2.
--
___
Roundup Robot added the comment:
New changeset 7356f71fb0a4 by Yury Selivanov in branch '3.5':
Issue 24316: Fix types.coroutine() to accept objects from Cython
https://hg.python.org/cpython/rev/7356f71fb0a4
New changeset 748c55375225 by Yury Selivanov in branch 'default':
Issue 24316: Fix
Changes by Yury Selivanov yseliva...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24316
___
Skip Montanaro added the comment:
LGTM.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23659
___
___
Python-bugs-list mailing list
Unsubscribe:
Stefan Krah added the comment:
While we're on the subject, though, trying to convert a very large int to
float fails with an OverflowError. Perhaps Decimal should do the same?
I've always viewed float() as a cast. For casting Decimal's behavior
seems to be the right one to me.
If we go
Stefan Behnel added the comment:
I'm seeing crashes with this assertion in Cython test modules:
python: ./Python/importdl.c:75: get_encoded_name: Assertion
`(((PyObject*)(encoded))-ob_refcnt) == 1' failed.
The problem seems to be that the module name is only one character long (a),
and
New submission from Skip Montanaro:
Makefile.pre defines BASECFLAGS to include -Wunreachable-code. When building in
the Linux environment available to me (GCC 4.4.6), compilation spews tons of
warnings about warning: will never be executed. According to this
StackOverflow thread:
Yury Selivanov added the comment:
I think it should be changed to `pop(i=-1)`.
--
nosy: +yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24323
___
Yury Selivanov added the comment:
Tried it, works for me. Thanks!
This is really good news! Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24017
___
Eric V. Smith added the comment:
s.pop(i=-1) doesn't actually work, but I guess it gets the point across.
For 2.7 it's even more confusing, since it includes:
s.index(x[, i[, j]])
and
s.sort([cmp[, key[, reverse]]])
I'd suggest not changing the 2.7 docs.
--
Stefan Behnel added the comment:
Patch LGTM and it fixes the problem (tried it on my side). Please make sure it
gets applied in time for beta 2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24268
Stefan Behnel added the comment:
Tried it, works for me. Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24017
___
___
Python-bugs-list
New submission from Yury Selivanov:
Attached patch provides an implementation (part of it) of types.coroutine in C.
The problem with the current pure Python implementation is that it copies the
code object of the generator function, which is a small overhead during import.
I'm not sure if
Ryan Gonzalez added the comment:
I thought you were running the tests...
Or was there something I had to do that I missed?
On May 29, 2015 5:54:18 AM CDT, Cyd Haselton rep...@bugs.python.org wrote:
Cyd Haselton added the comment:
All,
Just checking in as it has been a while...is there
Stefan Behnel added the comment:
I just noticed that I hadn't used the real types.coroutine in my Py3.5 tests
when reporting back in issue 24017. When I pass a Cython generator through it,
I get
Traceback (most recent call last):
File tests/run/test_coroutines_pep492.pyx, line 245, in
Petr Viktorin added the comment:
Ah, indeed. I need to create a new bytes object here after all.
Here is a fix, with a test.
Thank you Stefan!
--
Added file: http://bugs.python.org/file39546/fix-short-names.patch
___
Python tracker
Brett Cannon added the comment:
Skipping select frames is a shift in semantics for warnings.warn() (so can't go
into 3.5b1), doing it implicitly might be costly on interpreters where getting
a frame is expensive, and coming up with a new API allows for a nicer design,
e.g.
Cyd Haselton added the comment:
On May 29, 2015 10:52:23 AM CDT, Ryan Gonzalez rep...@bugs.python.org wrote:
Ryan Gonzalez added the comment:
I thought you were running the tests...
Which tests?
Or was there something I had to do that I missed?
From one of the earlier messages I posted:
Stefan Behnel added the comment:
One failing test in test_coroutines: test_func_5. The reason is that the
GeneratorWrapper is not iterable (and there is no reason it shouldn't be, given
that it wraps a Generator). That was my fault, I had already added an __iter__
method but didn't copy it in
Thomas Petazzoni added the comment:
I confirm seeing the same issue. This patch fixes it.
--
nosy: +thomas-petazzoni
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23767
___
Changes by Brett Cannon br...@python.org:
--
versions: +Python 3.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23810
___
___
Python-bugs-list
New submission from Mital Ashok:
(This is more of a feature request than a bug, but
https://www.python.org/dev/peps/pep-0042/ said to post it here)
My request is to have syntax like this:
yield *iterable
to lazily return the iterable's items, not much unlike:
# ...
for i in
Stefan Behnel added the comment:
BTW, it's not only for compiled generators but also for normal Python functions
that construct Python generators internally and return them, or that delegate
the generator creation in some way. With this change, it's enough to decorate
the constructor function
Yury Selivanov added the comment:
Please test the attached patch.
BTW, it's not only for compiled generators but also for normal Python
functions that construct Python generators internally and return them
You're right, that's why I used primarily word in that comment ;)
types.coroutine()
Seungbeom Kim added the comment:
It looks like this change has not been applied to Python 2.7. Do we have any
chance of getting it to 2.7?
So I'm unsure if anyone is actually using alternate formatting.
The alternative form is my favorite, and I think that %#g should be the
default format
Davin Potts added the comment:
Without further information from the OP, there is not much more we can do as
the problem may well originate with the user's compiled C code (which
circumstantially seems quite likely). Closing as out-of-date.
--
resolution: - out of date
status:
Martin Panter added the comment:
Two minor comments on Reitveld. Looks like you alreay fixed one of them in the
actual commit.
--
nosy: +vadmium
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24328
Serhiy Storchaka added the comment:
Thank you for your report and patch David.
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24326
Davin Potts added the comment:
At first blush it does appear there is potential for conflict because of how
the semaphore filename template was implemented -- that's a cool find. In
practice, I wonder how often this has actually bitten anyone in the real world.
The Linux world's use of
Christopher Barker added the comment:
Sorry for the confusion:
when I wrote the PEP, I was thinking in terms of a Python, duck-typed
implementation.
Now that it's in C, that doesn't work so well.
I will update the PEP to indicate that it is float-only, or complex for the
cmath
Devin Jeanpierre added the comment:
The patch I'm providing with this comment has a ... really hokey test case, and
a two line + whitespace diff for pystate.c . The objective of the patch is only
to have _current_frames report the correct frame for any live thread. It
continues to report dead
Terry J. Reedy added the comment:
New features only go in new versions.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7094
___
___
Roundup Robot added the comment:
New changeset 800a55c20b56 by Serhiy Storchaka in branch '3.4':
Issue #24326: Fixed audioop.ratecv() with non-default weightB argument.
https://hg.python.org/cpython/rev/800a55c20b56
New changeset 418ab34fd1ce by Serhiy Storchaka in branch '2.7':
Issue #24326:
Roundup Robot added the comment:
New changeset 784f372d701a by Benjamin Peterson in branch '3.5':
fix importing one char extension modules (closes #24328)
https://hg.python.org/cpython/rev/784f372d701a
New changeset d89bab1f160e by Benjamin Peterson in branch 'default':
merge 3.5 (#24328)
Martin Panter added the comment:
For the record, the difference between Python 2 and 3 is probably a side effect
of revision 050f0f7be11e. Python 2 copies data from the ExFileObject returned
by extractfile(), while Python 3 copies directly from the underlying file.
The patches to the file
Mike Frysinger added the comment:
we hit this problem daily in Chromium OS's build farm because we use pid
namespaces heavily
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24303
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
Added file: http://bugs.python.org/file39566/0813b1a88171.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +larry
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24325
___
___
Eric Snow added the comment:
@Jim, I believe I've addressed all the review comments that have indicate a
risk. I've also answered basically all the rest. Thanks for the great review.
Unless there are any objections, I'll likely commit the patch in the next hour
or two.
--
Roundup Robot added the comment:
New changeset e7af362b78df by Eric Snow in branch 'default':
Issue #16991: Add a C implementation of collections.OrderedDict.
https://hg.python.org/cpython/rev/e7af362b78df
--
nosy: +python-dev
___
Python tracker
Eric Snow added the comment:
Yep. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
___
Python-bugs-list mailing list
Unsubscribe:
Roundup Robot added the comment:
New changeset b85028c9d4b9 by Eric Snow in branch '3.5':
Issue #16991: Add a C implementation of collections.OrderedDict.
https://hg.python.org/cpython/rev/b85028c9d4b9
--
___
Python tracker rep...@bugs.python.org
Yury Selivanov added the comment:
@Eric: I think you also want to commit it to 3.5
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
___
Stefan Behnel added the comment:
IMHO less clear and less correct than the previous suggestions.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24079
___
Eric Snow added the comment:
I'll keep an eye out for trouble on the buildbots.
--
resolution: - fixed
stage: patch review - resolved
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
Roundup Robot added the comment:
New changeset fe4efc0032b5 by Raymond Hettinger in branch '3.5':
Issue #23509: Speed up Counter operators
https://hg.python.org/cpython/rev/fe4efc0032b5
--
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
PyObject_TypeCheck() should be used instead of PyObject_IsInstance() (see
issue24257).
Perhaps Py_ODict_GetItemId() should be private API as relevant dict function.
--
status: pending - open
___
Python tracker
New submission from yellow:
Configure Idle not in Options
No solution found online
Running OSX 10.10.3
--
components: Macintosh
messages: 23
nosy: Yellow, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Configure Idle not in Options
versions: Python
Stefan Behnel added the comment:
Seems like a good idea to explain text and tail in one section, though.
That makes tail easier to find for those who are not used to this kind of
split (and that's basically everyone who needs to read the docs in the first
place).
--
New submission from David Moore:
Hi -
During a code review of Modules/audioop.c I noted that weightB is never divided
by the GCD while weightA is divided twice. This is contrary to the comment and
appears to be a bug:
/* divide weightA and weightB by their greatest common divisor */
Ethan Furman added the comment:
Do you mean something like:
-- def heh():
... yield [1, 2, 3]
...
-- for i in heh():
... print(i)
...
[1, 2, 3]
# *grumble*
-- def heh():
... for i in [1, 2, 3]:
... yield i
...
-- for i in heh():
... print(i)
...
1
2
3
If so, use `yield from`:
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
stage: - patch review
versions: +Python 2.7, Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24326
Eric Snow added the comment:
Planning on committing today after I address some review comments.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
___
Wes Turner added the comment:
* Would this make it easy/faster to also have a DefaultOrderedDict (which
can/could also be accomplished with .get(attr, []) and .setdefault ?
On May 29, 2015 2:39 PM, Eric Snow rep...@bugs.python.org wrote:
Eric Snow added the comment:
Planning on committing
Changes by Yury Selivanov yseliva...@gmail.com:
--
resolution: fixed -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24316
___
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24329
___
___
Python-bugs-list
Tal Einat added the comment:
It's Chris.Barker. I've added him to the nosy list.
--
nosy: +Chris.Barker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24270
___
Neil Girdhar added the comment:
Simplified functools.partial documentation.
--
Added file: http://bugs.python.org/file39561/wn2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24136
___
Changes by Neil Girdhar mistersh...@gmail.com:
Added file: http://bugs.python.org/file39562/wn2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24136
___
Petr Viktorin added the comment:
I've opened issue24328 for that regression.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24268
___
___
New submission from Petr Viktorin:
A regression in the PEP 489 implementation prevents loading extension modules
with single-character names (because length-1 bytestrings are interned).
Here is a fix. It would be great to have it in 3.5.0b2.
--
files: fix-short-names.patch
keywords:
Petr Viktorin added the comment:
And, the remaining refleak is a known issue from 2012: PyType_FromSpec-created
types with custom tp_dealloc leak references when instantiated.
See issue 16690
There's more discussion is in issue 15653
Martin v. Löwis notes:
So I'd propose that it is actually
Mik added the comment:
I think it's clearer that way. Thank you.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24147
___
___
Python-bugs-list
Yury Selivanov added the comment:
Updated patch. Wrapper now proxies gi_code, gi_running and gi_frame
--
Added file: http://bugs.python.org/file39555/types_coroutine.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24316
Changes by R. David Murray rdmur...@bitdance.com:
--
priority: normal - release blocker
stage: - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24328
___
Roundup Robot added the comment:
New changeset 8080b53342e8 by Yury Selivanov in branch '3.5':
Issue 24316: Wrap gen objects returned from callables in types.coroutine
https://hg.python.org/cpython/rev/8080b53342e8
New changeset c0434ef75177 by Yury Selivanov in branch 'default':
Issue 24316:
Changes by Brandon Milam jmilam...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file39560/csv_skipinitialspace_docfix.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21297
Changes by Brandon Milam jmilam...@gmail.com:
Added file: http://bugs.python.org/file39559/csv_skipinitialspace_testing.csv
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21297
___
Brandon Milam added the comment:
This code shows what Daniel Andersson was talking about. I changed the
whitespace references in the documentation that Daniel mentioned to say
spaces. Also I changed ignore space at the start of the field to ignore
spaces at the start of the field due to
Brandon Milam added the comment:
Here I added on to the Dialects and Formatting Parameters paragraph explaining
that the defaults listed are for the excel dialect and that all the attributes
need to be specified if the user is wanting to create custom dialects through
sub-classing. I will
Stefan Behnel added the comment:
Ok, now the problem with *this* patch is that __iter__ and __await__ are
special methods that are being looked up on the type, not the instance.
Similarly __next__, I think, as it also has its own (type) slot. But I think
you're right that __next__ is also
Yury Selivanov added the comment:
I'm attaching a patch that works for me.
Looks like we were working in parallel ;) I've incorporated your changes.
Please look at the new patch (hopefully this one is final)
--
Added file: http://bugs.python.org/file39557/types_coroutine.patch
Barry A. Warsaw added the comment:
I don't know what problems I might have run into previously, but it's working
now and seems fine to me. +1
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23968
New submission from Yury Selivanov:
The following code doesn't work. Would be great if we can fix it in 3.5
class Foo:
__slots__ = ('__qualname__',)
--
components: Interpreter Core
messages: 244410
nosy: pitrou, yselivanov
priority: normal
severity: normal
status: open
title:
Stefan Behnel added the comment:
Your latest patch works for me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24316
___
___
Python-bugs-list
Yury Selivanov added the comment:
Committed. Thanks, Stefan!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24316
___
Brett Cannon added the comment:
Latest patch should work for Serhiy's needs by taking a container of names to
compare against the filename instead of a single argument.
--
Added file: http://bugs.python.org/file39550/deprecated_module_stacklevel.diff
Yury Selivanov added the comment:
Can we merge this patch before new beta2?
https://mail.python.org/pipermail/python-committers/2015-May/003410.html
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16991
Changes by Brandon Milam jmilam...@gmail.com:
Added file: http://bugs.python.org/file39553/csv.html
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24147
___
Yury Selivanov added the comment:
Attached is the second iteration of the patch. Now, besides just speeding up
types.coroutine() for pure python generator functions, it also provides a
better wrapper around generator-like objects.
--
nosy: +scoder
Added file:
Yury Selivanov added the comment:
Stefan, please take a look at this issue #24325 too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24316
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16690
___
___
Python-bugs-list
Nick Coghlan added the comment:
The new test cases for PEP 489 (multi-phase extension module import) appear to
be encountering this leak.
See issue 24268 for context.
--
nosy: +encukou
___
Python tracker rep...@bugs.python.org
1 - 100 of 101 matches
Mail list logo