Chris and Oleg (sp?), please control your tempers; your latter posts added
nothing useful to the conversation.
(Apologies for the late reply, I was out of town.)
--
~Ethan~
Moderator
--
https://mail.python.org/mailman/listinfo/python-list
at they aren't experts on, while the latter are :)
Well, since this is a Python list, perhaps you could make sure your advice is also Python appropriate. I appreciate
diversions into general areas and learning new things, but your general claims were untrue when it comes to Python
specific
This thread is derailing.
Please consider it closed.
--
~Ethan~
Moderator
--
https://mail.python.org/mailman/listinfo/python-list
but I can say that Stefan's posts are discarded automatically since they are opposed
to their words showing up on the list.
--
~Ethan~
Moderator
--
https://mail.python.org/mailman/listinfo/python-list
; an inevitable consequence of its current "popularity".
The move came because of the vitriol directed at the BDFL (and others) with every major (and sometimes minor) change to
Python.
Every action has consequences, and in this case the consequence was that we are
now run by committ
staller tools
> * Increased requirement for vetting and validation
> * Shortening shelf life of existing projects
>
> But hey, this is just letting off steam.
No need to hit if you're just venting.
> Nobody cares.
Yeah, people do.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
to belittle in order to enjoy justice.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
uot;
Sounds like we need somebody to write an NNTP server for the stdlib! :-)
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
Hey, everyone!
I believe the original question has been answered, and tempers seem to be flaring in sub-threads, so let's call this
thread done and move on to other interesting topics.
Thank you for your support!
--
~Ethan~
Moderator
--
https://mail.python.org/mailman/listinfo/python-list
e that I try to post a message to the list. I get
a response from
> the python bot stating that I need to register before I can post to the list.
As I said, I
> already did that, and I was confirmed. I still have the email here.
Well, this post made it through fine.
--
~Ethan~
--
https
nged.
I know there are good explanations for how variables and names work in Python, but I couldn't find any at the moment.
Sorry.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 3/5/24 16:49, MRAB via Python-list wrote:
> On 2024-03-06 00:24, Ethan Furman via Python-list wrote:
>> On 3/5/24 16:06, Chano Fucks via Python-list wrote:
>>
>>> [image: image.png]
>>
>> The image is of MS-Windows with the python installation window
On 3/5/24 16:06, Chano Fucks via Python-list wrote:
[image: image.png]
The image is of MS-Windows with the python installation window of "Repair Successful". Hopefully somebody better at
explaining that problem can take it from here...
--
~Ethan~
--
https://mail.python.o
Personal attacks are not welcome nor tolerated. Please be constructive when
engaging with the community.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
This thread is no longer being useful, and is now closed.
--
~Ethan~
Moderator
--
https://mail.python.org/mailman/listinfo/python-list
same.
When writing classes and subclasses, I use `obj.__class__`, `isinstance` otherwise, and rarely `type(obj)` (and then
mostly with `tuple`s, as they're special).
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
important matters."
>
> Somehow I don't think we would get along very well. I'm a little on the
> opinionated side myself.
I personally cannot stand Black. It feels like every major choice it makes (and some minor ones) are exactly the
opposite of the choice I make.
--
~Ethan~
--
Greetings, all!
As has been stated, Hen Hanna is posting through Google Groups, over which the
Python List moderators have zero control.
The only thing we can do, and which has now been done, is not allow those posts
in to the Python List.
--
~Ethan~
Moderator
--
https://mail.python.org
eceived no emails from the list. To my
knowledge I have done nothing to warrant
> removal.
>
> Can you please check and see what I need to do to start receiving emails once
more.
It doesn't look like that address is subscribed. I tried inviting you, let's
see if that works.
-
This thread has run its course and seems to now be generating more heat than
light.
It is now closed (at least on the Python List side).
Thank you everyone for your participation and understanding.
--
~Ethan~
Moderator
--
https://mail.python.org/mailman/listinfo/python-list
uth
[okay, falling for the troll bait]
Those two things do not say the same thing; further, in Python at least, and depending on the situation, aesthetics may
/not/ be more important than efficiency.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
o
mutate `arr1` instead of reassigning it:
arr1[:] = [10, 11, 12]
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
ng.
It's not a bug, it's a change in behaviour to bring it more into line with
other regex implementations in other languages.
The new behavior makes no sense to me, but better to be consistent with the other regex engines than not -- I still get
thrown off by vim's regex.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
Happy Pythoning, and happy holidays!
--
~Ethan~
Moderator
--
https://mail.python.org/mailman/listinfo/python-list
ould be the right answer.
>
> Is this worth a bug report?
I would say yes.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
/archives/list/async-...@python.org/
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 4/22/22 12:36, Michael F. Stemper wrote:
Tells caller whether or not a permutation is even.
Determines if a permutation is even. (Alternative is that it's odd.)
Returns True if permutation is even, False if it is odd.
Third option.
--
~Ethan~
--
https://mail.python.org/ma
ctice, not for what should happen in theory. ;-)
And of course, no one using enums that way means we can change how that bit
works fairly easily.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
atures are
discussed). This particular desire has come up in the past, so you'll need to do some more research (i.e. find the
previous threads on python-ideas) so you can answer objections already raised, or find new data supporting/refuting
previous arguments.
--
~Ethan~
--
https://mail.pyt
https://arstechnica.com/information-technology/2022/03/linux-has-been-bitten-by-its-most-high-severity-vulnerability-in-years/
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 3/3/22 5:32 PM, Rob Cliffe via Python-list wrote:
> There are three types of programmer: those that can count, and those that
can't.
Actually, there are 10 types of programmer: those that can count in binary,
and those that can't.
--
~Ethan~
--
https://mail.python.org/mai
useful, people would have to be diligent about setting them,
which, quite frankly, I don't see happening -- some don't even set a useful subject line.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
it wouldn't surprise me if some
>> sort of caching proxy system is deployed.
>
> Or the internet acquires a new protocol that's designed
> for very-long-latency connections.
RocketNet -- a massive store-and-forward protocol. ;-)
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
a very good name. So if someone has a good idea for a
> name …
>
> The class starts a thread where every by the user defined interval a
> by the user define function is called.
How about `timed_repeat` or `repeat_timer`?
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
other options didn't make it back to
the PEP. Nevertheless, I recall the decision to start simple, and expand later if needed.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 9/26/21 10:34 AM, Grant Edwards wrote:
> On 2021-09-26, Ethan Furman wrote:
>> I am unaware of a change in the newsgroup <--> mailing list policy,
>> and other newsgroup posts were coming through last week (it's been a
>> light weekend).
>
> We're n
gmane stop sending posts).
I am unaware of a change in the newsgroup <--> mailing list policy, and other newsgroup posts were coming through last
week (it's been a light weekend).
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
t:
https://nestedtext.org/en/stable/
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
PEP: 663
Title: Improving and Standardizing Enum str(), repr(), and format() behaviors
Version: $Revision$
Last-Modified: $Date$
Author: Ethan Furman
Discussions-To: python-...@python.org
Status: Draft
Type: Informational
Content-Type: text/x-rst
Created: 23-Feb-2013
Python-Version: 3.11
Post
From Tim Peters:
> `secrets` is just a wrapper around `random.SystemRandom`, so the
> presence or absence of `secrets` doesn't matter.
>
> As to SystemRandom, all answers depend on the quality of the platform
> os.urandom(), which Python has no control over. See my answer here,
> and the comments
then in my code:
logger.info('failure converting %r to %r', target_bmp_file, target_png_file)
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
th a file if you wanted to.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
of just
returning the eggs object
> (as it would for any other attribute) it will call the __get__ method (since
we were doing lookup)
> and return whatever that method returns.
Feel free to use that however you like. :)
--
~Ethan~
[1] https://stackoverflow.com/a/7377013/208880
--
https://mail.python.org/mailman/listinfo/python-list
hen the programmer thinks it's appropriate... but
I have no idea what to call it.
Any nominations?
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
Here's a question on SO about typing, enum, and ABC:
https://stackoverflow.com/q/67610562/208880
No answers so far.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
tion that
> Mailman 3 cannot be used while a gateway is involved is untrue:
> https://mailman.readthedocs.io/en/latest/src/mailman/handlers/docs/nntp.html
Interesting. I know the NNTP gateway wasn't there a couple years ago, and I do not see a date as to when that became
possible.
converting to multiple files simply because there is so much (10k lines for me, YMMV).
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 5/5/21 7:39 AM, Peter Otten wrote:
> On 05/05/2021 16:10, Ethan Furman wrote:
>> I see your messages twice (occasionally with other posters as well). I have
no idea how to fix it. :(
>
> OK, I'll try another option from Thunderbird's context menu: Followup to
appen with all my messages? I'm reading the mailing list via
> news.gmaneio.
I see your messages twice (occasionally with other posters as well). I have no
idea how to fix it. :(
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 4/19/21 11:22 AM, Unbreakable Disease wrote:
[offensive drivel]
List, my apologies -- not sure how that one got through.
--
~Ethan~
Python List Moderator
--
https://mail.python.org/mailman/listinfo/python-list
o, Jaime
# keyed
`hello, %(a_name)s` % {'a_name': 'Ethan'} # hello, Ethan
What you are seeing is the keyed version. So, if the module had, for example:
version = 1.3
author = 'GvR'
date = '2021-04-12'
and the doc string was
__
lass__` is there to provide metaclass power without needing a
full-blown metaclass.
I vote elegant hack. :)
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
during testing and QA, turn off double-checks for production for best
performance possible.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
black background is only for the text-editing portion which
leaves large portions of screen real-estate with a bright background, which is
hard on my eyes.
So, what's the state-of-the-art with regards to editors supporting dark color
themes?
TIA.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 2/25/21 7:06 PM, Joe Pfeiffer wrote:
Ethan Furman writes:
Like I said, at this moment I don't have a good example, only an awareness that
such a thing could exist and I don't know the name for it (if it has one).
So far I have seen that there are even fewer good use-cases th
On 2/24/21 1:54 PM, 2qdxy4rzwzuui...@potatochowder.com wrote:
Ethan Furman wrote:
I didn't say it was a good example. ;-) Hopefully it gets the idea across.
Ditto. ;-)
IMO, the whole idea of "my program has two options, and the user has to
specify both or neither," isn&
7;d be two separate mandatory text fields, both
controlled (i.e., enabled or disabled) by one checkbox.)
I didn't say it was a good example. ;-) Hopefully it gets the idea across.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 2/24/21 12:40 PM, Alan Gauld via Python-list wrote:
On 24/02/2021 16:12, Ethan Furman wrote:
I'm looking for a name for a group of options that, when one is specified, all
of them must be specified.
For contrast,
- radio buttons: a group of options where only one can be spec
On 2/24/21 8:28 AM, 2qdxy4rzwzuui...@potatochowder.com wrote:
Entangled?
Hey, I like that one! ;-)
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
dy to describe that concept?
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
I too was expecting users to type:
python my_Script.py!
I'm afraid I have no experience with the above, hopefully somebody else
on the list does.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
are those scripts being run? Microsoft Windows or Unix/Linux/BSD?
Typically, the first line of a script will say which version of Python
is needed. For example, on a *nix type system:
#!/usr/bin/python2
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 2/15/21 2:02 PM, Grant Edwards wrote:
On 2021-02-15, Ben Bacarisse wrote:
You said you used Usenet (and your reply here was via Usenet).
Usenet posts to comp.lang.python don't go to the mailing list (the
"here" that Ethan is talking about). Mails to the list /are/ sent
her
Thank you to those who pointed out this individual to the moderators.
As Mr. Flibble accurately noted, he is not on the mailing list -- so his
posts won't be here either.
--
~Ethan~
Python List Moderator
--
https://mail.python.org/mailman/listinfo/python-list
?
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
math.sqrt(x)
Plus the ** operation ("root = x ** 0.5"), that's now three ways.
Yes, but which of those is obvious?
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
you.
Any time. ;-)
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
list.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 12/16/20 3:08 AM, Peter J. Holzer wrote:
On 2020-12-15 13:07:25 -0800, Ethan Furman wrote:
On 12/15/20 9:07 AM, Mark Polesky via Python-list wrote:
D = {'a':1}
def get_default():
print('Nobody expects this')
return 0
print(D.get('a', get_
ded
default :-)
Yep! That's what defaultdict can do - or if you need more flexibility,
subclass dict and add a __missing__ method.
Or, if the computationally massively expensive call uses potentially
different arguments for each invocation:
some_var = d.get('a') or cme(arg1,
one way to get the behavior
you're looking for is:
D.get('a') or get_default()
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
From: Caleb Gattegno
Date: Fri, Dec 11, 2020 at 5:02 PM
Subject: How to specify JSON parameters in CallBack?
Please can you suggest where should I look for advice on converting a old style web app which vends whole pages of html
with a cgi-bin/python script invoked bypython3 server.py, into one
aving said that,
it looks like datetime.py was so designed. So, if I had a module making extensive use of the datetime contents, and
wasn't using the time module, I would have no problem with "from datetime import *". On the other hand, if datetime was
only a small portion of
On 11/2/20 9:32 AM, Karsten Hilbert wrote:
because .encode() does not operate in-place.
Yeah, none of the string operations do, and it's embarrassing how many times
that still bites me. :-/
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
t. I hate overlapping windows.)
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
s" is right out.
Why is using preferences "right out"? Is that not the user saying where they
want the app to be positioned?
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 10/29/20 11:30 AM, Igor Korot wrote:
If you have any further questions you can contact me directly.
Please do not. By keeping the discussion on the list many people can
participate and learn.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
e's no reason not to allow
it to be created.
Put another way: if ABC is anywhere in a class' parentage, then it is "abstract" -- the only way to tell if
instantiating it is okay is by the presence/absence of abstract pieces in the class.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 9/17/20 10:43 AM, MRAB wrote:
On 2020-09-17 17:47, Ethan Furman wrote:
The only time the parentheses are required for tuple building is when
they would otherwise not be interpreted that way:
They're needed for the empty tuple, which doesn't have a comma.
Ah, right. Thanks.
tend to use both as it makes it stand out a bit more:
>>> still_a_tuple = ('first', )
>>> type(still_a_tuple)
The only time the parentheses are required for tuple building is when
they would otherwise not be interpreted that way:
some_func('first', '
This thread is now closed.
Thank you for your cooperation.
--
~Ethan~
Python List Moderator
--
https://mail.python.org/mailman/listinfo/python-list
,
Unless you know Karen personally, you don't know what her world view is.
Poking holes in arguments or observing what is being said does not
require an opposing world view.
As you yourself said:
The sole relevant
demand should be civility.
Let's make sure we stay that course.
An excellent summary. Thank you.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
ient words.
I have not read S&W myself, and my requests for WS examples have gone
unanswered, so I do not know about the WS aspect.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
]
You can do horrid things like that clear back in Python 2, but the fault
lies with the programmer for misusing the __dunders__.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 7/22/20 2:57 PM, Jeff Linahan wrote:
Subscribing to the mailing list as per the bot's request and resending.
*beep* *whir*
WE ARE NOT
*click* *whi*
A BOT.
*bzzzt*
WE ARE
*bzzzt* *click*
ADVANCED LIFE
*whi*
FORMS
*click*
*beep*
.
--
~eTHAN~
pYTHON lIST mODERATO
because the information is out there, doesn't mean everybody has
seen it.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
, conflated the
names.
Your mistake is to assume that since the author did not make that mistake that
Michael must have made it.
I'm sure somebody will point out what my mistake was.
Can we now drop this subthread?
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 07/02/2020 07:42 PM, Jon Ribbens via Python-list wrote:
She didn't - you did.
Please keep the discourse civil. Petty taunts are not helpful.
--
~Ethan~
Python List Moderator
--
https://mail.python.org/mailman/listinfo/python-list
conflation is going on. I have
asked for links that would support her view as expressed in the commit message,
but haven't yet seen any.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
:-), I would like to formally ask the
Steering Council to answer the following questions.
An issue asking basically the same thing has been created:
https://github.com/python/steering-council/issues/31
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
On 06/05/2020 03:15 PM, MRAB wrote:
On 2020-06-05 22:50, Ethan Furman wrote:
There is no workaround that allows a keyword to be used except as a keyword, other than making it a
string. When faced with this kind of situation myself I use a synonym, like "since", or
a transla
p property names as they are in the json file... is there
a workaround?
There is no workaround that allows a keyword to be used except as a keyword, other than making it a
string. When faced with this kind of situation myself I use a synonym, like "since", or
a translation, like
27;nets already.
According to Kushal's link:
The most interesting thing about Enum members is that they are singletons.
The only time using `==` is necessary is for mixed-Enums, such as IntEnum, and
you need to compare what could be an IntEnum member in code that could be using
actual `int`s.
On 05/19/2020 11:40 AM, Joel Goldstick wrote:
I thought triple quotes are for docstrings?
It's the recommendation, but double and single quotes work just fine, too -- at
least for docstrings that fit an one line.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
https://autoclasstoc.readthedocs.io/en/latest/
This sounds pretty cool! You should also post this on
python-announce-l...@python.org
to reach a wider audience.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
': 'fal...@ibm.com'
}
>>> fname, lname, _ = d
>>> fname, lname
('first_name', 'last_name')
I disagree -- the ordered dict would have to be small (maybe five entries) and
one would have to know the insertion order.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
-time.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
7;s shopping at the grocery store 100 miles away from me is useless.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
least.
--
~Ethan~
--
https://mail.python.org/mailman/listinfo/python-list
1 - 100 of 1942 matches
Mail list logo