On 12/29/23 08:02, Karsten Hilbert via Python-list wrote:
Dict[str, str] means the key type and value type should both be strings,
Indeed, I know that much, list[dict[str, str]] is what is getting
passed in in this particular invocation of run_rw_queries().
For what it's worth here's the sign
argued about this, to no avail
(plays havoc with my testsuite, which in some places tries to execute
Python scripts as a cli command).
And then I've got this:
C:\Users\mats\SOMEWHERE>py -0
-V:3.13 Python 3.13 (64-bit)
-V:3.12 *Python 3.12 (64-bit)
-V:3.11
On 1/1/24 07:11, Thomas Passin via Python-list wrote:
Here's how to find out what program Windows thinks it should use to run
a ".py" file. In a console:
C:\Users\tom>assoc .py
.py=Python.File
C:\Users\tom>ftype Python.file
Python.file="C:\Windows\py.exe" "%L" %*
That's not enough. There i
On 1/1/24 12:53, Thomas Passin via Python-list wrote:
On Windows 10, a shebang line gets ignored in favor of Python 3.9.9 (if
invoked by the script name alone) or Python 3.12.1 (if invoked by the
"py" launcher).
fwiw, you can also create an ini file to define to the launcher py which
version
On 1/11/24 11:27, MRAB via Python-list wrote:
On 2024-01-11 18:08, Rich Shepard via Python-list wrote:
It's been several years since I've needed to write a python script so I'm
asking for advice to get me started with a brief script to separate names
and email addresses in one file into two sepa
olution, but why???
It's because of Windows itself. The default nowadays is that irritating
little stub that prompts you to go install Python from the WIndows
store. When you use the "env" form, it looks for python (or python3 in
your case) in the PATH *first* and you'll get
On 1/15/24 09:44, Sibylle Koczian via Python-list wrote:
In the Python documentation for versions 3.11 and 3.12 I found no
differences regarding py.exe and shebang lines.
Then I removed the "/env" from the shebang lines and could start the
scripts from the second computer. That certainly is a
On 1/15/24 12:01, Thomas Passin via Python-list wrote:
On 1/15/2024 1:26 PM, Mats Wichmann via Python-list wrote:
On 1/15/24 09:44, Sibylle Koczian via Python-list wrote:
First and foremost I want to understand why I'm seeing this:
- Python scripts with "/usr/bin/env python3"
On 1/16/24 10:00, Sibylle Koczian via Python-list wrote:
Am 15.01.2024 um 23:55 schrieb Mats Wichmann via Python-list:
On 1/15/24 12:01, Thomas Passin via Python-list wrote:
On 1/15/2024 1:26 PM, Mats Wichmann via Python-list wrote:
Python from the App Store is not the same as Python from
On 1/17/24 09:48, Alan Zaharia via Python-list wrote:
Hello Python
I Need help. it could not be found for PyTorch. It said in the Command Prompt
ERROR: Could not find a version that satisfies the requirement torch (from
versions: none)
ERROR: No matching distribution found for torch, Can you
On 1/29/24 05:19, Syed Hamood via Python-list wrote:
Dear Python.org Support Team,
I hope this email finds you well. I am writing to seek assistance with an
issue I'm encountering while attempting to uninstall a corrupted Python
installation on my system.
Details of my system:
- Operating
On 1/30/24 14:46, AVI GROSS via Python-list wrote:
Rich,
You may want to broaden your perspective a bit when people make suggestions.
Karsten did not spell out a full design and should not need to.
But consider this as a scenario.
You want to send (almost) the same message to one or more reci
On 2/3/24 10:58, Thomas Passin via Python-list wrote:
In my view this whole thread became murky and complicated because the OP
did not write down the requirements for the program. Requirements are
needed to communicate with other people. An individual may not need to
actually write down the r
On 2/17/24 19:24, dn via Python-list wrote:
On 18/02/24 13:21, Jonathan Gossage wrote:
- perhaps someone knows a better/proper way to do this?
Suggested research: custom classes, ABCs, and meta-classes...
Cure the old "what do you want to accomplish" question. If it's to
channel access to
On 3/5/24 18:44, Ethan Furman via Python-list wrote:
On 3/5/24 16:49, MRAB via Python-list wrote:
> On 2024-03-06 00:24, Ethan Furman via Python-list wrote:
>> On 3/5/24 16:06, Chano Fucks via Python-list wrote:
>>
>>> [image: image.png]
>>
>> The image is of MS-Windows with the python inst
On 3/6/24 05:55, Jacob Kruger via Python-list wrote:
Ok, simpler version - all the code in a simpler test file, and working
with two separate variables to explain exactly what am talking about:
If you import the contents of that file into the python interpreter,
dt_expiry will start off as "19
On 3/7/24 07:11, Varuna Seneviratna via Python-list wrote:
If a dictionary key has a Python list as its value, you can read the values
one by one in the list using a for-loop like in the following.
d = {k: [1,2,3]}
for v in d[k]:
print(v)
No tutorial describes this, why?
What is the
On 3/15/24 03:30, Loris Bennett via Python-list wrote:
Hi,
I am initialising an object via the following:
self.source_name = config['source_name']
config.get('source_name', default_if_not_defined) is a common technique...
--
https://mail.python.org/mailman/listinfo/python-list
On 3/22/24 11:45, Barry via Python-list wrote:
On 22 Mar 2024, at 15:25, Gilmeh Serda via Python-list
wrote:
Many if not most Linux distributions do not include pip by default.
Really? It came with Manjaro.
Debian and Ubuntu require you to install pip as a separate package.
Also puts
On 3/30/24 10:31, MRAB via Python-list wrote:
On 2024-03-30 11:25, Skip Montanaro via Python-list wrote:
> https://xkcd.com/1306/
> what does SIGIL mean?
I think its' a Perl term, referring to the $/@/# symbols in front of
identifiers.
I wouldn't consider '@' to
On 4/5/24 15:32, shannon makasale via Python-list wrote:
Hi there,
My name is Shannon. I installed Python 3.12 on my laptop a couple months ago,
but realised my school requires me to use 3.11.1.
they can suggest 3.11 and there might be a good reason for that, but you
should not worry about so
On 4/7/24 19:31, Wenyong Wei via Python-list wrote:
Dear Sir/Madam,
Recently I encounter a problem that I can't import paramiko in my computer. My
PC running on window 10 64 bits. I have investigate this issue via internet,
there are a lot of solutions for this issue, after trying most of the
On 4/13/24 07:00, jak via Python-list wrote:
Stefan Ram ha scritto:
jak wrote or quoted:
Would you show me the path, please?
I was not able to read xls here, so I used csv instead; Warning:
the script will overwrite file "file_20240412201813_tmp_DML.csv"!
import pandas as pd
with ope
On 5/3/24 05:55, Tripura Seersha via Python-list wrote:
Hi Team,
I am working on an automation related to uninstalling and installing python
versions on different windows servers.
I have observed that uninstallation is working only with the account/login
using which the python version is inst
On 5/10/24 03:39, Tripura Seersha via Python-list wrote:
Hi Barry,
Automation is using the system account using which the installation is failing
with exit code 3. This account has the administrative privileges.
Please help me with this issue.
Thanks,
Seersha
You probably have a better chan
On 5/18/24 10:48, Grant Edwards via Python-list wrote:
On 2024-05-18, Peter J. Holzer via Python-list wrote:
On 2024-05-16 19:46:07 +0100, Gordinator via Python-list wrote:
To be fair, the problem is the fact that they use Windows (but I
guess Linux users have to deal with venvs, so we're eve
On 5/29/24 08:02, Grant Edwards via Python-list wrote:
On 2024-05-29, Chris Angelico via Python-list wrote:
print(f"if block {name[index]=} {index=}")
Holy cow! How did I not know about the f-string {=} thing?
It's more recent than f-strings in general, so it's not that hard to miss.
--
On 5/29/24 13:27, Larry Martell via Python-list wrote:
On Tue, May 28, 2024 at 11:46 AM Left Right via Python-list
wrote:
Most Python objects aren't serializable into JSON. Pydantic isn't
special in this sense.
What can you do about this? -- Well, if this is a one-of situation,
then, maybe ju
On 5/31/24 11:59, Dieter Maurer via Python-list wrote:
hmmm, I "sent" this but there was some problem and it remained unsent.
Just in case it hasn't All Been Said Already, here's the retry:
HenHanna wrote at 2024-5-30 13:03 -0700:
Given a text file of a novel (JoyceUlysses.txt) ...
could s
On 6/5/24 05:10, Thomas Passin via Python-list wrote:
Of course, we see this lack of clarity all the time in questions to the
list. I often wonder how these askers can possibly come up with
acceptable code if they don't realize they don't truly know what it's
supposed to do.
Fortunately, ha
On 6/17/24 17:51, dn via Python-list wrote:
+1
The "public" part is not to embarrass posters, but recognition that
there are likely other people 'out there' (or arriving in-future if they
care to read the archives) experiencing a similar problem. (hence need
for descriptive Subject lines - i
On 6/26/24 09:29, marc nicole wrote:
Browsing the available version of tensorflow for the dates before January
2021 (date when Python 2.7 stopped being supported) I can't find a
tensorflow version for Python 2.7 that works under Windows.
The reference site I use is https://pypi.org/project/tenso
On 6/28/24 10:08, Ulrich Goebel via Python-list wrote:
By the way: in my usecase I want to pass different functions to different
instances of MyClass. It is in the context of a database app where I build
Getters for database data and pass one Getter per instance.
If I understood what you're
On 7/26/24 16:28, Thomas Passin via Python-list wrote:
On 7/26/2024 7:25 AM, Lizna Shah via Python-list wrote:
OSError: [WinError 225] Operation did not complete successfully
because the
file contains a virus or potentially unwanted software
That part of the error message tells you the story.
On 7/27/24 17:13, MRAB via Python-list wrote:
On 2024-07-27 21:58, Mats Wichmann via Python-list wrote:
On 7/26/24 16:28, Thomas Passin via Python-list wrote:
On 7/26/2024 7:25 AM, Lizna Shah via Python-list wrote:
OSError: [WinError 225] Operation did not complete successfully
because the
On 8/3/24 20:03, o1bigtenor via Python-list wrote:
My question was, is and will be (and the doc absolutely doesn't cover it)
how do I install a different version in the venv so that python 3.11.x on
the
system is not discombobulated by the python 3.12.x in the venv.
That python 3.12 would let me
On 8/5/24 06:48, o1bigtenor via Python-list wrote:
On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list <
python-list@python.org> wrote:
On 8/3/24 20:03, o1bigtenor via Python-list wrote:
My question was, is and will be (and the doc absolutely doesn't cover it)
how do
On 8/5/24 14:39, o1bigtenor wrote:
Matt - if you would rather that you were not included in the address
list - -
please advise.
On Mon, Aug 5, 2024 at 8:51 AM Mats Wichmann <mailto:m...@wichmann.us>> wrote:
On 8/5/24 06:48, o1bigtenor via Python-list wrote:
> On Sun, Au
On 8/5/24 15:17, o1bigtenor via Python-list wrote:
That's something like
pyenv install 3.12.4
$ pyenv install 3.12.4
bash: pyenv: command not found
pyenv is not a 'global' package
there is a mountain of /root/.pyenv files though
there is also quite a number of /root/.pyenv/plugins/pyen
On 8/11/24 07:42, Schimon Jehudah via Python-list wrote:
Barry. Thomas. I agree.
I do not have his machine to make observations, and therefore this
report is obscured.
I want to solve an issue of a friend who has attempted to install
Slixfeed, which is based on OMEMO, and the installation has f
On 8/14/24 17:53, Mike Dewhirst via Python-list wrote:
I read Chris McDonough's defence of Tim Peters and he has convinced me.
Not because of everything he said but because I have experience of
committees. And other things.
The problem is generational.
Later generations can see the faults
On 10/27/24 16:51, o1bigtenor via Python-list wrote:
Greetings
There are mountains of books out there.
Any suggestions for documents for a just learning how to program and
starting with Python (3)?
Preference to a tool where I would be learning by doing - - - that
works well for me.
TIA
Fra
On 11/12/24 12:10, Left Right via Python-list wrote:
Finally, if you want your logs to go to a file, and currently, your
only option is stderr, your shell gives you a really, really simple
way of redirecting stderr to a file. So, really, there aren't any
excuses to do that.
an awful lot of th
On 9/18/24 08:49, Ulrich Goebel via Python-list wrote:
Hi,
Debian Linux seems to love Python 3.7 - that is shown by apt-get list, and it's
installed on my Debian Server.
But I need at least Python 3.8
Is there a repository which I can give to apt to get Python 3.8 or later?
Or do I really ha
On 12/29/24 15:10, Cameron Simpson via Python-list wrote:
On 29Dec2024 07:16, Kevin M. Wilson wrote:
Excuse please, my failure. As I have not been following this
discussion, why is the subject "Python List Is NOT Dead" a subject for
discussion? Has the list been moving towards closing?
No, t
On 1/17/25 12:03, Keith Thompson via Python-list wrote:
Alan Gauld writes:
On 15/01/2025 00:41, Keith Thompson via Python-list wrote:
Alan Gauld writes:
On 11/01/2025 14:28, Chris Green via Python-list wrote:
I'm looking for Python packages that can help with text mode input,
I haven't foll
On 1/14/25 04:32, Chris Green via Python-list wrote:
I have a (relatively) clean Debian 12 installation running on my two
workhorse systems, a desktop server at home and my laptop that travels
around with me.
I moved from Xubuntu to Debian on both these systems a few months ago.
I ran Xubuntu f
On 1/13/25 22:47, roc str via Python-list wrote:
having a difficult time installing Python-3.10.16.tgz using
the Python-3.20.0a2.exe installer.
Please Advise
Mario Ramos.
Your question doesn't exactly make sense, but note this:
Windows installers are not built for "security bugfix" releases.
On 2/16/25 05:50, Jan Erik Moström via Python-list wrote:
I'm looking for a book that would teach me the lastest and greatest parts of
Python, does anyone have any recommendations?
I've looked at python.org and pythonbooks.org but I couldn't decide which one
to get.
I used to be fairly good a
On 2/16/25 18:40, Salvador Mirzo via Python-list wrote:
Jan Erik Moström writes:
On 16 Feb 2025, at 20:47, rbowman via Python-list wrote:
David Beasley's 'Python Distilled'. The author doesn't enumerate Python 3
features specifically but as the title suggests hits the important
concepts.
T
On 3/10/25 10:08, Praveen Kumar via Python-list wrote:
Hi Matt,
I pointed out onething that related to the errors, what I pointed out is I
just gone through the system 32 path in c drive and I found the python
executive and other python files indicating 0 kb, and I deleted these exe,
since thes
On 4/15/25 10:43, Friedrich Romstedt via Python-list wrote:
Many people put emphasis on that you need to *activate* a virtualenv before
using it, but no-one so far stressed the fact that you got Sphinx installed
to ~/jonathan/.local/lib/python3.13/site-packages *without using *--user.
To be clea
On 4/15/25 16:07, Grant Edwards via Python-list wrote:
On 2025-04-15, Thomas Passin via Python-list wrote:
On Linux, at least, it's standard for pip to install into the user's
site-packages location if it's not invoked with admin privileges - even
without --user. Pip will emit a message saying
On 4/17/25 15:15, Grant Edwards via Python-list wrote:
On 2025-04-17, Left Right via Python-list wrote:
Also... when installing stuff with pip --user, it is always a package
that is not installed for the system (usually not even available for
the system). How can that "break system packages"?
301 - 354 of 354 matches
Mail list logo