On Mon, 29 Jan 2024, Thomas Passin via Python-list wrote:
If you aren't going to use one or another existing template system,
perhaps the easiest is to use unique strings in the message file. For
example:
Dear __##so-and-so##__:
Please don't write this message off as
On Tue, Jan 30, 2024 at 1:13 AM AVI GROSS via Python-list
wrote:
>
> It can be quite frustrating figuring out what someone wants, Grant,
> especially when they just change it.
>
> It is worse when instead of starting a new thread with an appropriate
> subject line, it continue
On 1/30/2024 8:37 AM, Rich Shepard via Python-list wrote:
On Mon, 29 Jan 2024, Thomas Passin via Python-list wrote:
If you aren't going to use one or another existing template system,
perhaps the easiest is to use unique strings in the message file. For
example:
Dear __##so-a
field such as email or address, and use other utilities
ranging from cut to awk and getting the parts you want into variables and
then interpolate them into a message template and so on.
Of course, doing it in python is a good way to go too and should not be hard
once it is decided how to store
On Tue, 30 Jan 2024, Thomas Passin via Python-list wrote:
Fine, my toy example will still be applicable. But, you know, you haven't
told us enough to give you help. Do you want to replace text from values
in a file? That's been covered. Do you want to send the messages using
those
On Tue, 30 Jan 2024, AVI GROSS via Python-list wrote:
But seriously, the OP, AKA Rich, is making clear that he is making a tool
for his own use. It sounds like he wants to maintain a data repository of
his own with some info about his clients and then have the ability to
specify a name and pop
> For 30 years I've used a bash script using mailx to send messages to a list
> of recipients. They have no salutation to personalize each one. Since I want
> to add that personalized salutation I decided to write a python script to
> replace the bash script.
Why not foxus on
On Tue, 30 Jan 2024, Karsten Hilbert wrote:
Why not foxus on just the part you think you are better off using python,
namely personalization ?
Create personalized files and send them with your trusted mailx solution ?
Karsten,
Too much time. And while mailx accepts the '-a'
> > Why not foxus on just the part you think you are better off using python,
> > namely personalization ?
> >
> > Create personalized files and send them with your trusted mailx solution ?
>
> Karsten,
>
> Too much time. And while mailx accepts the '-a
On Tue, 30 Jan 2024, Karsten Hilbert wrote:
It doesn't need to. It just sends the (pre-personalized-by-Python) mail files.
Karsten,
In which case, I might as well have Python format and send the messages. :-)
Regards,
Rich
--
https://mail.python.org/mailman/listinfo/python-list
> On Tue, 30 Jan 2024, Karsten Hilbert wrote:
>
> > It doesn't need to. It just sends the (pre-personalized-by-Python) mail
> > files.
>
> Karsten,
>
> In which case, I might as well have Python format and send the messages. :-)
Certainly. But it seems you
anything else such as their
preferred pronoun or address.
Now have the script call your super-duper python program with enough info so
it can find the folder to put amended COPIES of your letter into as well as.
Perhaps the email address intended in the filename or whatever works for
you.
Your
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
On 1/30/2024 12:21 PM, Rich Shepard via Python-list wrote:
On Tue, 30 Jan 2024, Thomas Passin via Python-list wrote:
Fine, my toy example will still be applicable. But, you know, you haven't
told us enough to give you help. Do you want to replace text from values
in a file? That's be
also import from there. As I mentioned, many spreadsheets
and all kinds of statistical programs tend to support some formats making it
quite flexible.
Python has all kinds of functionality, such as in the pandas module, to read
in a CSV or write it out. And once you have the data structure in
l kinds of statistical programs tend to support some formats making it
quite flexible.
Python has all kinds of functionality, such as in the pandas module, to read
in a CSV or write it out. And once you have the data structure in memory, al
kinds of queries and changes can be made fairly straightforward
On Tue, 30 Jan 2024, Thomas Passin via Python-list wrote:
If I had a script that's been working for 30 years, I'd probably just use
Python to do the personalizing and let the rest of the bash script do the
rest, like it always has. The Python program would pipe or send the
personalize
On 1/31/2024 9:05 AM, Rich Shepard via Python-list wrote:
On Tue, 30 Jan 2024, Thomas Passin via Python-list wrote:
If I had a script that's been working for 30 years, I'd probably just use
Python to do the personalizing and let the rest of the bash script do the
rest, like it alway
”, if you had looked that up.
>
><https://docs.python.org/3/glossary.html#term-awaitable>
To be fair, I've been using Python for well over quarter of a century,
and I never knew it had a glossary.
--
https://mail.python.org/mailman/listinfo/python-list
in python may have been frustration with doing
it as a shell script. Fair enough. But the idea of two files may have been
made in the first place by the original idea of such a script. The question
posed was sort of how to search in one and then somehow find the
corresponding part of another. The
and maybe garbage collection was not
automatic, ...
-Original Message-
From: Python-list On
Behalf Of Thomas Passin via Python-list
Sent: Wednesday, January 31, 2024 7:25 AM
To: [email protected]
Subject: Re: Extract lines from file, add to new files
On 1/30/2024 11:25 PM, avi.e.gr
a list of lines or a
data.frame and use some tools that search all of it and produce results.
I find I personally now often lean toward the latter approach but ages ago
when memory and CPU were considerations and maybe garbage collection was not
automatic, ...
-Original Message-
From: Pytho
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
main thing that the OP and others can do is to not just be
abstract but supply a small example including what output they expect and
perhaps what they did not receive properly along with error messages.
Rich had not tried doing what he wanted in python, yet. I don't know if he
did any other
On 2/3/2024 5:02 PM, dn via Python-list wrote:
Every trainer, in any field, has to deal with these problems - all the
time, and over-and-over.
On 4/02/24 06: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 f
ly.
I think people like us who volunteer to reply should consider our choices too.
I think it is fair to reply, as I saw on the tutor forum, that the code shown
uses a method that is not the way the replier would do it but nonetheless offer
some thoughts on particular python coding errors.
I am still waiting for async files in the
style of nodejs that works on windows and
is bundled with the main python distribution.
I am not very fond on doing something
like adding listeners to a file descriptor,
in nodejs async files are based on callbacks
not on listeners. Whats the
And whats the roadmap for an asyncified module
loader, is this on the radar of Python?
Mild Shock schrieb:
I am still waiting for async files in the
style of nodejs that works on windows and
is bundled with the main python distribution.
I am not very fond on doing something
like adding
+0100, Mild Shock wrote:
... that works on windows ...
You lost me there.
--
https://mail.python.org/mailman/listinfo/python-list
Funny source code tells me IOCP is used;
proactor is only implemented on Windows with IOCP.
https://github.com/python/cpython/blob/3.12/Lib/asyncio/proactor_events.py
But maybe the focus is more on networking than file system.
But it has sock_sendfile() that might avoid copying data to
._oleobj_.Invoke(*(args + (value,) + defArgs))
pywintypes.com_error: (-2147352567, 'Er is een uitzondering opgetreden.', (0,
None, None, None, 0, -2147024882), None)
Process finished with exit code 1
Kind regards
Gelukt
--
https://mail.python.org/mailman/listinfo/python-list
PyDev 12.0.0 Release Highlights
-
*Debugger*
- *sys.monitoring* is now used in Python 3.12 (and it's *much* faster
than any previous version).
- A new setting was added in the *Preferences > PyDev > Debug* to
debug *just my code* (meaning that when stepp
*Python 3.12.2 and 3.11.8 are here! *In addition to all the usual bugfixes,
these releases contain a small security fix: hidden .pth files are no
longer automatically read and executed
<https://docs.python.org/release/3.12.2/whatsnew/changelog.html#security>
as part of Python startup
On 2/6/24 10:46 PM, Jim via Python-list wrote:
Friends,
Please forgive me if this is not the proper forum for dealing with an issue of mine, but
I am at a loss in finding a fix for a python problem in the program ClipGrab. The program
allows one to download videos or audios from YouTube and
generated (or could even
generate 'virtual' attributes).
--
Anthony Flury
email : [email protected]
--
https://mail.python.org/mailman/listinfo/python-list
the developer could choose which keywords would be generated (or could
even generate 'virtual' attributes).
Can you show us why you think that would look like in code?
Note that Python already has `a ** b` to raise `a` to the power of `b`,
and it has a bunder method `__pow__` which you
On Fri, 9 Feb 2024 at 17:03, Cameron Simpson via Python-list
wrote:
>
> On 08Feb2024 12:21, [email protected]
> wrote:
> >I know that mappings by default support the ** operator, to unpack the
> >mapping into key word arguments.
> >
> >Has it been consid
_. Pretty easy.
- Alan
--
https://mail.python.org/mailman/listinfo/python-list
an do this in C, but I cannot think of a way to do this in Python
proper. Defining all the methods mentioned in PyMappingMethods doesn't
seem to do it. You could try to research this further, and if, indeed
defining all the methods of PyMappingMethods on the Python side
doesn't produce an
Left Right via Python-list schreef op 9/02/2024 om 17:09:
In order for the "splat" operator to work, the type of the object must
populate slot `tp_as_mapping` with a struct of this type:
https://docs.python.org/3/c-api/typeobj.html#c.PyMappingMethods and
have some non-null implementati
> Looks like it can simply be done in Python, no tp_as_mapping needed.
It's not that it isn't needed. You've just shown a way to add it using
Python code.
But, more to the point: extending collections.abc.Mapping may or may
not be possible in OP's case.
Also, if you
s dict, int, str and
namedtuple.
Cheers,
Cameron Simpson
--
https://mail.python.org/mailman/listinfo/python-list
://mail.python.org/mailman/listinfo/python-list
It’s time for Python 3.13.0 alpha 4 (now with SPDX SBOM OMG!):
https://www.python.org/downloads/release/python-3130a4/
*This is an early developer preview of Python 3.13*
<https://discuss.python.org/t/python-3-13-alpha-4/46042#major-new-features-of-the-313-series-compared-to-312-1>Maj
"Science Researcher" wrote in message
news:[email protected]...
This is a test message - just ignore it
That post worked as intended.
--
https://mail.python.org/mailman/listinfo/python-list
This is a test message - just ignore it
--
https://mail.python.org/mailman/listinfo/python-list
On Thursday 15 February 2024 at 21:16:22 UTC, E.D.G. wrote:
> Test - ignore February 15, 2024
>
> Test post to see if my Newsgroup post program is working.
Aim your test messages at alt.test, please.
--
https://mail.python.org/mailman/listinfo/python-list
to comp.lang.python traverse the gateway and show up on this list,
then alt.test won't help.
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
em for me was always Usenet posters who used
fake email addresses.)
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Thursday, February 15, 2024 at 16:02, Tony Oliver via Python-list wrote:
Re: test-ignore (at least in part)
>On Thursday 15 February 2024 at 21:16:22 UTC, E.D.G. wrote:
>> Test - ignore February 15, 2024
>>
>> Test post to see if my Newsgroup post program is working.
>
Gates, no Windows and an Apache inside.
--
https://mail.python.org/mailman/listinfo/python-list
On 16Feb2024 20:32, MRAB wrote:
On 2024-02-16 20:07, Gabor Urban via Python-list wrote:
I need something about modules to be clarified.
Suppose I have written a module eg: ModuleA which imports an other
module, let us say the datetime.
If I import ModuleA in a script, will be datetime
g string or
other sort of cleverness?
--
Chris Green
·
--
https://mail.python.org/mailman/listinfo/python-list
e)}')
or whatever fits your code.
Cheers,
Cameron Simpson
--
https://mail.python.org/mailman/listinfo/python-list
, **kwargs) -> None:
our_attributes = ('h', 'x')
if kwargs is not None:
for k, v in kwargs.items():
if k in our_attributes:
setattr(self, k, v)
a = SingletonExample(h=1)
and I get the following result:
(PRV) jona
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
On 2024-02-16, Chris Green via Python-list wrote:
> I'm looking for a simple way to make NaN values output as something
> like '-' or even just a space instead of the string 'nan'.
It would probably help if you told us how you're "outputting" them
On 2024-02-17, Cameron Simpson via Python-list wrote:
> On 16Feb2024 22:12, Chris Green wrote:
>>I'm looking for a simple way to make NaN values output as something
>>like '-' or even just a space instead of the string 'nan'.
>>[...]
>>
>&
rnet for valid
copies of Windows Live Mail if you are interested in the program.
Regards to all
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-02-17, Cameron Simpson via Python-list wrote:
> On 16Feb2024 22:12, Chris Green wrote:
>>I'm looking for a simple way to make NaN values output as something
>>like '-' or even just a space instead of the string 'nan'. [...]
>>
>>
On 2024-02-17, Cameron Simpson via Python-list wrote:
> On 16Feb2024 22:12, Chris Green wrote:
>>I'm looking for a simple way to make NaN values output as something
>>like '-' or even just a space instead of the string 'nan'. [...]
>>
>>
On 2024-02-17, Cameron Simpson via Python-list wrote:
> On 16Feb2024 22:12, Chris Green wrote:
>>I'm looking for a simple way to make NaN values output as something
>>like '-' or even just a space instead of the string 'nan'. [...]
>>
>>
[Posts via slrn and my GMail account aren't showing up, so I guess I'll
try
subscribing from a different e-mail address.]
On 2024-02-17, Cameron Simpson via Python-list
wrote:
On 16Feb2024 22:12, Chris Green wrote:
I'm looking for a simple way to make NaN values output as
[I've been trying all afternoon to post via slrn, but nothing is
showing up on the list. Forgive me if multiple posts eventually show
up.]
On 2024-02-17, Cameron Simpson via Python-list wrote:
> On 16Feb2024 22:12, Chris Green wrote:
>>I'm looking for a simple way to make N
7; work. Is float.__format__ what's used by
f-strings, the % operator, etc.?
--
Grant
--
https://mail.python.org/mailman/listinfo/python-list
Today I noticed that nothing I've posted to python-list in past 3
weeks has shown up on the list. I don't know how to troubleshoot this
other than sending test messages. Obviously, if this shows up on the
list, then I've gotten it to work...
--
Grant
--
https://mail.python.org/m
Today I noticed that nothing I've posted to python-list in past 3
weeks has shown up on the list. I don't know how to troubleshoot this
other than sending test messages. Obviously, if this shows up on the
list, then I've gotten it to work...
--
Grant
--
https://mail.python.org/m
Today I noticed that nothing I've posted to python-list in past 3
weeks has shown up on the list. I don't know how to troubleshoot this
other than sending test messages. Obviously, if this shows up on the
list, then I'm making progress.
[message 4]
--
Grant
--
https://mail.pyt
Today I noticed that nothing I've posted to python-list in the past 3
weeks has shown up on the list. I don't know how to troubleshoot this
other than by sending test messages. Obviously, if this shows up on the
list, then I'm making progress...
[message 3]
--
Grant
--
https://
"Science Researcher" wrote in message
news:[email protected]...
PROPOSED PYTHON COMPUTER LANGUAGE PROGRAM - Posted on February 17, 2024
PYTHON STAMPEDE TIME ? – Posted on February 18, 2024
Before discussing this specific topic in detail I a
PROPOSED PYTHON COMPUTER LANGUAGE PROGRAM - Posted on February 17, 2024
TOPICS
Some Background Information
Test Post Newsgroups
Adding Posting Dates To Newsgroup Notes
E-mail Address
Other Internet Security Steps
Personal Opinion Statements
SOME BACKGROUND INFORMATION
A fair amount of
neater way with any sort of formatting string or
other sort of cleverness?
Uhm, I cannot see how to avoid conditional code.
Somewhere, function, class, method, there should be
an "if isnan(x)".
You can hide that, but you cannot avoid, I suspect.
bye,
--
piergiorgio
--
https://mail.python.org/mailman/listinfo/python-list
ppears to do a fairly good job with that. But, you are
correct. People should be careful regarding what they download.
--
https://mail.python.org/mailman/listinfo/python-list
The latest[?] version of Matplotlib cannot show a figure. I get the
annoying error message: "Matplotlib is currently using agg, which is a
non-GUI backend, so cannot show the figure"
I'm using Spyder python 3.11 on Windows 11.
What to do?
--
Leif Svalgaard
l...@lei
On Mon, 19 Feb 2024 at 06:47, Grant Edwards via Python-list
wrote:
> I would be tempted to try monkey-patching the float class to override
> the __format__ method. I have no idea what side effects that might
> have, or if it's even used by the various formatting mechanisms, so
>
We see you Peter
AK
On Sun, Feb 18, 2024 at 2:41 PM Peter J. Holzer via Python-list <
[email protected]> wrote:
> [Replying to the list *and* Grant]
>
> On 2024-02-17 19:38:04 -0500, Grant Edwards via Python-list wrote:
> > Today I noticed that nothing I've poste
On 2024-02-18, Peter J. Holzer via Python-list wrote:
> [Replying to the list *and* Grant]
>
> On 2024-02-17 19:38:04 -0500, Grant Edwards via Python-list wrote:
>> Today I noticed that nothing I've posted to python-list in past 3
>> weeks has shown up on the list.
>
I can't explain the delays, but will note that the gate-news program on the
server runs every 5 minutes via cron. There are multiple moving parts in
the overall system. You'll probably get a more useful answer from
[email protected].
Skip
--
https://mail.python.org/mailman/listi
On 2/18/2024 6:09 PM, Grant Edwards via Python-list wrote:
On 2024-02-18, Peter J. Holzer via Python-list wrote:
[Replying to the list *and* Grant]
On 2024-02-17 19:38:04 -0500, Grant Edwards via Python-list wrote:
Today I noticed that nothing I've posted to python-list in past 3
week
On Sunday, February 18, 2024 at 10:48:29 PM UTC+3, Leif Svalgaard wrote:
> The latest[?] version of Matplotlib cannot show a figure. I get the
> annoying error message: "Matplotlib is currently using agg, which is a
> non-GUI backend, so cannot show the figure"
> I'm
Hellow Grant,
On Sat, 2024-02-17 at 18:54 -0600, Grant Edwards via Python-list wrote:
>
> Today I noticed that nothing I've posted to python-list in past 3
> weeks has shown up on the list. I don't know how to troubleshoot this
> other than sending test messages. Obviousl
dn wrote:
> On 18/02/24 09:53, Grant Edwards via Python-list wrote:
> > On 2024-02-17, Cameron Simpson via Python-list
> > wrote:
> >> On 16Feb2024 22:12, Chris Green wrote:
> >>> I'm looking for a simple way to make NaN values output as something
>
Grant Edwards wrote:
> On 2024-02-16, Chris Green via Python-list wrote:
>
> > I'm looking for a simple way to make NaN values output as something
> > like '-' or even just a space instead of the string 'nan'.
>
> It would probably help if yo
ss that in future I'll wait a couple days before I assume
something is broken.
--
Grant
--
https://mail.python.org/mailman/listinfo/python-list
On 2/19/2024 9:17 AM, Grant Edwards via Python-list wrote:
On 2024-02-19, Thomas Passin wrote:
About 24 hours later, all of my posts (and the confirmation e-mails)
all showed up in a burst at the same time on two different unrelated
e-mail accounts.
I still have no clue what was going on
s kinda like greylisting to me. I'm pretty sure that's one of the tool
in the mail.python.org chain.
Skip
>
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-02-19, Chris Green via Python-list wrote:
> It's using f'{...}' at the moment.
Here's a demonstration of how to hook custom code into the f-string
formatting engine. It's brilliantly depraved.
https://stackoverflow.com/questions/55876683/hook-into-the-bu
as_list in alias_mapping.items()
AttributeError: 'Figure' object has no attribute 'items'
--
Leif Svalgaard
[email protected]
--
https://mail.python.org/mailman/listinfo/python-list
l succeed, before there
would be time for my email provider (Dreamhost) to do anything about it.
--
https://mail.python.org/mailman/listinfo/python-list
Python, Tkinter: How do I
determine if a window has been
resized? I want to locate
buttons vertically along the
right border and need to know
the new width. The buttons are
to move with the change of
location of the right-side
border.
SGA
--
https://mail.python.org/mailman/listinfo
How do I extract the values
from args?
SGA
-Original Message-
From: Python-list
On
Behalf Of MRAB via Python-list
Sent: Friday, February 23,
2024 9:27 PM
To: [email protected]
Subject: Re: Problem resizing
a window and button placement
On 2024-02-24 01:14, Steve GS
via Python-list
Cc: MRAB
;
[email protected]
Subject: Re: Problem resizing
a window and button placement
> On 24 Feb 2024, at 04:36,
Steve GS via Python-list
wrote:
>
> How do I extract the values
> from args?
You can look up the args in
documentation.
You can run the example code
MRAB prov
On 2/24/2024 3:20 AM, Steve GS via Python-list wrote:
Yes, I ran that elegantly
simple code. The print
statement reports the X, Y,
Height and Width values.
However, I do not see how to
capture the width value.
I experimented with the code
Vwidth = rootV.winfo_width()
and it also reports the
On 2024-02-24, MRAB via Python-list wrote:
> On 2024-02-24 01:14, Steve GS via Python-list wrote:
>
>> Python, Tkinter: How do I determine if a window has been resized? I
>> want to locate buttons vertically along the right border and need
>> to know the new width. The
"Well, yes, in Python a
variable created inside a
function or method is local to
that function unless you
declare it global."
Yes, I knew that. I tried to
global it both before the
function call and within it.
Same for when I created the
variable. If I try to use it
in the rest of th
gure)
print("WwOutside = <" +
str(Ww) + ">")
#NameError: name 'Ww' is not
defined
root.mainloop()
SGA
-----Original Message-
From: Python-list
On
Behalf Of MRAB via Python-list
Sent: Saturday, February 24,
2024 7:49 PM
To: [email protected]
Subject: Re: Problem r
On 2/24/2024 9:51 PM, Steve GS via Python-list wrote:
First of all, please make sure that the formatting is readable and
especially the indentation. This is Python, after all.
Do not use tabs; use 3 or 4 spaces instead of each tab.
import tkinter as tk
#global Ww Neither global
helps
def
The print statement in the
function prints.
Does that not mean that the
function is being called?
SGA
-Original Message-
From: Python-list
On
Behalf Of Thomas Passin via
Python-list
Sent: Saturday, February 24,
2024 10:39 PM
To: [email protected]
Subject: Re: Problem resizing
a
So, how do I use the width value in my code?
SGA
-Original Message-
From: Python-list On Behalf
Of MRAB via Python-list
Sent: Saturday, February 24, 2024 10:36 PM
To: [email protected]
Subject: Re: Problem resizing a window and button placement
On 2024-02-25 02:51, Steve GS wrote
On 25/02/2024 03:58, Steve GS via Python-list wrote:
import tkinter as tk
Ww = None
def on_configure(*args):
global Ww
Ww = root.winfo_width()
print("Ww Inside = <" + str(Ww) + ">")
root = tk.Tk()
root.bind('', on_configure)
root.mainloo
5101 - 5200 of 6733 matches
Mail list logo