Book a Demo

Author Topic: Modify Python Code Import (support Async before def)  (Read 2857 times)

edb

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Modify Python Code Import (support Async before def)
« on: December 15, 2020, 06:50:00 pm »
Hi

I'm looking to change the Python code import in order that it recognises the async keyword before the function 'def' keyword - has anybody done this? What do I need to do?

Many thanks
/Ed

$dec=%REPLACE(opTag:"decorators","@","\n@")%
%TRIM($dec)%
%PI=" "%
$params = %list="Parameter" @separator=", "%
def
%PI=""%
%if opScope == "Private"%
__
%endIf%
%opName%
($params)
%if opReturnType != ""%
 -> %opReturnType%
%endIf%
:

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Modify Python Code Import (support Async before def)
« Reply #1 on: January 11, 2021, 08:42:09 am »
The import isn't user customizable. If you send in a support request they should be able to sure that EA supports that language construct in future versions. If you're really lucky they may already have addressed the issue and could send you an MDG technology file to add that handling.