Hacker News new | ask | show | jobs
by valtron 4472 days ago
If you're really determined, you can use `.` as an operator via __getattr__ and inspect :p
1 comments

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})