Sam Loxton wrote:
> I am fairly new to the python language and am trying to sort a nested
> Dictionary of a Dictionary which I wish to sort by value. The dictionary
> does not have to be restructured as I only need it sorted in this way
> for printing purposes.
>
> The following is an example of
> I have to write a code in python to read a matrix from a text file and
> for that i am using following code. But it gives an error saying
> "NameError: name 'split' is not defined". Can anyone help me with this.
A few hints:
- don't use "file" as a name - it shadows the builtin "file" type
-
"John Machin" <[EMAIL PROTECTED]> wrote:
8<---
> I strongly suggest that you read the docs *FIRST*, and don't "tinker"
> at all.
>
> HTH,
> John
This is *good* advice - its unlikely to be followed though, as the OP is prolly
just like most of us - you unpack
How can I limit when my code run only when it's a build or install
setup.py command and only after the setup method?
I need to do some processing after setup.py runs and I've been
successful writing the code to do what I need but the problem is it runs
every time I run setup.py regardless of th
John Salerno wrote:
> >> Am I using the ? placeholder wrong in this example?
> >>
> >>
> >> t = ('hi', 'bye')
> >>
> >> self.connection.execute("INSERT INTO Personal (firstName, lastName)
> >> VALUES ?", t)
> >>
[snip]
>
> Thanks guys. I'll try this. I thought the ? stood for the whole tuple.
Def
Hi,
I am fairly new to the python language and am trying to sort a nested
Dictionary of a Dictionary which I wish to sort by value. The dictionary
does not have to be restructured as I only need it sorted in this way
for printing purposes.
The following is an example of my Dictionary printed w
[EMAIL PROTECTED] wrote:
> Hi,
>
> I have to write a code in python to read a matrix from a text file and
> for that i am using following code. But it gives an error saying
> "NameError: name 'split' is not defined". Can anyone help me with this.
> -
Hi,
I have to write a code in python to read a matrix from a text file and
for that i am using following code. But it gives an error saying
"NameError: name 'split' is not defined". Can anyone help me with this.
-
#!/usr/bin/python
import numpy
file
Diez B. Roggisch wrote:
> But there is no cookbook-algorithm that will produce perfect MUD-maps. For
> such a beast, you have to cough up one on your own, with things like
> constraint solvers and the like. Certainly over _my_ head, at least without
> deep studies of planar graph representation pro
John Salerno <[EMAIL PROTECTED]> writes:
> Let's say I'm making a game and I have this base class:
>
> class Character(object):
>
> def __init__(self, name, stats):
> self.name = name
> self.strength = stats[0]
> self.dexterity = stats[1]
> self.intelligenc
Try also Diet Python on SourceForge.
It's the first step toward a shrunken Python for embedded Win32
systems.
Cheers,
The Eternal Squire
Simon Wittber wrote:
> > http://www.python.org/dev/summary/2006-09-16_2006-09-30/#shrinking-python
>
> Excellent, just what I was hoping for. Thanks!
>
> -
On Mon, 06 Nov 2006 16:57:58 -0500, John Salerno wrote:
> Let's say I'm making a game and I have this base class:
>
> class Character(object):
>
> def __init__(self, name, stats):
> self.name = name
> self.strength = stats[0]
> self.dexterity = stats[1]
>
Paul :
Thanks ,but the viewvc lib so simple useable for python:(
Paul Boddie wrote:
> [EMAIL PROTECTED] wrote:
> > Hi everyone, this should be a quick question. I'm writing some scripts
> > to take some file and move them into a CVS repository, but it's pretty
> > slow, because it uses system ca
All,
This is to let you know that I have designed, tested, and released a
simple wrapper around Peter Selig's Potrace raster to vector conversion
facility.
This is the same conversion engine as is used in Inkscape. This
wrapper incorporates the Potrace code so that a separate dll for
Potrace is
[EMAIL PROTECTED] wrote:
> Hi,
>
> When I was talking with my friend, I wanted to share the music I'm
> listening with
> my friend. I mean, I wanted my friend to hear my music and my own sound .
>
> I order to achieve this, I think I need to append the output of my sound
> card to
> the input o
John Salerno wrote:
> Let's say I'm making a game and I have this base class:
>
> class Character(object):
>
> def __init__(self, name, stats):
> self.name = name
> self.strength = stats[0]
> self.dexterity = stats[1]
> self.intelligence = stats[2]
>
Cameron Laird wrote:
> In article <[EMAIL PROTECTED]>,
> John Machin <[EMAIL PROTECTED]> wrote:
> >
> >Thomas W wrote:
> >> Ok, I've cleaned up my code abit and it seems as if I've
> >> encoded/decoded myself into a corner ;-). My understanding of unicode
> >> has room for improvement, that's for
Irmen de Jong wrote:
> writeson wrote:
>
>> Irmen,
>>
>> Thanks, you're very good about answering Pyro related questions!
>>
>
> Well, I do have an advantage here, being Pyro's author.
>
And I don't know if you get this enough... but thanks. Pyro is fucking
amazing and has been a great
Hi,
When I was talking with my friend, I wanted to share the music I'm
listening with
my friend. I mean, I wanted my friend to hear my music and my own sound .
I order to achieve this, I think I need to append the output of my sound
card to
the input of the sound card.
My questions:
1. Is my
On Mon, 06 Nov 2006 13:03:55 +, Tuomas wrote:
> If you read the whole chain you find out what we were talking of.
I had already read the whole thread, and I've read it again in case I
missed something the first time, and I still have no idea why you think
you need to do this. You explain *wha
In article <[EMAIL PROTECTED]>,
John Machin <[EMAIL PROTECTED]> wrote:
>
>Thomas W wrote:
>> Ok, I've cleaned up my code abit and it seems as if I've
>> encoded/decoded myself into a corner ;-). My understanding of unicode
>> has room for improvement, that's for sure. I got some pointers and
>> ini
writeson wrote:
> Irmen,
>
> Thanks, you're very good about answering Pyro related questions!
Well, I do have an advantage here, being Pyro's author... :)
--Irmen
--
http://mail.python.org/mailman/listinfo/python-list
M.N.Smadi wrote:
> Hi there;
>
> i have a script that is not indented properly. Is there a way that i can
> have it auto indented.
It depends on what you mean by "not indented properly". Indentation is
part of the Python grammar.
If the script compiles OK, and works as expected, but you have (say
"cool" is in the eyes of the beholder.
While I agree that this can be useful in some situations, I find it
very annoying when all I want (and need) to do is a simple dumber
search and yet it tells me tons of useless searches that I don't care
for.
The inability to debug multi-threaded application
> http://www.python.org/dev/summary/2006-09-16_2006-09-30/#shrinking-python
Excellent, just what I was hoping for. Thanks!
-Sw.
--
http://mail.python.org/mailman/listinfo/python-list
I use the copy function a lot and never have problem. I suggest that
you write a no brainer standalone test code and if it still fails
there, then you have a problem with your installation.
Antoine De Groote wrote:
> Google tells quite some things about it, but none of them are satisfactory.
>
>
M.N.Smadi wrote:
> Hi there;
>
> i have a script that is not indented properly. Is there a way that i can
> have it auto indented.
>
> thanks
> moe smadi
It depends what exactly you mean. I use Textpad and they have an
"indent selected block" feature.
--
http://mail.python.org/mailman/listinfo
djc:
> As it is possible that the tuples will not always be the same word in
> variant cases
> result = sum(r.values(), ())
> will do fine and is as simple as I suspected the answer would be.
It is simple, but I suggest you to take a look at the speed of that
part of your code into your program.
rcmn wrote:
> i'm running around in circle trying to to use python/ldap/ on
> win32(WinXP).
Maybe this message sent to the python-ldap-dev mailing list helps.
You're welcome to follow up on this list.
Ciao, Michael.
Original Message
Subject: Experimental 2.2.0 Windows Build
Dat
Gabriel Genellina wrote:
> At Monday 6/11/2006 20:34, Robert Kern wrote:
>
> >John Machin wrote:
> > > Indeed yourself. Have you ever considered reading posts in
> > > chronological order, or reading all posts in a thread?
> >
> >That presumes that messages arrive in chronological order and
> >tra
[EMAIL PROTECTED] schreef:
> I have both, but the IDE I use every day is SPE, which is shareware. I'm
> not savvy enough to enumerate a feature comparison, but I do find SPE
> extremely friendly and intuitive.
>
> Gerry
SPE is not shareware. It is open-source, gpl-licensed freeware.
Donations ho
timmy schreef:
> SPE - Stani's Python Editor wrote:
> > timmy schreef:
> >
> >
> >>hello i've been using the SPE editor on a moderately large project and
> >>it's constantly pausing during editing, like it's attempting to check
> >>something as i edit.
> >>as you can imagine a 4 second pause every
At Monday 6/11/2006 20:34, Robert Kern wrote:
John Machin wrote:
> Indeed yourself. Have you ever considered reading posts in
> chronological order, or reading all posts in a thread?
That presumes that messages arrive in chronological order and
transmissions are
instantaneous. Neither are tru
John Machin wrote:
> Indeed yourself. Have you ever considered reading posts in
> chronological order, or reading all posts in a thread?
That presumes that messages arrive in chronological order and transmissions are
instantaneous. Neither are true.
--
Robert Kern
"I have come to believe that t
Hello,
how to get at the function address of a WinFunctionType ctypes object ?
With ctypes 1.0, I used just myfunc._as_parameter_ and all was well.
With ctypes 1.0.1, that ships with python 2.5, WinFunctionType has no
longer an _as_parameter_ attribute
Where in the ChangeLog and the documentation
At Monday 6/11/2006 09:58, Santosh Chikkerur wrote:
How to use getchar( ) in python. I want to see the output of the
program ,step by step.
I have given print statements in between for the results..
Hence i would like to print the output everytime there is
getchar().which is the
similar fn in
Andrea Griffini wrote:
> John Machin wrote:
>
> > The fact that C3 and C2 are both present, plus the fact that one
> > non-ASCII byte has morphoploded into 4 bytes indicate a double whammy.
>
> Indeed...
>
> >>> x = u"fødselsdag"
> >>> x.encode('utf-8').decode('iso-8859-1').encode('utf-8')
> 'f\
George Sakkis wrote:
> Meet itertools:
>
> from itertools import chain
> names = set(chain(*r.itervalues()))
> print [line for line in table if line[7] in names]
Steven D'Aprano wrote:
> Assuming you don't care what order the strings are in:
>
> r = {'a':('ASLIB','Aslib'),'j':('JDOC','jdoc')
Thomas W wrote:
> Ok, I've cleaned up my code abit and it seems as if I've
> encoded/decoded myself into a corner ;-). My understanding of unicode
> has room for improvement, that's for sure. I got some pointers and
> initial code-cleanup seem to have removed some of the strange results I
> got, w
Ok, I've cleaned up my code abit and it seems as if I've
encoded/decoded myself into a corner ;-). My understanding of unicode
has room for improvement, that's for sure. I got some pointers and
initial code-cleanup seem to have removed some of the strange results I
got, which several of you also po
i'm running around in circle trying to to use python/ldap/ on
win32(WinXP). I want to write a script that read SQL data(no pbm) and
insert member in a AD group(pbm).I used the module
Active_Directory(very easy to use).but it read only AD.
So i have been try to install python-ldap on a win32/python2
SPE - Stani's Python Editor wrote:
> timmy schreef:
>
>
>>hello i've been using the SPE editor on a moderately large project and
>>it's constantly pausing during editing, like it's attempting to check
>>something as i edit.
>>as you can imagine a 4 second pause every few characters is EXTREMELY
>
Steve Holden wrote:
> Suppose you did actually want to do this you have chosen about the worst
> possible way: the use of global variables to condition function
> execution is a sure way to get into trouble. Consider if somebody else
> want to use your function: they also have to set a global in
kaushal wrote:
> Hi
>
> How do i start Learning Python,is there any reference material which I
> can refer since I dont have
> any programming experience
>
> Thanks and Regards
>
> Kaushal
If you have no programming experience at all, I highly recomend "Non
Programmers Tutorial for Python" by Jos
At Sunday 5/11/2006 19:32, BJörn Lindqvist wrote:
>Hello, I'm looking for an algorithm to project "MUD maps" such as the
>following map: http://www.aww-mud.org/maps/MUD_Maps/Caerin-colour.jpg
>
>MUD:s consists of rooms, each rooms has up to four orthogonal edges
>(north, east, west and south) that
you can erase the message about python sound modules, my mistake.
thanks,
g
--
http://mail.python.org/mailman/listinfo/python-list
John Salerno wrote:
> Let's say I'm making a game and I have this base class:
>
> class Character(object):
>
> def __init__(self, name, stats):
> self.name = name
> self.strength = stats[0]
> self.dexterity = stats[1]
> self.intelligence = stats[2]
>
John Salerno wrote:
> Let's say I'm making a game and I have this base class:
>
> class Character(object):
>
> def __init__(self, name, stats):
> self.name = name
> self.strength = stats[0]
> self.dexterity = stats[1]
> self.intelligence = stats[2]
> se
Hi everyone,
I'm looking for a module for sound processing (manipulating sound objets,
filters, ffts etc.).
I tried Snack, but when i downloaded the package that was supposed to be
for python, there was only the Tk/Tcl stuff (where's the .py ?).
could anyone help me with that (or with any other sou
M.N.Smadi wrote:
> Hi there;
>
> i have a script that is not indented properly. Is there a way that i can
> have it auto indented.
>
> thanks
> moe smadi
Not really. Indention in python conveys blocks so there is no way
anything automatic could determine where blocks end. Its just like
asking
Let's say I'm making a game and I have this base class:
class Character(object):
def __init__(self, name, stats):
self.name = name
self.strength = stats[0]
self.dexterity = stats[1]
self.intelligence = stats[2]
self.luck = stats[3]
Is this a good
[EMAIL PROTECTED] wrote:
> John Salerno wrote:
>> Am I using the ? placeholder wrong in this example?
>>
>>
>> t = ('hi', 'bye')
>>
>> self.connection.execute("INSERT INTO Personal (firstName, lastName)
>> VALUES ?", t)
>>
>>
>>
>> Traceback (most recent call last):
>>File "C:\Python25\myscript
yup yup BeautifulSoup is the way to go.
what would you like to scrape by the way?
Graham Feeley wrote:
> Can someone steer me to scripts / modules etc on webscraping please???
> Ultimately I would like someone to write a script for me.
> However i am still searching for documentation on this subj
John Salerno wrote:
> Am I using the ? placeholder wrong in this example?
>
>
> t = ('hi', 'bye')
>
> self.connection.execute("INSERT INTO Personal (firstName, lastName)
> VALUES ?", t)
>
>
>
> Traceback (most recent call last):
>File "C:\Python25\myscripts\labdb\dbapp.py", line 93, in OnSaveR
>> self.connection.execute("INSERT INTO Personal (firstName, lastName)
VALUES ?", t)
John,
I'm no expert, but try
self.connection.execute("INSERT INTO Personal (firstName, lastName)
VALUES ?, ?", t)
--
http://mail.python.org/mailman/listinfo/python-list
I've tried both Python 2.4.4 and Python 2.5. I'm trying to build from
source and install under a local directory Swarm since OpenSwarm
requires builds of Postgres and Python under it's control.
Ok, so I did
./configure --prefix=/Users/tbrannon/Documents/Python/Swarm/Python-2.5
but during make in
Am I using the ? placeholder wrong in this example?
t = ('hi', 'bye')
self.connection.execute("INSERT INTO Personal (firstName, lastName)
VALUES ?", t)
Traceback (most recent call last):
File "C:\Python25\myscripts\labdb\dbapp.py", line 93, in OnSaveRecord
self.save_to_database(textf
Thomas W wrote:
> I'm getting really annoyed with python in regards to
> unicode/ascii-encoding problems.
>
> The string below is the encoding of the norwegian word "fødselsdag".
>
s = 'f\xc3\x83\xc2\xb8dselsdag'
Which encoding is this?
> I stored the string as "fødselsdag" but somewhere i
John Machin wrote:
> The fact that C3 and C2 are both present, plus the fact that one
> non-ASCII byte has morphoploded into 4 bytes indicate a double whammy.
Indeed...
>>> x = u"fødselsdag"
>>> x.encode('utf-8').decode('iso-8859-1').encode('utf-8')
'f\xc3\x83\xc2\xb8dselsdag'
Andrea
--
http
Robert Kern wrote:
> However, I don't know of an encoding that takes u"fødselsdag" to
> 'f\xc3\x83\xc2\xb8dselsdag'.
There isn't one.
C3 and C2 hint at UTF-8.
The fact that C3 and C2 are both present, plus the fact that one
non-ASCII byte has morphoploded into 4 bytes indicate a double whammy.
Thomas W wrote:
> I'm getting really annoyed with python in regards to
> unicode/ascii-encoding problems.
>
> The string below is the encoding of the norwegian word "fødselsdag".
>
> >>> s = 'f\xc3\x83\xc2\xb8dselsdag'
There is no such thing as "*the* encoding" of any given string.
>
> I stored t
If you have some math knowledge or what to increase it, plus want to
use that knowledge as leverage when it comes to learning a computer
language, in this case Python, may I suggest my CP4E web page and its
many links to math topics, all explored using open source code, mostly
Python but also some
[EMAIL PROTECTED] wrote:
> I am playing around with OpenSwarm and was shocked to see that I cannot
> build Python with default encoding of utf-8 by passing a flag to
> configure... did I miss the option for doing so?
It is not set when you build but is instead set in sitecustomize.py.
But changing
Thomas W wrote:
> I'm getting really annoyed with python in regards to
> unicode/ascii-encoding problems.
>
> The string below is the encoding of the norwegian word "fødselsdag".
>
s = 'f\xc3\x83\xc2\xb8dselsdag'
>
> I stored the string as "fødselsdag" but somewhere in my code it got
> tran
robert wrote:
> Leo Kislov wrote:
> > robert wrote:
> >> Why can the default locale not be set by its true name? but only by '' ? :
> >
> > Probably it is just not implemented. But since locale names are system
> > specific (For example windows accepts 'ch' as Chinese in Taiwan, where
> > as IANA
[EMAIL PROTECTED] wrote:
> I am playing around with OpenSwarm and was shocked to see that I cannot
> build Python with default encoding of utf-8 by passing a flag to
> configure... did I miss the option for doing so?
No. The default encoding (the return value of sys.getdefaultencoding()) should
al
> The string below is the encoding of the norwegian word "fødselsdag".
>
> >>> s = 'f\xc3\x83\xc2\xb8dselsdag'
I'm not sure which encoding method you used to get the string above.
Here's the result of my playing with the string in IDLE:
>>> u1 = u'fødselsdag'
>>> u1
u'f\xf8dselsdag'
>>> s1 = u1.e
Take a look at:
http://www.swig.org/
Julian wrote:
> Hi, first of all, I have to say I am new to Python. I have been working
> with a finite element analysis program written in c++. now, I am trying
> to 'rebuild' this code (possibly a full re-write) with scripting
> capability. I did some readin
Hi there;
i have a script that is not indented properly. Is there a way that i can
have it auto indented.
thanks
moe smadi
--
http://mail.python.org/mailman/listinfo/python-list
Jerry wrote:
> I am not a Python guru by any means, but I believe that when an
> application says that you can "script" their application with Python,
> it means that you can actually write Python code to interact with the
> application. Embedding may be the same thing. Extending (as I read
> it)
Santosh Chikkerur wrote:
> Hi Friends,
>
> How to use getchar( ) in python. I want to see the output of the program
> ,step by step.
> I have given print statements in between for the results..
> Hence i would like to print the output everytime there is
> getchar().which is the
> similar fn in p
I'm getting really annoyed with python in regards to
unicode/ascii-encoding problems.
The string below is the encoding of the norwegian word "fødselsdag".
>>> s = 'f\xc3\x83\xc2\xb8dselsdag'
I stored the string as "fødselsdag" but somewhere in my code it got
translated into the mess above and I
Tuomas wrote:
> Steven D'Aprano wrote:
>
>>On Sun, 05 Nov 2006 19:35:58 +, Tuomas wrote:
>>
>>
>>
>>>Thanks. My solution became:
>>>
>>>
>>def flattern(arg):
>>>
>>>... result = []
>>>... for item in arg:
>>>... if isinstance(item, (list, tuple)):
>>>... result.
I am playing around with OpenSwarm and was shocked to see that I cannot
build Python with default encoding of utf-8 by passing a flag to
configure... did I miss the option for doing so?
--
http://mail.python.org/mailman/listinfo/python-list
Hendrik van Rooyen schreef:
> "Jaap" <[EMAIL PROTECTED]> wrote:
>
>
>> Python ers,
Thanks!
all your replies have been both to the point and helpfull for me.
You have proven both Python and it's community are open and welcoming to
new users.
Jaap
--
http://mail.python.org/mailman/listinfo/pyth
I am not a Python guru by any means, but I believe that when an
application says that you can "script" their application with Python,
it means that you can actually write Python code to interact with the
application. Embedding may be the same thing. Extending (as I read
it) involves writing porti
sturlamolden wrote:
> billie wrote:
>
> > RAW network programming under Windows it's not always possible because
> > of the security limitations that microsoft introduced in the latest
> > Windows versions and that affects WinSocket API.
> > On UNIX systems I'm able to freely send raw packets (for
kath wrote:
> hi, Larry Bates thanks for the reply...
>
>> You might consider doing it the same way wx passes things around.
>> When you instantiate the subclass pass the parent class' instance
>> as first argument to __init__ method.
>
> Yes thats absolutely right..
>
>> That way the subcl
Hello,
I'm searching for a plotting package that will allow multiple y axes of
different scales. For example I'd like to overlay 4 or 5 time series
with each series having a separate axis. Does anyone know of such a
package?
Thank you,
Frank
--
http://mail.python.org/mailman/listinfo/python-li
Paolo Pantaleo schrieb:
> Well I'm just courious: if I want to buid a C extension, I shoul use
> the same compiler that has been used to build python (right?). Since
> python has been built using Visual C, how can I build an extension if
> I don't have Visual Studio?
If you don't have mingw32, eit
Shea> I am getting this error in a python script:
Shea>File "/usr/sfw/lib/python2.3/site-packages/BTL/cache.py", line 12,
in ?
Shea> from collections import deque
Shea> ImportError: No module named collections
Shea> Where can I download the python collection module?
I am getting this error in a python script:
File "/usr/sfw/lib/python2.3/site-packages/BTL/cache.py", line 12, in ?
from collections import deque
ImportError: No module named collections
Where can I download the python collection module? I am no python
programmer, but I can build/instal
Yes, from a easy of use standpoint, I agree that PythonCard is very
high on the list.
Unfortunately there isn't more "activities" as one would like to see.
On the other hand, that's typical of open-source projects. We can
always roll up our sleeves and do it ourselves.
At least the multicolumn
Sion Arrowsmith wrote:
> I don't know if this is the problem or not (knowing neither Qt nor
> Twisted), but creWin() creates a window (or two) then throws it
> (them?) away on returning to main() (I assume you've chopped
> off the bit where main() is actually called). So it's not too
> surprising
Google tells quite some things about it, but none of them are satisfactory.
I'm on Windows, and shutil operations (e.g. move, copy) throw [Errno 13]
Permission denied all the time, for the source files. It seems that this
is the case for all my files. But what I don't understand is that
yesterd
Tool69 wrote:
> I followed the docs to build qscintilla2, all is going well with no
> errors, but when I launched the PyQt Syntax Highlighter Example,
> nothing is highlighted but the first line of text, whereas the C++
> sample works well in the demo.
Do you mean the example from the PyQt4 distr
I'll just use Plone, thanks.
ompaniess wrote:
> Just like everybody else nowadays, you are facing infinite amount of
> information everyday. how can you keep those that truly matters to you?
> MemoDepot allows you to do just that, and much more!
>
> - Capture any information, store as notes in you
Hello Python users,
We are currently looking for a PYTHON DEVELOPER in Cleveland, OH. The
full-time position is with a LARGE CLIENT (situated in over 17
countries and headquartered in Cleveland) currently in a high-growth
mode and is WORLD's leading Internet Content Providing firm
The client offe
Just FYI, this is bug in CP filter machinery, xmlrpc filter do not
apply recursively so do not dispatch reuqest.
Quick fix is to xmlrpcfilter.on not only on /ws, but also on /ws/main
Regards,
Almad
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I have a string '((1,2), (3,4))' and I want to convert this into a
> python tuple of numbers. But I do not want to use eval() because I do
> not want to execute any code in that string and limit it to list of
> numbers.
here's yet another approach:
http://online.effb
Simon Wittber wrote:
> I want to build a Python2.5 interpreter for an embedded system. I only
> have 4MB of RAM to play with, so I want to really minimise the python
> binary.
[snip]
> Google tells me that people have done this before, back in Python1.5.2
> days. Has anyone tried to do this recentl
Kath,
You can use this class to pass values around
without concern for conflicts since it has no
values of its own.
class Kvariable:
def setVariable(self, variable):
self.output = variable
def showVariable(self):
print self.output
x = Kvariable()
y
IloChab <[EMAIL PROTECTED]> wrote:
[this works]
>def main():
>app = QtGui.QApplication(sys.argv)
>qt4reactor.install(app)
>MainWindow = QtGui.QMainWindow()
>win = Window(MainWindow)
>MainWindow.show()
>from twisted.internet import reactor
>reactor.run()
[this doesn't]
>
"kath" <[EMAIL PROTECTED]> wrote:
> hi, Larry Bates thanks for the reply...
>
>> You might consider doing it the same way wx passes things around.
>> When you instantiate the subclass pass the parent class' instance
>> as first argument to __init__ method.
>
> Yes thats absolutely right..
>
On 2006-11-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm planning to do C++ development together with Python on
> Linux. I understand that Linux allows only one timer per
> process. Does Python use the Linux timer?
No.
> If so, how do I use the timer without interfering with Python?
--
timmy schreef:
> hello i've been using the SPE editor on a moderately large project and
> it's constantly pausing during editing, like it's attempting to check
> something as i edit.
> as you can imagine a 4 second pause every few characters is EXTREMELY
> annoying when you just want to get some w
[EMAIL PROTECTED] wrote:
> Paul Boddie wrote:
>
> """The figures behind the scenes are quite enlightening for that
> particular page. If you (or community experiences) don't agree with the
>
> rankings (wxPython apparently even easier to learn than PythonCard and
> Tinder, a bunch of Gtk-based too
<[EMAIL PROTECTED]> wrote:
>so i just have tried, even if i think it will not go to the end => i
>was wrong : it is around 1.400.000 entries by dict...
>
>but maybe if keys of dicts are not duplicated in memory it can be done
>(as all dicts will have the same keys, with different (count) values)?
Hi Kaushal,
Other than "Core Python" by Chun, also try "Python: How To Program" by
Dietel & Dietel. It is one of the good books for bigginers.
Good Luck,
Mohan.
On Nov 6, 10:00 am, "kaushal" <[EMAIL PROTECTED]> wrote:
> Hi
>
> How do i start Learning Python,is there any reference material whi
Paul McGuire wrote:
> "Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> In <[EMAIL PROTECTED]>, Simon Wittber
>> wrote:
>>
>>> I'd also like to remove any deprecated or stuff which is left in for
>>> backwards functionality (eg Classic classes).
>>
>> Clas
1 - 100 of 134 matches
Mail list logo