[EMAIL PROTECTED] wrote:
> If you are compiling python and you want to build idle/tkinter, you
> need to have the development packages for tcl and tk. The python build
> scripts will only build tkinter should they find the libraries
> (libtk8.4.so and libtcl8.4.so) and the header files (tk.h and tc
Hello,
Happy Harmony is the fastest growing matrimonial portal for
Indians.
You can email and IM other members without paying anything on this
site.
The amazing thing is that this site is totally free. Absolutely free.
Cannot believe? Then click on this link to visit and register Happy
Harmony.
yes, to generete core dump is the best way,
but the command "$ ulimit -c 50" don't make python to generete core dump in
the time of crush.
I would like to know how to run python script so if it crushes than core dump
will be genereted.
Thanks
Pierre Barbier de Reuille wrote:
> Maksim Ka
hi,
to get howmany element list appear you can code:
ttllst=[4,3,45,3]
for x in ttllst:
print x, ttllst.count(x)
pass
to get non duplicate element list you can code:
ttllst=[4,3,45,3]
print list(set(ttllst))
Cheers,
pujo
--
http://mail.python.org/mailman/listinfo/p
[EMAIL PROTECTED] wrote:
> hello all,
>
> this message is geared toward those of you in the scientific community.
> i'm looking for a python plotting library that can support rendering
> greek symbols and other various characters on plot axes labels, etc. I
> would prefer something that adheres to
"CJ" wrote:
>What does worry me, is that I can't seem to get the program by a
> certain spot. It keeps giving me the same error, and I don't know why.
quite often, exception messages means exactly what they say; if
you get an index error, it's because you're trying to fetch an item
that doesn
The specific error in your code, is that when cnto == len(ttllst), then
doing ttllst[cnto] will give you that error.
The list is indexed from 0 to len-1, which means that doing
list[len(list)] will give that error.
--
http://mail.python.org/mailman/listinfo/python-list
Toufeeq Hussain wrote:
> My coding is really really bad,that's why I changed the names to more human
> readable form(Module1,2.. etc).
the problem is that when you do that (and post using a tool that's not
smart enough to preserve leading whitespace), anyone who wants to help
will basically have
Fredrik,
sigh!
I see the problem you mention and I agree.
Should have posted the orginal code without edits. :(
Anyway I'll try to fill in whereever required.On 10/5/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
$ python test.pycondition satisfiedTraceback (most recent call last):
File "test.py",
Op 2005-10-04, Mike Meyer schreef <[EMAIL PROTECTED]>:
> Antoon Pardon <[EMAIL PROTECTED]> writes:
>> Op 2005-10-03, Steven D'Aprano schreef <[EMAIL PROTECTED]>:
>>> On Mon, 03 Oct 2005 13:58:33 +, Antoon Pardon wrote:
>> Declarations also allow easier writable closures. Since the declaration
>
I have a class in a module which is getting imported in main module.
How do you differentiate between the 2 class
regards
prasad chandrasekaran
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the p
Paul Rubin wrote:
> Brian Quinlan <[EMAIL PROTECTED]> writes:
>> Have those of you who think that the lack of required declarations in
>> Python is a huge weakness given any thought to the impact that adding
>> them would have on the rest of the language? I can't imagine how any
>> language with r
Iyer, Prasad C wrote:
> I have a class in a module which is getting imported in main module.
> How do you differentiate between the 2 class
import foo
import bar
foo.TheClass().dostuff()
bar.TheClass().dostuff()
--
http://mail.python.org/mailman/listinfo/python-list
"Iyer, Prasad C" wrote:
> I have a class in a module which is getting imported in main module.
> How do you differentiate between the 2 class
if you have one class in a module, why do you need to differentiate
between it? assuming that you do in fact have *two* classes with
the same name in two
[EMAIL PROTECTED] wrote:
> Apparently, calling bind() with a zero "port" will choose some available port
> number, as demonstrated by this program:
>
> import socket
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> s.bind(("", 0))
> print s.getsockname()
>
> Here's how it behaved over se
Op 2005-10-04, Ron Adam schreef <[EMAIL PROTECTED]>:
> Antoon Pardon wrote:
>> Op 2005-10-03, Steven D'Aprano schreef <[EMAIL PROTECTED]>:
>>>
>>>And lo, one multi-billion dollar Mars lander starts braking either too
>>>early or too late. Result: a new crater on Mars, named after the NASA
>>>employ
[EMAIL PROTECTED] wrote:
> Some people just don't get the simple fact that declarations are
> essentially kind of unit test you get for free (almost), and the compiler
> is a testing framework for them.
It seems you've missed the entire point of using a dynamically
typed language. It's not just ab
Duncan Booth <[EMAIL PROTECTED]> writes:
> If you think variable declarations should be required,
I don't think they should be required. I think there should optional
declarations along with a compiler flag that checks for them if the
user asks for it, like Perl has.
> then you presumably want t
Magnus Lycka <[EMAIL PROTECTED]> writes:
> It seems you've missed the entire point of using a dynamically
> typed language. It's not just about saving typing time and making
> your methods take up fewer lines of code. It's about writing generic
> code. Just look at C++ with all that mess with compl
Actually I am bit confused between the modules and .py file
How do I differentiate between the 2.
For example
I have a file import1.py, import2.py file
Which has few functions and classes
And if I have a class with same name "BaseClass" in both the file
How would I use it if I declare it as give
On Wed, 10 Aug 2005 13:23:22 GMT, rumours say that [EMAIL PROTECTED] (Bengt
Richter) might have written:
>BTW, my second post was doing ''.join(chr(int(h[i:i+2],16)) for i in
>xrange(0,16,2))
>to undo the hexlify you had done (I'd forgotten that there's a
>binascii.unhexlify ;-)
And there's als
Iyer, Prasad C wrote:
>Actually I am bit confused between the modules and .py file
>How do I differentiate between the 2.
>
>
>
A module 'name' is the same as the name of your file without the '.py'
extension.
>For example
>I have a file import1.py, import2.py file
>Which has few functions and
Op 2005-10-05, Tom Anderson schreef <[EMAIL PROTECTED]>:
> On Tue, 4 Oct 2005, Robert Kern wrote:
>
>> Antoon Pardon wrote:
>>
>>> class Tree:
>>>
>>> def __lt__(self, term):
>>> return set(self.iteritems()) < set(term.iteritems())
>>>
>>> def __eq__(self, term):
>>> return se
Antoon Pardon <[EMAIL PROTECTED]> writes:
> But that is contradicted by the unittest. If you have a unittest for
> comparing dictionaries, that means comparing dictionaries has a
> testable characteristic and thus is further defined.
No, I don't think so. The unittest makes sure that a particular
On 2 Oct 2005 08:52:53 -0700, [EMAIL PROTECTED] wrote:
>Hi.
>
>I use Idle 1.1.1 on Python 2.4.1.
>
>The "Ctrl-[" and "Ctrl-]" key bindings for indenting do not work on
>non-us keyboards where brackets are accessed by the "Alt Gr" key.
>
>The Tab key seem to work for indenting a selected textblock
Iyer, Prasad C wrote:
> Actually I am bit confused between the modules and .py file
> How do I differentiate between the 2.
>
> For example
> I have a file import1.py, import2.py file
> Which has few functions and classes
> And if I have a class with same name "BaseClass" in both the file
>
> How
"Iyer, Prasad C" wrote:
> How would I use it if I declare it as given below in my 3rd class
>
> from import1.py import *
> from import2.py import *
thats a syntax error; I assume you meant
from import1 import *
from import2 import *
which simply doesn't work if you need to access things
Op 2005-10-05, Duncan Booth schreef <[EMAIL PROTECTED]>:
> Paul Rubin wrote:
>
>> Brian Quinlan <[EMAIL PROTECTED]> writes:
>>> Have those of you who think that the lack of required declarations in
>>> Python is a huge weakness given any thought to the impact that adding
>>> them would have on the
James A. Donald wrote:
> What can one do to swiftly detect this type of bug?
Unit tests. In my experience the edit - test cycle in
Python is typically roughly as fast as the edit - compile
cycle in e.g. C++, and much faster than the full edit -
compile - link - test cycle in C++.
You do use autom
> thats a syntax error; I assume you meant
message = message.replace(
"a syntax error",
"almost always an import error (no module named py)"
)
--
http://mail.python.org/mailman/listinfo/python-list
Antoon Pardon wrote:
> Op 2005-10-05, Tom Anderson schreef <[EMAIL PROTECTED]>:
>
>>On Tue, 4 Oct 2005, Robert Kern wrote:
>>
>>
>>>Antoon Pardon wrote:
>>>
>>>
class Tree:
def __lt__(self, term):
return set(self.iteritems()) < set(term.iteritems())
def __
On 10/4/05, Cameron Laird <[EMAIL PROTECTED]> wrote:
Python IS "a dot net language" http://ironpython.com/ >.
. that is the site it was born at;
but microsoft has actively adopted it here:
IronPython 0.9.2 (9/22/2005)
[EMAIL PROTECTED]
http://www.microsoft.com/downloads/details.aspx?FamilyID=2C
Iyer, Prasad C wrote:
> Actually I am bit confused between the modules and .py file
> How do I differentiate between the 2.
>
> For example
> I have a file import1.py, import2.py file
> Which has few functions and classes
> And if I have a class with same name "BaseClass" in both the file
>
> How
I don't think PyGame will handle tiling for you, or any concept of a
'background image'. If you want something to appear multiple times on
the screen, you need to draw it multiple times. If you do that onto a
surface that is the same size as your screen, you can then consider
that the background im
Antoon Pardon wrote:
> It also is one possibility to implement writable closures.
>
> One could for instace have a 'declare' have the effect that
> if on a more inner scope such a declared variable is (re)bound it
> will rebind the declared variable instead of binding a local name.
That is one p
Op 2005-10-05, Paul Rubin schreef :
> Antoon Pardon <[EMAIL PROTECTED]> writes:
>> But that is contradicted by the unittest. If you have a unittest for
>> comparing dictionaries, that means comparing dictionaries has a
>> testable characteristic and thus is further defined.
>
> No, I don't think so
Brian Quinlan <[EMAIL PROTECTED]> writes:
> > Python already has a "global" declaration;
>
> Which is evaluated at runtime, does not require that the actual global
> variable be pre-existing, and does not create the global variable if
> not actually assigned. I think that is pretty different than
Steve Holden <[EMAIL PROTECTED]> writes:
> I can't help wondering, though, under what conditions it actually
> makes sense to compare two dictionaries for anything other than
> equality.
You might want to sort a bunch of dictionaries to bring the equal ones
together.
--
http://mail.python.org/mai
Antoon Pardon <[EMAIL PROTECTED]> writes:
> My tree class is almost finished, but one unittest still fails,
> is this a failing of my class (as a replacement for a dictionary)
> or is this a non-required characteristic of dictionaries?
If it were me, I'd treat the language reference manual as
auth
Paul Rubin wrote:
> Brian Quinlan <[EMAIL PROTECTED]> writes:
>
>>Have those of you who think that the lack of required declarations in
>>Python is a huge weakness given any thought to the impact that adding
>>them would have on the rest of the language? I can't imagine how any
>>language with req
These functions should get you started and probably finished...
def createprinterport(IPAddress,ServerName):
WBEM =
win32com.client.GetObject(r"winmgmts:{impersonationLevel=impersonate}!\\"
+ ServerName + r"\root\cimv2")
WBEM.Security_.Privileges.AddAsString("SeLoadDriverPrivilege")
pr
The target OS needs to support WMI so 2000 or XP.
--
http://mail.python.org/mailman/listinfo/python-list
Brian Quinlan wrote:
> Paul Rubin wrote:
>
>>Brian Quinlan <[EMAIL PROTECTED]> writes:
>>
>>
>>>Have those of you who think that the lack of required declarations in
>>>Python is a huge weakness given any thought to the impact that adding
>>>them would have on the rest of the language? I can't ima
[Mike]
> Is there a python library, that is able to create Excel files with
> unicode characters.
pyExcelerator claims to do this, but I've never used it.
http://sourceforge.net/projects/pyexcelerator/
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
I had in the past the most ridiculous erection in the world,4in.I'm not
poor and then,I used all the supposed "miraculous products" to
rectify.Vainly.Until one of my friends,who experimented it
himself,advise me to use an african grass,in the way of tea.As long as
I haven't obtain the desired size.
Thanks Fredrik.
Went through the code to make sure "self" was used properly and one of the parent classes was missing a "self".It's fixed now.
/me kicks self
-toufeeqOn 10/5/05, Toufeeq Hussain <[EMAIL PROTECTED]> wrote:
Fredrik,
sigh!
I see the problem you mention and I agree.
Should have post
Op 2005-10-05, Steve Holden schreef <[EMAIL PROTECTED]>:
> Antoon Pardon wrote:
>>
>> I have been searching some more and finally stumbled on this:
>>
>> http://docs.python.org/ref/comparisons.html
>>
>> Mappings (dictionaries) compare equal if and only if their sorted
>> (key, value) lists
Op 2005-10-05, Duncan Booth schreef <[EMAIL PROTECTED]>:
> Antoon Pardon wrote:
>
>> It also is one possibility to implement writable closures.
>>
>> One could for instace have a 'declare' have the effect that
>> if on a more inner scope such a declared variable is (re)bound it
>> will rebind the
Hi !
I need to convert some integer values.
"1622" ->"1 622"
or
"10001234" -> ""10.001.234""
So I need thousand separators.
Can anyone helps me with a simply solution (like %xxx) ?
Thanx for it: dd
Ps:
Now I use this proc:
def toths(i):
s=str(i)
l=[]
ls=len(s)
for i in rang
One possible solution. Don't know how efficient it is though. :-)
>>> def put_decimal(s):
... return ''.join( [ [s[i], '.%s' % s[i]][(len(s)-i)%3 == 0] for i
in range(0, len(s))])
...
>>> put_decimal("10001234")
'10.001.234'
>>> put_decimal("12622")
'12.622'
thanks,
Satchit
[EMAIL PROTE
[EMAIL PROTECTED] wrote:
> Hi !
>
> I need to convert some integer values.
>
> "1622" ->"1 622"
>
> or
>
> "10001234" -> ""10.001.234""
>
> So I need thousand separators.
>
> Can anyone helps me with a simply solution (like %xxx) ?
The module locale does what you need, look at ist docs, espe
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> "10001234" -> ""10.001.234""
> So I need thousand separators.
> Can anyone helps me with a simply solution (like %xxx) ?
I think you're supposed to do a locale-specific conversion (I've never
understood that stuff). You could also do something lik
Coming back from a bug hunt, i am not sure what to think of this python
behaviour. Here is a demo program:
class A:
def __init__(self, lst=[]):
self.lst = lst
a = A()
b = A()
b.lst.append("hallo")
print a.lst # output: ["hallo"]
The point seems to be, that lst=[] creates a class attribu
Hi,
[EMAIL PROTECTED] wrote:
> this message is geared toward those of you in the scientific community.
> i'm looking for a python plotting library that can support rendering
> greek symbols and other various characters on plot axes labels, etc. I
> would prefer something that adheres to tex format
beza1e1> class A:
beza1e1>def __init__(self, lst=[]):
beza1e1> self.lst = lst
Lists are mutable and default args are only evaluated once, at function
definition. If you want independent default args use:
class A:
def __init__(self, lst=None):
if lst
Antoon Pardon wrote:
> Op 2005-10-05, Steve Holden schreef <[EMAIL PROTECTED]>:
[...]
>
> Anyway, I have searched the source of the test for all testing
> with regards to < and after some browsing back and fore it seems
> it all boils down to the following two tests.
>
>self.assert_(not {} <
beza1e1 wrote:
> Coming back from a bug hunt, i am not sure what to think of this python
> behaviour. Here is a demo program:
>
> class A:
>def __init__(self, lst=[]):
> self.lst = lst
>
> a = A()
> b = A()
> b.lst.append("hallo")
> print a.lst # output: ["hallo"]
>
> The point seems t
Python.org General FAQ 1.4.21: Why are default values shared between
objects?
(http://www.python.org/doc/faq/general.html#why-are-default-values-shared-between-objects)
--
http://mail.python.org/mailman/listinfo/python-list
beza1e1 wrote:
> Coming back from a bug hunt, i am not sure what to think of this python
> behaviour. Here is a demo program:
>
> class A:
>def __init__(self, lst=[]):
> self.lst = lst
>
> a = A()
> b = A()
> b.lst.append("hallo")
> print a.lst # output: ["hallo"]
>
> The point seems t
Python_it wrote:
>Python 2.4
>MySQL-python.exe-1.2.0.win32-py2.4.zip
>
>How can I insert a NULL value in a table (MySQL-database).
>I can't set a var to NULL? Or is there a other possibility?
>My var must be variable string or NULL.
>Becaus i have a if statement:
>if
> cursor.execute("..
Antoon Pardon wrote:
> Op 2005-10-04, Ron Adam schreef <[EMAIL PROTECTED]>:
>
>>Antoon Pardon wrote:
>>
>>>Op 2005-10-03, Steven D'Aprano schreef <[EMAIL PROTECTED]>:
>>>
And lo, one multi-billion dollar Mars lander starts braking either too
early or too late. Result: a new crater on Mars,
Python 2.4
MySQL-python.exe-1.2.0.win32-py2.4.zip
How can I insert a NULL value in a table (MySQL-database).
I can't set a var to NULL? Or is there a other possibility?
My var must be variable string or NULL.
Becaus i have a if statement:
if
cursor.execute(".insert NULL
>
> BTW, you did not write which driver are you using.
Oh, you did. Sorry. :-( Import your DB module 'yourmodule' and then
print yourmodule.paramstyle
Description of paramstyle is also in PEP249:
paramstyle
String constant stating the type of parameter marker
Sorry guys for that .py in import.
It was typing mistake.
Extremely sorry
regards
prasad chandrasekaran
--- Cancer cures smoking
#-Original Message-
#From: Steve Holden [mailto:[EMAIL PROTECTED]
#Sent: Wednesday, October 05, 2005 2:43 PM
#To: python-list@python.org
#Subject: R
Steve Holden wrote:
> Interestingly I couldn't find this in the FAQ, though it *is* a
> frequently-asked question [note: my not finding it doesn't guarantee
> it's not there].
it's there:
http://www.python.org/doc/faq/general.html#why-are-default-values-shared-between-objects
(maybe "defau
Antoon Pardon wrote:
> As far as I understand people don't like global very much so I don't
> expect that a second keyword with the same kind of behaviour has
> any chance.
That's why the behaviour I suggest is different than the current behaviour
of global. Arguments against global (it is the on
I know how to insert values in a database.
That's not my problem!
My problem is how i insert NULL values in de mysql-database.
None is een object in Python and NULL not.
None is not converted to NULL?
Table shows None and not NULL!
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
>>Which is evaluated at runtime, does not require that the actual global
>>variable be pre-existing, and does not create the global variable if
>>not actually assigned. I think that is pretty different than your
>>proposal semantics.
>
>
> Different how?
Aren't you looking for
In case you missed it, I said I have windows XP. Windows XP
pre-compiled python binaries are built on VS .NET 2003. In order to
build extensions, you need the compiler the interpreter was built on, or
at least that is what is reported to me by calling setup.py. If I was
using linux, which I
Thanks for you answer! This copy trick is the most elegant solution i
think.
--
http://mail.python.org/mailman/listinfo/python-list
Mike Meyer wrote:
(snip)
> Antoon, at a guess I'd say that Python is the first time you've
> encountered a dynamnic language. Being "horrified" at not having
> variable declarations,
Mike, "being horrified" by the (perceived as...) lack of variable
declaration was the OP's reaction, not Antoon's.
Maksim Kasimov a écrit :
>
> yes, to generete core dump is the best way,
>
> but the command "$ ulimit -c 50" don't make python to generete core
> dump in the time of crush.
>
> I would like to know how to run python script so if it crushes than core
> dump will be genereted.
>
> Thanks
>
Brandon Keown wrote:
>I have programmed a fractal generator (Julia Set/Mandelbrot Set) in
> python in the past, and have had good success, but it would run so
> slowly because of the overhead involved with the calculation. I
> recently purchased VS .NET 2003 (Win XP, precomp binary of python
On Wed, 05 Oct 2005 00:10:12 -0700, [EMAIL PROTECTED] wrote:
> hi,
>
> to get howmany element list appear you can code:
> ttllst=[4,3,45,3]
> for x in ttllst:
> print x, ttllst.count(x)
> pass
>
> to get non duplicate element list you can code:
> ttllst=[4,3,45,3]
>
I used, myApp = CDLL("C:...") ...as I saw it in one of the ctypes
samples.
Anyhow, I tried...
myApp = cdll.LoadLibrary("C:\\myapp.dll")
myApp.AddNumbers(1, 4)
..I get an error...
AttributeError: function 'AddNumbers' not found
...myapp certainly has AddNumbers.
Grant Edwards wrote:
> On 2005-
Here's the Script it was being used in (forgive it if it seems a bit
messy, i have been tinkering with variables and such to try different
ideas and haven't really cleaned it up).
import ctest
import Tkinter
import threading
hue_map =
("#FF","#FEFEFF","#FDFDFF","#FCFCFF","#FBFBFF","#FAFAF
> Yes, give us the error. And know that you can't build raw IP packets
> unless you're root.
>
> Sybren
Sorry. I forgot to paste the error:
Traceback (most recent call last):
File "C:\test\client.py", line 156, in ?
send_pkt()
File "C:\test\client.py", line 96, in send_pkt
s.sendto(i
I'm about to add some logging calls to a library I have. How can I
prevent that the script that uses the library prints
'No handlers could be found for logger "comtypes.client"' when the
script runs?
I would like to setup the logging so that there is no logging when
nothing is configured, and no
Python_it wrote:
> I know how to insert values in a database.
> That's not my problem!
> My problem is how i insert NULL values in de mysql-database.
> None is een object in Python and NULL not.
> None is not converted to NULL?
> Table shows None and not NULL!
As Laszlo wrote, "None will be conver
Python_it wrote:
> I know how to insert values in a database.
> That's not my problem!
> My problem is how i insert NULL values in de mysql-database.
So you *don't* know how to insert values in a database: as Laszlo wrote,
you might be best using parameterized queries.
> None is een object in Py
Python_it wrote:
> I know how to insert values in a database.
> That's not my problem!
> My problem is how i insert NULL values in de mysql-database.
> None is een object in Python and NULL not.
> None is not converted to NULL?
> Table shows None and not NULL!
None is converted to mysql's NULL and
On Wed, 05 Oct 2005 13:46:30 +0530, Iyer, Prasad C wrote:
>
> Actually I am bit confused between the modules and .py file
> How do I differentiate between the 2.
>
> For example
> I have a file import1.py, import2.py file
>
> Which has few functions and classes
> And if I have a class with same
On Wed, 05 Oct 2005 03:39:30 -0700, beza1e1 wrote:
> Coming back from a bug hunt, i am not sure what to think of this python
> behaviour.
[snip code]
> The point seems to be, that lst=[] creates a class attribute (correct
> name?), which is shared by all instances of A. So a.lst ist the same
> o
Fredrik Lundh wrote:
> it's also mentioned in chapter 4 of the tutorial:
>
> http://docs.python.org/tut/node6.html#SECTION00671
>
> "*Important warning*: The default value is evaluated only once. This
> makes a difference when the default is a mutable object such as a
Brian Quinlan <[EMAIL PROTECTED]> writes:
> Aren't you looking for some of compile-time checking that ensures that
> only declared variables are actually used? If so, how does global help?
You'd have to declare any variable global, or declare it local, or it
could be a function name (defined with
Paul Rubin wrote:
> You'd have to declare any variable global, or declare it local, or it
> could be a function name (defined with def) or a function arg (in the
> function scope), or maybe you could also declare things like loop
> indices. If it wasn't one of the above, the compiler would flag it
On Tue, 04 Oct 2005 19:13:10 +0300, Maksim Kasimov wrote:
> my programm sometime gives "Segmentation fault" message (no matter how
> long the programm had run (1 day or 2 weeks). And there is nothing in
> log-files that can points the problem. My question is how it possible to
> find out where is t
Paul Rubin wrote:
> So where are the complex templates and dangerous void pointers in ML?
You're right about that of course. There aren't any templates or
pointers in COBOL either as far as I know, and COBOL has been used
for lots of real world code (which ML hasn't).
I don't know what your point
Java and Swing wrote:
>I used, myApp = CDLL("C:...") ...as I saw it in one of the ctypes
> samples.
>
> Anyhow, I tried...
>
> myApp = cdll.LoadLibrary("C:\\myapp.dll")
> myApp.AddNumbers(1, 4)
>
> ..I get an error...
>
> AttributeError: function 'AddNumbers' not found
>
> ...myapp certainly has A
On Wed, 05 Oct 2005 14:53:45 +0200, Tamer Fahmy
<[EMAIL PROTECTED]> wrote:
>On Tue, 04 Oct 2005 19:13:10 +0300, Maksim Kasimov wrote:
>> my programm sometime gives "Segmentation fault" message (no matter how
>> long the programm had run (1 day or 2 weeks). And there is nothing in
>> log-files that
may be this you will find usefull:
def getLog(logName, fileName = None):
if fileName:
hdl = logging.FileHandler(fileName)
else:
hdl = logging.StreamHandler()
fmt =
logging.Formatter("%(name)s:\t%(levelname)s:\t%(asctime)s:\t%(message)s")
hdl.setFormatter(f
Hi,
I am trying to upload zip files using ftplib module. The server has
Vsftpd 2.0.3 installed on it.
I was able to succesfully upload files using ftplib and Vsftpd on the
server locally connected.
Now, I want to transfer files to remote server using the same script.
I am getting the following e
beza1e1:
> Coming back from a bug hunt, i am not sure what to think of this python
> behaviour. Here is a demo program:
>
> class A:
>def __init__(self, lst=[]):
> self.lst = lst
>
> a = A()
> b = A()
> b.lst.append("hallo")
> print a.lst # output: ["hallo"]
>
> The point seems to be,
On Wed, 05 Oct 2005 06:48:59 +, CJ wrote:
>
>Hey, I'm new to the Python world, but I do have experience in several
> other languages. I've been running through a tutorial, and I decided that
> I'd make a program that runs through a list, finds if there are any
> duplicates. The progra
Brandon K" wrote:
> Here's the Script it was being used in (forgive it if it seems a bit
> messy, i have been tinkering with variables and such to try different
> ideas and haven't really cleaned it up).
the C compiler does in fact provide you with some clues:
c:\test\c_lib.cpp(22) : warning C47
Ben Sizer wrote:
> Fredrik Lundh wrote:
>
>
>>it's also mentioned in chapter 4 of the tutorial:
>>
>>http://docs.python.org/tut/node6.html#SECTION00671
>>
>> "*Important warning*: The default value is evaluated only once. This
>>makes a difference when the default is a
[EMAIL PROTECTED] wrote:
> I've rewritten your middle example to be clearer.
> $ python2.4
> Python 2.4.1 (#1, May 16 2005, 15:15:14)
> [GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
type("Y", (type,), {"mro": lambda
hi
i am new to python.i hav to call function of c++ .so file(shared
library)on linux.
any how i am not able to do that.
i had made one zoo.so file.when i import it this gives the following error...
>>> import zoo
Traceback (most recent call last):
File "", line 1, in ?
ImportError: ./zoo.so: und
Hi,
I would like to execute some command in python on the bash, e.g.
os.system('globus-job-run mike4.cct.lsu.edu/jobmanager-pbs -l
/bin/date')
and want the result of the output in a vector, so something like:
result=python_command(' command_on_the_bash ')
Is that possible? And how to do that?
"alexLIGO" <[EMAIL PROTECTED]> writes:
> I would like to execute some command in python on the bash, e.g.
>
> os.system('globus-job-run mike4.cct.lsu.edu/jobmanager-pbs -l
> /bin/date')
>
> and want the result of the output in a vector, so something like:
>
> result=python_command(' command_on_the
1 - 100 of 242 matches
Mail list logo