How to get back an overridden python built-in function? [duplicate]

Just delete the override:

del print

This deletes the name from the globals() dictionary, letting search fall back to the built-ins.

You can always refer directly to the built-in via the __builtin__ module as well:

import __builtin__

__builtin__.print('Printing with the original built-in')

In Python 3, the module has been renamed to builtins.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)