Re: TkInter Scrolled Listbox class?

2024-11-04 Thread Alan Gauld via Python-list
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

Re: TkInter Scrolled Listbox class?

2024-11-04 Thread Cameron Simpson via Python-list
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

Re: Printing UTF-8 mail to terminal

2024-11-04 Thread Loris Bennett via Python-list
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

TkInter Scrolled Listbox class?

2024-11-04 Thread Ulrich Goebel via 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

Re: Printing UTF-8 mail to terminal

2024-11-04 Thread Loris Bennett via 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

Re: Printing UTF-8 mail to terminal

2024-11-04 Thread Loris Bennett via 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

Re: Printing UTF-8 mail to terminal

2024-11-04 Thread Loris Bennett via Python-list
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

[ANN] (preview) “pymsgque” is the connection between Tcl and the “Programming Language Micro-Kernel” (PLMK).

2024-11-03 Thread aotto1968 via 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

Re: Printing UTF-8 mail to terminal

2024-11-02 Thread Inada Naoki via 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

Re: Printing UTF-8 mail to terminal

2024-11-02 Thread Eli the Bearded via Python-list
"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

Re: Printing UTF-8 mail to terminal

2024-11-02 Thread Jon Ribbens via 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

Re: Printing UTF-8 mail to terminal

2024-11-02 Thread Barry via Python-list
olour output and cursor movement all work. Barry -- https://mail.python.org/mailman/listinfo/python-list

Re: Correct module for site customization of path

2024-11-01 Thread Tim Johnson via Python-list
ze.py # Thanks seems to work for me cheers -- Tim thjmm...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Left Right via 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

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Barry via 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

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Cameron Simpson via Python-list
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

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Cameron Simpson via Python-list
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

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Cameron Simpson via 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

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Dieter Maurer via Python-list
ded with `quoted-printable`. Maybe, you do not need to pass `cte`? -- https://mail.python.org/mailman/listinfo/python-list

Re: Correct module for site customization of path

2024-11-01 Thread Dieter Maurer via 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

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Loris Bennett via 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

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Loris Bennett via 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

Re: Printing UTF-8 mail to terminal

2024-11-01 Thread Loris Bennett via Python-list
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

Correct module for site customization of path

2024-10-31 Thread Tim Johnson via 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

Re: Printing UTF-8 mail to terminal

2024-10-31 Thread Alan Gauld via 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 &

Re: Printing UTF-8 mail to terminal

2024-10-31 Thread Cameron Simpson via Python-list
n.org/3/library/quopri.html Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Printing UTF-8 mail to terminal

2024-10-31 Thread Left Right via 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

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-31 Thread MRAB via Python-list
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

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-31 Thread Karsten Hilbert via Python-list
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

Printing UTF-8 mail to terminal

2024-10-31 Thread Loris Bennett via Python-list
-- This signature is currently under constuction. -- https://mail.python.org/mailman/listinfo/python-list

ANN: PyDDF Python Herbst Sprint 2024

2024-10-31 Thread eGenix Team via 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

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-31 Thread Jon Ribbens via 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

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-31 Thread Loris Bennett via 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

Poetry: endpoints with endpoints

2024-10-31 Thread Loris Bennett via Python-list
dd such endpoint? If so, how? Cheers, Loris -- This signature is currently under constuction. -- https://mail.python.org/mailman/listinfo/python-list

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-30 Thread Jon Ribbens via 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

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-30 Thread Loris Bennett via 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

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-30 Thread Jon Ribbens via 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

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-30 Thread Loris Bennett via 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

Re: learning Python

2024-10-29 Thread rbowman via 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

Re: learning Python

2024-10-29 Thread Mats Wichmann via 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

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-29 Thread Jon Ribbens via Python-list
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

Re: Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-29 Thread MRAB via 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()

Using 'with open(...) as ...' together with configparser.ConfigParser.read

2024-10-29 Thread Loris Bennett via Python-list
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

Call for Participation: Python devroom @ FOSDEM 2025

2024-10-28 Thread Marc-Andre Lemburg via 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

Re: How to check whether audio bytes contain empty noise or actual voice/signal?

2024-10-28 Thread Lars Liedtke via 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

Re: learning Python

2024-10-27 Thread dn via Python-list
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

learning Python

2024-10-27 Thread o1bigtenor via Python-list
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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-27 Thread Barry via 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 >

Re: How to check whether audio bytes contain empty noise or actual voice/signal?

2024-10-26 Thread Thomas 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 significant voice/noise. I am

Re: How to check whether audio bytes contain empty noise or actual voice/signal?

2024-10-26 Thread MRAB via Python-list
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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-26 Thread Christian Buhtz via Python-list
/listinfo/python-list

How to check whether audio bytes contain empty noise or actual voice/signal?

2024-10-25 Thread marc nicole via 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

Re: Chardet oddity

2024-10-25 Thread Albert-Jan Roskam via 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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-25 Thread Christian Buhtz via Python-list
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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-25 Thread MRAB via Python-list
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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-25 Thread Christian Buhtz via Python-list
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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-25 Thread Christian Buhtz via Python-list
thub.com/bit-team/backintime/issues/1911#issuecomment-2436851901> -- https://mail.python.org/mailman/listinfo/python-list

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread MRAB via 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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread Left Right via 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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread Left Right via 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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread Barry via 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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread Dan Sommers via Python-list
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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread Left Right via Python-list
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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread MRAB via Python-list
t calls, so they're in the same thread. -- https://mail.python.org/mailman/listinfo/python-list

Re: Chardet oddity

2024-10-24 Thread Roland Mueller via 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

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread MRAB via Python-list
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,

Re: shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread Left Right via Python-list
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 

Re: Chardet oddity

2024-10-24 Thread Mark Bourne via Python-list
ge': ''} # Terminal $ python -m chardet FILENAME FILENAME: MacRoman with confidence 0.7167379080370483 Thanks! Albert-Jan -- Mark. -- https://mail.python.org/mailman/listinfo/python-list

shutil.rmtree() fails when used in Fedora (rpm) "mock" environment

2024-10-24 Thread Christian Buhtz via 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

Chardet oddity

2024-10-23 Thread Albert-Jan Roskam via Python-list
$ python -m chardet FILENAME FILENAME: MacRoman with confidence 0.7167379080370483 Thanks! Albert-Jan -- https://mail.python.org/mailman/listinfo/python-list

Capturing screenshots and recording audio in an ongoing basis, and submitting data to a RESTFul API

2024-10-22 Thread Jacob Kruger via Python-list
nce is futile!...Acceptance is versatile..." -- https://mail.python.org/mailman/listinfo/python-list

Re: Correct syntax for pathological re.search()

2024-10-21 Thread Peter J. Holzer via 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

Re: Correct syntax for pathological re.search()

2024-10-19 Thread jak via Python-list
ot;\\sout\{" : 1 match ( 7 steps, 360 μs ) -- https://mail.python.org/mailman/listinfo/python-list

Re: Correct syntax for pathological re.search()

2024-10-18 Thread Peter J. Holzer via 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

Re: Old matplotlib animation now fails

2024-10-18 Thread rbowman via Python-list
but using it in a conversation would be campy. -- https://mail.python.org/mailman/listinfo/python-list

Re: Old matplotlib animation now fails

2024-10-16 Thread Chris Townley via 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

Re: Old matplotlib animation now fails

2024-10-16 Thread Martin Schöön via Python-list
early did not like this video.) /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Old matplotlib animation now fails

2024-10-16 Thread rbowman via 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

Re: Common objects for CLI commands with Typer

2024-10-16 Thread Roland Müller via 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

Re: Old matplotlib animation now fails

2024-10-16 Thread Martin Schöön via Python-list
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

[RELEASE] Python 3.14.0 alpha 1 is now available

2024-10-16 Thread Hugo van Kemenade via Python-list
kasz Langa -- https://mail.python.org/mailman/listinfo/python-list

Re: Old matplotlib animation now fails

2024-10-16 Thread Martin Schöön via 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

Re: Old matplotlib animation now fails

2024-10-15 Thread MRAB via Python-list
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

Old matplotlib animation now fails

2024-10-15 Thread Martin Schöön via Python-list
how to correct my code. Hence, this call for help. Any ideas? TIA /Martin -- https://mail.python.org/mailman/listinfo/python-list

Re: Correct syntax for pathological re.search()

2024-10-12 Thread Thomas Passin via 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

RE: Correct syntax for pathological re.search()

2024-10-12 Thread AVI GROSS via Python-list
. -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

Re: Correct syntax for pathological re.search()

2024-10-12 Thread Thomas Passin via Python-list
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

Re: Correct syntax for pathological re.search()

2024-10-12 Thread Peter J. Holzer via Python-list
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

Re: Correct syntax for pathological re.search()

2024-10-11 Thread MRAB via Python-list
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

RE: Correct syntax for pathological re.search()

2024-10-11 Thread AVI GROSS via Python-list
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'

Re: [Tutor] How to stop a specific thread in Python 2.7?

2024-10-11 Thread Dan Ciprus (dciprus) via Python-list
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

Re: dis.get_instructions not showing CACHE instructions

2024-10-10 Thread stopa via 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

Re: dis.get_instructions not showing CACHE instructions

2024-10-10 Thread Barry via Python-list
> 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

Announcement: distlib 0.3.9 released on PyPI

2024-10-10 Thread Vinay Sajip via Python-list
]. 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

dis.get_instructions not showing CACHE instructions

2024-10-10 Thread stopa via Python-list
/listinfo/python-list

Re: Correct syntax for pathological re.search()

2024-10-09 Thread Karsten Hilbert via 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

Signing off

2024-10-08 Thread AVI GROSS via Python-list
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

Re: Correct syntax for pathological re.search()

2024-10-08 Thread MRAB via 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.

Re: Correct syntax for pathological re.search()

2024-10-08 Thread Alan Bawden via Python-list
ot;credits" or "license" for more information. >>> tex = '\sout{' :1: DeprecationWarning: invalid escape sequence '\s' >>> -- https://mail.python.org/mailman/listinfo/python-list

Re: Correct syntax for pathological re.search()

2024-10-08 Thread Karsten Hilbert via 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   2   3   4   5   6   7   8   9   10   >