[issue11610] Improving property to accept abstract methods

Benjamin Peterson report at bugs.python.org
Sun Mar 20 18:25:58 CET 2011

Benjamin Peterson <benjamin at python.org> added the comment:

2011/3/20 Darren Dale <report at bugs.python.org>:
> Darren Dale <dsdale24 at gmail.com> added the comment:
> On Sun, Mar 20, 2011 at 5:18 AM, Daniel Urban <report at bugs.python.org> wrote:
>> Daniel Urban <urban.dani+py at gmail.com> added the comment:
>> I tried to test your patch, but the build dies with this error:
>> Fatal Python error: Py_Initialize: can't initialize sys standard streams
>> Traceback (most recent call last):
>>  File ".../cpython/Lib/io.py", line 60, in <module>
>> Aborted
>> I don't know why is this, but I get this error consistently with your patch, and no error without the patch.
> Have you added any print statements to the patch? I'm working on a
> completely new patch, which only touches abc.py on an existing
> python3.2 install. When I add a print statement to the abstract
> property creation routine, and run test_abc.py, I get the same error.

That's likely because the io library depends on abcs, so using print
in them creates a dependency cycle.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list