24.07.2017 Views

Hacking Gmail

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

214 Part III — Conquering <strong>Gmail</strong><br />

If you are using an RPM-based distribution — Red Hat, Mandrake, or SuSE, for<br />

example — you can get a package’s version number by using rpm. Open a terminal<br />

window, and type the following command:<br />

rpm -q python<br />

This should give a result similar to the following:<br />

python-2.3.0<br />

If the version number is too low, you should download the update from<br />

http://python.org/download/ and follow the instructions there.<br />

If you’re running a DEB-based distribution — Debian or Knoppix, for example —<br />

use apt-cache by opening a terminal and typing the following:<br />

apt-cache show python<br />

Again, this should give a message showing the version number. Go to http://<br />

python.org/download/ if the number is below 2.3.<br />

If you’re not using DEB or RPM, then you need to ask for the version number<br />

from Python directly. Again, open the terminal window, and type python.<br />

Figure 16-1 shows the result.<br />

FIGURE 16-1: Python showing and telling<br />

(This screenshot, the cunning amongst you will have noticed, was done on<br />

an Apple, not a Linux box. For the sake of the Python version, this makes no<br />

difference.)<br />

To exit Python, you have to press Ctrl+D.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!