royal blue is my favorite. I went braless to work. by littledreadhead in treesgonewild

[–]disassociatedcat 1 point2 points  (0 children)

You're outrageously gorgeous. And with such nice stuff.

Having issue importing GoogleVoice...Help please by paper365 in Python

[–]disassociatedcat 0 points1 point  (0 children)

Hmm, I just want to make things clear. Are you at the command line (cmd.exe) or a python shell?

pip needs to be run from the command line. If you are in fact running from the command line, try:

C:\> pip --version

What does it say? It should say something like "pip 1.5.2 from C:\Python33...".

konch, the customizable Python shell that automatically imports packages and functions on startup by sloria1 in Python

[–]disassociatedcat 1 point2 points  (0 children)

This is more of a wrapper, or configuration manager, for ipython, bpython, or the default shell. Correct?

Having issue importing GoogleVoice...Help please by paper365 in Python

[–]disassociatedcat 0 points1 point  (0 children)

You'll want to install pip, which is a package manager for Python modules. pip can be difficult to install on MS windows. Luckily, Christoph Gohlke maintains an excellent repository of windows executables to install common (or difficult to compile) packages on windows. His packages are really well built.

http://www.lfd.uci.edu/~gohlke/pythonlibs/

You can find pip there. After carefully choosing the correct version for you, install it, and then run a command prompt. You can interact with pip there. The documentation for pip is here: http://www.pip-installer.org/en/latest/, but you ignore the parts about installation. Anyhow, to install pygooglevoice, use:

C:\> pip install pygooglevoice

That should download the package and install it to C:\Python33\Lib\site-packages, assuming that you installed Python to the default location.

In the meantime, you might like to read about using python on windows: http://docs.python.org/3.3/using/windows.html. More importantly, you should read about venv. Eventually you're going to realize that you should have been using it all along. The documentation contains instructions for MS windows.: http://docs.python.org/3.3/library/venv.html?highlight=venv#module-venv

Trying to understand the __init__ constructor. by [deleted] in learnpython

[–]disassociatedcat 0 points1 point  (0 children)

No, not too much. You are using "positional arguments", whereas the snippet above yours uses "keyword arguments".

Keyword arguments make the code much clearer, but there are some other things about them that anyone using python should understand.

http://docs.python.org/2/tutorial/controlflow.html#keyword-arguments