looks for me that means that all subclass of list has to maintain the
__isorted__ invariant,
looks like not a backward compatible modification and quite problematic
in case of the invariant broken.
So if I'm correct the design is brittle.
Moreover, that solve only the strict subset of sort case w
Please don't!
Python standard library can of course be improved with such a model, but
the cost overwrite the beneficit by a large margin.
First this proposition is not backward compatible. Basically it will break
any script using such library for the first time if internet is not
available.
Seco
code at compilation while this proposition manipulate code at
execution time (If I am correct, for equivalent code,
the source code manipulation can be made only once by memoizing the delayed
evaluation code)
Xavier Combelle
Le dim. 14 juil. 2019 à 02:53, Guido van Rossum a écrit :
> It's
When thinking about the shuffled thread, it occurred to me that it was
quite easy to pass an iterable and expect the iterable to be shuffled.
but two mentioned implementation are close to success but fail by not
taking this use case in account:
def shuffled1(iterable):
result = iterable[:]
Le 19/09/2016 à 18:25, אלעזר a écrit :
> Many proposals to add something to stdlib are rejected here with the
> suggestion to add such library to pypi first. As noted by someone,
> pypi is not as reachable as stdlib, and one should install that
> package first, which many people don't know how. Ad
Le 20/09/2016 à 12:35, Paul Moore a écrit :
>
> While on the whole subject of this, I should also point out that there
> are a lot of potential issues with installing new packages while a
> Python program is running. They are all low-probability, and easy to
> avoid if you're not doing weird thin
I did not read the thread, but it looks like the insult should be a red
flag and a good time to stop immediately
and baning the troll
Le 10/01/2017 à 22:58, Guido van Rossum a écrit :
> Whether the intent was to annoy or just to provoke, the effect was
> dozens of messages with people falling ove
> Generally speaking, there are two reasons why people may *not* want an
> FMA operation.
> 1. They need their results to be reproducible across
> compilers/platforms. (the most common reason)
>
The reproducibility of floating point calculation is very hard to reach
a good survey of the problem i
x27;s off-topic, and I will try to fight
> the "somebody is *wrong* on the Internet" urge.
>
> Stephan
>
> 2017-01-17 16:04 GMT+01:00 Xavier Combelle <mailto:xavier.combe...@gmail.com>>:
>
>
>> Generally speaking, there are two reasons why peo
I just stumble upon on this precise use case yesterday, I solved it
unsatisfactorily by the following code (inlined)
value = max(lower, value)
value = min(upper, value)
So It's certainly a good thing to have
___
Python-ideas mailing list
Python-ideas@py
I have stumbled upon several time with the following problem.
I delete a module and the .pyc stay around. and by "magic", python still
use the .pyc
A similar error happen (but less often) when by some file system
manipulation the .pyc happen to be
newer than the .py but correspond to an older versi
On 15/08/2016 02:45, Wes Turner wrote:
>
> You can add a `make clean` build step:
>
> pyclean:
> find . -name '*.pyc' -delete
>
> You can delete all .pyc files
>
> - $ find . -name '*.pyc' -delete
> - http://manpages.ubuntu.com/manpages/precise/man1/pyclean.1.html
> #.pyc, .pyo
>
> You can
On 15/08/2016 02:49, Steven D'Aprano wrote:
> On Mon, Aug 15, 2016 at 01:05:47AM +0200, Xavier Combelle wrote:
>> I have stumbled upon several time with the following problem.
>> I delete a module and the .pyc stay around. and by "magic", python still
>> use
On 14/08/2016 16:45, Guido van Rossum wrote:
>
> A uniform interface works well enough for issue trackers. And the
> "freedom of choice" idea doesn't overrule all other concerns.
>
> Maybe we should just start a python-ideas tracker and see who comes.
> There's no reason it couldn't exist in addi
On 25/08/2016 06:28, Ken Kundert wrote:
> All,
> I propose that support for SI scale factors be added to Python. This would
> be very helpful for any program that heavily uses real numbers, such as those
> involved with scientific and engineering computation. There would be two
> primary
> c
On 25/08/2016 22:06, Ken Kundert wrote:
> Here is a fairly typical example that illustrates the usefulness of
> supporting
> SI scale factors and units in Python.
>
> This is simple simulation code that is used to test a current mirror driving
> an
> 100kOhm resistor ...
>
> Here is some simu
On 27/08/2016 10:44, Ken Kundert wrote:
> SPICE, written by Larry Nagel, introduced the concept in 1972. It is a
> circuit
> simulator, and the language involved was a netlist language: basically a list
> of
> components, the nodes there were connected to, and their values. It looked
> like
>
17 matches
Mail list logo