Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2022-06-08 10:32:40

code_asterneedhelp
Member
Registered: 2022-05-18
Posts: 13

use of happen

hello i ve been strugling with the function happen to automatise


and here is the error message

File "fort.1", line 473, in <module>                                         !
   !     c.append(_F(NOEUD=na), NOM_CMP = TEM, VALE = 3)                             !
   !  TypeError: append() takes no keyword arguments                                 !
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


can anyone explain to me  what is the problem?


Attachments:
poutre.comm, Size: 15.73 KiB, Downloads: 60

Offline

#2 2022-06-13 18:46:04

Yves POUSSET
Member
Registered: 2012-03-20
Posts: 9

Re: use of happen

In python "append" takes only one argument (any object to be added into a list) - without "=".

Offline

#3 2022-06-17 08:44:00

code_asterneedhelp
Member
Registered: 2022-05-18
Posts: 13

Re: use of happen

thank you very much

Offline