[Python-announce] txtorcon 23.5.0

2023-05-18 Thread meejah
with the tls_context_factory= argument, the equivalent to Agent's contextFactory= (Thanks to Itamar Turner-Trauring) * Added support + testing for Python 3.11. * No more ipaddress dependency You can download the release from PyPI or GitHub (or of course "pip install txtorcon"): https://pypi.pytho

[Python-announce] JumpTheGun 0.0.9

2023-05-18 Thread Tal Einat
Make Python CLI tools win the speed race, by cheating! JumpTheGun makes Python CLI tools start up much faster. For example, it can make the AWS CLI start up nearly 3x faster, making it near-instant. # In any Python (>= 3.7) environment: pip install jumpthegun # or pipx install jumpthe

[Python-announce] [Release] skforecast 0.8.0

2023-05-17 Thread Joaquín a r
Hi all, I'm delighted to announce the latest release of *s**kforecast*! *Skforecast *is a Python library that eases using scikit-learn regressors as single and multi-step forecasters. It also works with any regressor compatible with the scikit-learn API (pipelines, CatBoost, LightGBM, XGBoost

[Python-announce] Guppy 3/Heapy 3.1.3

2023-05-13 Thread YiFei Zhu
I am happy to announce Guppy 3 3.1.3 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] Wing Python IDE 9.1 has been released

2023-05-13 Thread Wingware
Wing Python IDE 9.1 has been released.  It adds auto-import and import management, collects and displays code coverage for unit tests, uses coverage data to invalidate test results when code is edited, adds support for Python 3.11, reduces debugger overhead in Python 3.7+, speeds up running

Re: Help on ctypes.POINTER for Python array

2023-05-11 Thread Jason Qian via Python-list
Awesome, thanks! On Thu, May 11, 2023 at 1:47 PM Eryk Sun wrote: > On 5/11/23, Jason Qian via Python-list wrote: > > > > in the Python, I have a array of string > > var_array=["Opt1=DG","Opt1=DG2"] > > I need to call c library and pass var_arra

Re: Help on ctypes.POINTER for Python array

2023-05-11 Thread Eryk Sun
On 5/11/23, Jason Qian via Python-list wrote: > > in the Python, I have a array of string > var_array=["Opt1=DG","Opt1=DG2"] > I need to call c library and pass var_array as parameter > In the argtypes, how do I set up ctypes.POINTER(???) for var_array?

Re: Help on ctypes.POINTER for Python array

2023-05-11 Thread Jim Schwartz
I’m not sure this is the shortest method, but you could set up two python scripts to do the same thing and convert them to c using cython. I wouldn’t be able to read the c scripts, but maybe you could. Maybe someone else has a more direct answer. Sent from my iPhone > On May 11, 2023, at

Help on ctypes.POINTER for Python array

2023-05-11 Thread Jason Qian via Python-list
Hi, Need some help, in the Python, I have a array of string var_array=["Opt1=DG","Opt1=DG2"] I need to call c library and pass var_array as parameter In the argtypes, how do I set up ctypes.POINTER(???) for var_array? func.argtypes=[ctypes.c_void_p,ctypes.c

Re: Python-pickle error

2023-05-09 Thread Tony Flury via Python-list
open('file.pkl', 'rb') as file: number=pickle.load(file) my_unpickeled_object=pickle.loads(my_pickeld_object) print("this is my unpickeled object",{my_unpickeled_object},) but now i get error Traceback (most recent call last): File "C:\Users\lukwi\Desktop\python\tester2.py", li

Re: What do these '=?utf-8?' sequences mean in python?

2023-05-09 Thread Cameron Simpson
ecification: https://datatracker.ietf.org/doc/html/rfc2047 You should reach for jak's suggested email.header suggestion _before_ parsing the subject line. Details: https://docs.python.org/3/library/email.header.html#module-email.header Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: What do these '=?utf-8?' sequences mean in python?

2023-05-08 Thread Dieter Maurer
gt;newstring = oldstring.replace("_", " ") The solution based on `email.Header` proposed by `jak` is better. -- https://mail.python.org/mailman/listinfo/python-list

Re: What do these '=?utf-8?' sequences mean in python?

2023-05-08 Thread Keith Thompson
or XCOM Labs void Void(void) { Void(); } /* The recursive call of the void */ -- https://mail.python.org/mailman/listinfo/python-list

Re: What do these '=?utf-8?' sequences mean in python?

2023-05-08 Thread jak
ng. """ decoded_pairs = email.header.decode_header(s) return "".join(mime_decode_single(d) for d in decoded_pairs) HI, You could also use make_header: from email.header import decode_header, make_header print(make_header(decode_header( subject ))) -- https://mail.python.org/mailman/listinfo/python-list

Re: What do these '=?utf-8?' sequences mean in python?

2023-05-08 Thread Peter Pearson
ot;" decoded_pairs = email.header.decode_header(s) return "".join(mime_decode_single(d) for d in decoded_pairs) -- To email me, substitute nowhere->runbox, invalid->com. -- https://mail.python.org/mailman/listinfo/python-list

Re: What do these '=?utf-8?' sequences mean in python?

2023-05-08 Thread jak
E.) In reality you should also take into account the fact that if the header contains a 'b' instead of a 'q' as a penultimate character, then the rest of the package is converted on the basis64 "=?utf-8?Q?" --> "=?utf-8?B?" -- https://mail.python.org/mailman/listinfo/python-list

What do these '=?utf-8?' sequences mean in python?

2023-05-08 Thread Chris Green
I'm having a real hard time trying to do anything to a string (?) returned by mailbox.MaildirMessage.get(). I'm extracting the Subject: header from a message and, if I write what it returns to a log file using the python logging module what I see in the log file (when the Subject: has non-ASCII

Re: What do these '=?utf-8?' sequences mean in python?

2023-05-08 Thread Chris Green
accented characters in the Subject: the string is "Waterways Continental Europe" so I can't easily change the search text. I guess I could use an RE.) -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

Re: What do these '=?utf-8?' sequences mean in python?

2023-05-08 Thread Chris Green
· -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] [Release] Kedro 0.18.8 

2023-05-04 Thread Juan Luis Cano via Python-announce-list
Hi all, It fills us with astronomical joy to announce the release of Kedro 0.18.8!  Kedro is an open source, opinionated Python framework for creating reproducible, maintainable and modular data science code. It reduces technical debt when moving prototypes into production by providing

[Python-announce] PyConZA 2023 - Call for Submissions

2023-05-03 Thread Neil Muller
ster at https://za.pycon.org/ and submit your proposal, following the instructions at https://za.pycon.org/talks/how-to-submit-a-talk/ . We have a number of tracks available, including: Data Science, Teaching and Learning with Python, Web, Scientific Computing, Testing and Other (which includes all t

[Python-announce] Numba 0.57.0 and llvmlite 0.40.0

2023-05-03 Thread Siu Kwan Lam
Dear all, Numba 0.57.0 and llvmlite 0.40.0 have been released. Please see our Discourse for more information: https://numba.discourse.group/t/ann-numba-0-57-0-and-llvmlite-0-40-0/1914 Best, Siu ___ Python-announce-list mailing list -- python

[Python-announce] [RELEASE] pyspread 2.2.1

2023-05-01 Thread Martin Manns
on and written in the programming language Python. The goal of pyspread is to be the most pythonic spreadsheet application. Pyspread is free software. It is released under the GPL v3. Project website: https://pyspread.gitlab.io/ Download page: https://pypi.org/project/pyspread/ Signature

[Python-announce] Nikola v8.2.4 is out!

2023-04-30 Thread Chris Warrick
On behalf of the Nikola team, I am pleased to announce the immediate availability of Nikola v8.2.4. This release comes with some new features and a handful of bug fixes. What is Nikola? === Nikola is a static site and blog generator, written in Python. It can use Mako and Jinja2

[Python-announce] Python 3.10 for iPads and iPhone

2023-04-30 Thread Ruud van der Ham
This is to announce that Pythonista 3.4 is released. This it the successor of the Pythonista 3.3 app that was not maintained for years and still on Python 3.6 with outdate packages. Now you can enjoy a very nice IDE/debugger with modern Python with many popular packages, like numpy, pandas

Re: How to 'ignore' an error in Python?

2023-04-29 Thread Phu Sam
hes the error, that's it - it stops there. The error is considered > handled at that point. If that's NOT what you want, you have a few > options. Firstly, you can simply not have a matching except clause. > That's why we like to be as precise as possible with our catching; > every other type of

Re: How to 'ignore' an error in Python?

2023-04-29 Thread Chris Angelico
s to fail later (if someone creates a file called "logs" and then you try to create "logs/2023-04-30.txt", you get an error at that point). I have also known situations where this is a deliberate way to suppress something (like a cache or log directory). ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: How to 'ignore' an error in Python?

2023-04-29 Thread jak
e EAFP way but just to evaluate the possibility that it is not a folder. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to 'ignore' an error in Python?

2023-04-29 Thread Chris Angelico
the exception flies by, but doesn't catch it (it also happens at the end of the block for other reasons). And thirdly, you can reraise the exception: try: os.mkdir(dirname) except FileExistsError: print("Hey, that one already exists!") raise That's going to keep the exception going just as if it hadn't been caught, but with the additional handling. But if you don't do any of those things, the exception is deemed to be handled, and it goes no further. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: How to 'ignore' an error in Python?

2023-04-29 Thread jak
in the 'except' branch, I would make sure that if the name exists it is a folder and not a file. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to 'ignore' an error in Python?

2023-04-29 Thread Chris Green
s is exactly what it is > there for. > It was rather using os.mekedirs() to create a single directory that seemed wrong. If os.mkdir() had exist_ok=True than that would have been the obvious way to do it. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

Re: How to 'ignore' an error in Python?

2023-04-29 Thread Chris Green
only want to make one is inviting problems of > being subtly wrong, where it creates too many levels of directory. > Personally, I would just do: > > try: os.mkdir(dirname) > except FileExistsError: pass > > and not try to handle anything else at all. > Yes, OP here, that seems to me to be the 'right' way to do it. Basically I hadn't realised the effect of pass in a try block and that's why I asked the question originally. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

Re: How to 'ignore' an error in Python?

2023-04-29 Thread Greg Ewing via Python-list
/listinfo/python-list

RE: How to 'ignore' an error in Python?

2023-04-29 Thread avi.e.gross
require a loss of simplicity. -Original Message- From: Python-list On Behalf Of Kushal Kumaran Sent: Saturday, April 29, 2023 12:19 AM To: python-list@python.org Subject: Re: How to 'ignore' an error in Python? On Fri, Apr 28 2023 at 04:55:41 PM, Chris Green wrote: > I'm sure

Re: How to 'ignore' an error in Python?

2023-04-28 Thread Chris Angelico
xist_ok=True feel wrong to you? This is exactly what it is > there for. > Using mkdirs when you only want to make one is inviting problems of being subtly wrong, where it creates too many levels of directory. Personally, I would just do: try: os.mkdir(dirname) except FileExistsError: pass and not try to handle anything else at all. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: How to 'ignore' an error in Python?

2023-04-28 Thread Kushal Kumaran
e os.mkdirs() with exist_ok=True but again > that feels vaguely wrong somehow. > Why does exist_ok=True feel wrong to you? This is exactly what it is there for. -- regards, kushal -- https://mail.python.org/mailman/listinfo/python-list

Re: How to 'ignore' an error in Python?

2023-04-28 Thread Cameron Simpson
of similar situations. Because of this I usually am prepared to make a missing final component with mkdir(), but not a potentially deep path with makedirs(). Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: How to 'ignore' an error in Python?

2023-04-28 Thread Cameron Simpson
... not all directories made ... 2 notes on the above: - catching Exception, not a bare except (which catches a rather broader suit of things) - reporting the other exception Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] foffinf 0.1 released

2023-04-28 Thread Facundo Batista
hon.org.ar/ Twitter: @facundobatista _______ 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-announce-list.python.org/ Member add

Re: How to 'ignore' an error in Python?

2023-04-28 Thread Mats Wichmann
Python just raise whatever other error it found, then great! -- https://mail.python.org/mailman/listinfo/python-list

Re: How to 'ignore' an error in Python?

2023-04-28 Thread MRAB
import suppress for dirname in listofdirs: with suppress(FileExistsError): os.mkdir(dirname) -- https://mail.python.org/mailman/listinfo/python-list

Re: How to 'ignore' an error in Python?

2023-04-28 Thread Mats Wichmann
t can I do here" -- https://mail.python.org/mailman/listinfo/python-list

How to 'ignore' an error in Python?

2023-04-28 Thread Chris Green
suppose I could test if the directory exists before the os.mkdir() but again that feels a bit clumsy somehow. I suppose also I could use os.mkdirs() with exist_ok=True but again that feels vaguely wrong somehow. -- Chris Green · -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] [Python announce] dictf 1.0.0 released!

2023-04-25 Thread Eric Mendes
into a DataFrame, with the same pandas syntax. Already on pypi: https://pypi.org/project/dictf/ It enables you to use dicts as shown below: ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to python-announce-list-le

[Python-announce] python-oracledb 1.3.1

2023-04-24 Thread Anthony Tuininga
What is python-oracledb? python-oracledb is a Python extension module that enables access to Oracle Database for Python and conforms to the Python database API 2.0 specifications with a number of enhancements. This module is intended to eventually replace cx_Oracle. Where do I get it? https

Re: Python curses missing form library?

2023-04-24 Thread Grant Edwards
On 2023-04-24, Alan Gauld wrote: > On 24/04/2023 17:26, Grant Edwards wrote: >> Does the Python curses support in the standard library not include >> support for the curses form library? It seems to include support for >> the panel library, but I can't find any mention of th

Re: Python curses missing form library?

2023-04-24 Thread Alan Gauld
On 24/04/2023 17:26, Grant Edwards wrote: > Does the Python curses support in the standard library not include > support for the curses form library? It seems to include support for > the panel library, but I can't find any mention of the form library. I don't believe so. If you are

Python curses missing form library?

2023-04-24 Thread Grant Edwards
Does the Python curses support in the standard library not include support for the curses form library? It seems to include support for the panel library, but I can't find any mention of the form library. I see in the docs that menu support is still missing. :/ -- Grant -- https

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-24 Thread jak
Ralf M. ha scritto: Am 22.04.2023 um 03:27 schrieb Greg Ewing via Python-list: How are you invoking your script? Presumably you have some code in your embedding application that takes a script path and runs it. Instead of putting the code to update sys.path into every script, the embedding

[Python-announce] [RELEASE] pyspread 2.2

2023-04-23 Thread Martin Manns
== Pyspread is a non-traditional spreadsheet that is based on and written in the programming language Python. The goal of pyspread is to be the most pythonic spreadsheet application. Pyspread is free software. It is released under the GPL v3. Project website: https://pyspread.gitlab.io

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-23 Thread Mats Wichmann
On 4/22/23 16:04, Ralf M. wrote: Am 21.04.2023 um 18:07 schrieb Thomas Passin: On 4/20/2023 5:47 PM, Ralf M. wrote: Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so th

[Python-announce] NumPy 1.24.3 released

2023-04-22 Thread Charles R Harris
Hi All, On behalf of the NumPy team, I'm pleased to announce the release of NumPy 1.24.3. NumPy 1.24.3 is a maintenance release that fixes bugs and regressions discovered after the 1.24.2 release. The Python versions supported by this release are 3.8-3.11 Note that 32 bit wheels are only

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-22 Thread Greg Ewing via Python-list
into a package named after the script, e.g. put the local modules used by foo.py into a package called foolib. -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-22 Thread Thomas Passin
On 4/22/2023 5:45 PM, Ralf M. wrote: Am 22.04.2023 um 03:27 schrieb Greg Ewing via Python-list: How are you invoking your script? Presumably you have some code in your embedding application that takes a script path and runs it. Instead of putting the code to update sys.path into every script

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-22 Thread Ralf M.
Am 21.04.2023 um 18:07 schrieb Thomas Passin: On 4/20/2023 5:47 PM, Ralf M. wrote: Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so that "import my_local_module" find

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-22 Thread Ralf M.
Am 22.04.2023 um 03:27 schrieb Greg Ewing via Python-list: How are you invoking your script? Presumably you have some code in your embedding application that takes a script path and runs it. Instead of putting the code to update sys.path into every script, the embedding application could do

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-22 Thread Ralf M.
Am 21.04.2023 um 17:31 schrieb Mats Wichmann: On 4/20/23 15:47, Ralf M. wrote: Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so that "import my_local_module" find

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-21 Thread Greg Ewing via Python-list
://mail.python.org/mailman/listinfo/python-list

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-21 Thread Thomas Passin
On 4/20/2023 5:47 PM, Ralf M. wrote: Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so that "import my_local_module" finds my_local_module.py in the directory of t

Re: Incomplete sys.path with embeddable python (Windows)!?

2023-04-21 Thread Mats Wichmann
On 4/20/23 15:47, Ralf M. wrote: Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so that "import my_local_module" finds my_local_module.py in the directory of the scrip

Incomplete sys.path with embeddable python (Windows)!?

2023-04-21 Thread Ralf M.
Hello, when I run a script with a "normally" installed python, the directory the script resides in is automatically added as first element to sys.path, so that "import my_local_module" finds my_local_module.py in the directory of the script. However, when I

ipaddress (was: Re: for a 'good python')

2023-04-21 Thread Simon Ward
a simple system that works.—John Gall -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] PyEmpaq 0.3 released

2023-04-19 Thread Facundo Batista
I'm happy to announce the release of PyEmpaq 0.3. PyEmpaq is a simple but powerful Python packer to run any project with any virtualenv dependencies anywhwere. With PyEmpaq you can convert any Python project into a single `.pyz` file with all the project's content packed inside. That single

Re: Python-pickle error

2023-04-19 Thread Thomas Passin
') as file: number=pickle.load(file) my_unpickeled_object=pickle.loads(my_pickeld_object) print("this is my unpickeled object",{my_unpickeled_object},) but now i get error Traceback (most recent call last): File "C:\Users\lukwi\Desktop\python\tester2.py", line 5, in

Python-pickle error

2023-04-19 Thread charles wiewiora
.load(file) my_unpickeled_object=pickle.loads(my_pickeld_object) print("this is my unpickeled object",{my_unpickeled_object},) but now i get error Traceback (most recent call last): File "C:\Users\lukwi\Desktop\python\tester2.py", line 5, in with open('file.pkl', 'rb') as file: FileNotFoun

[Python-announce] Pygments 2.15.1 released

2023-04-18 Thread Matthäus G . Chajdas
I'm happy to announce the release of Pygments 2.15.1. Pygments is a generic syntax highlighter written in Python. Pygments 2.15.1 provides two important fixes. Please have a look at the changelog <https://pygments.org/docs/changelog/>. Report bugs and feature requests in the issue t

[Python-announce] [Python announce] unexpected-isaves 2.1.2 released!

2023-04-17 Thread Eric Mendes
reatly appreciated. Anyway, everything should be working now. Source code: https://github.com/Eric-Mendes/unexpected-isaves PyPI: https://pypi.org/project/unexpected-isaves/ ___ Python-announce-list mailing list -- python-announce-list@python.org To unsub

[Python-announce] ANN: psutil 5.9.5 released

2023-04-17 Thread Giampaolo Rodola'
Hello all, I'm glad to announce the release of psutil 5.9.5: 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] attrs 23.1.0

2023-04-16 Thread Hynek Schlawack
tps://www.attrs.org/> (alternatively, see <https://github.com/python-attrs/attrs/releases/> for a richer-formatted version of the following) Backwards-incompatible Changes - Python 3.6 has been dropped and packag

Re: Weak Type Ability for Python

2023-04-15 Thread Peter J. Holzer
t make more sense than reality. |_|_) || | | | h...@hjp.at |-- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" signature.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list

Re: Weak Type Ability for Python

2023-04-15 Thread Peter J. Holzer
nce the desktop in any way, quite impressive especially > for its time. I've yearned for that ever since, in various systems, > although I'm aware that it would make quite a mess of Python if you > could say "class EnhancedInt(int): ..." and then "any time you would > cre

RE: Weak Type Ability for Python

2023-04-14 Thread avi.e.gross
nd similar requests, or even a comma separated grouping of requests that returns a list of the answers? It now is not so deterministic-looking to a linter. But normal Python allows and often encourages such polymorphism so is this anything new? What I envisioned is a tad closer to

[Python-announce] pytest-7.3.1

2023-04-14 Thread Bruno Oliveira
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-announce

Re: Weak Type Ability for Python

2023-04-14 Thread Dennis Lee Bieber
- anything that could not be parsed as a REXX statement was automatically sent to whatever the current ADDRESS host happened to be. -- https://mail.python.org/mailman/listinfo/python-list

[Python-announce] PyCA cryptography 40.0.2 released

2023-04-14 Thread Paul Kehrer
PyCA cryptography 40.0.2 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.6

Re: Weak Type Ability for Python

2023-04-14 Thread Chris Angelico
sages to things. Well, the ADDRESS command truly lets you send messages, so.... that means REXX is the most object oriented language there is, right? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Weak Type Ability for Python

2023-04-14 Thread Dennis Lee Bieber
r?). * Granted, that IPC relied upon the fact that all applications shared one memory space, so there wasn't the overhead of copying data structures from sending application to the port's linked list and thence to the receiving application. -- https://mail.python.org/mailman/listinfo/python-list

Re: Weak Type Ability for Python

2023-04-14 Thread Dennis Lee Bieber
On Thu, 13 Apr 2023 20:53:21 -0400, Richard Damon declaimed the following: >On 4/13/23 7:25 PM, avi.e.gr...@gmail.com wrote: >> s there any concept in Python of storing information in some way, such as >> text, and implementing various ideas or interfaces so that you can query if

RE: RE: Weak Type Ability for Python

2023-04-13 Thread avi.e.gross
of what is stored for any shoppers wondering if you are compatible with their needs. -Original Message- From: Python-list On Behalf Of 2qdxy4rzwzuui...@potatochowder.com Sent: Thursday, April 13, 2023 10:27 PM To: python-list@python.org Subject: Re: RE: Weak Type Ability for Python On 2023-04

Re: Weak Type Ability for Python

2023-04-13 Thread Thomas Passin
://mail.python.org/mailman/listinfo/python-list

Re: RE: Weak Type Ability for Python

2023-04-13 Thread 2QdxY4RzWzUUiLuE
that simply adds various access methods to the class used and also > provides a way to query if it supports some interfaces. Python dicts act mostly like hash tables. All by themselves, hash tables are unordered (and in return for giving up that order, you get O(1) access to an item if y

RE: RE: Weak Type Ability for Python

2023-04-13 Thread avi.e.gross
nk we have discussed the general algorithm for how Python tries to resolve something like "obj1 op obj2" and not just for the plus operator. There are quite a few dunder methods that cover many such operators. What I was thinking about was a bit of a twist on that algorithm. I did somethi

Re: Weak Type Ability for Python

2023-04-13 Thread Greg Ewing via Python-list
. There are Clifford algebras, Lie algebras, ... Not sure what any of those should do to strings, though. :-) -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Weak Type Ability for Python

2023-04-13 Thread Richard Damon
On 4/13/23 7:25 PM, avi.e.gr...@gmail.com wrote: s there any concept in Python of storing information in some way, such as text, and implementing various ideas or interfaces so that you can query if the contents are willing and able to be viewed in one of many other ways? There is nothing

Re: Weak Type Ability for Python

2023-04-13 Thread Peter J. Holzer
re.asc Description: PGP signature -- https://mail.python.org/mailman/listinfo/python-list

Re: Weak Type Ability for Python

2023-04-13 Thread Chris Angelico
. This brilliant technique allowed anyone to enhance the desktop in any way, quite impressive especially for its time. I've yearned for that ever since, in various systems, although I'm aware that it would make quite a mess of Python if you could say "class EnhancedInt(int): ..." and the

Re: RE: Weak Type Ability for Python

2023-04-13 Thread Alan Gauld
On 14/04/2023 00:25, avi.e.gr...@gmail.com wrote: > Is there any concept in Python of storing information in some way, such as > text, and implementing various ideas or interfaces so that you can query if > the contents are willing and able to be viewed in one of many other ways? Are yo

Re: Weak Type Ability for Python

2023-04-13 Thread Alan Gauld
om/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

RE: Weak Type Ability for Python

2023-04-13 Thread avi.e.gross
Can I bring a part of this discussion a bit closer to Python? I stipulate that quite a few languages, including fairly early ones, treated text often as numbers. Ultimately, much of programming is about taking in text and often segregating parts into various buckets either explicitly

Re: Weak Type Ability for Python

2023-04-13 Thread gene heskett
to make sense. JavaScript guesses. What a nightmare. Java acts like Python and will forbid it on type grounds (at compile time with Java, being staticly typed). REXX -- where everything is considered a string until it needs to be something else. REXX-ooRexx_5.0.0(MT)_64-bit 6.05 23 Dec

Re: Weak Type Ability for Python

2023-04-13 Thread Chris Angelico
ss > >>for > >>you and make such conversions when it seems to make sense. > > > >JavaScript guesses. What a nightmare. Java acts like Python and will > >forbid it on type grounds (at compile time with Java, being staticly > >typed). > > > >

Re: Weak Type Ability for Python

2023-04-13 Thread Chris Angelico
On Fri, 14 Apr 2023 at 02:55, wrote: > And, yes, you can use these critters in python. You can add a quaternion > type to numpy for example. Yep, octonions too. Hang on hang on hang on. I can multiply a string by an onion? The possibilities of script-controlled culinary arts just

Re: Weak Type Ability for Python

2023-04-13 Thread Thomas Passin
+ 3) form. But for using a calculator, I much prefer RPN. -- https://mail.python.org/mailman/listinfo/python-list

RE: Weak Type Ability for Python

2023-04-13 Thread avi.e.gross
perhaps the ones who like Reverse Polish Notation and insist on 5 4 3 + * instead. -Original Message- From: Python-list On Behalf Of aapost Sent: Thursday, April 13, 2023 12:28 PM To: python-list@python.org Subject: Re: Weak Type Ability for Python On 4/12/23 04:03, Ali Mohseni Roodbari wrote

Re: Embedded python is not 100% stable

2023-04-13 Thread aapost
On 4/13/23 03:40, Guenther Sohler wrote: Attachments are stripped, so they weren't included. Glancing at the branch and the 2 lines you mentioned. You have a comment with a link for python 2.3 documentation. Yet you have python 3.10 code included elsewhere (and openscad itself requires

Re: Weak Type Ability for Python

2023-04-13 Thread 2QdxY4RzWzUUiLuE
https://mail.python.org/mailman/listinfo/python-list

Re: for a 'good python'

2023-04-13 Thread Dennis Lee Bieber
to skim the contents of the standard library documentation every couple of releases. ipaddress came in with Python 3.3 https://docs.python.org/3.10/library/index.html (I dropped down to 3.10 just as that is the version I have installed; some 3rd party modules weren't ready when I tried to insta

Re: Weak Type Ability for Python

2023-04-13 Thread aapost
On 4/12/23 04:03, Ali Mohseni Roodbari wrote: > On 4/13/23 07:50, Stefan Ram wrote: >If tomorrow Python would allow "string+int" and "int+string" >in the sense of "string+str(int)" and "str(int)+string", >what harm would be there?

Re: for a 'good python'

2023-04-13 Thread jak
to skim the contents of the standard library documentation every couple of releases. ipaddress came in with Python 3.3 https://docs.python.org/3.10/library/index.html (I dropped down to 3.10 just as that is the version I have installed; some 3rd party modules weren't ready when I tried to install

Re: Weak Type Ability for Python

2023-04-13 Thread Dennis Lee Bieber
> >JavaScript guesses. What a nightmare. Java acts like Python and will >forbid it on type grounds (at compile time with Java, being staticly >typed). > REXX -- where everything is considered a string until it needs to be something else. REXX-ooRexx_5.0.0(MT)_64-bit 6.0

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