#2678·brython

Remove logs to JS console from production build

Author: quinton-ashleyCreated Apr 27, 2026Updated Apr 27, 2026

Running this:

python
import traceback 

Outputs this log to the JS console.

method from func w-o $infos {class: {…}, bases: Array(1), mro: Array(1), name: 'GenericAlias', qualname: 'GenericAlias', …}$factory: ƒ (origin_class,items)$is_class: true$subclasses: [{…}]args: {class: {…}, doc: undefined, $type: undefined, fset: undefined, fget: ƒ, …}bases: [{…}]call: ƒ (self,...args)class: {class: {…}, bases: Array(1), mro: Array(1), name: 'type', qualname: 'type', …}eq: ƒ (self,other)getitem: ƒ (self,item)module: "types"mro: [{…}]mro_entries: ƒ (self)name: "GenericAlias"new: ƒ (origin_class,items)or: ƒ ()origin: {class: {…}, doc: undefined, $type: undefined, fset: undefined, fget: ƒ, …}parameters: {class: {…}, doc: undefined, $type: undefined, fset: undefined, fget: ƒ, …}qualname: "GenericAlias"repr: ƒ (self)type_params: {class: {…}, doc: undefined, $type: undefined, fset: undefined, fget: ƒ, …}[[Prototype]]: Object all ƒ (){try{return callable.apply(null,arguments)}catch(exc){$B.set_inum(inum);throw exc}}

That shouldn't happen in the production build.

Thanks for all your work on Brython! It's awesome!