Re: Keyword "as" in RuleDispatch

PJ Eby <pje-Wh6+Hckhi6HFNGf7iClzIwC/[email protected]> Fri, 2 Oct 2015 19:13:09 -0400
Newsgroups gmane.comp.python.peak
Message-ID <CALeMXf4w4aiBJkOzJGWC-T-5H3eiz2rxR4JG9C1_2=c2EMrgjA@mail.gmail.com>
Ruledispatch had support dropped many years ago; PEAK-Rules has a
RuleDispatch emulation API that addresses the 'as' issue.  See
http://peak.telecommunity.com/DevCenter/PEAK-Rules#porting-code-from-ruledispatch
for details.

On Fri, Oct 2, 2015 at 3:34 AM, Alexey Smishlayev <[email protected]> wrote:
> Hello!
>
> In the RuleDispatch package (I use most recent dev snapshot
> http://peak.telecommunity.com/snapshots/RuleDispatch-0.5a1.dev-r2717.tar.gz,
> file src/dispatch/__init__.py, line 22) a global name "as" is set, which is
> a reserved keyword in Python 2.7. That makes the package unusable, so I have
> to patch it locally every time I do an install.
>
> Is that an expected behavior or maybe there are other ways to deals with the
> problem?
>
>
> Best regards,
> Alexey Smishlayev
> _______________________________________________
> PEAK mailing list
> [email protected]
> http://www.eby-sarna.com/mailman/listinfo/peak