Re: Newbie Question: Can't multiply sequence by non-int of type 'str'

2009-01-31 Thread Robert Kern
On 2009-01-31 18:19, Paulo Repreza wrote: Hi, I'm just learning the very basics of python and I ran into this problem in version 3.0/3000: >>>x = input("x: ") x: 36 >>> y = input("y: ") y: 42 >>> print (x*y) Traceback (most recent call last): File "", line 1, in print (x*y) TypeError: can't m

Re: Newbie Question: Can't multiply sequence by non-int of type 'str'

2009-01-31 Thread Paulo Repreza
Hi, Thanks for your reply. It worked. Paulo Repreza On Sat, Jan 31, 2009 at 4:25 PM, Robert Kern wrote: > On 2009-01-31 18:19, Paulo Repreza wrote: > >> Hi, >> I'm just learning the very basics of python and I ran into this problem >> in version 3.0/3000: >> >>>x = input("x: ") >> x: 36 >> >

Re: receive and react to MIDI input

2009-01-31 Thread r
Sorry i gave you the wrong module, try PMIDI for python 2.5 (win32.exe): http://sourceforge.net/project/showfiles.php?group_id=65529&package_id=106729 Also try this page near the bottom under "MIDI Mania" for more http://wiki.python.org/moin/PythonInMusic -- http://mail.python.org/mailman/listinfo

install modules for specific python version

2009-01-31 Thread Brendan Miller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have several version of python running side by side on my ubuntu install (2.5,2.6,3.0). I'm installing a module with a setup.py script, in this case logilab-common, so that I can get pylint going. However, I need to install into python 2.6, but by d

Re: install modules for specific python version

2009-01-31 Thread Robert Kern
On 2009-01-31 19:00, Brendan Miller wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have several version of python running side by side on my ubuntu install (2.5,2.6,3.0). I'm installing a module with a setup.py script, in this case logilab-common, so that I can get pylint going. However

Re: install modules for specific python version

2009-01-31 Thread John Machin
On Feb 1, 12:00 pm, Brendan Miller wrote: > -BEGIN PGP SIGNED MESSAGE- > I have several version of python running side by side on my ubuntu > install (2.5,2.6,3.0). > > I'm installing a module with a setup.py script, in this case > logilab-common, so that I can get pylint going. However,

Re: Import Replacement

2009-01-31 Thread Gabriel Genellina
En Sat, 31 Jan 2009 18:22:54 -0200, Gary Herron escribió: James Pruitt wrote: Imagine there are two files horse.py and buffalo.py. horse.py is imported by another file rider.py. Is it possible to make it so that under certain circumstances possibly based on an environment variable or somethi

Re: Where to host a (Python) project?

2009-01-31 Thread Jesse Noller
On Sat, Jan 31, 2009 at 4:30 PM, andrew cooke wrote: > On Jan 31, 4:50 pm, "Giampaolo Rodola'" wrote: >> Google Code. >> >> --- Giampaolohttp://code.google.com/p/pyftpdlib > > thanks - that's a nice example. i'm a bit concerned about the whole > google corporation thing, but reading through the

Re: help me python

2009-01-31 Thread John Machin
On Feb 1, 11:09 am, andrew cooke wrote: > On Jan 31, 5:36 pm, aolsu...@gmail.com wrote: > > > C:\Python26>vnc.py > > Traceback (most recent call last): > >   File "C:\Python26\vnc.py", line 4, in > >     import PyD3DES > > ImportError: DLL load failed: The specified module could not be found. > >

Re: Where to host a (Python) project?

2009-01-31 Thread Roy H. Han
I really like WebFaction for web-based Python projects. It's a paid web-hosting service, though. What I like is how they always have the most up-to-date Python packages and frameworks using one-click installers. On Sat, Jan 31, 2009 at 4:30 PM, andrew cooke wrote: > On Jan 31, 4:50 pm, "Giampao

Re: help me python

2009-01-31 Thread Robert Kern
On 2009-01-31 19:52, John Machin wrote: On Feb 1, 11:09 am, andrew cooke wrote: On Jan 31, 5:36 pm, aolsu...@gmail.com wrote: C:\Python26>vnc.py Traceback (most recent call last): File "C:\Python26\vnc.py", line 4, in import PyD3DES ImportError: DLL load failed: The specified module c

Re: Does the Python community really follow the philospy of "Community Matters?"

2009-01-31 Thread r
On Jan 31, 7:24 pm, John Machin wrote: > A most munificent malapropism! Sherman's goat must be serene with > entropy!! Who say's George Bush did't have anything to offer :). He was the decider after all. -- http://mail.python.org/mailman/listinfo/python-list

Re: is python Object oriented??

2009-01-31 Thread Michael Torrie
thmpsn@gmail.com wrote: > More interestingly, though, most compilers translate C and C++ code to > assembler first. Does that mean that you can do object-oriented > programming, generic programming, and procedural programming in > assembler? > > Answer: No, but you can probably -- very clumsily

Re: Tutorial on working with Excel files in Python (without COM and cross platform!) at PyConUS 2009

2009-01-31 Thread Glenn Linderman
On approximately 1/27/2009 5:19 PM, came the following characters from the keyboard of Chris Withers: Hi All, Too many people in the Python community think the only way to work with Excel files in Python is using COM on Windows. To try and correct this, I'm giving a tutorial at this year's PyCo

importlib: what is it, and why is it important?

2009-01-31 Thread excord80
Regarding this blog post: http://sayspy.blogspot.com/2009/01/importlib-is-now-in-python-31.html When I use the ``import foo`` statement at the top of my program, I get a module imported. python has a search path it follows, finds the module, and makes it available to my program. Works nice. :) S

Re: importlib: what is it, and why is it important?

2009-01-31 Thread Benjamin Peterson
excord80 gmail.com> writes: > > Regarding this blog post: http://sayspy.blogspot.com/2009/01/importlib-is-now-in-python-31.html Brett has made many other blog posts about his work on importlib. You might try examining those. > > So, could someone explain what importlib exactly is, and why thi

Re: is python Object oriented??

2009-01-31 Thread David Bolen
thmpsn@gmail.com writes: > I don't know how you would do it in C# (or Java for that matter). > > In C++ you can play with pointers to "get at" some memory location > somewhere in the object. The only portable way to know the exact > location between the beginning of the object and the desired

Re: Searching a file for multiple strings (PS)

2009-01-31 Thread Shawn Milochik
On Sat, Jan 31, 2009 at 3:00 PM, Tim Chase wrote: >>> I'm fairly new with python and am trying to build a fairly simple >>> search script. Ultimately, I'm wanting to search a directory of files >>> for multiple user inputted keywords. I've already written a script >>> that can search for a singl

RE: nth root

2009-01-31 Thread Tim Roberts
Actually, all I'm interested in is whether the 100 digit numbers have an exact integral root, or not. At the moment, because of accuracy concerns, I'm doing something like for root in powersp: nroot = round(bignum**(1.0/root))

Embedding numpy works once, but not twice??

2009-01-31 Thread Deepak Chandran
I have a program in which I have successfully embedded Python. Now, I want to include NumPy as well (and other modules). I am able to import numpy once. Then I close the python console in my program and then re-open it. When I try to import numpy for a second time, the program crashes. Below is a s

Re: nth root

2009-01-31 Thread Paul Rubin
"Tim Roberts" writes: > Actually, all I'm interested in is whether the 100 digit numbers > have an exact integral root, or not. At the moment, because of > accuracy concerns, I'm doing something like > > for root in powersp: > nroot = round(bignum

Re: Searching a file for multiple strings (PS)

2009-01-31 Thread John Machin
On Feb 1, 3:39 pm, Shawn Milochik wrote: > Not to discourage the use of Python, but it seems that fgrep with the > -f flag already does exactly what you want. If you're on Windows, you > can get the Windows version of fgrep here: http://unxutils.sourceforge.net/ That URL is antique and a dead en

RE: nth root

2009-01-31 Thread Tim Roberts
Paul, Yes, very good, on all counts. Many thanks. Tim From: Paul Rubin [mailto:"http://phr.cx"@NOSPAM.invalid] Sent: Sun 01-Feb-09 3:53 PM To: python-list@python.org Subject: Re: nth root "Tim Roberts" writes: > Actually, all I'm interested in is whethe

Re: nth root

2009-01-31 Thread Paul Rubin
"Tim Roberts" writes: > for root in powersp: > nroot = round(bignum**(1.0/root)) > if bignum==long(nroot)**root: > . > which is probably very inefficient

Re: Embedding numpy works once, but not twice??

2009-01-31 Thread David Cournapeau
On Sun, Feb 1, 2009 at 2:47 PM, Deepak Chandran wrote: > I have a program in which I have successfully embedded Python. Now, I want > to include NumPy as well (and other modules). I am able to import numpy > once. Then I close the python console in my program and then re-open it. > When I try to i

PyNutButter BETA 1.0.0 - Automates CSV data Importation into any website http/https and/or mysql database

2009-01-31 Thread alex goretoy
Introducing PynutButter BETA 1.0.0 Automates csv data importation into any website. Or your money back. Programs like this idea of a program I have here cost $2500. Pynutbutter is opensource. You can use the code anyway you want. As long as I get my credit where it is due. I've worked on this proj

Re: Embedding numpy works once, but not twice??

2009-01-31 Thread r
> Embedding numpy works once, but not twice?? That's what she said! -- http://mail.python.org/mailman/listinfo/python-list

Re: socket.unbind or socket.unlisten? - socket.error: (48, 'Address already in use')

2009-01-31 Thread Laszlo Nagy
8<-- ... Setting the SO_REUSEADDR flag on POSIX fixes this problem (don't set it on Windows, though). Why not? I have been merrily setting it, and I have not noticed anything weird. (yet) Please see my original post. I specifically stated that I d

what IDE is the best to write python?

2009-01-31 Thread mcheun...@hotmail.com
Hi all what IDE is the best to write python? thanks from Peter (mcheun...@hotmail.com) -- http://mail.python.org/mailman/listinfo/python-list

Re: is python Object oriented??

2009-01-31 Thread Marc 'BlackJack' Rintsch
On Sat, 31 Jan 2009 15:28:14 -0800, thmpsn.m.k wrote: > On Jan 31, 2:27 pm, Christian Heimes wrote: >> Do you honestly believe that C++'s private members are really private? >> Privateness is only enforced during parsing time. Nobody can stop you >> from messing around with header files or memory

<    1   2