José
José

Reputation: 1710

Python command print() does not print

I'm trying to debug a script inserting print() commands to see the states of variables. But those commands don't seem to work. When I debug line by line using PyScripter it just skips those lines. I'm using Python 3. The problem is in a method of a class defined in a .py file, called from another .py file. I insert part of the code below.

class BaseGen:
    def duracion(self, rangos, anio, semanas, verificar_ver_py=True):
        print('some string')

The calling line is:

duracion = base.duracion(rangos_parte, anio, semanas)

Upvotes: 1

Views: 257

Answers (1)

José
José

Reputation: 1710

The problem was with PyScripter. I tried the same code on the Python console and it was just fine.

Upvotes: 1

Related Questions