[PEAK] Keyword "as" in RuleDispatch

PJ Eby pje at telecommunity.com
Fri Oct 2 19:13:09 EDT 2015


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 <alexey at xtech2.lv> 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
> PEAK at eby-sarna.com
> http://www.eby-sarna.com/mailman/listinfo/peak


More information about the PEAK mailing list