Message258119
import functools
def f():
def g():
yield 1
return g
functools.partial(f())().__qualname__ != f()().__qualname__
The qualified name gets passed in via the interpreter loop with _PyEval_EvalCodeWithName calling PyGen_NewWithQualName. If a generator object gets called from C then the qualified name gets lost.
It seems like _PyEval_EvalCodeWithName shouldn't exist and the generator code object should be able to get back to its qualified name so subtle differences like this don't happen. |
|
Date |
User |
Action |
Args |
2016-01-12 22:33:48 | dino.viehland | set | recipients:
+ dino.viehland |
2016-01-12 22:33:48 | dino.viehland | set | messageid: <1452638028.1.0.595104762218.issue26093@psf.upfronthosting.co.za> |
2016-01-12 22:33:48 | dino.viehland | link | issue26093 messages |
2016-01-12 22:33:47 | dino.viehland | create | |
|