[IronPython] garbage in the source file
dinov at exchange.microsoft.com
Thu Nov 9 18:40:08 PST 2006
The characters are there to ensure that we don't have a clash between these argument names and a users named argument names. For example if it was just "args" and you attempted to pass a keyword argument named "args" we would think we got two values for args.
The characters are specified using the \u.... syntax so that the files don't have to be stored as Unicode files with a specified BOM. This compiles just fine w/ csc (there was a report that Mono was having problems with it - not sure if that's still the case). We recently ran into an internal tool that didn't like it and we've switched to using a Latin-1 character I believe instead although I'm not sure if that'd help you.
You can always remove the characters from the file if you're having issues with some other tool and change the argument name to something really long and strange.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Mathew Yeates
Sent: Thursday, November 09, 2006 2:58 PM
To: users at lists.ironpython.com
Subject: [IronPython] garbage in the source file
I just tried compiling the source code but it has random characters in
it. See IronPython/Runtime/PythonModule.cs line 57
public static PythonModule MakeModule(ICallerContext context,
DynamicType cls, params object args\u03c4)
users mailing list
users at lists.ironpython.com
More information about the users