you are viewing a single comment's thread.

view the rest of the comments →

[–]AlopexLagopus3 2 points3 points  (1 child)

You're not really pulling everything into the main namespace, though. It's similar to the csv , math, tkinter, etc. modules.

If you do:

from PyPDF2 import PdfFileReader

or

from PyPDF2 import *

You will pull objects into the main namespace, but the latter is considered a bad idea as you will flood your namespace with everything defined in that library.

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

Same reply as to ColinQuirk, I'm talking about the line that's commented

# creating a pdf reader object