Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


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




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: