On Oct 19, 7:05 am, Abhishek Mishra <[EMAIL PROTECTED]> wrote:
> Hello Everyone,
>
> I have the habit of using domain names (of either the application or
> company) in reverse in package names.
>
> for e.g. com.spam.app1
>
> I've recently started a project for an indian domain (tld = .in),
> which leads to a package name like
>
> in.spam.app1
>
> This causes a syntax error, as "in" is a keyword.
> I understand that this is an unfortunate "feature", but has anyone
> faced this problem before,
> and is there a possible workaround.
>
> P.S. this would also be a problem for the iceland domains (tld = .is).
> TLDs:http://data.iana.org/TLD/tlds-alpha-by-domain.txt
> Python Keywords:http://www.python.org/doc/2.5.2/ref/keywords.html
>
You could add a trailing underscore, ie "in_". This "fix" is done in
the poplib module where the POP3 class has a method called "pass_"
because "pass" is a reserved word.
--
http://mail.python.org/mailman/listinfo/python-list