On 25/03/2024 01.56, Loris Bennett wrote:
Grant Edwards writes:
On 2024-03-22, Loris Bennett via Python-list wrote:
Yes, I was mistakenly thinking that the popping the element would
leave me with the dict minus the popped key-value pair.
It does.
Indeed, but I was thinking in the
On 2024-03-30 17:58:08 +, Alan Gauld via Python-list wrote:
> On 30/03/2024 07:04, Greg Ewing via Python-list wrote:
> > On 30/03/24 7:21 pm, HenHanna wrote:
> >> https://xkcd.com/1306/
> >> what does SIGIL mean?
> >
> > I t
On 2024-03-31 12:27:34 -0600, Mats Wichmann via Python-list wrote:
> On 3/30/24 10:31, MRAB via Python-list wrote:
> > On 2024-03-30 11:25, Skip Montanaro via Python-list wrote:
> > > > > https://xkcd.com/1306/
> > > > > what does
ly:
print("something_to_be_done_at_the_end_of_this_function()")
--
Pieter van Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
--
https://mail.python.org/mailman/listinfo/python-list
ta', 'epsilon', 'zeta', 'eta', 'theta']
>>> find_e(l)
'epsilon'
>>> l = ['The','fan-jet','airline']
>>> find_e(l)
Traceback (most recent call last):
File "", line 1, in
File "", line 2, in find_e
IndexError: list index out of range
>>>
--
Michael F. Stemper
If it isn't running programs and it isn't fusing atoms, it's just bending space.
--
https://mail.python.org/mailman/listinfo/python-list
appening that this SO question is about.
regards,
Klaas
Previously asked here:
https://stackoverflow.com/questions/78270044/how-to-get-insight-in-the-relations-between-tracebacks-of-exceptions-in-an-excep
--
https://mail.python.org/mailman/listinfo/python-list
pip may be pointed to another python version. try to remove other python
versions and re install pip
Regards,
*Sravan Chitikesi*
AWS Solutions Architect - Associate
On Mon, Apr 8, 2024 at 10:58 PM Wenyong Wei via Python-list <
python-list@python.org> wrote:
>
> Dear Sir/Madam,
&g
>
Mauritius
On Tue, Apr 9, 2024 at 11:18 PM Thomas Wouters via Python-list <
python-list@python.org> wrote:
> *It’s time to eclipse the Python 3.11.9 release with two releases*, one of
> which is the *very last alpha release of Python 3.13*:
> <
> https://discuss.pytho
On 2024-05-02 16:34:38 +0200, Loris Bennett via Python-list wrote:
> r...@zedat.fu-berlin.de (Stefan Ram) writes:
> > Me (indented by 2) and the chatbot (flush left). Lines lengths > 72!
>
> Is there a name for this kind of indentation, i.e. the stuff you are
> writing
modules? If there are any differences, I would
really appreciate any comments on this.
Regards,
Dmitry Popov
Lemont, IL
USA
--
https://mail.python.org/mailman/listinfo/python-list
Thank you!
From: Python-list on behalf of
Greg Ewing via Python-list
Sent: Wednesday, May 8, 2024 3:56 AM
To: python-list@python.org
Subject: Re: Use of statement 'global' in scripts.
On 8/05/24 1: 32 pm, Popov, Dmitry Yu wrote: > The stat
What would be the easiest way to learn which version of NumPy I have with my
Anaconda distribution?
--
https://mail.python.org/mailman/listinfo/python-list
Thank you.
From: Larry Martell
Sent: Wednesday, May 15, 2024 1:55 PM
To: Popov, Dmitry Yu
Cc: Popov, Dmitry Yu via Python-list
Subject: Re: Version of NymPy
On Wed, May 15, 2024 at 2: 43 PM Popov, Dmitry Yu via Python-list wrote: > > What would be the e
On 2024-05-14 16:03:33 -0400, Grant Edwards via Python-list wrote:
> On 2024-05-14, Alan Gauld via Python-list wrote:
> > On 14/05/2024 18:44, Gordinator via Python-list wrote:
> >
> >> I wish to write a terminal emulator in Python. I am a fairly
> >> competent
On 2024-05-14 22:37:17 +0200, Mirko via Python-list wrote:
> Am 14.05.24 um 19:44 schrieb Gordinator via Python-list:
> > I wish to write a terminal emulator in Python. I am a fairly competent
> > Python user, and I wish to try a new project idea. What references can I
> >
On 2024-05-16 19:46:07 +0100, Gordinator via Python-list wrote:
> To be fair, the problem is the fact that they use Windows (but I guess Linux
> users have to deal with venvs, so we're even.
I don't think Linux users have to deal with venvs any more than Windows
users. Maybe e
rtell via Python-list, <
python-list@python.org> wrote:
> I’m at PyCon in Pittsburgh and I’m haven’t an amazing time!
> --
> https://mail.python.org/mailman/listinfo/python-list
>
--
https://mail.python.org/mailman/listinfo/python-list
Two interesting ones:
- Norwegian library: https://fosstodon.org/@osdotsystem/112459312723574625
- One about if Ai will take our jobs, using py to find out and she
concludes it will
On Sat, 18 May 2024, 14:15 Chris Angelico via Python-list, <
python-list@python.org> wrote:
> On Sun, 19
On 2024-05-18 20:12:33 +0200, Piergiorgio Sartor via Python-list wrote:
> On 18/05/2024 20.04, Mats Wichmann wrote:
> > So venvs make managing all that pretty convenient. Dunno why everybody's
> > so down on venvs...
>
> Only people which are *not* using python... :-)
&g
On 2024-05-20 00:26:03 +0200, Roel Schroeven via Python-list wrote:
> Skip Montanaro via Python-list schreef op 20/05/2024 om 0:08:
> > > Modern debian (ubuntu) and fedora block users installing using pip.
> >
> > Even if you're telling it to install in ~/.local? I
Close the SSH client connection
delssh_client
execute()
--
Warm Regards,
Vinode Singh Ujlain | https://www.linkedin.com/in/ujlain/
--
https://mail.python.org/mailman/listinfo/python-list
#x27;m doing something... Stupid!!
***
"When you pass through the waters, I will be with you: and when you pass
through the rivers, they will not sweep over you. When you walk through the
fire, you will not be burned: the flames will not set you ablaze."
Isaiah 43:2
--
https://mail.python.org/mailman/listinfo/python-list
sweep over you. When you walk through the
fire, you will not be burned: the flames will not set you ablaze."
Isaiah 43:2
- Forwarded Message - From: Kevin M. Wilson via Python-list
To: python-list@python.org
Sent: Tuesday, May 28, 2024 at 10:35:23 PM MDTSubject:
Fl
unit.
>
That is a famous Unix task : (Sorry, no Python)
grep -o '\w*' JoyceUlysses.txt | sort | uniq -c | sort -n
--
Pieter van Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-05-30 19:26:37 -0700, HenHanna via Python-list wrote:
> hard to decide what to do with hyphens
>and apostrophes
> (I'd, he's, can't, haven't, A's and B's)
Especially since the same character is used as both an apost
On 2024-05-30 21:47:14 -0700, HenHanna via Python-list wrote:
> [('the', 36225), ('and', 17551), ('of', 16759), ('i', 16696), ('a', 15816),
> ('to', 15722), ('that', 11252), ('in', 10743), ('it', 10
cls()
...
Why have it return anything at all?
Because __repr__ needs to return a str.
Got it. Thanks for clarifying.
--
Michael F. Stemper
87.3% of all statistics are made up by the person giving them.
--
https://mail.python.org/mailman/listinfo/python-list
e it return anything at all?
--
Michael F. Stemper
Indians scattered on dawn's highway bleeding;
Ghosts crowd the young child's fragile eggshell mind.
--
https://mail.python.org/mailman/listinfo/python-list
thook
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-06-14 06:10:06 -, candycanearter07 via Python-list wrote:
> Phil Carmody wrote at 12:01 this Thursday (GMT):
> > I'd say you can't beat the verbosity, or lack thereof of just plain
> > zsh/bash:
> > $ echo {1,2,3,4}0{1,2,3}
> > 101 102 10
ngra Mega Rock: http://www.radiotangra.com
--
https://mail.python.org/mailman/listinfo/python-list
Thank you all for your responses!
On Tue, Jun 18, 2024 at 9:54 PM Jon Ribbens via Python-list
wrote:
>
> datetime.now(ZoneInfo("America/New_York")).isoformat()
Both .isoformat() and "%:z" work.
--
Tangra Mega Rock: http://www.radiotangra.com
--
https://mail.p
On 2024-06-24 01:14:22 +0100, MRAB via Python-list wrote:
> Tkinter in recent versions of Python can handle astral characters, at least
> back to Python 3.8, the oldest I have on my Windows PC.
I just tried modifying
https://docs.python.org/3/library/tkinter.html#a-hello-world-program
to d
On 2024-06-28 18:08:54 +0200, Ulrich Goebel via Python-list wrote:
> a class can have methods, and it can have attributes, which can hold a
> function. Both is well known, of course.
>
> My question: Is there any difference?
>
> The code snipped shows that both do what t
ctors along axis
0: [1,2,3]. Those triples of numbers along axis 1 with the factor of1 or -1
would be relatively prime integers.
Regards,
Dmitry Popov
Argonne, IL
USA
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-07-08 19:09:45 +, Popov, Dmitry Yu via Python-list wrote:
> Does NumPy provide a simple mechanism to identify relatively prime
> integers, i.e. integers which don't have a common factor other than +1
> or -1?
Typing "numpy gcd" into my favourite search en
--
https://mail.python.org/mailman/listinfo/python-list
vely prime integers h,k,l pass to this
block of the code
From: avi.e.gr...@gmail.com
Sent: Thursday, July 11, 2024 1:22 PM
To: Popov, Dmitry Yu ; 'Popov, Dmitry Yu via Python-list'
Subject: RE: Relatively prime integers in NumPy
Дмитрий, You may think you explained what you
Thank you very much, Oscar.
Using the following code looks like a much better solution than my current
Python code indeed.
np.gcd.reduce(np.transpose(a))
or
np.gcd.reduce(a,1)
The next question is how I can generate ndarray of h,k,l indices. This can be
easily done from a Python list by using
Thank you very much. List comprehensions make code much more concise indeed. Do
list comprehensions also improve the speed of calculations?
From: avi.e.gr...@gmail.com
Sent: Friday, July 12, 2024 6:57 PM
To: Popov, Dmitry Yu ; 'Popov, Dmitry Yu via Python
On 2024-08-03 15:17:11 -0500, o1bigtenor via Python-list wrote:
> One of the tools I need to be able to use is esptools - - well in the
> devuan world you need to run that on either Devaun 3 or 5 - - - its just
> not available on devuan 4.
Couldn't you just upgrade to Devuan 5, t
On Aug 13, 2024 15:29, Barry Scott via Python-list
wrote:
> Could not find file 'C:\Users\Charl\OneDrive\Documents\The Sims 4 Mod
Constructor\Projects\MetalMummysMods_Ehlers-DanlosMod\Python\__pycache__\MetalMummysMods_Ehlers-DanlosMod.cpython-37.pyc'.
>
h you: and when you pass
through the rivers, they will not sweep over you. When you walk through the
fire, you will not be burned: the flames will not set you ablaze."
Isaiah 43:2
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-08-22 01:44:35 +, Kevin M. Wilson via Python-list wrote:
> break (Old_MacDonald:23 | name[indx] == 'd', indx = 4), based on the doc spec
> in python.org (https://docs.python.org/3/library/pdb.html#debugger-commands)
> Cell In[1], line 20
> break (Old_Ma
p;& Skype erikmaxfrancis
Of all the supposed virtues, faith must be the most overrated.
-- Christopher Hitchens
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-08-30 19:18:29 +, Simon Connah via Python-list wrote:
> I need to write a script that will take some user input (supplied on a
> website) and then execute a Python script on a host via SSH. I'm
> curious what the best options are for protecting against malicious
>
I also think that list/archive isn't working properly. Very little emails.
Before, this was quite a busy list.
--
https://mail.python.org/mailman/listinfo/python-list
https://mail.python.org/mailman/listinfo/python-list
─┗┓─┃──[chan] 711
┃─┃──┏┛─┗┓──┏┛─┗┓─always open | stay spooky
┗━┛──┗━━━┛──┗━━━┛─https://bitmessage.org
--
https://mail.python.org/mailman/listinfo/python-list
essage.org
--
https://mail.python.org/mailman/listinfo/python-list
Spooky Mart Channel
─┗━━┓─┃──┗┓─┃───┗┓─┃──[chan] 711
┃─┃──┏┛─┗┓──┏┛─┗┓─always open | stay spooky
┗━┛──┗━━━┛──┗━━━┛─https://bitmessage.org
--
https://mail.python.org/mailman/listinfo/python-list
rt Channel
─┗━━┓─┃──┗┓─┃───┗┓─┃──[chan] 711
┃─┃──┏┛─┗┓──┏┛─┗┓─always open | stay spooky
┗━┛──┗━━━┛──┗━━━┛─https://bitmessage.org
--
https://mail.python.org/mailman/listinfo/python-list
in anticipation of your favourable response .
Sent from Mail for Windows 10
--
https://mail.python.org/mailman/listinfo/python-list
hoe moet je python dounlauden
--
https://mail.python.org/mailman/listinfo/python-list
to have them, and can trust to do with them as you
>ask. If you don't trust a recipient, don't hand the files to them.
Can tools like py2exe or cx_freeze also be used to obfuscate python source code?
--
https://mail.python.org/mailman/listinfo/python-list
Why would you not want to share your code with
your colleagues? Embarrassed about unreadable crappy code, perhaps?
--
https://mail.python.org/mailman/listinfo/python-list
osition 0:
>ordinal not in range(128)
>>>
Hi,
I only have Python 2 on my phone, but I am suprised that you (and are able to)
decode unicode strings. What result do you get when you do the following in
Python 3:
Python 2.7.2 (default, Oct 25 2014, 20:52:15)
[GCC 4.9 20140827 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import codecs
>>> codecs.decode(b'€', 'unicode-escape')
u'\xe2\x82\xac'
>>> codecs.encode(u'€', 'unicode-escape')
'\\xe2\\x82\\xac'
>>>
--
https://mail.python.org/mailman/listinfo/python-list
fference that makes.
I use tox, it's available on pypi. Works with virtualenv. There's also detox,
which runs your unittests in parellel, but I have not used that.
--
https://mail.python.org/mailman/listinfo/python-list
record
> reset sum to the new record
>
> Granted -- loading the data into an SQL capable database would make
>this simple...
>
> select account, sum(quantity) from table
> order by account
You could also use pandas. Read the data in a DataFrame, create a groupby
object, use the sum() and the first() methods.
http://pandas.pydata.org/pandas-docs/version/0.15.2/groupby.html
--
https://mail.python.org/mailman/listinfo/python-list
looked for one for about that long, either.
This book by John Shipman is also very good:
http://infohost.nmt.edu/tcc/help/pubs/tkinter/
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
a number of locales (actually a
platform x locale x python version matrix)
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
-
On Sun, May 24, 2015 3:07 PM CEST Mark Lawrence wrote:
>On 24/05/2015 13:50, Albert-Jan Roskam via Python-list wrote:
>>
>> Hi,
>>
>> In Windows I can change the regional settings manually in the control panel.
>> But how do I
-
On Sun, May 24, 2015 4:45 PM CEST Laura Creighton wrote:
>In a message of Sun, 24 May 2015 14:07:37 +0100, Mark Lawrence writes:
>>On 24/05/2015 13:50, Albert-Jan Roskam via Python-list wrote:
>>
>> Hi,
>>
>> In Windows I can change
Metaclasses, abc, asyncio, ast, some of the dunder methods, eg __del__,
weakref, perhaps gc--
https://mail.python.org/mailman/listinfo/python-list
"To run any command at the system shell, simply prefix it with !"
See: https://ipython.org/ipython-doc/dev/interactive/tutorial.html--
https://mail.python.org/mailman/listinfo/python-list
Say in 2014 April to May whole weeks would be 7th, 14th 28th April and May
would be 5th, 12th and 19th. So expecting 7 whole weeks in total
--
https://mail.python.org/mailman/listinfo/python-list
https://mail.python.org/mailman/listinfo/python-list
yes just whole weeks given any two months, I did looked into calendar module
but couldn't find specifically what i need.
--
https://mail.python.org/mailman/listinfo/python-list
How to pretty mathematical formulas in Python? Similar to Mathematica formats.
Are there good packages to prettify mathematica formulas in Python?
--
https://mail.python.org/mailman/listinfo/python-list
/listinfo/python-list
s/XcodeDefault.xctoolchain/usr/bin/clang
failed with exit code 127
I couldn't find anything relating XCode for iPhone related to Python build? I
am using
anaconda Python
Anyone?
--
https://mail.python.org/mailman/listinfo/python-list
elated to Python build? I
> am using
> anaconda Python
>
> Anyone?
Or I need to configure something in Xcode?
--
https://mail.python.org/mailman/listinfo/python-list
Are these available? Any good ones to recommend?
--
https://mail.python.org/mailman/listinfo/python-list
How to do financial data cleaning ? Say I assume a list of 1000 finance series
data in myList = Open, High, Low and Close. For missing Close Price data, What
is best practice to clean data in Python
--
https://mail.python.org/mailman/listinfo/python-list
Mark just looking into Pandas now
Seb
--
https://mail.python.org/mailman/listinfo/python-list
cally it is to clean financial
series data as sometimes there are missing closing price data, misalignment of
some sort etc
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, June 15, 2015 at 11:19:48 AM UTC+1, Mark Lawrence wrote:
> On 15/06/2015 11:12, Sebastian M Cheung via Python-list wrote:
> > How to do financial data cleaning ? Say I assume a list of 1000 finance
> > series data in myList = Open, High, Low and Close. For missing Close
What is the best way to upgrade an existing virtual environment anaconda from
2.7.9 to 2.7.10
--
https://mail.python.org/mailman/listinfo/python-list
ename(sys.executable),
if sys.implementation is not an option
--
https://mail.python.org/mailman/listinfo/python-list
t the file size of very long paths under XP?
2. Is this a bug in Python? I would prefer if Python dealt with the gory
details of Windows' silly behavior.
Regards,
Albert-Jan
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
--
https://mail.python.org/mailman/listinfo/python-list
r ersten Stelle bei
der Suche (welches Sie zwischendurch mal waren, glaube ich).
=== Bugs ===
* Python 3.5 verträgt
a=input('\n')
nicht.
Gruß, Nils
--
Nils-Hero Lindemann
--
https://mail.python.org/mailman/listinfo/python-list
e "r" in a cargo-cult fashion, until I decide which
syntax I prefer. (Is there any reason that one or the other is preferable?)
Thanks for your help,
Mike
--
Michael F. Stemper
Economists have correctly predicted seven of the last three recessions.
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-10-11 17:13:07 -0400, AVI GROSS via Python-list wrote:
> Is there some utility function out there that can be called to show what the
> regular expression you typed in will look like by the time it is ready to be
> used?
I assume that by "ready to be used" you mean the
;\\sout\{", line):
But the lines with that string keep coming through. What is the right syntax to
properly escape the backslash and the left curly bracket?
--
Michael F. Stemper
No animals were harmed in the composition of this message.
--
https://mail.python.org/mailman/listinfo/python-list
Oostrum
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
--
https://mail.python.org/mailman/listinfo/python-list
n T, E
Something along those lines.
Cheers,
Cameron Simpson
--
Dan Ciprus
[ curl -L http://git.io/unix ]
signature.asc
Description: PGP signature
--
https://mail.python.org/mailman/listinfo/python-list
ilar use cases or can offer any advice, it
would be greatly appreciated.
Thank you in advance for your help!
Best regards
Asif Ali
--
https://mail.python.org/mailman/listinfo/python-list
maanJ>
Mauritius
On Mon, Sep 30, 2024 at 8:00 AM Asif Ali Hirekumbi via Python-list <
python-list@python.org> wrote:
> Dear Python Experts,
>
> I am working with the Kenna Application's API to retrieve vulnerability
> data. The API endpoint provides a single, massive JSON
>
> Kind Regards,
>
> Abdur-Rahmaan Janhangeer
> about <https://compileralchemy.github.io/> | blog
> <https://www.pythonkitchen.com>
> github <https://github.com/Abdur-RahmaanJ>
> Mauritius
>
>
> On Mon, Sep 30, 2024 at 8:00 AM Asif Ali Hireku
kasz Langa
--
https://mail.python.org/mailman/listinfo/python-list
On 2024-10-12 08:51:57 -0400, Thomas Passin via Python-list wrote:
> On 10/12/2024 6:59 AM, Peter J. Holzer via Python-list wrote:
> > On 2024-10-11 17:13:07 -0400, AVI GROSS via Python-list wrote:
> > > Is there some utility function out there that can be called to sh
On 2024-10-19 00:15:23 +0200, jak via Python-list wrote:
> Peter J. Holzer ha scritto:
> > As a trivial example, the regular expressions r"\\sout{" and r"\\sout\{"
> > are equivalent (the \ before the { is redundant). Yet
> > re.compile(s).pattern preserv
I'd be interested too :-).
On Thu, Sep 26, 2024 at 03:34:05AM GMT, marc nicole via Python-list wrote:
Could you show a python code example of this?
On Thu, 26 Sept 2024, 03:08 Cameron Simpson, wrote:
On 25Sep2024 22:56, marc nicole wrote:
>How to create a per-thread event in Py
On 2024-11-04 13:02:21 +0100, Loris Bennett via Python-list wrote:
> "Loris Bennett" writes:
> > "Loris Bennett" writes:
> >> Cameron Simpson writes:
> >>> On 01Nov2024 10:10, Loris Bennett wrote:
> >>>>as expected. The n
"quopri" is not a name I'd expect or look for first pass for dealing
with MIME quoted-printable encoding. (Me, being me, I'd probably just
write it for myself if I didn't quickly find it while working with
email.)
Elijah
--
MIME: multipurpose Internet mail extensions
--
https://mail.python.org/mailman/listinfo/python-list
On Oct 24, 2024 17:51, Roland Mueller via Python-list
wrote:
ke 23. lokak. 2024 klo 20.11 Albert-Jan Roskam via Python-list (
python-list@python.org) kirjoitti:
> Today I used chardet.detect in the repl and it returned
windows-1252
> (incorrect, beca
nfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611
https://www.egenix.com/company/contact/
https://www.malemburg.com/
--
https://mail.python.org/mailman/listinfo/python-list
$ python -m chardet FILENAME
FILENAME: MacRoman with confidence 0.7167379080370483
Thanks!
Albert-Jan
--
https://mail.python.org/mailman/listinfo/python-list
contributions to the Python
Software Foundation.
Regards from a chilly Helsinki with snow on the way,
Your release team,
Hugo van Kemenade
Ned Deily
Steve Dower
Łukasz Langa
--
https://mail.python.org/mailman/listinfo/python-list
On 2025-01-04 19:07:57 +, Chris Green via Python-list wrote:
> Stefan Ram wrote:
> > Chris Green wrote or quoted:
> > >From: =?utf-8?B?U8OpYmFzdGllbiBDcmlnbm9u?=
> >
> Is there a simple[r] way to extract just the 'real' address between
> the <>
5601 - 5700 of 5793 matches
Mail list logo