On 04/11/2024 15:32, Ulrich Goebel via Python-list wrote:
> I would like to build a class ScrolledListbox,
I assume like the one that used to be available via the Tix module?
It's a great shame that Tix is gone, it had a lot of these useful
widgets, but they were all wrappers around
def config(self, *a, **kw):
return self.Listbox.config(*a, **kw)
and so forth for the various listbox methods you want to proxy to the
listbox itself. You could pass scroll specific methods to the scrollbar
as well.
Cheers,
Cameron Simpson
--
https://mail.python.org/mailman/listinfo/p
nd reconstruct the
>> headers, but that seems a little clunky.
>
> Sorry, I am confusing the terminology here. The 'body' seems to be the
> headers plus the 'content'. So I can print the *content* without the
> headers OK, but I can't easily print all the headers separately. If
> just print the body, i.e. headers plus content, the umlauts in the
> content are not resolved.
OK, so I can do:
##
if args.verbose:
for k in mail.keys():
print(f"{k}: {mail.get(k)}")
print('')
print(mail.get_content())
##
prints what I want and is not wildly clunky, but I am a little surprised
that I can't get a string representation of the whole email in one go.
Cheers,
Loris
--
Dr. Loris Bennett (Herr/Mr)
FUB-IT, Freie Universität Berlin
--
https://mail.python.org/mailman/listinfo/python-list
problem which I can't handle is to handle the Frame which
seems to be needed to place the Scrollbar somewhere.
Best regards
Ulrich
--
Ulrich Goebel
--
https://mail.python.org/mailman/listinfo/python-list
on't
> know how to print the headers separately - there seems to be nothing
> like 'get_headers()'. I can use 'get('Subject) etc. and reconstruct the
> headers, but that seems a little clunky.
Sorry, I am confusing the terminology here. The 'body' seems to be the
headers plus the 'content'. So I can print the *content* without the
headers OK, but I can't easily print all the headers separately. If
just print the body, i.e. headers plus content, the umlauts in the
content are not resolved.
--
This signature is currently under constuction.
--
https://mail.python.org/mailman/listinfo/python-list
Inada Naoki writes:
> 2024年11月2日(土) 0:36 Loris Bennett via Python-list :
>
>> Left Right writes:
>>
>> > There's quite a lot of misuse of terminology around terminal / console
>> > / shell. Please, correct me if I'm wrong, but it looks like you ar
s the subject is fine, but it is unclear to me how to
print the body. Or rather, I know how to print the body OK, but I don't
know how to print the headers separately - there seems to be nothing
like 'get_headers()'. I can use 'get('Subject) etc. and reconstruct the
headers, but that seems a little clunky.
Cheers,
Loris
--
This signature is currently under constuction.
--
https://mail.python.org/mailman/listinfo/python-list
63967
occasional updates to the project are available as screenshots on social media.
: Facebook -> https://www.facebook.com/profile.php?id=100069563501101
--
https://mail.python.org/mailman/listinfo/python-list
Try PYTHONUTF8=1 envver.
2024年11月2日(土) 0:36 Loris Bennett via Python-list :
> Left Right writes:
>
> > There's quite a lot of misuse of terminology around terminal / console
> > / shell. Please, correct me if I'm wrong, but it looks like you are
> > print
"quopri" is not a name I'd expect or look for first pass for dealing
with MIME quoted-printable encoding. (Me, being me, I'd probably just
write it for myself if I didn't quickly find it while working with
email.)
Elijah
--
MIME: multipurpose Internet mail extensions
--
https://mail.python.org/mailman/listinfo/python-list
y just
> write it for myself if I didn't quickly find it while working with
> email.)
Python went through a period of time where lots of things just got stuck
in the standard library without any particula taxonomy. Hence ending up
with base64, binascii, binhex, quopri, and uu all being separate
top-level modules, only some of which got tidied up in Python 3.
--
https://mail.python.org/mailman/listinfo/python-list
olour output and cursor movement all work.
Barry
--
https://mail.python.org/mailman/listinfo/python-list
ze.py
# Thanks seems to work for me
cheers
--
Tim
thjmm...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
nyways, OP said they were using an actual terminal (emulator) on
Ubuntu, and it looks like their problem is more with extracting
information from the email message rather than with the terminal
capabilities. Also, looks like there was an answer already wrt.
message.get_body()
--
https://mail.python.org/mailman/listinfo/python-list
> On 31 Oct 2024, at 16:42, Left Right via Python-list
> wrote:
>
> MS Windows doesn't have or use
> terminals (that's more of a Unix-related concept).
Windows does now. They implemented this feature over the last few years.
Indeed they took inspiration from how li
On 31Oct2024 21:53, alan.ga...@yahoo.co.uk wrote:
On 31/10/2024 20:50, Cameron Simpson via Python-list wrote:
If you're just dealing with this directly, use the `quopri` stdlib
module: https://docs.python.org/3/library/quopri.html
One of the things I love about this list are these l
dy Unicode text (i.e. a regular
Python string with the original text, unencoded). And to print that.
--
https://mail.python.org/mailman/listinfo/python-list
Can you should the code (or example code) which leads to the qp output?
I suspect there's a straight forward way to get the decoded Unicode, but
I'd need to see how what you've got was obtained.
--
https://mail.python.org/mailman/listinfo/python-list
ded with `quoted-printable`.
Maybe, you do not need to pass `cte`?
--
https://mail.python.org/mailman/listinfo/python-list
es where to look for modules.
You can place `.pth` files where Python looks for modules
to be imported
--
https://mail.python.org/mailman/listinfo/python-list
the subject and body are encoded
in the same way.
The problem just occurs with the unsent string representation printed to
the terminal.
Cheers,
Loris
--
This signature is currently under constuction.
--
https://mail.python.org/mailman/listinfo/python-list
splayed.
I'm not using MS Windows. I am using a Gnome terminal on Debian 12
locally and connecting via SSH to a AlmaLinux 8 server, where I start a
tmux session.
> On Thu, Oct 31, 2024 at 5:19 PM Loris Bennett via Python-list
> wrote:
>>
>> Hi,
>>
>> I have a command-l
dy)
and look at the log file in my terminal I see
2024-11-01 09:59:12,318 - DEBUG - mailer:create_body - body: Sehr geehrter
Herr Dr. Bennett,
Dies ist eine Übung.
...
as expected. The non-UTF-8 text occurs when I do
mail = EmailMessage()
mail.set_content(body, cte="quoted-printable")
...
if args.verbose:
print(mail)
which is presumably also correct.
The question is: What conversion is necessary in order to print the
EmailMessage object to the terminal, such that the quoted-printable
parts are turned (back) into UTF-8?
Cheers,
Loris
--
This signature is currently under constuction.
--
https://mail.python.org/mailman/listinfo/python-list
boatload of documentation of site path configuration, but
still, I am not sure what option to take.
Recommendations are invited and welcome.
Thanks
--
Tim
thjmm...@gmail.com
--
https://mail.python.org/mailman/listinfo/python-list
On 31/10/2024 20:50, Cameron Simpson via Python-list wrote:
> That looks to me like quoted-printable. This is an encoding for binary
> transport of text to make it robust against not 8-buit clean
...
> If you're just dealing with this directly, use the `quopri` stdlib
&
n.org/3/library/quopri.html
Cheers,
Cameron Simpson
--
https://mail.python.org/mailman/listinfo/python-list
ncoding to UTF-8 permanently:
https://superuser.com/questions/269818/change-default-code-page-of-windows-console-to-utf-8
, which, I believe, will solve your problem with how the text is
displayed.
On Thu, Oct 31, 2024 at 5:19 PM Loris Bennett via Python-list
wrote:
>
> Hi,
>
> I have a command
On 2024-10-31 06:47, Loris Bennett via Python-list wrote:
Jon Ribbens writes:
On 2024-10-30, Loris Bennett wrote:
Jon Ribbens writes:
On 2024-10-30, Loris Bennett wrote:
Jon Ribbens writes:
As per the docs you link to, the read() method only takes filename(s)
as arguments, if you have
Am Thu, Oct 31, 2024 at 07:47:17AM +0100 schrieb Loris Bennett via Python-list:
> However I didn't make myself clear: I understand that there are
> different functions, depending on whether I have a file name or a
> stream. Nevertheless, I just can't think of a practical exam
--
This signature is currently under constuction.
--
https://mail.python.org/mailman/listinfo/python-list
. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
https://www.egenix.com/company/contact/
https://www.malemburg.com/
--
https://mail.python.org/mailman/listinfo/python-list
t, or an HTTP request, or from a database.
It is good practice in general to provide a method that allows your
class to read data as a stream, if that is appropriate for what
you're doing, so that people aren't unnecessarily forced to load
data fully into memory or write it to a file, as well as perhaps a
convenience method thaat will read from a named file for people who
are doing that.
--
https://mail.python.org/mailman/listinfo/python-list
functions, depending on whether I have a file name or a
stream. Nevertheless, I just can't think of a practical example where I
might just have *only* a stream, especially one containing my
configuration data. I was just interested to know if anyone can give an
example.
--
This signature is currently under constuction.
--
https://mail.python.org/mailman/listinfo/python-list
dd such endpoint? If so, how?
Cheers,
Loris
--
This signature is currently under constuction.
--
https://mail.python.org/mailman/listinfo/python-list
e(name)?
The ConfigParser module provides read(), read_file(), read_string(),
and read_dict() methods. I think they were just trying to be
comprehensive. It's a bit non-Pythonic really.
--
https://mail.python.org/mailman/listinfo/python-list
a common situation might I be obliged to use
'read_file'? I.e. is there some common case where the file name is not
available, only a corresponding file-like object or stream?
--
This signature is currently under constuction.
--
https://mail.python.org/mailman/listinfo/python-list
or stream?
Well, sure - any time it's not being read from a file. A bit ironic
that the method to use in that situation is "read_file", of course.
In my view the read() and read_file() methods have their names the
wrong way round. But bear in mind this code is 27 years old, and
the read() function came first.
--
https://mail.python.org/mailman/listinfo/python-list
n already-open file you want to read then
> you should use the read_file() method instead.
As you and others have pointed out, this is indeed covered in the docs,
so mea culpa.
However, whereas I can see why you might want to read the config from a
dict or a string, what would be a use case in which I would want to
read from an open file rather than just reading from a file(name)?
Cheers,
Loris
--
This signature is currently under constuction.
--
https://mail.python.org/mailman/listinfo/python-list
meshes with your own learning style.
It isn't a beginners tutorial but at some point 'Python Distilled' is
helpful.
https://www.dabeaz.com/python-distilled/
Usual disclaimer: i don't know Beazley and am not getting any kickback.
--
https://mail.python.org/mailman/listinfo/python-list
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
object variable here? If so
> how?
>
> Here
>
> https://docs.python.org/3.9/library/configparser.html
>
> there are examples which use the 'with open ... as' variable for writing
> a configuration file, but not for reading one.
As per the docs you link to, the read() method only takes filename(s)
as arguments, if you have an already-open file you want to read then
you should use the read_file() method instead.
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-10-29 13:56, Loris Bennett via Python-list wrote:
Hi,
With Python 3.9.18, if I do
try:
with open(args.config_file, 'r') as config_file:
config = configparser.ConfigParser()
config.read(config_file)
print(config.sections()
config_file' is just
Should I be able to use the '_io.TextIOWrapper' object variable here? If so
how?
Here
https://docs.python.org/3.9/library/configparser.html
there are examples which use the 'with open ... as' variable for writing
a configuration file, but not for reading one.
Cheers,
Loris
--
This signature is currently under constuction.
--
https://mail.python.org/mailman/listinfo/python-list
nfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
https://www.egenix.com/company/contact/
https://www.malemburg.com/
--
https://mail.python.org/mailman/listinfo/python-list
homas Passin via Python-list:
On 10/25/2024 12:25 PM, marc nicole via Python-list wrote:
Hello Python fellows,
I hope this question is not very far from the main topic of this list, but
I have a hard time finding a way to check whether audio data samples are
containing empty noise or actual signi
On 28/10/24 11: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
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
--
https://mail.python.org/mailman/listinfo/python-list
> On 26 Oct 2024, at 12:11, Christian Buhtz via Python-list
> wrote:
>
> As you can see in the linked issue it seems it was an incompatibility
> between the version of Python and PyFakeFS.
>
> In the end it was a Fedora packaging bug because that pyfakefs version
>
On 10/25/2024 12:25 PM, marc nicole via Python-list wrote:
Hello Python fellows,
I hope this question is not very far from the main topic of this list, but
I have a hard time finding a way to check whether audio data samples are
containing empty noise or actual significant voice/noise.
I am
On 2024-10-25 17:25, marc nicole via Python-list wrote:
Hello Python fellows,
I hope this question is not very far from the main topic of this list, but
I have a hard time finding a way to check whether audio data samples are
containing empty noise or actual significant voice/noise.
I am using
/listinfo/python-list
; to check whether data is filled with
empty noise or that somebody has made noise/spoke?
Thanks.
--
https://mail.python.org/mailman/listinfo/python-list
On Oct 24, 2024 17:51, Roland Mueller via Python-list
wrote:
ke 23. lokak. 2024 klo 20.11 Albert-Jan Roskam via Python-list (
python-list@python.org) kirjoitti:
> Today I used chardet.detect in the repl and it returned
windows-1252
> (incorrect, beca
Am 25.10.2024 09:06 schrieb Christian Buhtz via Python-list:
On a "regular" system all tests are running.
To clarify: "regular" does not exclude PyFakeFS. It means on my own
local development machine and on the TravsCI machines (Ubuntu 22 with
Python 3.9 up to 3.13) a
On 2024-10-24 08:33, Christian Buhtz via Python-list wrote:
Hello,
I am upstream maintainer of "Back In Time" [1] investigating an issue a
distro maintainer from Fedora reported [2] to me.
On one hand Fedora seems to use a tool called "mock" to build packages
in a chroot
the issue might exist because of a combination of 3 factors:
shutil.rmtree(), PyFakeFS in a chroot/mock build environment.
[1] --
<https://github.com/bit-team/backintime/blob/c1d042ab67b9e117ac53e944518a0f4292fa075b/common/test/test_uniquenessset.py#L45>
--
https://mail.python.org/mailman/listinfo/python-list
thub.com/bit-team/backintime/issues/1911#issuecomment-2436851901>
--
https://mail.python.org/mailman/listinfo/python-list
t is the probability of replacing os.lstat, os.close or os.rmdir from
another thread at just the right time?
--
https://mail.python.org/mailman/listinfo/python-list
nted that the reference to os.lstat *can* be modified in
this way.
But, before we keep guessing any further, it'd be best if OP could get
us the info on what's stored in "func" and "os.lstat" at the time the
assertion fails.
--
https://mail.python.org/mailman/listinfo/python-list
ead 1
assert func is os.lstat # thread 1 (failure!)
The only question is: is it possible to modify os.lstat like that, and
if so, how?
Other alternatives include a malfunctioning "is" operator,
malfunctioning module cache... all those are a lot less likely.
--
https://mail.python.org/mailman/listinfo/python-list
> On 24 Oct 2024, at 15:07, Christian Buhtz via Python-list
> wrote:
>
> On one hand Fedora seems to use a tool called "mock" to build packages in a
> chroot environment.
> On the other hand the test suite of "Back In Time" does read and write to t
On 2024-10-24 at 20:54:53 +0100,
MRAB via Python-list wrote:
> On 2024-10-24 20:21, Left Right wrote:
> > > > > The stack is created on line 760 with os.lstat and entries are
> > > > > appended
> > > > > on lines 677 (os.rmdir), 679 (os.close) a
ng the interpreter to
import the same module multiple times, but if that was possible (which
in principle it is), then it would explain the behavior.
--
https://mail.python.org/mailman/listinfo/python-list
t calls, so they're in the same
thread.
--
https://mail.python.org/mailman/listinfo/python-list
ke 23. lokak. 2024 klo 20.11 Albert-Jan Roskam via Python-list (
python-list@python.org) kirjoitti:
>Today I used chardet.detect in the repl and it returned windows-1252
>(incorrect, because it later resulted in a UnicodeDecodeError). When I
> ran
>chardet as a script
On 2024-10-24 16:17, Left Right via Python-list wrote:
From reading the code where the exception is coming from, this is how
I interpret the intention of the author: they build a list (not sure
why they used list, when there's a stack datastructure in Python)
which they use as a stack,
e, multithreaded
environments it could happen...
To investigate this, I'd edit the file with the assertion and make it
print the actual value found in os.lstat and func. My guess is that
they are both somehow "lstat", but with different memory addresses.
On Thu, Oct 24, 2024 at 4:06
ge':
''}
# Terminal
$ python -m chardet FILENAME
FILENAME: MacRoman with confidence 0.7167379080370483
Thanks!
Albert-Jan
--
Mark.
--
https://mail.python.org/mailman/listinfo/python-list
os.close(dirfd)
return
if func is os.rmdir:
os.rmdir(name, dir_fd=dirfd)
return
# Note: To guard against symlink races, we use the standard
# lstat()/open()/fstat() trick.
assert func is os.lstat
E AssertionError
/usr/lib64/python3.13/shutil.py:663: AssertionError
--
https://mail.python.org/mailman/listinfo/python-list
$ python -m chardet FILENAME
FILENAME: MacRoman with confidence 0.7167379080370483
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
nce is futile!...Acceptance is versatile..."
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-10-19 00:15:23 +0200, jak via Python-list wrote:
> Peter J. Holzer ha scritto:
> > As a trivial example, the regular expressions r"\\sout{" and r"\\sout\{"
> > are equivalent (the \ before the { is redundant). Yet
> > re.compile(s).pattern preserv
ot;\\sout\{" : 1 match ( 7 steps, 360 μs )
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-10-12 08:51:57 -0400, Thomas Passin via Python-list wrote:
> On 10/12/2024 6:59 AM, Peter J. Holzer via Python-list wrote:
> > On 2024-10-11 17:13:07 -0400, AVI GROSS via Python-list wrote:
> > > Is there some utility function out there that can be called to sh
but using it in a conversation would be campy.
--
https://mail.python.org/mailman/listinfo/python-list
.
Me rocking Python?
/Martin
You have to understand Stefan tries to use American slang, not always
entirely accurately. I think 'bee's knees' died out around 1931.
Not sure about America, but the bee's knees is still in common use in the UK
--
Chris
--
https://mail.python.org/mailman/listinfo/python-list
early did not like this video.)
/Martin
--
https://mail.python.org/mailman/listinfo/python-list
hanks, that was quick and adding square brackets fixed my code.
>
> Me rocking Python?
>
> /Martin
You have to understand Stefan tries to use American slang, not always
entirely accurately. I think 'bee's knees' died out around 1931.
--
https://mail.python.org/mailman/listinfo/python-list
On 9/23/24 22:51, Dan Sommers via Python-list wrote:
On 2024-09-23 at 19:00:10 +0100,
Barry Scott wrote:
On 21 Sep 2024, at 11:40, Dan Sommers via Python-list
wrote:
But once your code gets big the disciple of using classes helps
maintenance. Code with lots of globals is problematic
stion, here's my two cents off the cuff:
> Could it be that the newer Matplotlib versions are jonesing
> for something like "l.set_data( [ x0 ],[ y0 ])" in that spot?
>
Thanks, that was quick and adding square brackets fixed my code.
Me rocking Python?
/Martin
--
https://mail.python.org/mailman/listinfo/python-list
kasz Langa
--
https://mail.python.org/mailman/listinfo/python-list
Den 2024-10-15 skrev MRAB :
> On 2024-10-15 21:16, Martin Schöön via Python-list wrote:
>> Some years ago I created a Python program that reads GPS data and
>> It is the second to last line that throws an error:
>>
>> l.set_data(x0, y0)
>>
>> The error m
On 2024-10-15 21:16, Martin Schöön via Python-list wrote:
Some years ago I created a Python program that reads GPS data and
creates an animation stored in an mp4 file. Not very elegant but it
worked. Not very original as it was based on the example found here:
https://shorturl.at/dTCZZ
Last
how to correct my code. Hence, this
call for help.
Any ideas?
TIA
/Martin
--
https://mail.python.org/mailman/listinfo/python-list
On 10/11/2024 8:37 PM, MRAB via Python-list wrote:
On 2024-10-11 22:13, AVI GROSS via Python-list wrote:
Is there some utility function out there that can be called to show
what the
regular expression you typed in will look like by the time it is ready
to be
used?
Obviously, life is not that
.
-Original Message-
From: Python-list On
Behalf Of Peter J. Holzer via Python-list
Sent: Saturday, October 12, 2024 7:00 AM
To: python-list@python.org
Subject: Re: Correct syntax for pathological re.search()
On 2024-10-11 17:13:07 -0400, AVI GROSS via Python-list wrote:
> Is there some util
On 10/12/2024 6:59 AM, Peter J. Holzer via Python-list wrote:
On 2024-10-11 17:13:07 -0400, AVI GROSS via Python-list wrote:
Is there some utility function out there that can be called to show what the
regular expression you typed in will look like by the time it is ready to be
used?
I assume
On 2024-10-11 17:13:07 -0400, AVI GROSS via Python-list wrote:
> Is there some utility function out there that can be called to show what the
> regular expression you typed in will look like by the time it is ready to be
> used?
I assume that by "ready to be used" you mean the
On 2024-10-11 22:13, AVI GROSS via Python-list wrote:
Is there some utility function out there that can be called to show what the
regular expression you typed in will look like by the time it is ready to be
used?
Obviously, life is not that simple as it can go through multiple layers with
each
cases, ...
-Original Message-
From: Python-list On
Behalf Of Gilmeh Serda via Python-list
Sent: Friday, October 11, 2024 10:44 AM
To: python-list@python.org
Subject: Re: Correct syntax for pathological re.search()
On Mon, 7 Oct 2024 08:35:32 -0500, Michael F. Stemper wrote:
> I'
n T, E
Something along those lines.
Cheers,
Cameron Simpson
--
Dan Ciprus
[ curl -L http://git.io/unix ]
signature.asc
Description: PGP signature
--
https://mail.python.org/mailman/listinfo/python-list
Oh god I am sorry :/ I somehow missed information about cache_info field.
I was expecting to see those cache instructions as normal opcodes. So its
working as expected.
Thanks for your help.
M.
št 10. 10. 2024 o 18:53 Barry napísal(a):
>
>
> > On 10 Oct 2024, at 14:18, stopa via
> On 10 Oct 2024, at 14:18, stopa via Python-list
> wrote:
>
> Hello,
> I noticed the change in dis module, no longer requiring show_caches to be
> set to True to show cache instructions. However I am not able to display
> them with get_instructions.
> Is ther
].
Regards,
Vinay Sajip
[1] https://pypi.org/project/distlib/0.3.9/
[2]
https://distlib.readthedocs.io/en/latest/overview.html#change-log-for-distlib
[3] https://github.com/pypa/distlib/issues/new/choose
--
https://mail.python.org/mailman/listinfo/python-list
/listinfo/python-list
Am Tue, Oct 08, 2024 at 04:59:48PM -0400 schrieb Alan Bawden via Python-list:
> Karsten Hilbert writes:
>
>Python 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linux
>Type "help", "copyright", "credits" or "license
rests including many other programming languages and
it is time I stopped using python when I have so much else to choose from.
My best wishes to everyone here.
Avi
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-10-08 21:59, Alan Bawden via Python-list wrote:
Karsten Hilbert writes:
Python 3.11.2 (main, Aug 26 2024, 07:20:54) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more
information.
ot;credits" or "license" for more information.
>>> tex = '\sout{'
:1: DeprecationWarning: invalid escape sequence '\s'
>>>
--
https://mail.python.org/mailman/listinfo/python-list
Am Tue, Oct 08, 2024 at 08:07:04PM +0100 schrieb MRAB via Python-list:
> >unwanted_tex = '\sout{'
> >if unwanted_tex not in line: do_something_with_libreoffice()
> >
> That should be:
>
> unwanted_tex = r'\sout{'
Hm.
Python 3.11.2 (mai
1 - 100 of 2770 matches
Mail list logo