[PEAK] Keyword "as" in RuleDispatch

Alexey Smishlayev alexey at xtech2.lv
Tue Oct 6 08:34:10 EDT 2015

Thank you for the suggestion!

What would be the correct way to install PEAK + PEAK-Rules?
I did:
$ sudo pip install 
$ sudo pip install 
   Downloading PEAK-0.5a4.dev-r2486.tar.gz (1.0MB): 1.0MB downloaded
   Running setup.py (path:/tmp/pip-pEff4R-build/setup.py) egg_info for 
package from 

Downloading/unpacking RuleDispatch>=0.5a0dev-r2287 (from 
   Could not find any downloads that satisfy the requirement 
RuleDispatch>=0.5a0dev-r2287 (from PEAK==0.5a4.dev-r2486)
Cleaning up...
No distributions at all found for RuleDispatch>=0.5a0dev-r2287 (from 

Do I still have to install RuleDispatch, even if I don't use it?

Best regards,

On 2015.10.03. 02:13, PJ Eby wrote:
> 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