Revision: 17758
Updated Code
at September 14, 2009 03:36 by manatlan
Updated Code
#/////////////////////////////: # pass a arg by ref #/////////////////////////////: err=clr.Reference[str]("") yourMethod(err) #/////////////////////////////: # pass a arg by ref #/////////////////////////////: from System.Collections.Generic import * l=List[str]() l.Add("val1") l.Add("val2") #/////////////////////////////: # get arguments from commandline #/////////////////////////////: from System import Environment argv = list(Environment.GetCommandLineArgs())
Revision: 17757
Updated Code
at September 14, 2009 03:35 by manatlan
Updated Code
#/////////////////////////////: # pass a arg by ref #/////////////////////////////: err=clr.Reference[str]("") yourMethod(err) #/////////////////////////////: # pass a arg by ref #/////////////////////////////: from System.Collections.Generic import * l=List[str]() l.Add("val1") l.Add("val2")
Revision: 17756
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 14, 2009 03:29 by manatlan
Initial Code
err=clr.Reference[str]("") yourMethod(err)
Initial URL
Initial Description
Initial Title
ironpython : tricks : pass arg by ref, generics, get argv
Initial Tags
Initial Language
Python