Sujet : Re: New VSI post on Youtube
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 30. Aug 2024, 00:09:00
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vaqv2b$5ioe$3@dont-email.me>
References : 1 2 3 4
User-Agent : Pan/0.160 (Toresk; )
On Thu, 29 Aug 2024 07:23:19 -0500, Craig A. Berry wrote:
Python also ships with a ton of modules and has many more available via
pip. But it has moved in the direction of fewer builtins and needing
modules to do pretty much anything. I think Python 2 had an "open"
builtin but in Python 3 you have to "import io" and use "io.open."
No, Python 2 had both “open” and “file” builtins which did the same thing,
but Python 3 keeps “open”. Yes, there is an important “io” module if you
want to get into the lower guts of file objects.
According to the “What’s New In Python 3.0” notes
<
https://docs.python.org/3.0/whatsnew/3.0.html>, only about half a dozen
builtins were removed.