Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-02 Thread Thomas Passin via Python-list
On 1/2/2024 11:56 AM, Mats Wichmann via Python-list wrote: On 1/1/24 12:53, Thomas Passin via Python-list wrote: On Windows 10, a shebang line gets ignored in favor of Python 3.9.9 (if invoked by the script name alone) or Python 3.12.1 (if invoked by the "py" launcher). fwiw, yo

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-02 Thread Mats Wichmann via Python-list
On 1/1/24 12:53, Thomas Passin via Python-list wrote: On Windows 10, a shebang line gets ignored in favor of Python 3.9.9 (if invoked by the script name alone) or Python 3.12.1 (if invoked by the "py" launcher). fwiw, you can also create an ini file to define to the launche

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Thomas Passin via Python-list
On 1/1/2024 12:26 PM, Mats Wichmann via Python-list wrote: On 1/1/24 07:11, Thomas Passin via Python-list wrote: Here's how to find out what program Windows thinks it should use to run a ".py" file.  In a console: C:\Users\tom>assoc .py .py=Python.File C:\Users\tom>f

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Mats Wichmann via Python-list
On 1/1/24 07:11, Thomas Passin via Python-list wrote: Here's how to find out what program Windows thinks it should use to run a ".py" file.  In a console: C:\Users\tom>assoc .py .py=Python.File C:\Users\tom>ftype Python.file Python.file="C:\Windows\py.exe" &

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Mats Wichmann via Python-list
On 1/1/24 04:02, Sibylle Koczian via Python-list wrote: Am 30.12.2023 um 04:04 schrieb Mike Dewhirst via Python-list: I had assumed the OP had installed Python from the Microsoft shop and that's where py.exe must have come from. In fact I didn't say in my post that I always get Python

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Thomas Passin via Python-list
On 1/1/2024 8:19 AM, Thomas Passin via Python-list wrote: On 1/1/2024 6:02 AM, Sibylle Koczian via Python-list wrote: Am 30.12.2023 um 04:04 schrieb Mike Dewhirst via Python-list: I had assumed the OP had installed Python from the Microsoft shop and that's where py.exe must have come from

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Thomas Passin via Python-list
On 1/1/2024 6:02 AM, Sibylle Koczian via Python-list wrote: Am 30.12.2023 um 04:04 schrieb Mike Dewhirst via Python-list: I had assumed the OP had installed Python from the Microsoft shop and that's where py.exe must have come from. In fact I didn't say in my post that I always get Python

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Barry via Python-list
> On 1 Jan 2024, at 11:14, Sibylle Koczian via Python-list > wrote: > > But in all this thread I didn't see a single explanation for my current > situation: one and the same shebang line works on Windows 10 / Python 3.11 > and doesn't work on Windows 11 / Python 3.12.

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2024-01-01 Thread Sibylle Koczian via Python-list
Am 30.12.2023 um 04:04 schrieb Mike Dewhirst via Python-list: I had assumed the OP had installed Python from the Microsoft shop and that's where py.exe must have come from. In fact I didn't say in my post that I always get Python from python.org. When I started to use the language

Re: Are there any easy-to-use Visual Studio C# WinForms-like GUI designers in the Python world for Tk?

2023-12-30 Thread Alan Gauld via Python-list
On 29/12/2023 01:05, Félix An via Python-list wrote: > I'm used to C# WinForms, which has an easy-to-use drag-and-drop GUI > designer in Visual Studio. Is there anything similar for Tk? How about > Qt? There are any number of them but few that work well. The best I found was Dabo bu

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-29 Thread Chris Angelico via Python-list
On Sat, 30 Dec 2023 at 14:06, Mike Dewhirst via Python-list wrote: > > On 29/12/2023 12:09 pm, Félix An via Python-list wrote: > > On 2023-12-25 12:36, Mike Dewhirst wrote: > >> > >> 3. You cannot trust Microsoft. You can trust Python Software > >> Fou

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-29 Thread Mike Dewhirst via Python-list
On 29/12/2023 12:09 pm, Félix An via Python-list wrote: On 2023-12-25 12:36, Mike Dewhirst wrote: 3. You cannot trust Microsoft. You can trust Python Software Foundation. Python from PSF works the same in all environments - or if not it is a bug. Python from Microsoft is tweaked to satisfy

Re: Are there any easy-to-use Visual Studio C# WinForms-like GUI designers in the Python world for Tk?

2023-12-29 Thread Jach Feng via Python-list
Félix An 在 2023年12月29日 星期五下午2:05:24 [UTC+13] 的信中寫道: > I'm used to C# WinForms, which has an easy-to-use drag-and-drop GUI > designer in Visual Studio. Is there anything similar for Tk? How about > Qt? What do you recommend as the easiest way to create GUI programs in > Pyt

Re: Are there any easy-to-use Visual Studio C# WinForms-like GUI designers in the Python world for Tk?

2023-12-29 Thread Mats Wichmann via Python-list
On 12/28/23 18:05, Félix An via Python-list wrote: I'm used to C# WinForms, which has an easy-to-use drag-and-drop GUI designer in Visual Studio. Is there anything similar for Tk? How about Qt? What do you recommend as the easiest way to create GUI programs in Python, similar to the ease

RE: Subject: Are there any easy-to-use Visual Studio C# WinForms-like GUI designers in the Python world for Tk?

2023-12-29 Thread Greg Walters via Python-list
> I'm used to C# WinForms, which has an easy-to-use drag-and-drop GUI designer in Visual Studio. Is there anything similar for Tk? How about Qt? What do you recommend as the easiest way to create GUI programs in Python, similar to the ease of use of C# WinForms? I can't say much for Qt other t

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-28 Thread Chris Angelico via Python-list
On Fri, 29 Dec 2023 at 12:23, Félix An via Python-list wrote: > > On 2023-12-25 12:36, Mike Dewhirst wrote: > > > > 3. You cannot trust Microsoft. You can trust Python Software Foundation. > > Python from PSF works the same in all environments - or if not it is a bug. &

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-28 Thread Félix An via Python-list
On 2023-12-25 12:36, Mike Dewhirst wrote: 3. You cannot trust Microsoft. You can trust Python Software Foundation. Python from PSF works the same in all environments - or if not it is a bug. Python from Microsoft is tweaked to satisfy their aforementioned strategy of locking in users

Are there any easy-to-use Visual Studio C# WinForms-like GUI designers in the Python world for Tk?

2023-12-28 Thread Félix An via Python-list
I'm used to C# WinForms, which has an easy-to-use drag-and-drop GUI designer in Visual Studio. Is there anything similar for Tk? How about Qt? What do you recommend as the easiest way to create GUI programs in Python, similar to the ease of use of C# WinForms? -- https://mail.python.org

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-25 Thread Mike Dewhirst via Python-list
Well spotted Chris. 4 was a generalisation based on my own circumstances.However, I'm not wrong about Microsoft motivationsM--(Unsigned mail from my phone) Original message From: Chris Angelico via Python-list Date: 25/12/23 15:57 (GMT+10:00) To: Michael Torrie via Python

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-25 Thread rbowman via Python-list
On Sun, 24 Dec 2023 22:55:34 +, Barry wrote: >> On 24 Dec 2023, at 00:54, rbowman via Python-list >> wrote: >> >> Does that work with virtualenv or conda? I'm slowly getting up to speed >> with those. > > Conda is its own thing, not need for py.exe. >

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-24 Thread Chris Angelico via Python-list
On Mon, 25 Dec 2023 at 15:42, Mike Dewhirst via Python-list wrote: > > Apologies for top posting - my phone seems unable to do otherwise. > > Here's my view - which may not be popular. You're right about that part, anyhow :) > 4. Shebang lines are pretty much redundant now t

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-24 Thread Mike Dewhirst via Python-list
Apologies for top posting - my phone seems unable to do otherwise. Here's my view - which may not be popular. 1. Py.exe is an awful idea. 2. Installing python in %PROGRAMFILES% is not a good idea 3. Installing Python from a Microsoft shop or server is a bad idea 4. Shebang lines are pretty

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-24 Thread Barry via Python-list
> On 24 Dec 2023, at 00:54, rbowman via Python-list > wrote: > > Does that work with virtualenv or conda? I'm slowly getting up to speed > with those. Conda is its own thing, not need for py.exe. Once you have created the venv you do not need py.exe as you will have pythob.

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-23 Thread Michael Torrie via Python-list
On 12/22/23 20:16, rbowman via Python-list wrote: > On Fri, 22 Dec 2023 17:27:58 -0700, Michael Torrie wrote: > >> Using the py launcher as your Windows association with .py and.pyw files >> you can have multiple versions of python installed and everything works >> as it s

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-23 Thread rbowman via Python-list
On Fri, 22 Dec 2023 17:27:58 -0700, Michael Torrie wrote: > Using the py launcher as your Windows association with .py and.pyw files > you can have multiple versions of python installed and everything works > as it should, according to your shebang, just like on Unix. Does

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-23 Thread Michael Torrie via Python-list
On 12/22/23 20:56, Thomas Passin via Python-list wrote: > It's just better not to make assumptions about which version of Python > will be running. Just specify it yourself when you can, and then you can > be sure. Precisely, which is why the shebang is so useful, even on Window

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-23 Thread Barry Scott via Python-list
> On 23 Dec 2023, at 03:01, Thomas Passin via Python-list > wrote: > > Not on my system. It may depend on whether Python gets installed to Program > Files or to %USERPROFILE%/AppData/Local/Programs/Python. Python 3.9 is the > last verson I installed to Program

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-23 Thread Peter J. Holzer via Python-list
On 2023-12-22 22:56:45 -0500, Thomas Passin via Python-list wrote: > In my experience one should always make sure to know what version of Python > is being used, at least if there is more than one version installed on the > computer. Even on Linux using a shebang line can be tricky, be

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
On 12/22/2023 7:27 PM, Michael Torrie via Python-list wrote: On 12/22/23 07:02, Thomas Passin via Python-list wrote: On my Windows 10 machine, Python scripts run without a shebang line. Perhaps Windows 11 has added the ability to use one, but then you would need to use the actual location

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
On 12/22/2023 7:19 PM, Barry wrote: On 23 Dec 2023, at 00:15, Thomas Passin via Python-list wrote: In neither case is the shebang line used. As i understand it, not in front of my windows box to check. The handler for .py file extension is set to be the py.exe It is py.exe

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Michael Torrie via Python-list
On 12/22/23 07:02, Thomas Passin via Python-list wrote: > On my Windows 10 machine, Python scripts run without a shebang line. > Perhaps Windows 11 has added the ability to use one, but then you would > need to use the actual location of your Python executable. Yes if you associate .p

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Michael Torrie via Python-list
On 12/22/23 11:42, Thomas Passin via Python-list wrote: > There is some important context that is missing here. Python on Windows > does not normally install to that location. That is not even a Windows > path, neither by directory name nor by path separators. No, that's just the w

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Barry via Python-list
> On 23 Dec 2023, at 00:15, Thomas Passin via Python-list > wrote: > > In neither case is the shebang line used. As i understand it, not in front of my windows box to check. The handler for .py file extension is set to be the py.exe It is py.exe that understands shebang l

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
On 12/22/2023 9:29 AM, Sibylle Koczian via Python-list wrote: Am 22.12.2023 um 14:13 schrieb Barry: On 22 Dec 2023, at 12:39, Sibylle Koczian via Python-list wrote: Hello, I always install Python on Windows in the same manner: - Python is not on the path, - it is installed for all

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Thomas Passin via Python-list
On 12/22/2023 7:36 AM, Sibylle Koczian via Python-list wrote: Hello, I always install Python on Windows in the same manner: - Python is not on the path, - it is installed for all users, - the Python Launcher is installed for all users, - the file types .py, .pyw etc. are associated with Python

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Barry via Python-list
> On 22 Dec 2023, at 14:58, Christian Buhtz via Python-list > wrote: > > On Windows 11 it usually is the "Terminal" which is different from cmd.exe. In terminal app you can run cmd.exe or powershell, so it is basically the same. Barry -- https://mail.python.org/m

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Barry via Python-list
> On 22 Dec 2023, at 14:29, Sibylle Koczian wrote: > > #!/usr/bin/env/python That was what i thought you had and it will not work. The BOM suggestion is worth trying. Barry -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Christian Buhtz via Python-list
What is the "command line" on your Windows 11? On Windows 10 it usually is "cmd.exe" (Windows Command Prompt). On Windows 11 it usually is the "Terminal" which is different from cmd.exe. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread J.O. Aho via Python-list
On 22/12/2023 13.36, Sibylle Koczian wrote: Hello, I always install Python on Windows in the same manner: - Python is not on the path, - it is installed for all users, - the Python Launcher is installed for all users, - the file types .py, .pyw etc. are associated with Python. My shebang line

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Sibylle Koczian via Python-list
Am 22.12.2023 um 14:13 schrieb Barry: On 22 Dec 2023, at 12:39, Sibylle Koczian via Python-list wrote: Hello, I always install Python on Windows in the same manner: - Python is not on the path, - it is installed for all users, - the Python Launcher is installed for all users, - the file

Re: Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Barry via Python-list
> On 22 Dec 2023, at 12:39, Sibylle Koczian via Python-list > wrote: > > Hello, > > I always install Python on Windows in the same manner: > > - Python is not on the path, > - it is installed for all users, > - the Python Launcher is installed for all users

Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

2023-12-22 Thread Sibylle Koczian via Python-list
Hello, I always install Python on Windows in the same manner: - Python is not on the path, - it is installed for all users, - the Python Launcher is installed for all users, - the file types .py, .pyw etc. are associated with Python. My shebang line is usually "#!/usr/bin/env py

Request to Review: Tutorial about Python Packaging offering different use case

2023-12-13 Thread Christian Buhtz via Python-list
Hello, I would like to point to my Python Packaging Tutorial explaining several common use cases using minimal demo projects. <https://codeberg.org/buhtz/tech-demo-python-packaging> I am not an expert and assume that some of my solutions might not be the best. So I would appreciate

[Python-announce] Announcement: TLSSysLogHandler added on PyPI

2023-12-13 Thread epsilon--- via Python-announce-list
A new package for extending SysLogHandler with TLS support has been added on PyPI [1]. Modern syslog servers such as rsyslog, syslog-ng and OpenBSD's syslogd have TLS support for secure remote logging. Unfortunately the core python SysLogHandler does not have this functionality yet

[Python-announce] ANN: A new version (0.5.2) of python-gnupg has been released.

2023-12-13 Thread Vinay Sajip via Python-announce-list
code repository is at [1]. Documentation is available at [5]. As always, your feedback is most welcome (especially bug reports [3], patches and suggestions for improvement, or any other points via this group). Enjoy! Cheers Vinay Sajip [1] https://github.com/vsajip/python-gnupg [2] https

[Python-announce] Announcement: distlib 0.3.8 released on PyPI

2023-12-13 Thread Vinay Sajip via Python-announce-list
during test. * Fix #208: handle deprecation removals in Python 3.13. * Fix #209: use legacy version implementation for Python versions. A more detailed change log is available at [2]. Please try it out, and if you find any problems or have any suggestions for improvements, please give some

ANN: A new version (0.5.2) of python-gnupg has been released.

2023-12-13 Thread Vinay Sajip via Python-list
code repository is at [1]. Documentation is available at [5]. As always, your feedback is most welcome (especially bug reports [3], patches and suggestions for improvement, or any other points via this group). Enjoy! Cheers Vinay Sajip [1] https://github.com/vsajip/python-gnupg [2] https

[Python-announce] ANN: numexpr 2.8.8 released

2023-12-11 Thread Francesc Alted
Numexpr? --- Numexpr is a fast numerical expression evaluator for NumPy. With it, expressions that operate on arrays (like "3*a+4*b") are accelerated and use less memory than doing the same calculation in Python. It has multi-threaded capabilities, as well as support for I

[Python-announce] Python 3.12.1 is now available

2023-12-07 Thread Thomas Wouters
Python 3.12.1 is now available. https://www.python.org/downloads/release/python-3121/ This is the first maintenance release of Python 3.12 Python 3.12 is the newest major release of the Python programming language, and it contains many new features and optimizations. 3.12.1 is the latest

Python 3.12.1 is now available

2023-12-07 Thread Thomas Wouters via Python-list
Python 3.12.1 is now available. https://www.python.org/downloads/release/python-3121/ This is the first maintenance release of Python 3.12 Python 3.12 is the newest major release of the Python programming language, and it contains many new features and optimizations. 3.12.1 is the latest

[Python-announce] logmerger 0.8.0 released

2023-12-07 Thread Paul McGuire
, seconds, minutes, hours or days Fixes: - Fixed type annotations that broke running logmerger on Python 3.9. Screenshot: https://github.com/ptmcg/logmerger/blob/main/static/log1_log2_merged_tui_lr.jpg?raw=true Use logmerger to view multiple log files, merged side-by-side with a common timeline using

[Python-announce] [Release] Lona 1.16.1 is out

2023-11-29 Thread Florian Scherf
What is Lona? = Lona is a web application framework, designed to write responsive web apps in full Python. Lona 1.16.1 === 1.16.1 is an exciting release because it is the first to support file uploads out of the box! The Lona ecosystem also got lona-dropzone

[Python-announce] PyCA cryptography 41.0.7 released

2023-11-27 Thread Alex Gaynor
PyCA cryptography 41.0.7 has been released to PyPI. cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, asymmetric algorithms, message digests, X509, key derivation functions, and much more. We support Python 3.7

[Python-announce] PyCA cryptography 41.0.6 released

2023-11-27 Thread Paul Kehrer
PyCA cryptography 41.0.6 has been released to PyPI. cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, asymmetric algorithms, message digests, X509, key derivation functions, and much more. We support Python 3.7

[Python-announce] TatSu 5.10.2 - PEG parser generator

2023-11-23 Thread Juancarlo Añez
竜 TatSu is a tool that takes grammars in a variation of EBNF as input, and outputs memoizing (Packrat) PEG parsers in Python. Please take a look at the release log for the latest improvements and fixes: https://github.com/neogeny/TatSu/releases -- Juancarlo Añez mailto:apal...@gmail.com

[Python-announce] Late 1.2.2 released

2023-11-23 Thread Juancarlo Añez
*包 Late* provides decorators and functions to work around the issues that early binding of default argument values produces in Python. https://github.com/neogeny/late -- Juancarlo Añez mailto:apal...@gmail.com ___ Python-announce-list mailing list

[Python-announce] FOSDEM 2024: Call for Proposals - Python Devrooom

2023-11-23 Thread Marc-Andre Lemburg
We are happy to announce that we will be running a Python devroom again at FOSDEM 2024. This year's edition will be exclusively in-person, and take place on the 3rd and 4th of February, with the Python devroom being available on Sunday 4th. If you have not heard about FOSDEM before

FOSDEM 2024: Call for Proposals - Python Devrooom

2023-11-23 Thread Marc-Andre Lemburg via Python-list
We are happy to announce that we will be running a Python devroom again at FOSDEM 2024. This year's edition will be exclusively in-person, and take place on the 3rd and 4th of February, with the Python devroom being available on Sunday 4th. If you have not heard about FOSDEM before

[Python-announce] Python 3.13.0 alpha 2 now available.

2023-11-22 Thread Thomas Wouters
Well, well, well, it’s time for Python 3.13.0 alpha 2! https://www.python.org/downloads/release/python-3130a2/ *This is an early developer preview of Python 3.13* <https://discuss.python.org/t/python-3-13-0-alpha-2/39379#major-new-features-of-the-313-series-compared-to-312-1>Major new fe

Python 3.13.0 alpha 2 now available.

2023-11-22 Thread Thomas Wouters via Python-list
Well, well, well, it’s time for Python 3.13.0 alpha 2! https://www.python.org/downloads/release/python-3130a2/ *This is an early developer preview of Python 3.13* <https://discuss.python.org/t/python-3-13-0-alpha-2/39379#major-new-features-of-the-313-series-compared-to-312-1>Major new fe

NZPUG Mtg: Making Python faster, and "Dependency Inversion"

2023-11-22 Thread dn via Python-list
Virtual meeting: Wednesday 6 December, 1815 for 1830 NZDT/UTC+13 Book at https://www.meetup.com/nzpug-auckland/events/295433876/ 1 Making Python faster - using type hints Tushar will lead us through: A brief history of type hints Using type checkers to verify your type hints

[Python-announce] Pygments 2.17.2 released

2023-11-21 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.17.2. Pygments is a generic syntax highlighter written in Python. Pygments 2.17.2 is a patch release addressing a packaging problem affecting macOS. See <https://pygments.org/docs/changelog/> for details. Report bugs and feature re

[Python-announce] Leo 6.7.5 Released

2023-11-20 Thread Edward K. Ream
** - PR #3568: Improve word-oriented finds and improve Leo's spell checker. - PRs #3515 and #3517: Significantly improve python importer. - PRs #3509 and #3511: Improve rust importer. **Other improvements** - PR #3560: Retire the g.SherlockTracer class. - PR #3552: Clear dirty bits when writing

[Python-announce] SCons 4.6.0 released

2023-11-19 Thread Bill Deegan
, DI_FILE_DIR_PREFIX, DI_FILE_DIR_SUFFIX, DI_FILE_SUFFIX. - MSVC: If available, native arm64 tools will be used on arm64 hosts for VS2022. - MSVC: If necessary, automatically define VSCMD_SKIP_SENDTELEMETRY for VS2019 and later on arm64 hosts when using an arm (32-bit) build of python to prevent

[Python-announce] ANN: SciPy 1.11.4

2023-11-19 Thread Tyler Reddy
d, and may not be fully complete. Issues closed for 1.11.4 * `#19189 <https://github.com/scipy/scipy/issues/19189>`__: Contradiction in \`pyproject.toml\` requirements? * `#19228 <https://github.com/scipy/scipy/issues/19228>`__: Doc build fails with

[Python-announce] Pygments 2.17.1 released

2023-11-19 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.17.1. Pygments is a generic syntax highlighter written in Python. Pygments 2.17.1 is a patch release addressing a specific issue with the TOML parser. See <https://pygments.org/docs/changelog/> for details. Report bugs and feature re

[Python-announce] Pygments 2.17 released

2023-11-18 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.17. Pygments is a generic syntax highlighter written in Python. Pygments 2.17 provides a seven new lexers and many improvements to existing lexers. It also the first version to officially support Python 3.12. Please have a look at the changelog

[Python-announce] NumPy 1.26. 2 released

2023-11-12 Thread Charles R Harris
Charles R Harris Sat, Oct 14, 3:03 PM to numpy-discussion, SciPy, bcc: python-announce-list Hi All, On behalf of the NumPy team, I'm pleased to announce the release of NumPy 1.26.2. NumPy 1.26.2 is a maintenance release that fixes bugs and regressions discovered after the 1.26.1 release

[Python-announce] Late 1.0.0 - late bound arguments

2023-11-11 Thread Juancarlo Añez
*Late* provides decorators and functions to work around the issues that early binding of default argument values produces in Python. @latebinding def f(x: list[Any] = __([])) -> list[Any]: x.append(1) return x assert f() == [1] assert f() == [1] asser

[Python-announce] SQLObject 3.11.0

2023-11-11 Thread Oleg Broytman
the news: http://sqlobject.org/News.html What is SQLObject = SQLObject is a free and open-source (LGPL) Python object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to use and quick to get

Re: Python Golf

2023-11-07 Thread Jon Ribbens via Python-list
called "golf"! It would be basically insane to use open(0) instead of sys.stdin like this except where the length of the source code overrides all other considerations - which is essentially never, unless playing code golf... -- https://mail.python.org/mailman/listinfo/python-list

RE: Writing to clipboard in Python 3.11

2023-11-07 Thread Jim Schwartz via Python-list
It doesn't work in python 3.12.0 -Original Message- From: Python-list On Behalf Of Thomas Passin via Python-list Sent: Tuesday, November 7, 2023 12:08 PM To: python-list@python.org Subject: Re: Writing to clipboard in Python 3.11 On 11/5/2023 7:51 PM, Rob Cliffe via Python-list wrote

Re: Writing to clipboard in Python 3.11

2023-11-07 Thread Thomas Passin via Python-list
On 11/5/2023 7:51 PM, Rob Cliffe via Python-list wrote: Recently I switched from Python 3.8.3 to Python 3.11.4.  A strange problem appeared which was not there before: I am using the win32clipboard backage (part of pywin32), and when I use SetClipboardData() to write text which consists

RE: Python Golf

2023-11-07 Thread AVI GROSS via Python-list
. If you had python import sys by default and perhaps even create a briefer alias for sys.stdin, then this gets shorter: py -c "import sys; print(sum(int(F.split()[1])for F in sys.stdin))" On Behalf Of Jon Ribbens via Python-list Sent: Tuesday, November 7, 2023 11:06 AM To: python-list@

Re: Writing to clipboard in Python 3.11

2023-11-07 Thread MRAB via Python-list
On 2023-11-06 00:51, Rob Cliffe via Python-list wrote: Recently I switched from Python 3.8.3 to Python 3.11.4.  A strange problem appeared which was not there before: I am using the win32clipboard backage (part of pywin32), and when I use SetClipboardData() to write text which consists ENTIRELY

Writing to clipboard in Python 3.11

2023-11-07 Thread Rob Cliffe via Python-list
Recently I switched from Python 3.8.3 to Python 3.11.4.  A strange problem appeared which was not there before: I am using the win32clipboard backage (part of pywin32), and when I use SetClipboardData() to write text which consists ENTIRELY OF DIGITS to the clipboard, I either get an error

Re: Python Golf

2023-11-07 Thread Jon Ribbens via Python-list
On 2023-11-07, Stefan Ram wrote: > I read this in a shell newsgroup: > > perl -anE '$s += $F[1]; END {say $s}' in > > , so I wrote > > py -c "import sys; print(sum(int(F.split()[1])for F in sys.stdin))" > to show that this is possible with Python t

RE: Python-list Digest, Vol 242, Issue 3

2023-11-04 Thread bart.kuijer via Python-list
I don 't understand the meaning of this mail Verzonden vanaf mijn Galaxy Oorspronkelijk bericht Van: python-list-requ...@python.org Datum: 04-11-23 17:01 (GMT+01:00) Aan: python-list@python.org Onderwerp: Python-list Digest, Vol 242, Issue 3 Send Python-list mailing list

[Python-announce] ANN: Release of PlotPy V2 

2023-10-31 Thread Pierre Raybaut
PlotPy V2 distinguishes itself in the realm of plotting libraries. Designed for Python/Qt applications, this library offers a blend of superior performance and enhanced interactive features. Its image display features, driven by a C++ transform engine, include real-time high-quality interpolation

[Python-announce] PyDev 11.0.2 Released

2023-10-29 Thread Fabio Zadrozny
PyDev 11.0.2 Release Highlights Continuing with the updates to Python 3.12, the new release integrates the latest version of typeshed (so, *from typing import override* is now properly recognized). Also, it's now possible to specify vmargs in the python interpreter (and not just in the launch

[Python-announce] Python Virtual Shell 0.0b

2023-10-29 Thread christos.jon...@gmail.com
An attempt at Python virtual shell that mixes your native shell with Python with the goal of letting you use your regular shell but also use Python as effectively a shell scripting language, as an alternative to your shell's built-in scripting language. This was submitted before

[Python-announce] ANN: pyftpdlib 1.5.9 released

2023-10-25 Thread Giampaolo Rodola'
Hello all, I'm glad to announce the release of pyftpdlib 1.5.9: https://github.com/giampaolo/pyftpdlib About = Python FTP server library provides a high-level portable interface to easily write very efficient, scalable and asynchronous FTP servers with Python. What's new

[Python-announce] SQLObject 3.10.3

2023-10-25 Thread Oleg Broytman
in 2018. Tests - * Run tests with Python 3.12. CI -- * GHActions: Ensure ``pip`` only if needed This is to work around a problem in conda with Python 3.7 - it brings in wrong version of ``setuptools`` incompatible with Python 3.7. For a more complete list, please see the news: http

Re: How to sort this without 'cmp=' in python 3?

2023-10-24 Thread Chris Angelico via Python-list
On Wed, 25 Oct 2023 at 13:02, Mike H via Python-list wrote: > Is it possible to use lambda expression instead of defining a `Key` class? > Something like `sorted(my_list, key = lambda x, y: x+y > y+x)`? Look up functools.cmp_to_key. ChrisA -- https://mail.python.org/mailman/listin

Re: How to sort this without 'cmp=' in python 3?

2023-10-24 Thread Mike H via Python-list
bda a,b: cmp(a+b, b+a), reverse=True) > > > > But how to do this in python 3? > > > > Thank you > While cmp_to_key is neat doing it by hand should also be instructive. > Essentially you move the comparison into a method of the key: > > $ cat translate_cmp.py &

[Python-announce] pytest 7.4.3

2023-10-24 Thread Bruno Oliveira
Oliveira * Marc Mueller Happy testing, The pytest Development Team ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to python-announce-list-le...@python.org https://mail.python.org/mailman3/lists/python

[Python-announce] PyCA cryptography 41.0.5 released

2023-10-24 Thread Paul Kehrer
PyCA cryptography 41.0.5 has been released to PyPI. cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, asymmetric algorithms, message digests, X509, key derivation functions, and much more. We support Python 3.7

[Python-announce] akarsu 0.2.0

2023-10-23 Thread furkanonder via Python-announce-list
What is akarsu? [akarsu](https://github.com/furkanonder/akarsu) is the New Generation Profiler based on [PEP 669](https://peps.python.org/pep-0669/). Installation pip install akarsu (It requires Python 3.12.0+ to run) Example Usage cat example.py > def foo(): > x = 1 > isinstan

[Python-announce] TatSu v5.9.0 - PEG parser generator

2023-10-22 Thread Juancarlo Añez
竜 TatSu is a tool that takes grammars in a variation of EBNF as input, and outputs memoizing (Packrat) PEG parsers in Python. Why use a PEG parser? Because regular languages (those parsable with Python's `re` package) "cannot count". Any input with nested structures or with

[Python-announce] Cheetah 3.3.3

2023-10-22 Thread Oleg Broytman
Hello! I'm pleased to announce version 3.3.3, the fourth release of branch 3.3 of CheetahTemplate3. What's new in CheetahTemplate3 == Minor features: - Protect ``import cgi`` in preparation to Python 3.13. Tests: - Run tests with Python 3.12. CI

[Python-announce] Guppy 3/Heapy 3.1.4

2023-10-20 Thread YiFei Zhu
I am happy to announce Guppy 3 3.1.4 Guppy 3 is a library and programming environment for Python, currently providing in particular the Heapy subsystem, which supports object and heap memory sizing, profiling and debugging. It also includes a prototypical specification language, the Guppy

[Python-announce] [Release] Lona 1.16 is out

2023-10-20 Thread Florian Scherf
What is Lona? = Lona is a web application framework, designed to write responsive web apps in full Python. Lona 1.16 = Lona 1.16 adds support for auto-reconnect in the default frontend, support for radio-buttons and radio-groups, hot reload on code changes, and contains

[Python-announce] Pieshell version 0.2.7 (With async/await support)

2023-10-17 Thread Egil Möller
Pieshell is a Python shell environment that combines the expressiveness of shell pipelines with the power of python iterators. This release adds support for async/await and async iterators for all shell pipelines, as well as MacOS X support. Pieshell can be used as an interactive shell

[Python-announce] ANN: psutil 5.9.6 released

2023-10-15 Thread Giampaolo Rodola'
Hello all, I'm glad to announce the release of psutil 5.9.6: https://github.com/giampaolo/psutil About = psutil (process and system utilities) is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network) in Python

[Python-announce] NumPy 1.26.1 released

2023-10-14 Thread Charles R Harris
. Highlights are: - Improved detection of BLAS and LAPACK libraries for meson builds - Pickle compatibility with the upcoming NumPy 2.0. The Python versions supported by this release are 3.9-3.12. Wheels can be downloaded from PyPI <https://pypi.org/project/numpy/1.26.1/>; source archives, r

[Python-announce] ANN: PyScripter v4.3.0 released

2023-10-13 Thread Kiriakos Vlahos
PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. It is feature-rich, but also light-weight. New Features: - Python 3.12 support

[Python-announce] Python 3.13.0 alpha 1 now available.

2023-10-13 Thread Thomas Wouters
It’s not a very exciting release (yet), but it’s time for the first alpha of Python 3.13 anyway! https://www.python.org/downloads/release/python-3130a1/ *This is an early developer preview of Python 3.13* <https://discuss.python.org/t/python-3-13-0-alpha-1/36109#major-new-features-of-the-

Python 3.13.0 alpha 1 now available.

2023-10-13 Thread Thomas Wouters via Python-list
It’s not a very exciting release (yet), but it’s time for the first alpha of Python 3.13 anyway! https://www.python.org/downloads/release/python-3130a1/ *This is an early developer preview of Python 3.13* <https://discuss.python.org/t/python-3-13-0-alpha-1/36109#major-new-features-of-the-

Re: Is a Python event polled or interrupt driven?

2023-10-12 Thread Chris Green via Python-list
Chris Angelico wrote: > On Fri, 13 Oct 2023 at 01:48, Chris Green via Python-list > wrote: > > > > In the following code is the event polled by the Python process > > running the code or is there something cleverer going on such that > > Python sees an interrupt wh

Re: Is a Python event polled or interrupt driven?

2023-10-12 Thread Chris Angelico via Python-list
On Fri, 13 Oct 2023 at 01:48, Chris Green via Python-list wrote: > > In the following code is the event polled by the Python process > running the code or is there something cleverer going on such that > Python sees an interrupt when the input goes high (or low)? > This isn't som

<    1   2   3   4   5   6   7   8   9   10   >