[issue2505] Easier creation of _ast nodes

2008-03-30 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Committed in r62049. -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-

[issue2505] Easier creation of _ast nodes

2008-03-29 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Looks fine to me. It might be reasonable to further restrict the constructor to either 0 or len(_fields) arguments. -- assignee: loewis -> georg.brandl resolution: -> accepted __ Tracker <[EMAIL PROT

[issue2505] Easier creation of _ast nodes

2008-03-29 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Okay, I'm dropping the attribute restriction part. Attaching new patch that allows creating nodes with fields (not attributes) as positional arguments, and setting all keyword arguments as attributes on self. -- title: Restrict attribu