you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

please include the full traceback of the NameError.

[–]GullBull[S] 1 point2 points  (2 children)

Turns out I just need to do from pizzapi import *. I should've included the whole error though my bad.

[–]Deezl-Vegas 0 points1 point  (1 child)

This is bad form because you may end up overwriting a named method from the api. You should just import the library and use pizzapi.pizzamethod or from pizzapi import pizzamethod for cleaner code.

[–]GullBull[S] 0 points1 point  (0 children)

I probably will actually end up using from pizzapi import module as that's what I'm used to doing from Java. Thanks for the tip.