New In Python 3.12: Type Statement

New In Python 3.12: Type Statement

Indently

7 месяцев назад

12,594 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Yousef Srour
Yousef Srour - 27.10.2023 00:24

Thanks 😊

Ответить
dora lok
dora lok - 20.10.2023 18:15

This looks too cpp, I still perfer the colon syntax

Ответить
Adam Fakes
Adam Fakes - 19.10.2023 23:40

I love your videos really well constructed and great content. Though am I missing something, Why does everyone want explicit typing in Python, the point is not to. I love using 25 * "_" to make lines. types break this idea and more.

Ответить
Sara Carvalho
Sara Carvalho - 18.10.2023 02:37

It is so much cleaner and really simple to use 🤩

Ответить
David Ioffe
David Ioffe - 17.10.2023 22:18

Var : type = value ...

Ответить
David Mateo Barbosa Monsalve
David Mateo Barbosa Monsalve - 17.10.2023 21:46

you forgot about the bound with the type parameter like:
type MyIntegerSeq[T: int] = Sequence[T]

Ответить
Martin Swinkels
Martin Swinkels - 17.10.2023 21:16

I hope the IntOrStr type is a joke. Right?

Ответить
Arsngrobg
Arsngrobg - 17.10.2023 17:11

I am SO glad we can now reference class types before they are defined. You don't know how much I got annoyed at the fact that it wasn't possible in previous versions of Python.

Ответить
abdullah said
abdullah said - 17.10.2023 16:35

explain more of generic types plz as you didn't give some examples😢, thx bro.

Ответить
ASHISH KUMAWAT
ASHISH KUMAWAT - 17.10.2023 16:10

Typescript entered the chat

Ответить
TheCreatorrr
TheCreatorrr - 17.10.2023 15:43

I wish i could update to 3.12 but the library I heavily depend on doesn't work on 3.12

Ответить
Carberra
Carberra - 17.10.2023 15:35

I completely missed this when I was doing my research on 3.12! This is SO much nicer than the old system in so many ways, definitely long overdue.

Ответить
flamendless
flamendless - 17.10.2023 14:42

They should have used another keyword imo. Type is already a function

Ответить
Kunal Soni
Kunal Soni - 17.10.2023 13:49

Excited to use it :)

Ответить
Ahmet
Ahmet - 17.10.2023 13:32

so basically typedef from c?

Ответить
FireSnake
FireSnake - 17.10.2023 12:53

nice, clean and fast to type out, that's what we like about python (and all the libs :D) --> good change

Ответить
Soroush MasoomBabaei
Soroush MasoomBabaei - 17.10.2023 12:13

I would like to try that out!

Ответить