If you’re looking for previous proposals, Python Help is a great place to check, as many Ideas threads have been moved there.
Moving Ideas threads to Help is standard practice. I don’t think adding another general/discussion category will make the current situation any easier.
Example: Search results for 'propos #users' - Discussions on Python.org
Results:
Fun thought. We have string concatenation, so what about the opposite?
I was brainstorming how str -= x could work, and considering the purpose of .[l|r]strip(x) which would handle removing characters from any/either side, I think the syntax should equal the same as str.replace(x, ''), as there’s currently no shortcut for it. I would accept either the exact same, or kind of like strip(x) where x is interpreted as a list of characters and not a full match.
Have you considered using a dictionary instead?
Also I don’t think you’d ever want to actually call namedtuple inside of a loop, the performance of that will probably be pretty bad.
Python MRO is a linear ordering of the base classes that is used to decide the order in which inherited methods are overridden. As mentioned in @guido ’s blog :
Basically, the idea behind C3 is that if you write down all of the ordering rules imposed by inheritance relationships in a complex class hierarchy, the algorithm will determine a monotonic ordering of the classes that satisfies all of them. If such an ordering can not be determined, the algorithm will fail.
Unfortunately, sometimes ev…
This is somewhat me thinking out loud of a slightly different way of removing the GIL. Whilst avoiding some of the downsides mentioned for @colesbury 's PEP703 .
I’m trying to propose a design, not an implementation. There are many ways of building something like this. These things are typically complex in reality, and require many hours to get working well.
Also worth noting that post this from a random guy rambling on about performance, without any code or numbers backing him up. I somewhat w…
in Python,
“A” + “V” = “AV”
but “AV” - “V” produces an error.
seems like in a world of NLP, python should have more
string operators (-. +, etc)
example
xyz = “the guy is a turkey”
current python = just another immutable string
strings like xyz shoud have
methods like
'xyz.author"
xyz.date
xyz.true.opinion
etc
just my two cents…
thank you,
James
Hi all, Is it feasible to add a bound parameter to ParamSpec? Sometimes, manually specifying the bound can greatly reduce the difficulty of using ParamSpec.
For example, I have a base class defined like this:
class IntView:
def __init__(self, init_data: int):
...
Then I want to inherit IntView like this:
class RangedIntView(IntView):
def __init__(self, init_data: int, min_value: int, max_value: int):
super().__init__(init_data)
self._min_value = min_value
…