top | item 7407315

(no title)

valtron | 12 years ago

If you're really determined, you can use `.` as an operator via __getattr__ and inspect :p

discuss

order

shoo|12 years ago

ugh.

very loosely related, this reminds me of calling R functions from python that take keyword arguments with dots in their names.

    >>> f(hello.world=123)
      File "<stdin>", line 1
    SyntaxError: keyword can't be an expression
so instead:

    >>> f(**{'hello.world':123})