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
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
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
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
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
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
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?
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
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
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
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
gt;newstring = oldstring.replace("_", " ")
The solution based on `email.Header` proposed by `jak` is better.
--
https://mail.python.org/mailman/listinfo/python-list
or XCOM Labs
void Void(void) { Void(); } /* The recursive call of the void */
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
·
--
https://mail.python.org/mailman/listinfo/python-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
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
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
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
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
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
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
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
e EAFP way but just to evaluate the possibility that it is not a
folder.
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
/listinfo/python-list
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
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
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
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
... 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
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
Python just raise whatever other error it found,
then great!
--
https://mail.python.org/mailman/listinfo/python-list
import suppress
for dirname in listofdirs:
with suppress(FileExistsError):
os.mkdir(dirname)
--
https://mail.python.org/mailman/listinfo/python-list
t can I do here"
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
==
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
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
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
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
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
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
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
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
://mail.python.org/mailman/listinfo/python-list
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
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
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
a
simple system that works.—John Gall
--
https://mail.python.org/mailman/listinfo/python-list
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
') 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
.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
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
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
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
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
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
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
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
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
- 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
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
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
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
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
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
://mail.python.org/mailman/listinfo/python-list
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
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
.
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
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.asc
Description: PGP signature
--
https://mail.python.org/mailman/listinfo/python-list
. 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
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
om/photos/alangauldphotos
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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).
> >
>
>
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
+ 3) form. But for using a
calculator, I much prefer RPN.
--
https://mail.python.org/mailman/listinfo/python-list
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
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
https://mail.python.org/mailman/listinfo/python-list
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
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?
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
>
>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
501 - 600 of 154371 matches
Mail list logo