On Sun, 3 Oct 2004, Jeff Clites wrote: > I think that no matter what the approach, there's an unavoidable > mismatch between Perl and Python when it comes to variable naming, it's > going to be a bit awkward to access Perl variables from within Python. ... > 1) Treat Perl variables as having the sigil as part of the name. .. > For Python, the problem with (1) is that no Perl variables will have > legal names from Python's point of view. With (2), the variable names > are okay for Python, but Python doesn't have the concept of multiple > categories of variables.
Hey Jeff, I think this would be just fine. Languages like ruby and scheme allow identifiers that aren't valid names in perl OR python: rubyThing.sort! (is-this-true? (> scheme-var 1)) And heaven forbid you want to talk about perl's other variables: $! , $> $@ , etc... I've always kind of pictured something like this: >>> import parrot >>> parrot.load("perl","AI::Fuzzy") >>> f = parrot["perl::AI::Fuzzy::Label"] >>> f.addlabel("...") - Michal http://withoutane.com/