On the Internet
? Wikipedia is a good source
? StackOverflow
? Can be hard to judge whether you should understand something
? Be prepared to read what does not make sense now
? It might make sense later
? But be prepared to move on - there is lots of rubbish out there
Use the material
? Many of you are getting stuck with broken code
? Read the error messages
? Here statements are really good
? Change your code carefully and thoughtfully
The Coursework
? What the coursework is
? How you have to submit
NESS Submissions
? Plenty of time left to submit!
? Can submit more than once
? Rigid timing – please submit early
Modules
? So far, you have written code in one place
? That’s okay for small programs
? But becomes unwieldly later on
? Python provides a module system to split things up
? Some of the terminology overlaps with other usages
Modules and Packages
? A module consists of a set of functions and objects
? Defined in a single file
? Related modules can be grouped into packages
? These are all in the same directory
? This usage of package is different the package we have seen earlier
? Mostly, package means “a package on PyPI”
? This kind of terminology collision is unfortunate, but not really anyone’s fault.
Modules
? There is an important motivation beyond a neat set of files
? Functions should be sensibly named
? But they all share the same name space
? The names would clash
? We need a way to disambiguate