On 27 November 2014 at 23:43, Jesus Cea <j...@jcea.es> wrote: > On 27/11/14 13:42, Victor Stinner wrote: >> 2014-11-27 13:41 GMT+01:00 Victor Stinner <victor.stin...@gmail.com>: >>> I am amused about the "/)" suffix in the signature. It happens to all >>> magic methods. >> >> If I remember correctly, it means that the function does not accept >> keywords: > > I don't understand. Is that internal annotation for the clinic machinery?.
See PEP 457 for the broader context: https://www.python.org/dev/peps/pep-0457/ The migration of pydoc (and other introspection APIs) to inspect.signature in Python 3.4 entailed having an unambiguous string representation of positional only parameters - that's the trailing '/' (which mirrors the corresponding syntax in the Argument Clinic DSL). Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com