I would like to use pexpect with rpyc (http://rpyc.wikidot.com/). The issue is the type checking done in pexpect compares for exact types not instances of a particular type. For example in compile_pattern_list() there is some code like:
if type(patterns) is not types.ListType:
Rather than checking for an exact type types.ListType, it could check for an instance of types.ListType and be a little more flexible:
if not isinstance(patterns, types.ListType):
If the above is applied to a number of places in pexpect, then it seems to work fine with pyrc. I have made some patches for this that I am using, it seems to work fine for me. I will use them for a bit longer in testing. Should i submit these patche? Will they be accepted?
Log in to post a comment.