News for hackers. Stuff that matters.
Re:Python built-ins worth learning (2019) by teddyh on Thursday March 10, 2022 @02:34AM (#30624176)
But it’s not a builtin. partial() is in the functools module.
Re:Python built-ins worth learning (2019) by alanwreath on Thursday March 10, 2022 @11:18AM (#30628609)
I’m confused on this point, isn’t functools part of the standard library? Or has this changed?
Re:Python built-ins worth learning (2019) by mixmastamyk on Thursday March 10, 2022 @12:07PM (#30629299)
Built-ins are available without import. Stdlib are available without separate install.
Re:Python built-ins worth learning (2019) by selcuka on Thursday March 10, 2022 @08:29PM (#30635071)
> Built-ins are available without import.

That distinction is a bit muddy:

    >>> import os
    >>> type(os.scandir)
    <class 'builtin_function_or_method'>