Python module question

Questions about programming languages and debugging
Post Reply
User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

Python module question

Post by lilrofl »

The Prequel:
I recently started reading Rapid GUI Programming with Python and QT: The Definitive Guide to PyQt Programming (I know... any more words in the title and I'd have to break for lunch lol)

Anyhow, the book is great, it starts with an overview of the Python language, and then moves into the incorporation of Qt (which is where I decided to start GUI programming based on a recommendation from Mabs (thanks by the way)

The Problem:
I started an exercise to build a calculator, it contained

Code: Select all

from _future_ import division
Which later it bugged as module not installed... which later I found out you don't have to include that line any more as _future_ has been added to the core language... not important.

Is there an easy way to find out what modules I have installed already?

On searching I found a lot of them, so many actually it's hard to distinguish at this point what I could use, and what is a waste of space considering my ability level. Maybe a quick plug for some useful ones would be awesome as well.

thanks =)

User avatar
leetnigga
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 447
Joined: 28 Jul 2009, 16:00
14

Post by leetnigga »

Assuming a default Python 2.6 installation: Global Module Index

You know it's __future__,right? Not _future_.

User avatar
Pong18
Cyber Mushroom
Cyber Mushroom
Posts: 357
Joined: 20 May 2009, 16:00
14
Location: Manila, Philippines
Contact:

Post by Pong18 »

ya that's supposed to be two(2) underscores not one(1). hihi ^^,
Image

User avatar
lilrofl
Siliconoclast
Siliconoclast
Posts: 1363
Joined: 28 Jan 2009, 17:00
15
Location: California, USA
Contact:

Post by lilrofl »

nope, didn't know that

EDIT:
Yep... that fixed my problem perfectly.

Thanks =)

Post Reply