I wonder why https://docs.python.org/3.8/library/time.html#time.strftime is missing the directives %G, %u and %V for the ISO week date, although they work:
Python 3.8.10 (default, Sep 28 2021, 16:10:42)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from time import strftime
Were these directives forgotten in the documentation or why were they not documented?
>> I am using python 3.7.3 on Debian 10 and I'm finding it writing
>> .python_history in my homedir. I want to shut that off completely
> According to [docs.python.org/3/library/site.html] it's possible:
That much, I already found.
I spent some time playing with putting various things in
sys.__interactivehook__ and have so far failed to find the magic
incantation necessary to stop it from writing .python_history - I'm
perfectly willing to believe one exists, but I have not managed to find
it, either in documentation or on my own. Everything I've tried either
errored out during startup or still wrote .python_history.
I'm having a problem in downloading the documentation for the latest
version(3.10) from the links provided.
It is showing me an error message: the webpage is not available or the page
may have been deleted.
Can you help please!!
I am using python 3.7.3 on Debian 10 and I'm finding it writing
.python_history in my homedir. I want to shut that off completely; I
want it to never, ever, write ~/.python_history (I don't care whether
it tries to read it, because it will never be there once I managed to
suppress writing it).
docs.python.org/3.7/tutorial/interactive.html says that "[t]he default
configuration also saves your history into a file named .python_history
in your user directory", implying that there is some way to configure
it otherwise. But I see no documentation on the relevant
configuration, either there or in the analogous page for current
python. Presumably I'm just missing something, but it would be nice to
see some kind of pointer to the relevant configuration documentation.
I've been thrashing around trying to set sys.__interactivehook__ in
$PYTHONSTARTUP, that being my best guess at what I need to use based on
a few searches, but have so far failed to find the magic incantation
that will suppress writing ~/.python_history. I don't know whether I'm
failing to set it or just haven't found the right thing to set it to.
In the Directives section, you discuss the various ways that directives can be used. However, you NEVER show what the ACTUAL directive statements are in each example. Apparently, it's left up to the imagination of the reader. Instead, the example is contained in some funky dynamic box that turns output on and off for some reason.
Hello Python Documentation Team.
Where: https://docs.python.org/3.10/whatsnew/3.10.html#deprecated (first
What error: *If* future releases it will be changed to syntax warning, and
finally to syntax error.
How to fix: *In* future releases it will be changed to syntax warning, and
finally to syntax error.
Hi Python Docs team!
My name is Nadav Ram, I was recently browsing the "Beginner's Guide to
Python" page on python.org and noticed that the PyGUI hyperlink in the
"Quiz and Exercises" section appears to lead to a website that doesn't
exist. The link instead redirects to a placeholder page that shows
alternative resources. Please keep me updated.