Python 3.13.4, 3.12.11, 3.11.13, 3.10.18 and 3.9.23 are now available

2025-06-03 Thread Thomas Wouters
Python Release Party It was only meant to be release day for 3.13.4 today, but poor number 13 looked so lonely… And hey, we had a couple of tarfile CVEs that we had to fix. So most of the Release Managers and all the Developers-in-Residence (including Security Developer-in-Residence Seth Michael

Python 3.14.0a7, 3.13.3, 3.12.10, 3.11.12, 3.10.17 and 3.9.22 are now available

2025-04-08 Thread Hugo van Kemenade via Python-list
Not one, not two, not three, not four, not five, but six releases! Is this the most in a single day? 3.12-3.14 were regularly scheduled, and we had some security fixes to release in 3.9-3.11 so let’s make a big day of it. This also marks the last bugfix release of 3.12 as it enters the security

Re: [RELEASE] Python 3.13.2 and 3.12.9 now available!

2025-02-06 Thread Rust Buckett via Python-list
Thomas Wouters writes: > A small release day today! That is to say the releases are relatively > small; the day itself was of average size, as most days are. nice. -- this is my clever sig. -- https://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 3.13.2 and 3.12.9 now available!

2025-02-04 Thread Thomas Wouters via Python-list
A small release day today! That is to say the releases are relatively small; the day itself was of average size, as most days are. <https://discuss.python.org/t/python-3-13-2-and-3-12-9-now-available/79509#p-225156-python-3132-1>Python 3.13.2 Python 3.13’s second maintenance release. Abo

Re: Division-Bug in decimal and mpmath

2024-12-15 Thread Oscar Benjamin via Python-list
elow is the comparison of the result of decimal, mpmath, dc and calc. ... > > I looks like you might be running into limitations in floating-point > numbers. At least with decimal, calculating 4/70 instead of 0.4/7 > appears to give the correct result. As does: > ``` > from decim

Re: Division-Bug in decimal and mpmath

2024-12-15 Thread Mark Bourne via Python-list
on of the result of decimal, mpmath, dc and calc. 0.0571428571428571460292086417861615440675190516880580357142857 decimal: 0.4/7 0.0571428571428571460292086417861615440675190516880580357142857 mpmath: 0.4/7 0.0571428571428571428571428571428571428571428571428571428571428 dc:

Re: Division-Bug in decimal and mpmath

2024-12-14 Thread Dan Sommers via Python-list
gt; Below is the comparison of the result of decimal, mpmath, dc and calc. > > > > 0.0571428571428571460292086417861615440675190516880580357142857 decimal: > > 0.4/7 > > 0.0571428571428571460292086417861615440675190516880580357142857 mpmath: > > 0.4/7 >

Division-Bug in decimal and mpmath

2024-12-14 Thread Martin Ruppert via Python-list
Hi, the division 0.4/7 provides a wrong result. It should give a periodic decimal fraction with at most six digits, but it doesn't. Below is the comparison of the result of decimal, mpmath, dc and calc. 0.0571428571428571460292086417861615440675190516880580357142857 decimal:

Re: Division-Bug in decimal and mpmath

2024-12-14 Thread Mark Bourne via Python-list
Martin Ruppert wrote: Hi, the division 0.4/7 provides a wrong result. It should give a periodic decimal fraction with at most six digits, but it doesn't. Below is the comparison of the result of decimal, mpmath, dc and calc. 0.05714285714285714602920864178616154406751905168805803571

Re: super().__init__() and bytes

2024-12-04 Thread Roel Schroeven via Python-list
jects (int, str, bytes, etc.) are implemented in C, and so are able to do things that Python methods cannot. Aha, yes, that's what I already suspected, but I wasn't sure. Thanks for confirming that. All clear now. Thanks to Anders and Greg for explaining this to me. "In the ol

Re: [RELEASE] Python 3.13.1, 3.12.8, 3.11.11, 3.10.16 and 3.9.21 are now available

2024-12-03 Thread Jason Friedman via Python-list
🙏 On Tue, Dec 3, 2024 at 5:06 PM Thomas Wouters via Python-list < python-list@python.org> wrote: > Another big release day! Python 3.13.1 and 3.12.8 were regularly scheduled > releases, but they do contain a few security fixes. That makes it a nice > time to release the se

[RELEASE] Python 3.13.1, 3.12.8, 3.11.11, 3.10.16 and 3.9.21 are now available

2024-12-03 Thread Thomas Wouters via Python-list
Another big release day! Python 3.13.1 and 3.12.8 were regularly scheduled releases, but they do contain a few security fixes. That makes it a nice time to release the security-fix-only versions too, so everything is as secure as we can make it. <https://discuss.python.org/t/python-3-13-1-3-12-

Re: super().__init__() and bytes

2024-12-03 Thread Greg Ewing via Python-list
On 4/12/24 3:24 am, Roel Schroeven wrote: It's not entirely clear to me though how bytes.__new__ *can* set an object's value. Isn't __new__ also a regular function? Yes, but the __new__ methods of the builtin immutable objects (int, str, bytes, etc.) are implemented in C, and so

Re: super().__init__() and bytes

2024-12-03 Thread Roel Schroeven via Python-list
Op 3/12/2024 om 13:55 schreef Anders Munch via Python-list: Roel Schroeven wrote: > As a follow-up, it looks like this behavior is because bytes and int are immutable. Yes. OK. > But that doesn't tell me why using super().__init__() doesn't work for immutable classes. byt

RE: super().__init__() and bytes

2024-12-03 Thread Anders Munch via Python-list
Roel Schroeven wrote: > As a follow-up, it looks like this behavior is because bytes and int are > immutable. Yes. > But that doesn't tell me why using super().__init__() > doesn't work for immutable classes. bytes.__init__ does work, but it's just an inherited o

Re: super().__init__() and bytes

2024-12-03 Thread Roel Schroeven via Python-list
py", line 3, in __init__     super().__init__(data) TypeError: object.__init__() takes exactly one argument (the instance to initialize) I'm passing two arguments (data and the implicit self), and apparently that's one too many. Let's try without arguments (i.e. only the im

super().__init__() and bytes

2024-12-03 Thread Roel Schroeven via Python-list
substitute(name="Pedro")) This works, and prints "Hello Pedro" as expected. Note that I passed template_string in the super().__init__() call, and that is what used to initialize the base class. So far nothing special. When I try the same with bytes as base class though, that

SOLVED: Tkinter button-motion event behaves differently under Windows and Linux

2024-11-11 Thread John O'Hagan via Python-list
I'm posting this in case anyone else encounters the same problem, and to ask for suggestions, if any, about a better way to do it. I'm implementing a method for dragging embedded widgets on a Text widget. When the left mouse button is held down over an embedded widget and the mouse

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

2024-11-03 Thread aotto1968 via Python-list
ANNOUNCEMENT "pymsgque" is the project to integrate the Programming-Language-Micro-Kernel (*PLMK*) into *Python*. Together with C, C++, Java, Ruby and Tcl, a growing language community is emerging that will combine *all* existing programming languages with *PLMK* technology in

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
combination of PIL's ImageGrab, and pyaudio, and can then use moviepy, which is a sort of wrapper around/interface to the FFMPEG command-line utility - this all allows me to record forms of screencast recordings, setting my own forms of time-frames, etc. in terms of the looping interval when I

doRe: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-03 Thread Greg Ewing via Python-list
On 3/10/24 11:48 am, Left Right wrote: So, streaming parsers (eg. SAX) are written for a regular language that approximates XML. SAX doesn't parse a whole XML document, it parses small pieces of it independently and passes them on. It's more like a lexical analyser than a pars

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-02 Thread Ethan Furman via Python-list
This thread is derailing. Please consider it closed. -- ~Ethan~ Moderator -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-02 Thread Left Right via Python-list
> You can't validate an IP packet without having all of it. Your notion > of "streaming" is nonsensical. Whoa, whoa, hold your horses! "nonsensical" needs a little bit of justification :) It seems you don't understand the difference between words and languag

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-02 Thread Left Right via Python-list
> One single IP packet is all you can parse. I worked for an undisclosed company which manufactures h/w for ISPs (4- and 8-unit boxes you mount on a rack in a datacenter). Essentially, big-big routers. So, I had the pleasure of writing software that parses IP _protocol_, and let me tell you:

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-02 Thread Chris Angelico via Python-list
> > It seems you don't understand the difference between words and > languages! In my examples, IP _protocol_ is the language, sequences of > IP packets are the words in the language. A language is amenable to > streaming if the words of the language are repetition of sequence

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-02 Thread Chris Angelico via Python-list
On Wed, 2 Oct 2024 at 23:53, Left Right via Python-list wrote: > In the same email you replied to, I gave examples of languages for > which parsers can be streaming (in general): SCSI or IP. You can't validate an IP packet without having all of it. Your notion of "streaming" is nonsensical. Chri

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-02 Thread Left Right via Python-list
parser that is only useful _sometimes_. And, in practice, languages like XML or JSON do well with streaming, even though in general it's impossible. I'm sorry if this comes as a surprise. On one hand I don't want to sound condescending, on the other hand, this is something that you&

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-01 Thread Greg Ewing via Python-list
On 2/10/24 12:26 pm, avi.e.gr...@gmail.com wrote: The real problem is how the JSON is set up. If you take umpteen data structures and wrap them all in something like a list, then it may be a tad hard to stream as you may not necessarily be examining the contents till the list finishes gigabytes

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-01 Thread Dan Sommers via Python-list
On 2024-10-01 at 23:03:01 +0200, Left Right wrote: > > If I recognize the first digit, then I *can* hand that over to an > > external function to accumulate the digits that follow. > > And what is that external function going to do with this information? > The point is you

RE: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-01 Thread AVI GROSS via Python-list
This discussion has become less useful. E can all agree that in Computer Science, real infinities are avoided, and frankly, need not be taken seriously in any serious program. You can store all kinds of infinities quite compactly as in a transcendental number you can derive to as many decimal

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-01 Thread Greg Ewing via Python-list
to destage arbitrary large file (or a chunk of file) to disk. But SCSI is built of finite "words" and to describe an arbitrary large file you'd need to list all the blocks that constitute the file! I don't follow. What fsync() does is ensure that any data buffered in the kernel relat

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-01 Thread Greg Ewing via Python-list
On 1/10/24 8:34 am, Left Right wrote: You probably forgot that it has to be _streaming_. Suppose you parse the first digit: can you hand this information over to an external function to process the parsed data? -- No! because you don't know the magnitude yet. By that definition of "streaming",

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-01 Thread Left Right via Python-list
> If I recognize the first digit, then I *can* hand that over to an > external function to accumulate the digits that follow. And what is that external function going to do with this information? The point is you didn't parse anything if you just sent the digit. You just delegated

[RELEASE] Python 3.13.0rc3 and 3.12.7 released.

2024-10-01 Thread Thomas Wouters via Python-list
), which was added in one of the alpha releases. The incremental GC had more significant performance regressions in specific workloads than we expected. Rather than try to fiddle with its details in the hope of fixing them (and not making anything else worse) we decided to revert back to the old GC in

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-01 Thread Dan Sommers via Python-list
On 2024-09-30 at 21:34:07 +0200, Regarding "Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API," Left Right via Python-list wrote: > > What am I missing? Handwavingly, start with the first digit, and as > > long as the next character

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-01 Thread Dan Sommers via Python-list
On 2024-09-30 at 18:48:02 -0700, Keith Thompson via Python-list wrote: > 2qdxy4rzwzuui...@potatochowder.com writes: > [...] > > In Common Lisp, you can write integers as #nnR[digits], where nn is the > > decimal representation of the base (possibly without a leading zero), &

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-01 Thread Left Right via Python-list
> What am I missing? Handwavingly, start with the first digit, and as > long as the next character is a digit, multipliy the accumulated result > by 10 (or the appropriate base) and add the next value. Oh, and handle > scientific notation as a special case, and perhaps fail s

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-10-01 Thread Keith Thompson via Python-list
2qdxy4rzwzuui...@potatochowder.com writes: [...] > In Common Lisp, you can write integers as #nnR[digits], where nn is the > decimal representation of the base (possibly without a leading zero), > the # and the R are literal characters, and the digits are written in > the intended b

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Dan Sommers via Python-list
clicked. > > The only part I'm not clear on is what identifies the base. If you're > going to write numbers little-endian, it's not that hard to also write > them with a base indicator before the digits [...] In Common Lisp, you can write integers as #nnR[digits], whe

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Chris Angelico via Python-list
's not that hard to also write them with a base indicator before the digits. But, whatever. This is a typical tangent and people are argumentative for no reason. I was just trying to add some explanatory notes to why little-endian does make more sense than big-endian. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Grant Edwards via Python-list
On 2024-09-30, Dan Sommers via Python-list wrote: > In Common Lisp, integers can be written in any integer base from two > to thirty six, inclusive. So knowing the last digit doesn't tell > you whether an integer is even or odd until you know the base > anyway. I had to think about that for an

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Dan Sommers via Python-list
ain statements about it (trivial > examples being whether it's odd or even). But that wasn't the question. Sure, under certain circumstances and for specific use cases and/or requirements, there might be arguments to read potential numbers as strings and possibly not have to parse th

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Thomas Passin via Python-list
On 9/30/2024 11:30 AM, Barry via Python-list wrote: On 30 Sep 2024, at 06:52, Abdur-Rahmaan Janhangeer via Python-list wrote: import polars as pl pl.read_json("file.json") This is not going to work unless the computer has a lot more the 60GiB of RAM. As later suggested a streaming par

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Left Right via Python-list
> Streaming won't work because the file is gzipped. You have to receive > the whole thing before you can unzip it. Once unzipped it will be even > larger, and all in memory. GZip is specifically designed to be streamed. So, that's not a problem (in principle), but you w

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Thomas Passin via Python-list
be even larger, and all in memory. Streaming gzip is perfectly possible. You may be thinking of PKZip which has its EOCD at the end of the file (although it may still be possible to stream-decompress if you work at it). ChrisA You're right, that's what I was thinking of. -- https:

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Chris Angelico via Python-list
bout a number given that it starts with a particular sequence (since you don't know how MANY digits there are). However, if you know the LAST digits, you can make certain statements about it (trivial examples being whether it's odd or even). It's not very, well, significant. B

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Grant Edwards via Python-list
t;. This >> > is still a valid JSON (it doesn't have any limits on how many digits a >> > number can have). And you cannot parse this number in a streaming way >> > because in order to do that, you need to start with the least >> > significant digit. &

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Dan Sommers via Python-list
On 2024-09-30 at 11:44:50 -0400, Grant Edwards via Python-list wrote: > On 2024-09-30, Left Right via Python-list wrote: > > Whether and to what degree you can stream JSON depends on JSON > > structure. In general, however, JSON cannot be streamed (but commonly > > it can b

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Chris Angelico via Python-list
ng won't work because the file is gzipped. You have to receive > the whole thing before you can unzip it. Once unzipped it will be even > larger, and all in memory. Streaming gzip is perfectly possible. You may be thinking of PKZip which has its EOCD at the end of the file (although it may still be possible to stream-decompress if you work at it). ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Thomas Passin via Python-list
streaming parser is required. Streaming won't work because the file is gzipped. You have to receive the whole thing before you can unzip it. Once unzipped it will be even larger, and all in memory. -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Grant Edwards via Python-list
On 2024-09-30, Left Right via Python-list wrote: > Whether and to what degree you can stream JSON depends on JSON > structure. In general, however, JSON cannot be streamed (but commonly > it can be). > > Imagine a pathological case of this shape: 1... <60GB of digits>. Th

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Barry via Python-list
> On 30 Sep 2024, at 06:52, Abdur-Rahmaan Janhangeer via Python-list > wrote: > > > import polars as pl > pl.read_json("file.json") > > This is not going to work unless the computer has a lot more the 60GiB of RAM. As later suggested a streaming parser is required. Barry -- https://m

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-30 Thread Left Right via Python-list
Whether and to what degree you can stream JSON depends on JSON structure. In general, however, JSON cannot be streamed (but commonly it can be). Imagine a pathological case of this shape: 1... <60GB of digits>. This is still a valid JSON (it doesn't have any limits on how many digits a

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-29 Thread Asif Ali Hirekumbi via Python-list
ximately 60 GB in size. Handling such a large dataset in one go is >> proving to be quite challenging, especially in terms of memory management. >> >> I am looking for guidance on how to efficiently stream this data and >> process it in chunks using Python. Specifically, I am wond

Re: Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-29 Thread Abdur-Rahmaan Janhangeer via Python-list
file in gzip format, > approximately 60 GB in size. Handling such a large dataset in one go is > proving to be quite challenging, especially in terms of memory management. > > I am looking for guidance on how to efficiently stream this data and > process it in chunks using Python. S

Help with Streaming and Chunk Processing for Large JSON Data (60 GB) from Kenna API

2024-09-29 Thread Asif Ali Hirekumbi via Python-list
ms of memory management. I am looking for guidance on how to efficiently stream this data and process it in chunks using Python. Specifically, I am wondering if there’s a way to use the requests library or any other libraries that would allow us to pull data from the API endpoint in a memory-effi

[RELEASE] Python 3.13.0RC2, 3.12.6, 3.11.10, 3.10.15, 3.9.20, and 3.8.20 are now available!

2024-09-07 Thread Łukasz Langa via Python-list
Hi there! A big joint release today. Mostly security fixes but we also have the final release candidate of 3.13 so let’s start with that! Python 3.13.0RC2 Final opportunity to test and find any show-stopper bugs before we bless and release 3.13.0 final on October 1st. Get it here: Python

Re: Unofficial PyBitmessage port to run with Python3 and PyQt5

2024-09-06 Thread Schimon Jehudah via Python-list
Good day, 711 Spooky Mart! Congratulations and thank you for investing efforts to enhance PyBitmessage, as it is an important telecommunication mean . I use Arch Linux, and I would be happy to help you to test. I have several tasks with Python, mostly on XMPP, so I am not sure I would be

Unofficial PyBitmessage port to run with Python3 and PyQt5

2024-09-05 Thread 711 Spooky Mart via Python-list
from https://www.reddit.com/r/bitmessage/comments/1d5ff18/unofficial_pybitmessage_port_to_run_with_python3/ Unofficial PyBitmessage port to run with Python3 and PyQt5 The official PyBitmessage still runs with outdated Python2 and PyQt4. Recently, I'm trying to port PyBitmessage to run

ANN: EmPy 4.2 -- a powerful, robust and mature templating system for Python

2024-08-25 Thread Erik Max Francis via Python-list
# EmPy 4.2 release announcement I'm pleased to announce the release of EmPy 4.2. The 4._x_ series is a modernization of the software and a revamp of the EmPy system to update its feature set and make it more consistent with the latest Python versions and practices. EmPy 4._x_ was

Re: Help needed - - running into issues with python and its tools

2024-08-06 Thread o1bigtenor via Python-list
On Tue, Aug 6, 2024 at 10:53 AM Bill Deegan wrote: > I’m not looking through all the packages you have installed > > (Ctrl-F is your friend - - - ) > What version of python is installed on your system? > > There are actually 3 versions installed - - - which is why the whole list was posted. You

Re: python C-api and thread

2024-08-06 Thread Barry Scott via Python-list
ad this is > significant faster even than fork. using processes means you are more robust and can survive a process crash. using async, assuming you do enough I/O, will out perform threads. Barry -- https://mail.python.org/mailman/listinfo/python-list

Re: python C-api and thread

2024-08-06 Thread aotto1968 via Python-list
On 06.08.24 04:34, Grant Edwards wrote: On 2024-08-05, aotto1968 via Python-list wrote: Is it possible to run two completely independent Python interpreters in one process, each using a thread? By independent, I mean that no data is shared between the interpreters and thus the C API can be

Re: python C-api and thread (Posting On Python-List Prohibited)

2024-08-06 Thread aotto1968 via Python-list
On 06.08.24 02:32, Lawrence D'Oliveiro wrote: On Mon, 5 Aug 2024 23:19:14 +0200, aotto1968 wrote: Is it possible to run two completely independent Python interpreters in one process, each using a thread? By independent, I mean that no data is shared between the interpreters and thus the

Re: Help needed - - running into issues with python and its tools

2024-08-06 Thread Bill Deegan via Python-list
st? >> It's generally considered bad form to do so. >> > > Got it - - - except this list wants only reply all the next one wants only > reply and > keeping straight which is which isn't always happening. I did apologize > and asked > you to advise in the next on

Re: Help needed - - running into issues with python and its tools

2024-08-06 Thread o1bigtenor via Python-list
On Mon, Aug 5, 2024 at 10:36 PM Bill Deegan wrote: > why reply to me instead of to the list? > It's generally considered bad form to do so. > Got it - - - except this list wants only reply all the next one wants only reply and keeping straight which is which isn't alwa

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
3.13: command not found > > $ python3.13 -m venv new_venv > bash: python3.13: command not found > > There you have it - - - the first one run as superuser and the second as > usr. > > Regards > > > -- https://mail.python.org/mailman/listinfo/python-list

Re: python C-api and thread

2024-08-05 Thread Chris Angelico via Python-list
On Tue, 6 Aug 2024 at 08:48, aotto1968 via Python-list wrote: > > hi, > > Is it possible to run two completely independent Python interpreters in one > process, each using a thread? > > By independent, I mean that no data is shared between the interpreters and > th

Re: python C-api and thread

2024-08-05 Thread Grant Edwards via Python-list
On 2024-08-05, aotto1968 via Python-list wrote: > Is it possible to run two completely independent Python interpreters > in one process, each using a thread? > > By independent, I mean that no data is shared between the > interpreters and thus the C API can be used without any ot

python C-api and thread

2024-08-05 Thread aotto1968 via Python-list
hi, Is it possible to run two completely independent Python interpreters in one process, each using a thread? By independent, I mean that no data is shared between the interpreters and thus the C API can be used without any other "lock/GIL" etc. mfg -- https://mail.python.o

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
Did Mats suggestion of: python3.13 -m venv new_venv $ new_venv/bin/python --version Python 3.13.0b4 $ source new_venv/bin/activate Not work? That should work on any system, with any system installl python. It's not trying to modify the system installed python in anyway... If not, please paste the

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Mats Wichmann via Python-list
On 8/5/24 15:17, o1bigtenor via Python-list wrote: That's something like pyenv install 3.12.4 $ pyenv install 3.12.4 bash: pyenv: command not found pyenv is not a 'global' package there is a mountain of /root/.pyenv files though there is also quite a number of /root/.pyenv/plugins/pyen

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread o1bigtenor via Python-list
chmann via Python-list < > > > python-list@python.org <mailto:python-list@python.org>> wrote: > > > > > >> On 8/3/24 20:03, o1bigtenor via Python-list wrote: > > >> > > >>> My question was, is and will be (an

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread o1bigtenor via Python-list
est/esp8266/tutorial/intro.html > > That seems to have instructions for what you want to do.. > See item 1.4 - - - - that's where I'm at (and that's where the problems are hidden at as well!) Regards -- https://mail.python.org/mailman/listinfo/python-list

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Mats Wichmann via Python-list
g 4, 2024 at 8:49 AM Mats Wichmann via Python-list < > python-list@python.org <mailto:python-list@python.org>> wrote: > >> On 8/3/24 20:03, o1bigtenor via Python-list wrote: >> >>> My question was, is and will be (and the doc absolutel

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
8/5/24 06:48, o1bigtenor via Python-list wrote: > > > On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list < > > > python-list@python.org> wrote: > > > > > >> On 8/3/24 20:03, o1bigtenor via Python-list wrote: > > >> > > >&

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread o1bigtenor via Python-list
on-list@python.org> wrote: > > > >> On 8/3/24 20:03, o1bigtenor via Python-list wrote: > >> > >>> My question was, is and will be (and the doc absolutely doesn't cover > it) > >>> how do I install a different version in the venv so that python 3

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Mats Wichmann via Python-list
On 8/5/24 06:48, o1bigtenor via Python-list wrote: On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list < python-list@python.org> wrote: On 8/3/24 20:03, o1bigtenor via Python-list wrote: My question was, is and will be (and the doc absolutely doesn't cover it) how do

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread o1bigtenor via Python-list
On Sun, Aug 4, 2024 at 8:49 AM Mats Wichmann via Python-list < python-list@python.org> wrote: > On 8/3/24 20:03, o1bigtenor via Python-list wrote: > > > My question was, is and will be (and the doc absolutely doesn't cover it) > > how do I install a different versi

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread o1bigtenor via Python-list
on either Devaun 3 or 5 - - - its just > > not available on devuan 4. > > Couldn't you just upgrade to Devuan 5, then? > I like uptime and not measured in hours either so I'm presently not running Devuan 5 or testing - - - although I used to. Just found that I didn't n

Re: Help needed - - running into issues with python and its tools

2024-08-04 Thread Mats Wichmann via Python-list
On 8/3/24 20:03, o1bigtenor via Python-list wrote: My question was, is and will be (and the doc absolutely doesn't cover it) how do I install a different version in the venv so that python 3.11.x on the system is not discombobulated by the python 3.12.x in the venv. That python 3.12 woul

Re: Help needed - - running into issues with python and its tools

2024-08-04 Thread Peter J. Holzer via Python-list
hen? > Tried installing all the tools I need using downloads and .deb installs but > then I need to have python3.12 and that's also not part of Devuan4. It seems weird that something would work with the (presumably) older version of Python in Devuan 3 and the (presumably) newer version o

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread o1bigtenor via Python-list
via Python-list wrote: > >>> Greetings > >>> > >>> Looking at ESP8266 and wanting to program it using micropython (really > >>> don't want to have to learn C++ (not enough hours in the day as it > >> is!!)). > >>> > >>> One of th

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread o1bigtenor via Python-list
On Sat, Aug 3, 2024 at 6:20 PM Cameron Simpson via Python-list < python-list@python.org> wrote: > On 03Aug2024 16:34, o1bigtenor wrote: > >So please - - - how do I set up a venv so that I can install and run > >python > >3.12 > >(and other needed programs relate

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread dn via Python-list
On 4/08/24 09:34, o1bigtenor via Python-list wrote: On Sat, Aug 3, 2024 at 4:06 PM dn via Python-list wrote: On 4/08/24 08:17, o1bigtenor via Python-list wrote: Greetings Looking at ESP8266 and wanting to program it using micropython (really don't want to have to learn C++ (not enough

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread Cameron Simpson via Python-list
On 03Aug2024 16:34, o1bigtenor wrote: So please - - - how do I set up a venv so that I can install and run python 3.12 (and other needed programs related to 3.12) inside? Maybe this github comment will help with this: https://github.com/orgs/micropython/discussions/10255#discussioncomment

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread o1bigtenor via Python-list
On Sat, Aug 3, 2024 at 4:06 PM dn via Python-list wrote: > On 4/08/24 08:17, o1bigtenor via Python-list wrote: > > Greetings > > > > Looking at ESP8266 and wanting to program it using micropython (really > > don't want to have to learn C++ (not enough hours in the

Re: Help needed - - running into issues with python and its tools

2024-08-03 Thread dn via Python-list
On 4/08/24 08:17, o1bigtenor via Python-list wrote: Greetings Looking at ESP8266 and wanting to program it using micropython (really don't want to have to learn C++ (not enough hours in the day as it is!!)). One of the tools I need to be able to use is esptools - - well in the devuan

Help needed - - running into issues with python and its tools

2024-08-03 Thread o1bigtenor via Python-list
Greetings Looking at ESP8266 and wanting to program it using micropython (really don't want to have to learn C++ (not enough hours in the day as it is!!)). One of the tools I need to be able to use is esptools - - well in the devuan world you need to run that on either Devaun 3 or 5 - -

I need a free LAMP hosting and a iMac

2024-07-29 Thread Benjamin via Python-list
Hi, For several months I have searched free web hosing in Google, but have not find a satisfying result now. Any body know some good LAMP free web hosting? And, I have lost job since 2018, my macbook has only 2 intel core, I want to buy a new iMac for person programming, but I have only little

RE: [Tutor] How to go about a simple object grabbing in python (given coordinates of arms and objects)

2024-06-24 Thread AVI GROSS via Python-list
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

Tkinter and astral characters (was: Decoding bytes to text strings in Python 2)

2024-06-24 Thread Peter J. Holzer via Python-list
isplay "Hello World \N{ROCKET}" instead (Python 3.10.12 as included with Ubuntu 22.04). I don't get a warning or error, but the emoji isn't displayed either. I suspect that the default font doesn't include emojis and Tk isn't smart enough to fall back to a different fon

Re: [Tutor] How to go about a simple object grabbing in python (given coordinates of arms and objects)

2024-06-24 Thread marc nicole via Python-list
Tutor a écrit : > On 22/06/2024 13:41, marc nicole wrote: > > > So, given the x,y,z coordinates of a target object and the offset x,y,z > of > > arms of a robot, what is a good algorithm to perform to grab the object > > between the hands (either from both sides o

How to go about a simple object grabbing in python (given coordinates of arms and objects)

2024-06-23 Thread marc nicole via Python-list
Hello to all of this magnificent community! I have this problem I had already spent a few days on and still can't figure out a proper solution. So, given the x,y,z coordinates of a target object and the offset x,y,z of arms of a robot, what is a good algorithm to perform to grab the o

Re: [Tutor] How to go about a simple object grabbing in python (given coordinates of arms and objects)

2024-06-22 Thread marc nicole via Python-list
My code is just an attempt at the task, it is not exact as what relates to the coordinates (e.g., doesn't account for the size of the object. I would like to have a idea on the general approach to such problems (even a pseudo code would do) "Get the hands rapidly enough in the vicinit

Re: Lprint = ( Lisp-style printing ( of lists and strings (etc.) ) in Python )

2024-06-01 Thread Peter J. Holzer via Python-list
On 2024-05-30 21:47:14 -0700, HenHanna via Python-list wrote: > [('the', 36225), ('and', 17551), ('of', 16759), ('i', 16696), ('a', 15816), > ('to', 15722), ('that', 11252), ('in', 10743), ('it', 10

Lprint = ( Lisp-style printing ( of lists and strings (etc.) ) in Python )

2024-05-31 Thread HenHanna via Python-list
;;; Pls tell me about little tricks you use in Python or Lisp. [('the', 36225), ('and', 17551), ('of', 16759), ('i', 16696), ('a', 15816), ('to', 15722), ('that', 11252), ('in', 10743), ('it',

Re: SOLVED! Re: Weird Stuff (Markdown, syntax highlighting and Python)

2024-05-29 Thread dn via Python-list
On 29/05/24 06:49, Gilmeh Serda via Python-list wrote: Solved by using a different method. Hedonist for hire... no job too easy! This combination of sig-file and content seems sadly ironic. How about CONTRIBUTING to the community by explaining 'the solution' to people who

Re: Formatted Output and Argument Parsing (was: Re: Flubbed it in the second interation through the string: range error... HOW?)

2024-05-29 Thread Chris Angelico via Python-list
On Wed, 29 May 2024 at 23:06, Dan Sommers via Python-list wrote: > (For the history-impaired, getopt existed long before Python and will > likely exist long after it, but getopt's "replacement" optparse lasted > only from 2003 until 2011.) Depends on your definition of &q

Formatted Output and Argument Parsing (was: Re: Flubbed it in the second interation through the string: range error... HOW?)

2024-05-29 Thread Dan Sommers via Python-list
> 2015, so they're hardly chronologically special), but because most of > this looks like debugging output that can take advantage of this > feature: > > print(f"if block {name[index]=} {index=}") defsnark: After years of getopt (and even more, if you include non-Pyt

  1   2   3   4   5   6   7   8   9   10   >