Re: BASIC vs Python

2004-12-18 Thread It's me
Does this one count? http://hacks.oreilly.com/pub/h/2630 "Jan Dries" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Michael Hoffman wrote: > > Gregor Horvath wrote: > > > > > Or make any given standard python object accessible from MS Excel in 2 > > > minutes. > > > > from win32

Re: Tricks to install/run Python on Windows ?

2004-12-26 Thread It&#x27;s me
; > 3./ So, i've try to use the command line, but i've to manualy change the > code page od my dos box from 437 to 1252 (i'm live in belgium). And > i've not try how to do that permanently ! > > 4./ Before, I had Python23 and it seems that when unstalling it, all

argument type

2004-12-27 Thread It&#x27;s me
A newbie question. How can I tell from within a function whether a particular argument is a sigular type, or a complex type? For instance, in: def abc(arg1) How do I know if arg1 is a single type (like a number), or a list? In C++, you would do it with function overloading. If arg1 is alw

Re: argument type

2004-12-27 Thread It&#x27;s me
:[EMAIL PROTECTED] > Quoth "It's me" <[EMAIL PROTECTED]>: > | A newbie question. > | > | How can I tell from within a function whether a particular argument is a > | sigular type, or a complex type? > | > | For instance, in: > | > | def abc(arg1)

Re: argument type

2004-12-27 Thread It&#x27;s me
) Am I on the right track? "Steven Bethard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's me wrote: > > A newbie question. > > > > How can I tell from within a function whether a particular argument is a > > sigular type, or a co

Re: argument type

2004-12-27 Thread It&#x27;s me
ring 2"],5) > > Am I on the right track? > Let me reiterate that in this case, I know the first and last argument are numbers but I don't know if the second argument is one string, or a bunch of strings. Hence, I would think that I *do* need to use the "look before leap"

Re: argument type

2004-12-27 Thread It&#x27;s me
"Steven Bethard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Yeah, given those constraints, you basically have two options -- check > for list/tuple (as you have above) or check for str/unicode (as I do > below). I personally prefer the latter because it seems much more > l

Re: argument type

2004-12-27 Thread It&#x27;s me
"It's me" <[EMAIL PROTECTED]> wrote in message news:EO6Ad.3296> > I need to look up and see what: > > if not isinstance(arg2, basestring): > > does. > Okay, I got the idea there. Now, what if arg2 is not a string but either a number or a bunc

Re: argument type

2004-12-28 Thread It&#x27;s me
Rocco, your comment noted. Okay, I got what I need to know for this issue. Thanks everybody for your help. I greatly appreciate it. "Rocco Moretti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "It's me" wrote: > > > No, that was ju

A scoping question

2004-12-28 Thread It&#x27;s me
This must be another newbie gotchas. Consider the following silly code, let say I have the following in file1.py: #= import file2 global myBaseClass myBaseClass = file2.BaseClass() myBaseClass.AddChild(file2.NextClass()) #= and in file2.py, I have: #= global

Re: A scoping question

2004-12-28 Thread It&#x27;s me
"Premshree Pillai" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 28 Dec 2004 19:34:36 GMT, It's me <[EMAIL PROTECTED]> wrote: > > This must be another newbie gotchas. > > > > Consider the following sill

Re: A scoping question

2004-12-28 Thread It&#x27;s me
Thanks, Steve. So, global is only to within a module (I was afraid of that). Those words flashed by me when I was reading it but since the word "module" didn't translate to "file" in my C mind, I didn't catch that. In that case, you are correct that I have to

Re: copying classes?

2004-12-29 Thread It&#x27;s me
I would not think that a generic deepcopy would work for all cases. An object can be as simple as a number, for instance, but can also be as complex as the universe. I can't imagine anybody would know how to copy a complex object otherthen the object itself. I always think that a well designed

Why would I use inspect.isclass()?

2004-12-29 Thread It&#x27;s me
I discovered the hardway what inspect.isclass() is doing. Consider this no brainer code: ### import inspect class Abc: def Hello(self): return an_instance=Abc() print inspect.isclass(an_instance) ### It took me a while to understand how I can get inspect.isclass to return a True

Re: Using Python in my programs

2004-12-29 Thread It&#x27;s me
Assuming your program is written in C/C++, I would recommend that you start with SWIG. http://www.swig.org You can play around with that as a start. If later you decided that SWIG is not for you, you can always do it natively. There are plenty of information at www.python.org. "Squirrel Havoc

Re: calling functions across threads

2004-12-29 Thread It&#x27;s me
hread.start() > ... write_thread.join() > ... read_thread.join() > ... > > Basically, I start one thread to read and one thread to write (from a > os.pipe). This all works fine for me: > > py> lst = [] > py> runthreads(lst) > py> lst > [&#x

Re: Why would I use inspect.isclass()?

2004-12-29 Thread It&#x27;s me
Nicolas, Thanks for the response. Please see comment below. "Nicolas Fleury" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > an_instance=Abc() > > > But what good is that? Of course I know Abc is a class, why would I want to > > inspe

Re: Problem in threading

2004-12-29 Thread It&#x27;s me
"Gurpreet Sachdeva" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > So That means blindly using threads on any process won't help! > It depends on what "help" means to you. Both Windows and Unix (and it's variances) are considered "thread-weak" OSes. So, using thread will come

Re: Why would I use inspect.isclass()?

2004-12-30 Thread it&#x27;s me
Okay, Nick, I didn't know you can pass a "Class" rather then an instance. I have to chew on what your example does. But no, I want to pass an instance of a Class. But how do I know that the calling routine *did* pass me a class - pardon me: an instance of a Class? -- It's m

Re: Using python to deploy software

2004-12-30 Thread it&#x27;s me
pyro is most intriguing! Thanks for the information. "Anand" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I haven't but one of my friends have used Pyro (Python Remote Objects) > to do so. > > You basically need to write a custom Pyro server and run it on a > central machine. You

Re: Why would I use inspect.isclass()?

2004-12-30 Thread It&#x27;s me
s why I am struggling to learn about this. It's hard to writing a routine and not thinking what kind of parameters will be passed down from above. In the old days, we go out of the way to do that so programs don't fail in mysterous ways. "Steve Holden" <[EMAIL PROTECTED]>

OT: novice regular expression question

2004-12-30 Thread It&#x27;s me
I am never very good with regular expressions. My head always hurts whenever I need to use it. I need to read a data file and parse each data record. Each item on the data record begins with either a string, or a list of strings. I searched around and didn't see any existing Python packages tha

Re: Problem in threading

2004-12-30 Thread It&#x27;s me
hread swithing time is only a few machine instructionsOT.OT. "David Bolen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "It's me" <[EMAIL PROTECTED]> writes: > > > It depends on what "help" means to you. Both Windows and

Re: Why would I use inspect.isclass()?

2004-12-30 Thread It&#x27;s me
se. When it's others, you have to be a little more > careful to catch the exceptions (except when you don;t bother, in which > case the users will have to understand the tracebacks). > I grew up in an environment that believes in prevention, rather then after-the-fact fixing. That'

Re: The Industry choice

2004-12-30 Thread It&#x27;s me
"Premshree Pillai" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It certainly is not because Python is bad or something. Organizations > typically take lot of time to change -- be it technology or office > furniture. > In our industry, the code for the bread and butter tool hasn'

Re: OT: novice regular expression question

2004-12-30 Thread It&#x27;s me
I'll chew on this. Thanks, got to go. "Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's me wrote: > > > I am never very good with regular expressions. My head always hurts > > whenever I need to use it. > > >

Re: OT: novice regular expression question

2004-12-30 Thread It&#x27;s me
The shlex.py needs quite a number of .py files. I tried to hunt down a few of them and got really tire. Is there one batch of .py files that I can download from somewhere? Thanks, "M.E.Farmer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello me, > Have

New Python student needs help with execution

2015-06-10 Thread c me
I installed 2.7.9 on a Win8.1 machine. The Coursera instructor did a simple install then executed Python from a file in which he'd put a simple hello world script. My similar documents folder cannot see the python executable. How do I make this work? -- https://mail.python.org/mailman/listinf

love me

2010-08-27 Thread love me
1st step like me on facbook at this link http://www.facebook.com/pages/loveme/145529285481739 2nd step visit this link http://www.kqzyfj.com/click-3778203-10786395 -- http://mail.python.org/mailman/listinfo/python-list

love me

2010-08-28 Thread love me
1st step add me in like box on my facbook page at this link http://www.facebook.com/pages/loveme/145529285481739 2nd step visit this link http://www.kqzyfj.com/click-3778203-10786395 -- http://mail.python.org/mailman/listinfo/python-list

BeautifulSoup help !!

2016-10-06 Thread desolate . soul . me
So I've just started up with python and an assignment was given to me by a company as an recruitment task. I need to web scrap the coupons of all the websites available on http://www.couponraja.in and export it to csv format. The details which I need to be present in the csv are the c

Here is $50 for signing up free

2005-01-07 Thread me to you
Hello, I'm trying out a new auto poster, and dont know how to use it very good, so if this end up in the wrong places, please forgive me, and disreguard, sorry for your incovenience, but everyone else, ENJOY!! KEEP READING TO GET YOUR $50.00 NOW!!! This is not spam, it

Coming from delphi - looking for an IDE - willing to spend money

2006-04-24 Thread Just call me James
Hi, Coming away from the luxury of the delphi IDE has been something of a shock. As a consequence I've become aware that maybe I need to spend some money on a python IDE. As a beginner I reckon integrated debugging would be helpful. Does anyone have any advice or suggestions? So far I've glance

Re: change default install directory when using bdist_rpm

2006-07-21 Thread J�r�me Le Bougeant
Hi, try : python setup.py bdist_rpm --dist-dir="/home/..." > I'm using : > python setup.py bdist_rpm > > to create an rpm package to distribute my python app on linux. > > When i install the rpm, the files are installed in > /usr/share/python/site-packages/. directory by default. > > How do i

Re: Compiler for external modules for python

2006-07-24 Thread J�r�me Le Bougeant
VS2003 : http://vecchio56.free.fr/VCToolkitSetup.exe > Hello: > I have interesting external modules that I want to incorporate to > python 2.4.3 and python 2.5b2 also. Some of them requires C/C++ > compiler. I work with Win XP Sp2 and have installed VC2005 express (I > do not know if the compiler

To compile the VideoCapture module

2006-07-10 Thread J�r�me Le Bougeant
,"C:\DX90SDK\Lib","C:\Python23\Enthought\MingW\lib"]) ]) The include_dirs enable me to indicate the access path has my .h that I need. And library_dirs in theory the libraries which I need (I say in theory because I do not have the impression that it takes into account, but

DirectPython

2006-08-28 Thread J�r�me Le Bougeant
c.py", line 147, in ? mainloop() File "sampleBasic.py", line 75, in mainloop d3d.createDevice(title, u"textures/x.ico", window[2], window[3], False, CREATE.HARDWARE) RuntimeError: Failed to create a device Why ? please help me... any help would be apprecia

Re: Implementation suggestions for creating a Hierarchical circuit database

2009-12-09 Thread Ask me about System Design
or analyzing designs for connectivity, > types of elements (resistors/capacitors) and figuring out some simple > electrical properties. > > I am just starting, so please bear with me if I haven't thought about > corner cases. > > Regards > Nick If you start by consider

<    1   2