Eric Snow added the comment:
I've left a review. That said, we need to be sure this behavior is
intentional. The fact that it skips the nonlocal scope(s) smells like a bug
to me.
--
nosy: +eric.snow
___
Python tracker rep...@bugs.python.org
Changes by Ned Deily n...@acm.org:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24467
___
___
Python-bugs-list
Yury Selivanov added the comment:
Actually, I'm not sure that we should use 'cr_*' prefix instead of 'gi_*' for
coroutines.
Coroutines reusing generators machinery is a two-fold thing: on the one hand it
makes the implementation simpler; on the other -- __await__ must return an
*iterator*.
Serhiy Storchaka added the comment:
contextlib.ExitStack could help you.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24412
___
___
Elizabeth Myers added the comment:
After giving this a look over, I think this is over my head. Sorry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23749
___
Paul Moore added the comment:
Cool. Easier distribution is good. Better compatibility with GPL requirements
(depending only on system facilities) is probably helpful for the general
community, too.
Embedding in C++ built with a different version of the compiler is always going
to be a fun
Changes by Ned Deily n...@acm.org:
--
nosy: +davin, sbt
versions: -Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24475
___
Steve Dower added the comment:
it's the move to the universal CRT that mitigates the worst of the don't mix
C runtimes issues, rather than this specific change?
Correct
--
___
Python tracker rep...@bugs.python.org
Eric Snow added the comment:
I expect you'll get the same response, especially given potential (though
slight) chance for backward-compatibility issues. What I find curious is
Guido's reference to the rule that class bodies don't play the nested
scopes game (and his subsequent explanation).
levkivskyi added the comment:
Eric, thank you for the review. I have incorporated proposed changes in second
version of the patch.
Concerning the question whether it is a bug, it also smells like a bug to me,
but Guido said 13 years ago that this should not be changed:
R. David Murray added the comment:
That would not make it simpler. In fact it would make the test code more
complex. I'd still need the safeSetUpClass dodge (or repeat the try/except/log
in every setUpClass method), and I'd have to have a wrapper function that I
passed each cleanup to as an
Changes by Steve Dower steve.do...@microsoft.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24476
___
Roundup Robot added the comment:
New changeset 56ea535a8047 by Steve Dower in branch '3.5':
Issue 24476: Statically links vcruntime140.dll and removes it from the installer
https://hg.python.org/cpython/rev/56ea535a8047
New changeset c0827842102e by Steve Dower in branch 'default':
Issue 24476:
Terry J. Reedy added the comment:
Should this then be closed as not a bug?
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24470
___
Zachary Ware added the comment:
As long as a clean (updated) install of Vista, 7, 8, or 10 can download the
installer, run it, and run Python without having to do anything else, I'm good
with it.
--
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
As further motivation, I actually tried to implement this using try/except.
First I wrote a loop in tearDownClass that ran each of the cleanups inside a
try/except and printed the exception if there was one. But of course that
doesn't run if setUpClass
Martin Panter added the comment:
The timed out case seems to be similar to Issue 19756.
--
nosy: +vadmium
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19613
___
Changes by Rose Ames r...@happyspork.com:
--
nosy: +superluser
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24370
___
___
Python-bugs-list
New submission from py.user:
Some misleading behaviour found with option belonging.
It's possible to put one option twicely, so it can set different
parameters accoding to context.
A source of argt.py for test:
#!/usr/bin/env python3
import argparse
parser = argparse.ArgumentParser()
Changes by Rose Ames r...@happyspork.com:
--
nosy: +superluser
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24468
___
___
Python-bugs-list
Changes by Yury Selivanov yseliva...@gmail.com:
Added file: http://bugs.python.org/file39745/corotype.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24400
___
Nick Coghlan added the comment:
Bringing a design discussion back from the code review, since I didn't explain
the problem to be solved very well, and instead jumped straight to recommending
a specific solution.
Currently, dis has a dictionary mapping from hardcoded compiler flag values (in
Martin Panter added the comment:
1. urlencode(): I agree the documentation is unclear. But David Rueter’s
suggestion does not help much. I think doseq=True is meant to also work for a
mapping query (as in original post), and is not required in the
sequence-of-tuples mode if each tuple has a
Martin Panter added the comment:
Here is a patch to decouple the families() and Font.actual(family) tests as I
suggested. Ned, can you confirm if this works on the failing OS X setup? I
expect it should be fine.
--
stage: needs patch - patch review
Added file:
Tal Einat added the comment:
I'm convinced. +1
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24412
___
___
Python-bugs-list mailing list
New submission from Stefan Behnel:
A Cython user noticed a memory leak when C-inheriting from int.
http://thread.gmane.org/gmane.comp.python.cython.devel/15689
The Cython code to reproduce this is simply this:
cdef class ExtendedInt(int): pass
for j in xrange(1000):
Changes by Zachary Ware zachary.w...@gmail.com:
Removed file:
http://bugs.python.org/file39737/69f0d6e0ecbcee6fbb52097c52a7ee76.jpg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24471
___
Changes by Zachary Ware zachary.w...@gmail.com:
--
Removed message: http://bugs.python.org/msg245499
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24471
___
Changes by Berker Peksag berker.pek...@gmail.com:
Removed file: http://bugs.python.org/file39739/12493721761041772378.jpg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24473
___
Changes by Berker Peksag berker.pek...@gmail.com:
Removed file:
http://bugs.python.org/file39738/9F059BE32A3FC19A52978B2901172641.jpg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24472
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
title: 南京小姐找上门全套服务 - Spam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24473
___
___
Changes by Zachary Ware zachary.w...@gmail.com:
--
components: -Benchmarks
nosy: -ddssaa123123, haypo
stage: - resolved
title: 北京小姐找上门全套服务 - Spam
type: behavior -
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Zachary Ware zachary.w...@gmail.com:
--
components: -Benchmarks
nosy: -ddssaa123123
resolution: - not a bug
stage: - resolved
type: behavior -
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
Apparently, this is because of 200559fcc664. The fix is weird, though: why
duplicate code instead of moving it into tp_free?
I'd rather let Guido and Barry discuss this, I'm not willing to touch the 2.x
int type anymore.
--
nosy: +barry, gvanrossum
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: -pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24469
___
___
Python-bugs-list mailing
Guido van Rossum added the comment:
1) The intended solution is to require that int subclasses override tp_free.
2) I don't see any constructors that don't call PyInt_FromLong() -- what am I
missing?
--
___
Python tracker rep...@bugs.python.org
Changes by Zachary Ware zachary.w...@gmail.com:
--
nosy: -ddssaa123123
type: behavior -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24472
___
Antoine Pitrou added the comment:
Now that's weird. Why is the current int_free() doing the same as
int_dealloc()? Because some people call tp_free directly?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24469
Changes by Zachary Ware zachary.w...@gmail.com:
--
components: -Benchmarks
resolution: - not a bug
stage: - resolved
versions: -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24472
STINNER Victor added the comment:
spam
--
nosy: +haypo
resolution: - not a bug
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24471
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
Removed message: http://bugs.python.org/msg245501
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24472
___
Changes by Ismail Donmez ism...@donmez.ws:
--
nosy: +cartman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13501
___
___
Python-bugs-list mailing
Changes by Stefan Krah ste...@bytereef.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24473
___
___
Python-bugs-list
New submission from 陈富:
石 家 庄 小 姐 石 家 庄 找 服 务188.0207.9509莉 莉 【188.0207.9509】美 女 10-20 分 钟 送 到 2 4 小 时
营 业 小 姐 服 务 无 论 朋 友 你 常 住,还 是 出 差 经 过 ★ 按 百 度 快 照 ★ 拨 打 :188.0207.9509莎 姐 各 种(清
纯),(漂 亮) 的 美 女 为 您 解 除 1 天 的 疲 惫`让 您 拥 有 1 个 甜 蜜 `轻 松 `舒 心 的 夜 晚! 只 需 要 1 个 电
话:188.0207.9509 莎 姐 MM 就 会 来 到 你
New submission from 陈富:
北 京 小 姐 北 京 找 服 务188.0207.9509莉 莉 【188.0207.9509】美 女 10-20 分 钟 送 到 2 4 小 时 营 业
小 姐 服 务 无 论 朋 友 你 常 住,还 是 出 差 经 过 ★ 按 百 度 快 照 ★ 拨 打 :188.0207.9509莎 姐 各 种(清
纯),(漂 亮) 的 美 女 为 您 解 除 1 天 的 疲 惫`让 您 拥 有 1 个 甜 蜜 `轻 松 `舒 心 的 夜 晚! 只 需 要 1 个 电
话:188.0207.9509 莎 姐 MM 就 会 来 到 你 的 身
New submission from 陈富:
南 京 小 姐 南 京 找 服 务188.0207.9509莉 莉 【188.0207.9509】美 女 10-20 分 钟 送 到 2 4 小 时 营 业
小 姐 服 务 无 论 朋 友 你 常 住,还 是 出 差 经 过 ★ 按 百 度 快 照 ★ 拨 打 :188.0207.9509莎 姐 各 种(清
纯),(漂 亮) 的 美 女 为 您 解 除 1 天 的 疲 惫`让 您 拥 有 1 个 甜 蜜 `轻 松 `舒 心 的 夜 晚! 只 需 要 1 个 电
话:188.0207.9509 莎 姐 MM 就 会 来 到 你 的 身
Changes by Stefan Krah ste...@bytereef.org:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24472
___
___
Python-bugs-list
Changes by Berker Peksag berker.pek...@gmail.com:
--
Removed message: http://bugs.python.org/msg245502
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24473
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
title: 石家庄小姐找上门全套服务 - Spam
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24472
___
___
Lars Gustäbel added the comment:
The patch would change behaviour for all tarfile users by the back door, that's
why I am a little reluctant. And if the same can be achieved by a reasonably
simple change to shutil I think it's just as well.
--
___
eryksun added the comment:
It works for me:
open('test.c', 'w').write('long test(long x) {return x;}')
os.system('gcc -shared -fPIC -o test.so test.c')
0
test = CDLL('./test.so').test
test.restype = c_long
test.argtypes = (c_long,)
test(2**63-1) == 2**63-1
Stefan Behnel added the comment:
No problem for Cython either.
The change in issue 24400 that makes coroutines real Awaitables also removes
surprises for a cr_await return value being a coroutine and previously *not*
an Awaitable.
The contract for gi_yieldfrom is only that the returned value
Sam Thursfield added the comment:
I've discovered that this patch introduces a nasty failure case! If you have a
relative symlink pointing to a directory that's alphabetically sorted after the
symlink, and files inside the symlink, 'tar -x' won't be able to create those
files because the
Changes by Stefan Behnel sco...@users.sourceforge.net:
--
nosy: +scoder
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24450
___
___
Sam Thursfield added the comment:
Having tested, the problem I described above doesn't happen with this patch.
It's a mistake in some other code I wrote which is following symlinks when it
should not do.
--
___
Python tracker rep...@bugs.python.org
Changes by Stefan Behnel sco...@users.sourceforge.net:
--
nosy: +pitrou, serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24469
___
New submission from Walter Dörwald:
When an exception is raised by inspect.Signature.bind() in some cases the
exception has a StopIteration as its __context__:
import inspect
try:
inspect.signature(lambda x:None).bind()
except Exception as exc:
print(repr(exc))
Stefan Behnel added the comment:
1) The intended solution is to require that int subclasses override tp_free.
In the way I showed? By calling either PyObject_GC_Del() or PyObject_Del()
directly? I'll happily do that (Py2.7 and Py2 int being dead ends makes
that pretty future proof), but it's
Changes by Yury Selivanov yseliva...@gmail.com:
--
assignee: - yselivanov
components: +Library (Lib)
nosy: +yselivanov
versions: +Python 3.5, Python 3.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24474
New submission from Zahari Dim:
See:
http://stackoverflow.com/questions/30943161/multiprocessing-pool-with-maxtasksperchild-produces-equal-pids
The documentation never makes clear what a task in the context of Pool.map.
At best, it says:
This method chops the iterable into a number of chunks
Yury Selivanov added the comment:
New patch is attached.
Updates:
1. Coroutine type now has 'cr_*' slots *both* in Python *and* in C.
2. set_coroutine_wrapper now works *only* on coroutines created by 'async def'
functions (generators wrapped with types.coroutine won't be intercepted).
3.
New submission from Steve Dower:
It's possible to statically link the vcruntime140.dll dependency without
statically linking the entire CRT, which will save us from having to
redistribute the file (meaning the entire CRT dependency is now system
components).
Patch to follow, and I'm very +1
Yury Selivanov added the comment:
Hi Walter,
Thanks for reporting this. A patch is attached.
--
keywords: +needs review, patch
nosy: +larry, ncoghlan
stage: - patch review
Added file: http://bugs.python.org/file39743/sig.patch
___
Python tracker
Yury Selivanov added the comment:
Nick, Larry, please take a look at the attached patch.
--
keywords: +patch
Added file: http://bugs.python.org/file39741/code.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24468
Changes by Steve Dower steve.do...@microsoft.com:
--
keywords: +patch
Added file: http://bugs.python.org/file39742/24476_1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24476
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - tokenize/untokenize roundtrip fails with tabs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24447
Terry J. Reedy added the comment:
#24447, closed as duplicate, has another example.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20387
___
___
Terry J. Reedy added the comment:
It is impossible for Idle to know the purpose of a multiline string.
--
nosy: +terry.reedy
resolution: - rejected
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
Paul Moore added the comment:
+1 from me on this. Are there any specific technical implications (in terms of
ease of interoperability, ability to use a different compiler to build Python,
or whatever)? Whether there are or not, I'm still in favour - I think it's a
good thing anyway on general
R. David Murray added the comment:
In this particular case, just wait (now that you have pinged the issue).
Raymond is the most likely person to figure out how to phrase this better, but
it isn't obvious what the best way to explain this is. I don't think your
explanation is exactly
Paul Anton Letnes added the comment:
The format (xz vs bzip2) might not matter much, but I'd say consistency does.
I'd make the formats identical just for the sake of standardization.
Where is this decided? In some (post)build script?
--
nosy: +pletnes
Terry J. Reedy added the comment:
#24455 is probably related.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15348
___
___
Python-bugs-list
Terry J. Reedy added the comment:
This seems like an extension of #15348, but I will leave it open for now. The
additional details may be useful.
--
nosy: +terry.reedy
versions: +Python 2.7, Python 3.5, Python 3.6
___
Python tracker
Steve Dower added the comment:
There may be some potential issues when hosting Python in a C++ app built with
a later version of MSVC, since vcruntime140.dll is predominantly initialization
and exceptions for C++. I can't think of anything specific here though, and it
seems likely that the
levkivskyi added the comment:
Should I invite someone to review the patch or just wait? How the things are
organized here?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24129
___
Guido van Rossum added the comment:
(1) Just look at the examples of other builtin types with a similar structure
but no free_list.
(2) I guess the intention is for classes that subclass int to also override
tp_alloc.
Note that much of this code is written pretty much assuming that
76 matches
Mail list logo