Il 01/04/2021 01:14, Chris Angelico ha scritto:
I think this code makes some sort of argument in the debate about
whether Python has too much flexibility or if it's the best
metaprogramming toolset in the world. I'm not sure which side of the
debate it falls on, though.
class Building:
reso
On Sun, Apr 4, 2021 at 6:26 PM jak wrote:
>
> Il 01/04/2021 01:14, Chris Angelico ha scritto:
> > I think this code makes some sort of argument in the debate about
> > whether Python has too much flexibility or if it's the best
> > metaprogramming toolset in the world. I'm not sure which side of t
>Porque quando se usa formatac,ao de cores, o python nao consegue
>
centralizar dentro da cadeia de 40 caracteres ?
>
>Tive que colocar 54 no parametro pois de alguma forma esta sendo
>considerado os caracteres de dentro do comando \033[m
Python doesn't know there is anything speci
Il 04/04/2021 11:13, Chris Angelico ha scritto:
On Sun, Apr 4, 2021 at 6:26 PM jak wrote:
Il 01/04/2021 01:14, Chris Angelico ha scritto:
I think this code makes some sort of argument in the debate about
whether Python has too much flexibility or if it's the best
metaprogramming toolset in th
Il 04/04/2021 18:18, jak ha scritto:
Il 04/04/2021 11:13, Chris Angelico ha scritto:
On Sun, Apr 4, 2021 at 6:26 PM jak wrote:
Il 01/04/2021 01:14, Chris Angelico ha scritto:
copy / paste corrupted the tabs, sorry
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Apr 5, 2021 at 2:21 AM jak wrote:
>
> I modified your code in the following way:
>
> line 65-66:
> from:
>
> if (qty <= alternate["per_minute"]
> and (costs[Extractor], costs) > (alternate["costs"][Extractor],
> alternate["costs"])
>
> to:
> if (qty <= alternate["per_minu
Hi everyone,
I've created a code to run a 2D mapping using matplotlib from a .csv file.
I've tried to set the maximum color (red) of the scale as 80% of the maximum
value and not as the maximum value of my .csv file.
Does someone know how to modify that?
I've tried different solution but it does
Python 3.9.3 was released two days ago on Friday, April 2nd. It contains
important security content listed below for reference. Unfortunately, it also
introduced an unintentional ABI incompatibility, making some C extensions built
with Python 3.9.0 - 3.9.2 crash with Python 3.9.3 on 32-bit syst
On 03/04/2021 11.25, Marco Ippolito wrote:
>> (a) basic linear presentation:
>>
>> resource = "Oil"
>> time = 1
>> crude = 2
>> residue = 3
>> my_list = "long"
>>
>> (b) using explicit tuples:
>>
>> ( resource, time, crude, residue, my_list ) = ( "Oil", 1, 2, 3, "long" )
>>
>> (c) linear and indent
On 04/04/2021 01.00, Rob Cliffe via Python-list wrote:
>
>
> On 03/04/2021 04:09, 2qdxy4rzwzuui...@potatochowder.com wrote:
>> On 2021-04-03 at 02:41:59 +0100,
>> Rob Cliffe via Python-list wrote:
>>
>>> x1 = 42; y1 = 3; z1 = 10
>>> x2 = 41; y2 = 12; z2 = 9
>>> x3 = 8; y3 = 8
On 5/04/21 11:47 am, dn wrote:
I think I've read that the compiler is smart-enough to realise that the
RHS 'literal-tuples'?'tuple-literals' are being used as a 'mechanism',
and thus the inits are in-lined.
It does indeed seem to do this in some cases:
>>> def g(i, j, k):
... a, b, c = i, j,
On 2021-04-05 at 11:47:53 +1200,
dn via Python-list wrote:
> Did you spot how various contributors identified when they prefer one
> method in a specific situation, but reach for another under differing
> circumstances!
What? Use cases matter? I'm *shocked*. :-/
Of all the methodologies I us
On 4/4/2021 7:40 AM, Skip Montanaro wrote:
Porque quando se usa formatac,ao de cores, o python nao consegue
centralizar dentro da cadeia de 40 caracteres ?
Tive que colocar 54 no parametro pois de alguma forma esta sendo
considerado os caracteres de dentro do comando \033[m
Hi,
I have just begun using pytest at a basic level and I am
seeing behaviour that I do not understand.
My platform is Debian 10.9
There are 3 files involved, contents are provided below, and attached.
- module_1.py passes the test as expected
- module_2.py has a tiny change, and fails unexpecte
On 05Apr2021 13:28, David wrote:
>I have just begun using pytest at a basic level and I am
>seeing behaviour that I do not understand.
>
>My platform is Debian 10.9
>
>There are 3 files involved, contents are provided below, and attached.
>- module_1.py passes the test as expected
>- module_2.py h
On Mon, 5 Apr 2021 at 13:44, Cameron Simpson wrote:
> On 05Apr2021 13:28, David wrote:
> >Can anyone explain why the module_2.py test fails?
> >Is it because stderr during module import is not the same as during test?
> >Is it something to do with mutable defaults?
> >How to investigate this?
>
On 05Apr2021 13:56, David wrote:
>On Mon, 5 Apr 2021 at 13:44, Cameron Simpson wrote:
>> On 05Apr2021 13:28, David wrote:
>> >Can anyone explain why the module_2.py test fails?
>> >Is it because stderr during module import is not the same as during test?
>> >Is it something to do with mutable de
On Mon, 5 Apr 2021 at 14:26, Cameron Simpson wrote:
> On 05Apr2021 13:56, David wrote:
> >Thanks for confirming my suspicions so quickly. What you wrote
> >makes sense, but there are two points that still puzzle me.
> >1) The final line of the pytest failure output seems to shows that
> >pyt
18 matches
Mail list logo