In Python language, what is (void) referring to?

Chris Angelico rosuav at gmail.com
Sat Sep 21 05:34:34 EDT 2013


On Sat, Sep 21, 2013 at 7:10 PM, Don Sylvia <donsylvia95 at gmail.com> wrote:
> void...........?
> --
> https://mail.python.org/mailman/listinfo/python-list

That looks like a C-style cast, though casting to void is unusual. If
you're looking at the source code to CPython, you might find something
like that. In C it usually means "I don't care about the return value
of this function".

ChrisA



More information about the Python-list mailing list