nikaro

joined 1 year ago
[–] [email protected] 1 points 3 months ago (1 children)

C’est quoi ce dictionnaire anarchiste pour enfants ? Ça m’intéresse :-3

[–] [email protected] 2 points 3 months ago (3 children)

Si on peut éviter de poster de la pub pour les opérateurs c’est cool. Merci.

[–] [email protected] 2 points 3 months ago

Les pâtes au chorizo ! (Si vous avez une idée d’alternative végétarienne au chorizo je suis preneur.)

[–] [email protected] 9 points 4 months ago* (last edited 4 months ago)

Certainly not the best, but codecademy is decent. After that, it should be enough for you to learn more deeply from official Python documentation, actual Python code base (from OSS repositories), and specific subjects from blog articles.

But it will highly depend on what type of content you like. For example some people may prefer books over interactive courses. If this is your case, i think this one is recognized as a very good one: https://learnpythonthehardway.org/python3/

[–] [email protected] 3 points 4 months ago

2200 tonnes économisées pour quel volume ? Parce que c’est 2200 de 1000000… on s’en fout un peu.

[–] [email protected] 2 points 4 months ago

Ça doit faire peut-être 2 ans que j'y joue plus ou moins sérieusement, donc je n'ai pas un trop gros volume d'heures dessus. Je dois à peine atteindre les 1 000 heures de jeu.

[–] [email protected] 2 points 4 months ago (2 children)

Comme le(s) mois précédent(s), et le(s) suivant(s)... Counter-Strike 2 ! Je suis un mono-gamer...

[–] [email protected] 3 points 4 months ago (1 children)

Can you explain it to me like i'm a 10 yrs old (which i'm not 🙄), then?

[–] [email protected] 11 points 4 months ago

Except the ecosystem, how is terraform better than opentofu? As far as i know, currently they still are almost identical.

[–] [email protected] 4 points 1 year ago

Nice! It looks like the best solution out there.

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

Python >= 3.10 version:

def foo(return_more: bool) -> DataType | tuple[DataType, MoreDataType]: ...

But i would definitely avoid to do that if possible. I would maybe do something like this instead:

def foo(return_more: bool) -> tuple[DataType, MoreDataType | None]:
    ...
    if return_more:
        return data, more_data
   return data, None

Or if data is a dict, just update it with more_data:

def foo(return_more: bool) -> dict[str, Any]:
    ...
    if return_more:
        return data.update(more_data)
   return data
[–] [email protected] 1 points 1 year ago

The difference is that with Protocol you can define which method presence you want to ensure. Like i said: custom vs. generic.

view more: ‹ prev next ›