[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-29 Thread Lars Gustäbel
Changes by Lars Gustäbel : Added file: http://bugs.python.org/file39544/issue24259-2.x.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-29 Thread Lars Gustäbel
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. --

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2015-05-29 Thread Matěj Stuchlík
Matěj Stuchlík added the comment: +1 from the Python team from Fedora, the patch looks good from downstream standpoint. -- ___ Python tracker ___ ___

[issue24313] json fails to serialise numpy.int64

2015-05-29 Thread Antoine Pitrou
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 >>> issub

[issue24313] json fails to serialise numpy.int64

2015-05-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue24322] Hundreds of linker warnings on Windows

2015-05-29 Thread Mark Lawrence
New submission from Mark Lawrence: The first of them. 3>C:\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,

[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-29 Thread eimista
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

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-05-29 Thread Cyd Haselton
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 ___

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2015-05-29 Thread Martin Olsen
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.

[issue24321] interaction of nonlocal and except leading to incorrect behavior

2015-05-29 Thread R. David Murray
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 ___

[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-29 Thread Eric V. Smith
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 om

[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-29 Thread Eric V. Smith
Changes by Eric V. Smith : -- versions: -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24313] json fails to serialise numpy.int64

2015-05-29 Thread R. David Murray
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 a

[issue24313] json fails to serialise numpy.int64

2015-05-29 Thread Antoine Pitrou
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

[issue24315] collections.abc: Coroutine should be derived from Awaitable

2015-05-29 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24315] collections.abc: Coroutine should be derived from Awaitable

2015-05-29 Thread Roundup Robot
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 col

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Roundup Robot
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 types.

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-29 Thread Yury Selivanov
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. -- ___ Python

[issue24270] PEP 485 (math.isclose) implementation

2015-05-29 Thread Stefan Krah
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 ahe

[issue23659] csv.register_dialect doc string

2015-05-29 Thread Skip Montanaro
Skip Montanaro added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue24324] Remove -Wunreachable-code flag

2015-05-29 Thread Skip Montanaro
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: http://sta

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-29 Thread Stefan Behnel
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 sin

[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: I think it should be changed to `pop(i=-1)`. -- nosy: +yselivanov ___ Python tracker ___ ___ Python-

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Yury Selivanov
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 ___ __

[issue24323] Typo in Mutable Sequence Types documentation.

2015-05-29 Thread Eric V. Smith
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. -- ___

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-29 Thread Petr Viktorin
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

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-29 Thread Stefan Behnel
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 ___ __

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-29 Thread Stefan Behnel
Stefan Behnel added the comment: Tried it, works for me. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue24017] Implemenation of the PEP 492 - Coroutines with async and await syntax

2015-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: > Tried it, works for me. Thanks! This is really good news! Thanks! -- ___ Python tracker ___ ___ P

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Stefan Behnel
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, i

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-05-29 Thread Ryan Gonzalez
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 wrote: > >Cyd Haselton added the comment: > >All, >Just checking in as it has been a while...is there anything I need to >do o

[issue24325] Speedup types.coroutine()

2015-05-29 Thread Yury Selivanov
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 this

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-05-29 Thread Cyd Haselton
Cyd Haselton added the comment: On May 29, 2015 10:52:23 AM CDT, Ryan Gonzalez 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: 1) -python3.4m ne

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-05-29 Thread Brett Cannon
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. `warnings.deprecate_

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Yury Selivanov
Yury Selivanov 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. Please test thoroughly the attached patch. -- Added file: http://bugs.python.org/file39548/types_coroutine.patch ___

[issue24326] Audioop: weightB not divided by GCD, weightA divided twice

2015-05-29 Thread David Moore
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 */

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Stefan Behnel
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 i

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Stefan Behnel
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

[issue23767] Library and include paths not added when cross compiling on localized sytem

2015-05-29 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: I confirm seeing the same issue. This patch fixes it. -- nosy: +thomas-petazzoni ___ Python tracker ___ __

[issue23810] Suboptimal stacklevel of deprecation warnings for formatter and imp modules

2015-05-29 Thread Brett Cannon
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 ___

[issue23810] Suboptimal stacklevel of deprecation warnings for formatter and imp modules

2015-05-29 Thread Brett Cannon
Changes by Brett Cannon : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue24327] yield unpacking

2015-05-29 Thread Mital Ashok
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 itera

[issue24327] yield unpacking

2015-05-29 Thread Ethan Furman
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

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Yury Selivanov
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.coroutin

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Yury Selivanov
Changes by Yury Selivanov : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue24147] Dialect class defaults are not documented.

2015-05-29 Thread Brandon Milam
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 also

[issue24147] Dialect class defaults are not documented.

2015-05-29 Thread Brandon Milam
Changes by Brandon Milam : Added file: http://bugs.python.org/file39553/csv.html ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Eric Snow
Eric Snow added the comment: Planning on committing today after I address some review comments. -- ___ Python tracker ___ ___ Python-b

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Wes Turner
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" wrote: > > Eric Snow added the comment: > > Planning on committing today after I ad

[issue24326] Audioop: weightB not divided by GCD, weightA divided twice

2015-05-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka stage: -> patch review versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker _

[issue24328] Extension modules with single-letter names can't be loaded

2015-05-29 Thread Petr Viktorin
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: pa

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-29 Thread Petr Viktorin
Petr Viktorin added the comment: I've opened issue24328 for that regression. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue24268] PEP 489 -- Multi-phase extension module initialization

2015-05-29 Thread Petr Viktorin
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 t

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Stefan Behnel
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 need

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Yury Selivanov
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 ___

[issue24147] Dialect class defaults are not documented.

2015-05-29 Thread Mik
Mik added the comment: I think it's clearer that way. Thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Yury Selivanov
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 ___

[issue24329] __qualname__ and __slots__

2015-05-29 Thread Yury Selivanov
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: __qua

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2015-05-29 Thread Barry A. Warsaw
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 ___

[issue24328] Extension modules with single-letter names can't be loaded

2015-05-29 Thread R. David Murray
Changes by R. David Murray : -- priority: normal -> release blocker stage: -> commit review ___ Python tracker ___ ___ Python-bugs-li

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Stefan Behnel
Stefan Behnel added the comment: Your latest patch works for me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Roundup Robot
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: Wr

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Committed. Thanks, Stefan! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue21297] csv.skipinitialspace only skips spaces, not "whitespace" in general

2015-05-29 Thread Brandon Milam
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

[issue21297] csv.skipinitialspace only skips spaces, not "whitespace" in general

2015-05-29 Thread Brandon Milam
Changes by Brandon Milam : Added file: http://bugs.python.org/file39559/csv_skipinitialspace_testing.csv ___ Python tracker ___ ___ Python-bug

[issue21297] csv.skipinitialspace only skips spaces, not "whitespace" in general

2015-05-29 Thread Brandon Milam
Changes by Brandon Milam : -- keywords: +patch Added file: http://bugs.python.org/file39560/csv_skipinitialspace_docfix.patch ___ Python tracker ___ _

[issue24329] __qualname__ and __slots__

2015-05-29 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue24270] PEP 485 (math.isclose) implementation

2015-05-29 Thread Tal Einat
Tal Einat added the comment: It's Chris.Barker. I've added him to the nosy list. -- nosy: +Chris.Barker ___ Python tracker ___ ___ Pyt

[issue24136] document PEP 448

2015-05-29 Thread Neil Girdhar
Neil Girdhar added the comment: Simplified functools.partial documentation. -- Added file: http://bugs.python.org/file39561/wn2.diff ___ Python tracker ___ __

[issue24136] document PEP 448

2015-05-29 Thread Neil Girdhar
Changes by Neil Girdhar : Added file: http://bugs.python.org/file39562/wn2.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue24325] Speedup types.coroutine()

2015-05-29 Thread Yury Selivanov
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: http://bugs.python.org/fi

[issue24316] Fix types.coroutine to accept objects from Cython

2015-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: Stefan, please take a look at this issue #24325 too. -- ___ Python tracker ___ ___ Python-bugs-list

[issue16690] Reference leak with custom tp_dealloc in PyType_FromSpec

2015-05-29 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue16690] Reference leak with custom tp_dealloc in PyType_FromSpec

2015-05-29 Thread Nick Coghlan
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

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Yury Selivanov
Yury Selivanov 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 ? Not in 3.5. -- ___ Python tracker

[issue24326] Audioop: weightB not divided by GCD, weightA divided twice

2015-05-29 Thread Roundup Robot
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: Fi

[issue24326] Audioop: weightB not divided by GCD, weightA divided twice

2015-05-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report and patch David. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24328] Extension modules with single-letter names can't be loaded

2015-05-29 Thread Roundup Robot
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) https:

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2015-05-29 Thread Davin Potts
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 clone

[issue19989] Error while sending function code over queue (multiprocessing)

2015-05-29 Thread Davin Potts
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: pendin

[issue24270] PEP 485 (math.isclose) implementation

2015-05-29 Thread Christopher Barker
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 implementation

[issue7094] Add alternate float formatting styles to new-style formatting.

2015-05-29 Thread Seungbeom Kim
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 form

[issue17094] sys._current_frames() reports too many/wrong stack frames

2015-05-29 Thread Devin Jeanpierre
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

[issue24328] Extension modules with single-letter names can't be loaded

2015-05-29 Thread Martin Panter
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 __

[issue24328] Extension modules with single-letter names can't be loaded

2015-05-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8428cb297d15 by Benjamin Peterson in branch '3.5': use assert method (#24328) https://hg.python.org/cpython/rev/8428cb297d15 -- ___ Python tracker

[issue7094] Add alternate float formatting styles to new-style formatting.

2015-05-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: New features only go in new versions. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-29 Thread Martin Panter
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 read

[issue24079] xml.etree.ElementTree.Element.text does not conform to the documentation

2015-05-29 Thread Martin Panter
Martin Panter added the comment: Here is a patch with my suggestion. Let me know what you think. -- components: +XML keywords: +patch stage: needs patch -> patch review versions: +Python 3.6 Added file: http://bugs.python.org/file39565/etree-text.patch __

[issue24303] OSError 17 due to _multiprocessing/semaphore.c assuming a one-to-one Pid -> process mapping.

2015-05-29 Thread Mike Frysinger
Mike Frysinger added the comment: we hit this problem daily in Chromium OS's build farm because we use pid namespaces heavily -- ___ Python tracker ___ _

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Eric Snow
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. -- _

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Eric Snow
Changes by Eric Snow : Added file: http://bugs.python.org/file39566/0813b1a88171.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Roundup Robot
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

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Yury Selivanov
Yury Selivanov added the comment: @Eric: I think you also want to commit it to 3.5 -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Eric Snow
Eric Snow added the comment: Yep. :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Roundup Robot
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

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Eric Snow
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 __

[issue16991] Add OrderedDict written in C

2015-05-29 Thread Serhiy Storchaka
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 <

[issue24330] "Configure Idle" not in "Options"

2015-05-29 Thread yellow
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: P

[issue23509] Speed up Counter operators

2015-05-29 Thread Roundup Robot
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 __

  1   2   >