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
;
> 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
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
:[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)
)
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
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"
"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
"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
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
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
"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
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
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
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
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
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
> [
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
"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
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
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
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]>
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
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
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'
"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'
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.
> >
>
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
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
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
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
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
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
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
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
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
,"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
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
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
101 - 138 of 138 matches
Mail list logo