Nп/п : 90 из 100
 От   : Stefan Ram                          2:5075/128        30 сен 23 19:30:41
 К    : Karsten Hilbert                                       30 сен 23 22:33:01
 Тема : Re: type annotation vs working code
----------------------------------------------------------------------------------
                                                                                 
@MSGID: <names-20230930201603@ram.dialup.fu-berlin.de>
50b7cb0e
@REPLY:
<mailman.371.1696100442.23016.python-list@python.org> 2377407b
@REPLYADDR Stefan Ram <ram@zedat.fu-berlin.de>
@REPLYTO 2:5075/128 Stefan Ram
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<names-20230930201603@ram.dialup.fu-berlin.de>
@RFC-References: <ZRhwWN29i3mskxEL@hermes.hilbert.loc>
<mailman.371.1696100442.23016.python-list@python.org>
@TZUTC: 0000
@TID: FIDOGATE-5.12-ge4e8b94
Karsten Hilbert <Karsten.Hilbert@gmx.net> writes:
>Where`s the error in my thinking (or code) ?

  Boiling down your code to the source file

name:bool
print( name )

  , the "name:bool" specifies the type of the name, but does
  not actually bind the name to a value nor does it require the
  name to have a value, so one gets an error only on the second
  line. Maybe this "feature" is somewhat underdocumented.


--- FIDOGATE 5.12-ge4e8b94
 * Origin: Stefan Ram (2:5075/128)
SEEN-BY: 50/109 301/1 467/888 4500/1 5000/111
5001/100 5005/49 5020/715 830
SEEN-BY: 5020/848 1042 4441 12000 5030/49 1081
5054/8 5061/133 5075/128
SEEN-BY: 5080/102 5083/1 444
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх