On Wed, 12 Jun 2024 at 22:38, AVI GROSS via Python-list
wrote:
>
> The discussion though was about a specific OP asking if they can fix their
> problem. One solution being suggested is to fix a deeper problem and simply
> make their code work with a recent version of python 3.
Th
On Thu, 13 Jun 2024 at 07:57, Oscar Benjamin via Python-list
wrote:
> They are seeing a warning that explicitly says "You can upgrade to a
> newer version of Python to solve this". I don't know whether that SSL
> warning is directly connected to pip not finding any vers
On Wed, 12 Jun 2024 at 23:11, Chris Angelico via Python-list
wrote:
>
> On Thu, 13 Jun 2024 at 07:57, Oscar Benjamin via Python-list
> wrote:
> > They are seeing a warning that explicitly says "You can upgrade to a
> > newer version of Python to solve this"
On 13/06/24 4:31 am, [email protected] wrote:
It seems Microsoft is having a problem where something lik 2/3 of Windows
users have not upgraded from Windows 10 after many years
At least Python 3 is a clear improvement over Python 2 in many ways.
Whereas the only thing Microsoft seems to
On Thu, 13 Jun 2024 at 08:46, Oscar Benjamin via Python-list
wrote:
> I don't know much about SSL and related networking things especially
> on Windows. I would be surprised if pip on old Python can't install
> from current PyPI though. I imagine that something strange has
&g
On Wed, 12 Jun 2024 at 23:52, Greg Ewing via Python-list
wrote:
> On 13/06/24 10:09 am, Chris Angelico wrote:
> > So if anyone
> > actually does need to use pip with Python 2.7, they probably need to
> > set up a local server
>
> You should also be able to download
Chris,
I don't want to get off message and debate whether my "jokes" are jokes, let
alone funny. Obviously, they often aren't.
What I meant by joking here does seem relevant. As the years pass, there can
come a time when it is suggested that a language (any language inc
#x27;s another incompatible change just around the corner.
Do you realise how insulting you are being to the developers of Python
by these implications?
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
Chris,
You seem to have perceived an insult that I remain unaware of.
I have no special knowledge, like you do, of plans made for changes to the
pthon language and implementation.
I was asking a hypothetical question about what some users would do if
python came out with a newer major version
ying to imply that
work spent upgrading to Python 3 would have to be redone any day now
when this hypothetical massively-incompatible Python 4 is released? Or
what? What WERE you trying to say?
If you don't understand how damaging it can be to say that sort of
thing, **don't say it**. Ot
Hello. I read this is a good place to give some suggestions for features in
python. If not, please let me know.
This is an example of a code I normally use in my everyday work:
import logging
try:
with open('sample_data/READM.md') as f:
print (len(f.read()))
except FileNot
s no sense! :-)
How can one not say something that one isn't aware of saying?
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
of the world in which we live. As such, we can cast
aside childish remnants from the dawn of our civilization.
-- NotSanguine on SoylentNews, after Eugen Weber in /The Western Tradition/
--
https://mail.python.org/mailman/listinfo/python-list
> On 13 Jun 2024, at 11:01, Yair Eshel via Python-list
> wrote:
>
> I read this is a good place to give some suggestions for features in
> python.
Best place these days is to raise an idea on https://discuss.python.org/
Beware that this idea has come up in the past and was r
Hey, everyone!
I believe the original question has been answered, and tempers seem to be flaring in sub-threads, so let's call this
thread done and move on to other interesting topics.
Thank you for your support!
--
~Ethan~
Moderator
--
https://mail.python.org/mailman/listinfo/python-list
ires a `with` extension.
--
Dieter
--
https://mail.python.org/mailman/listinfo/python-list
pport, and doing stuff like merging an `except`
with a `wtih` is bound to introduce some weird corner case, complicating
its semantics.
Cheers,
Cameron Simpson
--
https://mail.python.org/mailman/listinfo/python-list
merging an `except`
> with a `wtih` is bound to introduce some weird corner case, complicating
> its semantics.
>
> Cheers,
> Cameron Simpson
>
--
https://mail.python.org/mailman/listinfo/python-list
onymous, even wilder.
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, 15 Jun 2024 at 08:32, dn via Python-list wrote:
> These mailing-lists all run under the Python Code of Conduct.
>
The newsgroup, however, is not. Which means that anyone who posts on
the newsgroup is subject to no such restrictions - and that might
explain the, shall we say,
eference. I should respect that.
Plenty of people have reasons to post anonymously, even to a list like
this one. Just assume they've got their reasons and move on.
--
https://mail.python.org/mailman/listinfo/python-list
-
https://mail.python.org/mailman/listinfo/python-list
On 15.06.2024 um 10:30 Uhr dn wrote:
> These mailing-lists all run under the Python Code of Conduct.
>
> This also effects a conundrum. Firstly, that someone abusing others
> (for example) shall be held responsible. Secondly, that in order to
> hold someone responsible, he/
seems the discussions with people
in the email list are more useful to me.
-Original Message-
From: Python-list On
Behalf Of Marco Moock via Python-list
Sent: Saturday, June 15, 2024 2:03 AM
To: [email protected]
Subject: Re: Anonymous email users
On 15.06.2024 um 10:30 Uhr dn wrote
AVI GROSS via Python-list schreef op 17/06/2024 om 17:03:
I simply am thinking that people who do not allow me to easily reply to them
directly, should be ignored by me and not get my cooperation that way.
FWIW, personally I (mostly) don't see the point of replying to people
personally. To
o far
Traceback (most recent call last):
File "C:\TEST*.PY", line 8, in
SetClipboardData(CF_UNICODETEXT, "0")
pywintypes.error: (0, 'SetClipboardData', 'No error message is available')
Can anyone shed light on this?
Best wishes
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-06-17, Roel Schroeven via Python-list wrote:
> FWIW, personally I (mostly) don't see the point of replying to people
> personally. To me a public mailing list is much like any public forum,
> where my expectation is that conversations happen in public. To me it
> a
h the group and I would not have received some chances to
learn if I could not ask questions in private that clearly did not fit the
purpose of the group.
So, I am outa this conversation IN PUBLIC. LOL!
-Original Message-----
From: Python-list On
Behalf Of Grant Edwards via Python-list
Sent:
On 6/17/2024 9:30 PM, MRAB via Python-list wrote:
On 2024-06-17 20:27, Rob Cliffe via Python-list wrote:
Recently I acquired a new laptop running WIndows 11; my previous one
uses WIndows 10. I encountered a strange problem:
I am using the win32clipboard backage (part of pywin32), and when I
On Mon, Jun 17, 2024 at 8:36 PM MRAB via Python-list
wrote:
> On 2024-06-17 20:27, Rob Cliffe via Python-list wrote:
>
> > SetClipboardData(CF_UNICODETEXT, "0")
> > CloseClipboard()
win32clipboard.SetClipboardData() first tries to covert the second
argument as an int
(win32clipboard.CF_UNICODETEXT,
hMem)
# Now the system owns the global memory.
except:
kernel32.GlobalFree(hMem)
raise
--
https://mail.python.org/mailman/listinfo/python-list
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 descr
On 2024-06-18, Mats Wichmann via Python-list wrote:
> 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 arrivi
:09-04:00
>
> The closest I got in python is
>
> from datetime import datetime
> from zoneinfo import ZoneInfo
>
> s = datetime.strftime(datetime.now(ZoneInfo("America/New_York")),
> "%Y-%m-%dT%H:%M:%S%z")
> print(s)
>
> This prints the same as
I'm curious about something I've encountered while updating a very old
Tk app (originally written in Python 1, but I've ported it to Python 2
as a first step towards getting it running on modern systems). The app
downloads emails from a POP server and displays them. At the mo
On Sat, 22 Jun 2024 at 03:28, Rayner Lucas via Python-list
wrote:
> I'm curious about something I've encountered while updating a very old
> Tk app (originally written in Python 1, but I've ported it to Python 2
> as a first step towards getting it running on modern
;
> Could you specify what is wrong with what you are doing? you show us code
> that uses an environment you point to that is largely outside of basic
> Python.
>
> There is no one way to get from point A to point B and various constraints
> you have not mentioned can apply. How man
In article ,
[email protected] says...
>
> If you switch to a Linux system, it should work correctly, and you'll
> be able to migrate the rest of the way onto Python 3. Once you achieve
> that, you'll be able to operate on Windows or Linux equivalently,
> since Python
,
target_transformer_list, axis_mask_list, times).
src:
http://doc.aldebaran.com/1-14/dev/python/examples/almath/index.html?highlight=offset
This question is specific to NAO environment but in general how to go
about this task? what is a most common algorithm used in this case? Do
I have to also get
In article , [email protected]
berlin.de says...
>
> I didn't really do a super thorough deep dive on this,
> but I'm just giving the initial impression without
> actually being familiar with Tkinter under Python 2,
> so I might be wrong!
>
> The Text widge
ot easy to create
a new one either. And even if I did, you can't even trust e-mail
providers not to give your address out to spammers.
The only function e-mail addresses serve now is to positively identify
the sender of a Usenet posting so he can be targeted for harassment,
lawsuits, or worse.
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 24 Jun 2024 at 08:20, Rayner Lucas via Python-list
wrote:
>
> In article ,
> [email protected] says...
> >
> > If you switch to a Linux system, it should work correctly, and you'll
> > be able to migrate the rest of the way onto Python 3. Once you ach
On Mon, 24 Jun 2024 at 10:18, MRAB via Python-list
wrote:
> Tkinter in recent versions of Python can handle astral characters, at
> least back to Python 3.8, the oldest I have on my Windows PC.
Good to know, thanks! I was hoping that would be the case, but I don't
have a Windows syst
r from below all using both
> > hands).
> >
> > Specifically, my problem is applied to a NAO robot environment where I
> > retrieve a target object coordinates using the following code:
>
> This is almost entirely outside the Python domain and all within
> your 3rd party e
> On 23 Jun 2024, at 06:58, Sebastian Wells via Python-list
> wrote:
>
> The spammers won the spam wars, so even if you have someone's real
> e-mail address, that's no guarantee that you can contact them. You
> certainly wouldn't be able to contact me at my
On 6/24/2024 5:51 AM, Barry Scott via Python-list wrote:
On 23 Jun 2024, at 06:58, Sebastian Wells via Python-list
wrote:
The spammers won the spam wars, so even if you have someone's real
e-mail address, that's no guarantee that you can contact them. You
certainly wouldn
Marc,
Several people have supplied feedback on whether your request is a good fit for
here. Ultimately it is up to the owner/moderator. In particular, your request
to the Tutor List may not fit the purpose and be a bit complex and to the main
Python List also outside some common usage whether
On Tue, 25 Jun 2024 at 08:31, dn via Python-list wrote:
> Python mailing-lists are covered by the Code of Conduct and monitored by
> ListAdmins. Thus, there are controls which limit the impact which
> advertisers and others with non-pythonic aims might otherwise exert!
>
So long
On 2024-06-24, Barry Scott via Python-list wrote:
>> On 23 Jun 2024, at 06:58, Sebastian Wells via Python-list
>> wrote:
>>
>> The spammers won the spam wars, so even if you have someone's real
>> e-mail address, that's no guarantee that you can contact
On Tue, 25 Jun 2024 at 11:41, Grant Edwards via Python-list
wrote:
> I've been using the same e-mail address for about 20 years. I've use
> that e-mail address with probably close to 100 retailers, charities,
> open-source projects, media sites, and various other organization
This discussion has wandered far from my original mention that I found it
hard to reply to people using an invalid email address. I see no real
connection to python except insofar as at least one spam-filter mentioned is
written in python!
Just to add an observation, the people writing here have
on.org -- against proprietary attachments
--
https://mail.python.org/mailman/listinfo/python-list
Chris Angelico to dn:
> > Python mailing-lists are covered by the Code of Conduct
> > and monitored by ListAdmins. Thus, there are controls
> > which limit the impact which advertisers and others with
> > non-pythonic aims might otherwise exert!
>
> So long as ther
On Wed, 26 Jun 2024 at 03:40, Anton Shepelev via Python-list
wrote:
>
> Chris Angelico to dn:
>
> > > Python mailing-lists are covered by the Code of Conduct
> > > and monitored by ListAdmins. Thus, there are controls
> > > which limit the impact which a
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/tensorflow/
Anybody can point
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/pr
The *next to last* Python 3.13 beta version, beta 3, is now released:
https://www.python.org/downloads/release/python-3130b3/
*This is a beta preview of Python 3.13*
Python 3.13 is still in development. This release, 3.13.0b3, is the third
of four beta release previews of 3.13.
Beta release
unctions 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.
Thanks for hints
Ulrich
--
Ulrich Goebel
--
https://mail.python.org/mailman/listinfo/python-list
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
On 6/28/2024 12:08 PM, Ulrich Goebel via Python-list wrote:
Hi,
a class can have methods, and it can have attributes, which can hold a
function. Both is well known, of course.
My question: Is there any difference?
The code snipped shows that both do what they should do. But __dict__ includes
essed in this way, it becomes (typically) a method.
--
https://mail.python.org/mailman/listinfo/python-list
*ANNOUNCING*
eGenix PyRun - One file Python Runtime
Version 2.5.0
Python runtime taking up just 4-6MB on disk
This announcement is also available on our web-site for online reading:
https://www.egenix.com/company/news/eGenix-PyRun-2.5.0-GA.html
Hi.
Just FYI, I use Erc (in Emacs). I'm not a very advanced user, perhaps,
but I never felt like I miss anything. That's not to stop you from
making your own, but if you just need a decent text client for IRC,
then there's already at least one.
On Thu, Jul 4, 2024 at 11:30 AM in
modify the last attempt to open the file twice, which would
work, but seems like a kludge (subject to race condition, inefficient).
Is there a better / more Pythonic solution?
Best wishes
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-07-06 at 11:49:06 +0100,
Rob Cliffe via Python-list wrote:
> Is there a better / more Pythonic solution?
https://docs.python.org/3/library/fileinput.html
At least this attempts to abstract the problem of iterating over a file
(or multiple files) into a library routine. I've u
On 06/07/2024 11:49, Rob Cliffe via Python-list wrote:
> If the file does not exist I want to take appropriate action, e.g.
> print an error message and abort the program.
> I might write it like this:
>
> try:
> with open(FileName) as f:
> for ln in f:
On Sat, 6 Jul 2024 at 11:55, Rob Cliffe via Python-list
wrote:
>
> Consider this scenario (which I ran into in real life):
> I want to open a text file and do a lot of processing on the lines
> of that file.
> If the file does not exist I want to take appropriate action,
On 7/6/2024 6:49 AM, Rob Cliffe via Python-list wrote:
Consider this scenario (which I ran into in real life):
I want to open a text file and do a lot of processing on the lines
of that file.
If the file does not exist I want to take appropriate action, e.g.
print an error message
print(f"File {FileName} not found:")
sys.exit()
Now the "process" function has been factored out and can be well
documented as to what it is doing on each line, and this code can be
documented as running process on each line of the file.
On 7/6/24 6:49 AM, Rob Cliffe vi
pen()` call returns a file object _which can be used as
a context manager_. It is separate from the `with` itself.
--
https://mail.python.org/mailman/listinfo/python-list
hon.org/mailman/listinfo/python-list
-
https://mail.python.org/mailman/listinfo/python-list
t work (trying to access the file after "with f"
raises the same
ValueError: I/O operation on closed file.
I'm using Python 3.11.5.
Best wishes
Rob Cliffe
--
https://mail.python.org/mailman/listinfo/python-list
the run:
% python3 p.py
line: here are
line: some lines of text
--
https://mail.python.org/mailman/listinfo/python-list
ry/except.
--
https://mail.python.org/mailman/listinfo/python-list
> On 7 Jul 2024, at 23:47, MRAB via Python-list wrote:
>
> For clarity I'd recommend os.replace instead. This is because on Windows
> os.rename it would complain if the target file already exists, but os.replace
> has the same behaviour on both Linux and Windows.
Agree
> On 7 Jul 2024, at 23:21, Barry via Python-list wrote:
>
>
>
>> On 7 Jul 2024, at 22:09, Tomas Ukkonen via Python-list
>> wrote:
>>
>>Py_Initialize();
>
> You also need to tell python to init threading.
I'm in front of my dev machine
d executing them one at a time.
On Sun, Jul 7, 2024 at 11:12 PM Chris Green via Python-list
wrote:
>
> I have a Raspberry Pi in my boat that uses I2C to read a number of
> voltages and currents (using ADS1115 A2D) so I can monitor the battery
> condition etc.
>
> At present var
> This is even simpler than using a file.
>
Yes, but it's conceptually (and programming wise) much simpler to have
separate scripts. Some of them are simple 'on demand' scripts that I
run from the command line when I want to know something. Others are
scripts that drive displays on control panels.
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
ns of characters that would be
kept up to date by one process and asked for by all the others.
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
On 06/07/2024 12:57, Oscar Benjamin via Python-list wrote:
On Sat, 6 Jul 2024 at 11:55, Rob Cliffe via Python-list
wrote:
Consider this scenario (which I ran into in real life):
I want to open a text file and do a lot of processing on the lines
of that file.
If the file does not
> On 9 Jul 2024, at 06:13, אורי via Python-list <[email protected]>
> wrote:
>
> I tried to subscribe to Python-ideas
These days ideas are discussed on https://discuss.python.org/
It is rare to see an idea on the mailing list.
Barry
--
https://mail.python.or
s doing something (here: printing an incrementing value
> named "info") and also serving requests from other processes
> for this "info" value:
>
[snip]
Thanks, that should get me started! :-)
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
top of numpy.
Is there a reason you cannot solve this mostly outside numpy?
It looks like you could use numpy to select the numbers you want to compare,
then call one of many methods you can easily search for to see how to use
python to make some list or other data structure for divisors of each
(posting on-list this time)
On Thu, 11 Jul 2024 at 15:18, Popov, Dmitry Yu via Python-list
wrote:
>
> Dear Sirs.
>
> Does NumPy provide a simple mechanism to identify relatively prime integers,
> i.e. integers which don't have a common factor other than +1 or -1? For
> e
, 2024 3:26 PM
To: [email protected]; 'Popov, Dmitry Yu via Python-list'
Subject: Re: Relatively prime integers in NumPy
Thank you for your interest. My explanation is too concise indeed, sorry. So
far, I have used Python code with three enclosed 'for' loops for th
arious
functions of the module.
--
https://mail.python.org/mailman/listinfo/python-list
some have) or you explain
well enough.
I am guessing you have programming experience in other languages and are not as
“pythonic” as some. The code you show may not be quite how others might do it.
Some may write mch of your code as a single line of python using a list
comprehension such as
for you,
like expand.grd. Python has many modules, like itertools that do things
including combinations but perhaps not designed for your case.
Here is a version of your scenario:
import itertools
a = range(3)
b = range(4)
c = range(5)
list(itertools.product(a,b,c))
The result
Python 3.13.0b4, the final beta of Python 3.13, is now available:
https://www.python.org/downloads/release/python-3130b4/
*This is a beta preview of Python 3.13*
Python 3.13 is still in development. This release, 3.13.0b4, is the *final*
beta release preview of 3.13.
Beta release previews are
Hello,
I am experiencing a problem with pip not being installed on my laptop and
would appreciate any assistance you can provide.
Here are the details of my issue: -
Operating System: Windows
Python Version: Python 3.10.10
Steps I have already taken to try and resolve the issue:
1. Verified
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. Windows thinks some
file in the install has been
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
package at PyPi, or a fault at my
pyproject.toml.
This is the link to the project:
https://git.xmpp-it.net/sch/Slixfeed#getting-started
Please advise,
Schimon
--
https://mail.python.org/mailman/listinfo/python-list
259], [0.0, 0.0, 275.0, -325.0, 3.0997846126556396],
[711.0, -231.0, -146.0, 392.0, 2.205275535583496]], 'diningtable':
[[138.0, -310.0, 111.0, 448.0, 4.660728931427002], [317.0, -66.0,
313.0, 6.0, 4.535496234893799], [0.0, 0.0, -41.0, 175.0,
1.8571208715438843], [21.0, -92.0, 76.0, 172.0, 1.2035608291625977],
[0.0, 0.0, 448.0, -250.0, 1.00322687625885]], 'car': [[312.0, 232.0,
132.0, 309.0, 3.205225706100464], [514.0, -76.0, 218.0, 448.0,
1.4289973974227905], [0.0, 0.0, 448.0, 142.0, 0.7124998569488525]]}
WHile I expect only the dict to contain the small_ball key
How's that is possible? where's the prediction output?How to fix the code?
--
https://mail.python.org/mailman/listinfo/python-list
On 7/30/2024 2:18 PM, marc nicole via Python-list wrote:
Hello all,
I want to predict an object by given as input an image and want to have my
model be able to predict the label. I have trained a model using tensorflow
based on annotated database where the target object to predict was added to
OK, but how's the probability of small_ball greater than others? I can't
find it anyway, what's its value?
Le mar. 30 juil. 2024 à 21:37, Thomas Passin via Python-list <
[email protected]> a écrit :
> On 7/30/2024 2:18 PM, marc nicole via Python-list wrote:
> >
tand what those function calls
are returning. It's documented somewhere, right?
And you really do need to know the probabilities of the competing images
because otherwise you won't know how confident you can be that the
identification is a strong one.
Le mar. 30 juil. 202
and a sheep wont have any target position or any probability
whatsoever in the image weirdobject.jpg
On Wed, 31 Jul 2024, 00:19 dn via Python-list,
wrote:
> On 31/07/24 06:18, marc nicole via Python-list wrote:
> > Hello all,
> >
> > I want to predict an object by given as in
5501 - 5600 of 6733 matches
Mail list logo