[issue4381] Cannot declare multiple classes via exec when inside a function.

2008-11-21 Thread Kevin Fitch
New submission from Kevin Fitch <[EMAIL PROTECTED]>: codeText = """ class foo(object): pass class bar(object): baz = foo() """ def doExec(text): exec text ### This works: # Although if I do this before the doExec below, then the # doExec doesn't fai

[issue4380] Deepcopy of functools.partial gives wierd exception

2008-11-21 Thread Kevin Fitch
New submission from Kevin Fitch <[EMAIL PROTECTED]>: from functools import partial from copy import deepcopy p = partial("Hello world".replace, "world") p("mom") p2 = deepcopy(p) The output I get is: Hello mom Followed by: Traceback (most