Page 97 -
P. 97

sharing your code




                                                 Mark: Take a look at this, guys…the nester module has been
                         Cool.There’s a new      updated on PyPI.
                         version of “nester” on   Bob: Version 1.1.0…
                         PyPI. Take a look.
                                                 Laura: I wonder what’s changed?
                                                 Mark: It still works with nested lists of lists, but now you can see the
                                                 nested structure on screen, which I think is pretty cool.

                                                 Laura: And useful. I’ve been waiting for that feature.
                                                 Bob: Eh…OK…but how do I upgrade my existing local copy?
                                                 Mark: Just follow the same steps as when you downloaded and
                                                 installed nester from PyPI the first time.
                                                 Bob: So I download the package file, unpack it, and ask setup.py to
                                                 install it into my Python for me?

                                                 Mark: Yes. It couldn’t be any easier.
                                                 Laura: And what about my existing version of nester; what
                                                 happens to that “old” version?

                                                 Bob: Yeah…do I have two nester modules now?
                                                 Mark: No. When you use setup.py to install the latest version
                                                 it becomes the current version and effectively replaces the previous
                                                 module, which was the 1.0.0 release.
            Bob      Mark       Laura            Bob: And PyPI knows to give you the latest version of the module, too,

                                                 right?
                                                 Mark: Yes, when you surf the PyPI website and search for nester,
                                                 you are always provided with the latest version of the module.

                                                 Laura: Well, I use this module all the time and I’ve been waiting for
                                                 this feature. I think I’ll update right away.
                                                 Mark: I’ve already upgraded mine, and it works a treat.

                                                 Bob: Yeah, I use it a lot, too, so I guess I’ll keep my system up to date
                                                 and install the latest version. It’s probably not a good idea to rely on
                                                 out-of-date software, right?
                                                 Mark: I’d say. And, there’s nothing quite like progress.
                                                 Laura: Catch you later, guys, I’ve got work to do.
                                                 Bob: Me, too. I’m off to PyPI to grab the latest nester and install
                                                 it into my local copy of Python. I’ll give it a quick test to confirm all is
                                                 OK.

                                                 Mark: Later, dudes…

                                                                                       you are here 4    61
   92   93   94   95   96   97   98   99   100   101   102