Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#85 "with" in 2.7

open-invalid
nobody
5
2010-02-13
2010-02-13
Anonymous
No

From Pythy on irc with Python 2.7:

c:\compile\psyco-dist\c\mergepoints.c:592: iblock >
Fatal Python error: Psyco assertion failed
import psyco
def f():
with open(r"C:\$.txt","wb") as foo: foo.write("hi")
psyco.proxy(f)()

this will also segfault in the same manner:
def f():
if 1==2:
with open(r"C:\$.txt","wb") as foo: foo.write("hi")

Discussion

  • Armin Rigo
    Armin Rigo
    2010-02-13

    Invalid as reported, given that Psyco does not compile at all in Python 2.7
    (and doesn't know anything about, say, SETUP_WITH). The original bug
    report is thus about a version of Psyco in which random changes have been
    made to the source code, which is pointless to know.

    I might still try to support Python 2.7, so I'm not closing this issue.

     
  • Armin Rigo
    Armin Rigo
    2010-02-13

    • status: open --> open-invalid