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

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • 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: 6826
  • Hero Points: 526
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.