Author Topic: RC4: defs window is confused by print function  (Read 341 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1182
  • Hero Points: 83
  • Text
RC4: defs window is confused by print function
« on: October 06, 2016, 11:37:14 pm »
I have a class with a print() function.
The defs window doesn't much like this - instead of the function, it shows variables defined inside the function.
If I change the name of the function, then defs is correct.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3592
  • Hero Points: 229
Re: RC4: defs window is confused by print function
« Reply #1 on: October 07, 2016, 01:12:14 pm »
print was a keyword in Python 2.x but it isn't any more. SlickEdit has one parser for handling both versions of Python. In this particular case, removing print as a keyword will fix this for the parser. This will be fixed in a future build. v21 has just gone gold.