Re: InteractiveConsole History on Linux

2006-07-15 Thread Chris Spencer
Robert Kern wrote: > Chris Spencer wrote: >> Robert Kern wrote: >>> Chris Spencer wrote: Why does code.InteractiveConsole support command history on Windows, but not in a Gnome terminal (all I get is ^[[A^[[B)? Or does it not support history at all, and the Windows console is imple

Re: reading specific lines of a file

2006-07-15 Thread John Machin
On 16/07/2006 2:54 PM, Nick Vatamaniuc top-posted: > Yi, > Use the linecache module. Yi, *don't* use the linecache module without carefully comparing the documentation and the implementation with your requirements. You will find that you have the source code on your computer -- mine (Windows bo

Re: reading specific lines of a file

2006-07-15 Thread Nick Vatamaniuc
Yi, Use the linecache module. The documentation states that : """ The linecache module allows one to get any line from any file, while attempting to optimize internally, using a cache, the common case where many lines are read from a single file. >>> import linecache >>> linecache.getline('/etc/pas

Re: InteractiveConsole History on Linux

2006-07-15 Thread Robert Kern
Chris Spencer wrote: > Robert Kern wrote: >> Chris Spencer wrote: >>> Why does code.InteractiveConsole support command history on Windows, >>> but not in a Gnome terminal (all I get is ^[[A^[[B)? Or does it not >>> support history at all, and the Windows console is implementing it's >>> own? Is

Re: InteractiveConsole History on Linux

2006-07-15 Thread Chris Spencer
Robert Kern wrote: > Chris Spencer wrote: >> Why does code.InteractiveConsole support command history on Windows, >> but not in a Gnome terminal (all I get is ^[[A^[[B)? Or does it not >> support history at all, and the Windows console is implementing it's >> own? Is there any way to get command

Re: InteractiveConsole History on Linux

2006-07-15 Thread Chris Spencer
vbgunz wrote: > vbgunz wrote: >>> Why does code.InteractiveConsole support command history on Windows, but >>> not in a Gnome terminal (all I get is ^[[A^[[B)? Or does it not support >>> history at all, and the Windows console is implementing it's own? Is >>> there any way to get command history wo

about Python types and objects

2006-07-15 Thread pipehappy
Hi everyone: I have read the booth python types and objects. I think its book for clearificating types and objects in python. It says there will be a book named python attributes and methods. Do you know any information about this book. I am interested in it. Thanks -- http://mail.python.or

Re: What is a type error?

2006-07-15 Thread Marshall
Joachim Durchholz wrote: > Marshall schrieb: > > Joachim Durchholz wrote: > >> As I said elsewhere, the record has an identity even though it isn't > >> explicit in SQL. > > > > H. What can this mean? > > > > In general, I feel that "records" are not the right conceptual > > level to think abou

Re: PyQT installation /configuration

2006-07-15 Thread [EMAIL PROTECTED]
David Boddie wrote: > The module structures for PyQt3 and PyQt4 are quite different: the > monolithic qt module from PyQt3 has been replaced by a number of > modules in PyQt4. Despite this, there is a similar way to "import qt" > in PyQt4: > > from PyQt4 import Qt > > However, you will have dif

Re: Python for Embedded Systems?

2006-07-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: >[EMAIL PROTECTED] (Cameron Laird) writes: >> Yes and no. Python could thrive for the next decade while >> utterly surrendering the small-and-embedded domain to Forth, >> Lua, Tcl, Scheme, and so on, so, no, there's no *

Re: PyQT installation /configuration

2006-07-15 Thread David Boddie
[EMAIL PROTECTED] wrote: > I've got another problem, I'm afraid - I've installed Qt 4.1.4 and PyQt > GPL v4.0 over Python 2.4, and the demos for both run happily enough, > but when I try to run the first example (in IDLE) from Boudewijn > Rempt's GUI Programming with Python: QT Edition I just get

Re: newbie graphing recommendations ?

2006-07-15 Thread Bryan
[EMAIL PROTECTED] wrote: > Adam wrote: >> Where should a py newbie start to do some 2D graphs on screen ? >> PythonGraphApi, >> Gato, looks interesting >> pygraphlib, >> matplotlib, >> is there a best native Python place to start ? > > The only good and simple way I have found so far to do some fr

Re: PyQT installation /configuration

2006-07-15 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > Phil Thompson wrote: > > For Qt4 use the binary installer from... > > > > http://www.trolltech.com/developer/downloads/qt/windows > > > > For PyQt4 use the binary installer from... > > > > http://www.riverbankcomputing.co.uk/pyqt/download.php > > Ah thanks, I'm a dork.

Re: How to lock files (the easiest/best way)?

2006-07-15 Thread Paul Rubin
Sybren Stuvel <[EMAIL PROTECTED]> writes: > I use a lock directory for that, os.mkdir('/var/lock/somedir'). > If you use a file, you need two steps: > 1) Check whether the lock-file exists > 2) Create the lock-file > This is not atomic. With a directory, creating it will fail if it > alread

Re: Python for Embedded Systems?

2006-07-15 Thread Paul Rubin
[EMAIL PROTECTED] (Cameron Laird) writes: > Yes and no. Python could thrive for the next decade while > utterly surrendering the small-and-embedded domain to Forth, > Lua, Tcl, Scheme, and so on, so, no, there's no *need* for a > TinyPython. On the other hand, yes, there are at least several > of

Re: automatic debugger?

2006-07-15 Thread R. Bernstein
[EMAIL PROTECTED] writes: > hi > is there something like an automatic debugger module available in > python? Say if i enable this auto debugger, it is able to run thru the > whole python program, print variable values at each point, or print > calls to functions..etc...just like the pdb module, bu

Re: reading specific lines of a file

2006-07-15 Thread bearophileHUGS
Pierre Quentel: > If the line number of the first line is 0 : > source=open('afile.txt') > for i,line in enumerate(source): > if i == line_num: > break > print line I don't know if something like this can be called an improvement: from itertools import islice afile = file('data.txt')

Re: Accessors in Python (getters and setters)

2006-07-15 Thread Ben C
On 2006-07-15, Gerhard Fiedler <[EMAIL PROTECTED]> wrote: > On 2006-07-15 06:55:14, mystilleef wrote: > >> In very well designed systems, the state of an object should only be >> changed by the object. > > IMO that's not quite true. Ultimately, the state always gets changed by > something else (us

Using MapPoint with Python

2006-07-15 Thread Eric Frost
New article on using Python scripting to automate map-making with example code, see screenshots. [MP2K Magazine] Using Python to Control MapPoint, Part 2 «Second of a two-part article by Richard Marsden on scripting MapPoint using Python.» http://www.mp2kmag.com/a134--python.winwaed.automation.m

Re: Letting a Python application phone home

2006-07-15 Thread Gerhard Fiedler
On 2006-07-15 12:45:16, Nils Oliver Kröger wrote: > This is surely possible. You need to define a protocol for the communication > between client and server. As you are planning to send data over the internet > you should build it on top of tcp. Look at the python module "socket" resp. > "Socke

Re: reading specific lines of a file

2006-07-15 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Yi Xing wrote: > I want to read specific lines of a huge txt file (I know the line #). > Each line might have different sizes. Is there a convenient and fast > way of doing this in Python? Thanks. Don't know how efficient the `linecache` module in the standard library is

Re: Package organization

2006-07-15 Thread Matt Good
Mike Wyatt wrote: > I've been playing around with Python for a few months now, and I just > recently started looking at packages to organize my growing project. So > far, I've been organizing my application into one class per module. > This has been working pretty well. For example, I simply "imp

Re: How to lock files (the easiest/best way)?

2006-07-15 Thread Gerhard Fiedler
On 2006-07-15 18:52:10, Sybren Stuvel wrote: > Elmo Mäntynen enlightened us with: >> Only locally. I want to be able to read/write to a single file from >> multiple possibly parallel processes. Would 'touch lock' (or >> something like that) work reliably (this just occured to me)? > > I use a loc

Re: Accessors in Python (getters and setters)

2006-07-15 Thread Gerhard Fiedler
On 2006-07-15 12:04:20, mystilleef wrote: > State - behavior is not something I made up, so it isn't subjective. It > is a common term used in OO literature. In fact, the only reason I used > it is because I thought is was common knowledge. Of course. But your association of state with attribute

Re: What is a type error?

2006-07-15 Thread Joachim Durchholz
Marshall schrieb: > Joachim Durchholz wrote: >> As I said elsewhere, the record has an identity even though it isn't >> explicit in SQL. > > H. What can this mean? > > In general, I feel that "records" are not the right conceptual > level to think about. They are, when it comes to aliasing o

Re: reading specific lines of a file

2006-07-15 Thread Simon Forman
Yi Xing wrote: > Hi All, > > I want to read specific lines of a huge txt file (I know the line #). > Each line might have different sizes. Is there a convenient and fast > way of doing this in Python? Thanks. > > Yi Xing I once had to do a lot of random access of lines in a multi gigabyte log file

Re: How to lock files (the easiest/best way)?

2006-07-15 Thread Elmo Mäntynen
On Sat, 15 Jul 2006 23:52:10 +0200, Sybren Stuvel wrote: > Elmo Mäntynen enlightened us with: >> Only locally. I want to be able to read/write to a single file from >> multiple possibly parallel processes. Would 'touch lock' (or >> something like that) work reliably (this just occured to me)? > >

Re: How to lock files (the easiest/best way)?

2006-07-15 Thread Elmo Mäntynen
On Sat, 15 Jul 2006 23:28:21 +0200, Sybren Stuvel wrote: > Elmo Mäntynen enlightened us with: >> Is there something better than using fnctl? It seems a bit >> intimidating with a quick look. > > Locking files is a complex business. What do you want to lock? Why? > Lock it with respect to what? It

Re: reading specific lines of a file

2006-07-15 Thread Bill Pursell
Yi Xing wrote: > I want to read specific lines of a huge txt file (I know the line #). > Each line might have different sizes. Is there a convenient and fast > way of doing this in Python? Thanks. #!/usr/bin/env python import os,sys line = int(sys.argv[1]) path = sys.argv[2] os.system("sed -n %d

Re: Python for Embedded Systems?

2006-07-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Carl J. Van Arsdall <[EMAIL PROTECTED]> wrote: . . . >This raises a good question. Is there a need for python to change >somewhat to work better in an embedded profile? Are there many people

Re: Python for Embedded Systems?

2006-07-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jack <[EMAIL PROTECTED]> wrote: >Yes, I mean Lua, not Loa :-p > >Lua is a nice language. Like you said, it doesn't have many libraries >as Python does. Plus, it's still evolving and the libraries are changing. >I found a few functions not working last time I tried k

Re: What is a type error?

2006-07-15 Thread Marshall
Joachim Durchholz wrote: > Marshall schrieb: > > >> In some cases, you need an additional level of conceptual indirection - > >> instead of *doing* the updates, you write a function that *describes* them. > > > > But then what do you do with that function? > > I pass it to an engine that's imperati

How to lock files (the easiest/best way)?

2006-07-15 Thread Elmo Mäntynen
Is there something better than using fnctl? It seems a bit intimidating with a quick look. -- http://mail.python.org/mailman/listinfo/python-list

Package organization

2006-07-15 Thread Mike Wyatt
I've been playing around with Python for a few months now, and I just recently started looking at packages to organize my growing project. So far, I've been organizing my application into one class per module. This has been working pretty well. For example, I simply "import timer", then use

Re: reading specific lines of a file

2006-07-15 Thread Piet van Oostrum
> Yi Xing <[EMAIL PROTECTED]> (YX) wrote: >YX> Hi All, >YX> I want to read specific lines of a huge txt file (I know the line #). Each >YX> line might have different sizes. Is there a convenient and fast way of >YX> doing this in Python? Thanks. Not fast. You have to read all preceding lines.

Re: reading specific lines of a file

2006-07-15 Thread Pierre Quentel
If the line number of the first line is 0 : source=open('afile.txt') for i,line in enumerate(source): if i == line_num: break print line Pierre -- http://mail.python.org/mailman/listinfo/python-list

reading specific lines of a file

2006-07-15 Thread Yi Xing
Hi All, I want to read specific lines of a huge txt file (I know the line #). Each line might have different sizes. Is there a convenient and fast way of doing this in Python? Thanks. Yi Xing -- http://mail.python.org/mailman/listinfo/python-list

Re: What is a type error?

2006-07-15 Thread Chris F Clark
Joachim Durchholz wrote: > > You can have aliasing without pointers; e.g. arrays are fully sufficient. > If i = j, then a [i] and a [j] are aliases of the same object. "Marshall" <[EMAIL PROTECTED]> writes: > I am having a hard time with this very broad definition of aliasing. > Would we also

Re: InteractiveConsole History on Linux

2006-07-15 Thread Robert Kern
Chris Spencer wrote: > Why does code.InteractiveConsole support command history on Windows, but > not in a Gnome terminal (all I get is ^[[A^[[B)? Or does it not support > history at all, and the Windows console is implementing it's own? Is > there any way to get command history working with Int

Re: InteractiveConsole History on Linux

2006-07-15 Thread vbgunz
vbgunz wrote: > > Why does code.InteractiveConsole support command history on Windows, but > > not in a Gnome terminal (all I get is ^[[A^[[B)? Or does it not support > > history at all, and the Windows console is implementing it's own? Is > > there any way to get command history working with Inte

Re: InteractiveConsole History on Linux

2006-07-15 Thread vbgunz
> Why does code.InteractiveConsole support command history on Windows, but > not in a Gnome terminal (all I get is ^[[A^[[B)? Or does it not support > history at all, and the Windows console is implementing it's own? Is > there any way to get command history working with InteractiveConsole on > Lin

Re: newbie graphing recommendations ?

2006-07-15 Thread bearophileHUGS
Adam wrote: > Where should a py newbie start to do some 2D graphs on screen ? > PythonGraphApi, > Gato, looks interesting > pygraphlib, > matplotlib, > is there a best native Python place to start ? The only good and simple way I have found so far to do some free graphics with Python in a Window i

Re: Detecting socket connection failure

2006-07-15 Thread Dieter Maurer
[EMAIL PROTECTED] writes on 10 Jul 2006 08:42:11 -0700: > I've tried to RTFM this and am having no luck.First off, I am using > Mac OSX 10.4.7 with python 2.4.2 from fink. I am trying to connect to > a server that should be rejecting connections and I was surprised when > it did not throw an e

Re: Python for Embedded Systems?

2006-07-15 Thread Jack
Yes, I mean Lua, not Loa :-p Lua is a nice language. Like you said, it doesn't have many libraries as Python does. Plus, it's still evolving and the libraries are changing. I found a few functions not working last time I tried kepler libraries. It's good for embedded systems though because of its

Re: Python for Embedded Systems?

2006-07-15 Thread Paul McGuire
> > On-board Ethernet and CAN (Controller Area Network - wireless) > Ooops, my bad - CAN is not wireless, it is a serial network specifically for linking with other ucontroller boards. I was thinking of the onboard Bluetooth of the gumstix boards. -- Paul -- http://mail.python.org/mailman/listi

Re: Python for Embedded Systems?

2006-07-15 Thread Paul McGuire
Jack wrote: > Is there a Python packaging that is specifically for > embedded systems? ie, very small and configurable so the > user gets to select what modules to install? > > For Linux-based embedded systems in particular? > > I'm thinking of running it on the Linksys's Linux-based open > source

Re: Python for Embedded Systems?

2006-07-15 Thread Paul McGuire
Jack wrote: > Is there a Python packaging that is specifically for > embedded systems? ie, very small and configurable so the > user gets to select what modules to install? > You might also look at the gumstix embedded system, Linux running on an ARM processor in an extremely small form factor. (ht

Re: Letting a Python application phone home

2006-07-15 Thread Nils Oliver Kröger
Am Freitag, 14. Juli 2006 15:26 schrieb Dieter Vanderelst: This is surely possible. You need to define a protocol for the communication between client and server. As you are planning to send data over the internet you should build it on top of tcp. Look at the python module "socket" resp. "Sock

Re: EuroPython 2006 and Py3.0

2006-07-15 Thread Antoon Pardon
On 2006-07-14, Lawrence Oluyede <[EMAIL PROTECTED]> wrote: > Antoon Pardon <[EMAIL PROTECTED]> wrote: > >> I have a tree class, a tree acts like a dictionary, but when you >> iterate over it, it always iterates over the keys in order. This >> makes it usefull to iterate over a slice. So it would be

Re: Accessors in Python (getters and setters)

2006-07-15 Thread mystilleef
Gerhard Fiedler wrote: > On 2006-07-15 06:55:14, mystilleef wrote: > > > In very well designed systems, the state of an object should only be > > changed by the object. > > IMO that's not quite true. Ultimately, the state always gets changed by > something else (user interaction, physical events);

Re: dict = no ordered keys = no slicing

2006-07-15 Thread Antoon Pardon
On 2006-07-14, Nick Vatamaniuc <[EMAIL PROTECTED]> wrote: >>I have a tree class, a tree acts like a dictionary, but when you >> iterate over it, it always iterates over the keys in order. > > Antoon, > > First of all there is a distinction between ordered and un-ordered data > types. You can only s

Re: Getting focused window of another app

2006-07-15 Thread Jim Lewis
Never mind ... wHnd = win32gui.GetForegroundWindow() Caption = win32gui.GetWindowText (wHnd) -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie graphing recommendations ?

2006-07-15 Thread jc
Adam wrote: > Where should a py newbie start to do some 2D graphs on screen ? > > PythonGraphApi, > Gato, looks interesting > pygraphlib, > matplotlib, > > is there a best native Python place to start ? > > > If you are going to be in wxPython try the 'PyPlot.py' examples in the

Re: NB question on global/local variables in functions

2006-07-15 Thread Fredrik Lundh
Wolfgang wrote: >> First, avoid "from function import *" as it pollutes your namespace. Either >> import specific symbols or just the module: >> >> from function import fun, fun1 >> import function > > thanks for the hint! But what is the difference between > from module import * >

Re: NB question on global/local variables in functions

2006-07-15 Thread Wolfgang
Thanks! I've learned a lot today! Wolfgang -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessors in Python (getters and setters)

2006-07-15 Thread Gerhard Fiedler
On 2006-07-15 06:55:14, mystilleef wrote: > In very well designed systems, the state of an object should only be > changed by the object. IMO that's not quite true. Ultimately, the state always gets changed by something else (user interaction, physical events); very few objects are completely se

Re: NB question on global/local variables in functions

2006-07-15 Thread skip
Wolfgang> thanks for the hint! But what is the difference between Wolfgang> from module import * Wolfgang> and Wolfgang> import module Wolfgang> ? Try it and see. I happen to have a.py laying about: import atexit def work(): print "whew! work is hard" d

Re: ctypes wrapping libpam.so on FreeBSD 6.1 - Python Bus Error

2006-07-15 Thread Martin P. Hellwig
Frederik & Ganesan, Thanks for the explanation, it did me realize that I should learn some C first before I'm going to start wrapping something :-) At least I got a reason now to do something with C, though it should take me some time. But again, thanks! Martin -- http://mail.python.org/mail

Re: NB question on global/local variables in functions

2006-07-15 Thread Wolfgang
Wolfgang schrieb: >> First, avoid "from function import *" as it pollutes your namespace. Either >> import specific symbols or just the module: >> >> from function import fun, fun1 >> import function > > thanks for the hint! But what is the difference between > from module import * >

[ANN] XPN 0.5.7 released

2006-07-15 Thread Nemesis
XPN (X Python Newsreader) is a multi-platform newsreader with Unicode support. It is written with Python+GTK. It has features like scoring/actions, X-Face and Face decoding, muting of quoted text, newsrc import/export, find article and search in the body, spoiler char/rot13, random taglines and con

Re: NB question on global/local variables in functions

2006-07-15 Thread Wolfgang
> > First, avoid "from function import *" as it pollutes your namespace. Either > import specific symbols or just the module: > > from function import fun, fun1 > import function thanks for the hint! But what is the difference between from module import * and import module ? >

Re: NB question on global/local variables in functions

2006-07-15 Thread skip
Wolfgang> So I have some variables which should be accessible by all my Wolfgang> functions but not accessible by the rest of my code. How can I Wolfgang> do this? Wolfgang> ###function.py: Wolfgang> c1=123.0 Wolfgang> c2=134.0 Wolfgang> def fun(temp): Wolfgang>

NB question on global/local variables in functions

2006-07-15 Thread Wolfgang
Hi all, I've started to write some functions but I have some problems with common variables in that functions. So I have some variables which should be accessible by all my functions but not accessible by the rest of my code. How can I do this? Thanks Wolfgang ###function.py: c1=123.0 c2=134

Re: Python for Embedded Systems?

2006-07-15 Thread Paul Rubin
Paul Rubin writes: > SIOD was a well known very small Scheme interpreter that you might > like to play with: > > http://en.wikipedia.org/wiki/SIOD Here's another one that I like. I haven't actually used it but studied it for possible integration in an embedded project

Re: Configuring IDLE on Linux

2006-07-15 Thread Ten
On Friday 14 July 2006 04:26, Satya Kiran wrote: > Hello, > I have upgraded to Python2.4 on my Red Hat 9.0 Linux box. > I want to work with IDLE and ran a search to check it's presence. > Here is what I get. > > [EMAIL PROTECTED] bin]# find / -iname idlelib > /usr/local/lib/python2.4/idlelib > > [

Re: Python for Embedded Systems?

2006-07-15 Thread Paul Rubin
"H J van Rooyen" <[EMAIL PROTECTED]> writes: > What is the minimum set of instructions and structure needed to make a > simplistic Python? - does anybody know? There have been lots of Lisps for the PDP-11 and comparable machines. Python's runtime semantics are close enough to Lisp that you could p

Re: Python for Embedded Systems?

2006-07-15 Thread Sébastien Boisgérault
Jack a écrit : > If Python is not the best candidate for embedded systems because > of the size, what (scripting) language would you recommend? > > PHP may fit but I don't quite like the language. Anything else? > Loa is small but it does not seem to be powerful enough. You mean Lua ? Not powerfu

Re: PyQT installation /configuration

2006-07-15 Thread [EMAIL PROTECTED]
Phil Thompson wrote: > On Saturday 15 July 2006 9:25 am, [EMAIL PROTECTED] wrote: > > Hi there. I've been trying to get PyQT working on W2K, but have not yet > > found a sufficiently detailed walk-through for my somewhat > > command-line-challenged sensibilities. I did find this page: > > http://w

Re: Accessors in Python (getters and setters)

2006-07-15 Thread mystilleef
On State and Behavior: To understand objects in terms of state and behavior you need to absolve yourself from implementation details of languages and think at an abstract level. Take a button object, for example. It has state and behavior. Possible states may include, is_active, is_focused, is_ma

Re: Python for Embedded Systems?

2006-07-15 Thread H J van Rooyen
"Carl J. Van Arsdall" <[EMAIL PROTECTED]> Wrote: To: Sent: Friday, July 14, 2006 7:36 PM Subject: Re: Python for Embedded Systems? | Grant Edwards wrote: | > On 2006-07-14, Jack <[EMAIL PROTECTED]> wrote: | > | >> Is there a Python packaging that is specifically for | >> embedded systems? ie, v

Re: Augument assignment versus regular assignment

2006-07-15 Thread Piet van Oostrum
> Gerhard Fiedler <[EMAIL PROTECTED]> (GF) wrote: >GF> On 2006-07-14 16:07:28, Piet van Oostrum wrote: >AP> 2a) In case you answer yes to question (1). Can you explain me how >AP> I have to read the language reference in order to deduce this >AP> is indeed the way things should be understood.

Re: attaching debugger to runinng python program

2006-07-15 Thread Nebur
You may try winpdb. I find it to be a comfortable debugger that also can attach to running programs. (You need to add a line in your code where the program should stop and wait for the debugger to attach.) I am satisfied with it, but I did not debug a multi theaded app. However, it can handle threa

Re: PyQT installation /configuration

2006-07-15 Thread Phil Thompson
On Saturday 15 July 2006 9:25 am, [EMAIL PROTECTED] wrote: > Hi there. I've been trying to get PyQT working on W2K, but have not yet > found a sufficiently detailed walk-through for my somewhat > command-line-challenged sensibilities. I did find this page: > http://www.diotavelli.net/PyQtWiki/GPLPy

PyQT installation /configuration

2006-07-15 Thread [EMAIL PROTECTED]
Hi there. I've been trying to get PyQT working on W2K, but have not yet found a sufficiently detailed walk-through for my somewhat command-line-challenged sensibilities. I did find this page: http://www.diotavelli.net/PyQtWiki/GPLPyQtWindows , but I'm not sure about installing the whole of Visual S

Re: How can get button's name when cursor move over the button ona web page?

2006-07-15 Thread H J van Rooyen
"Steve Holden" <[EMAIL PROTECTED]> wrote: 8<(snip)- |Questions nowadays have no idea which groups they belong to. When *I* |was a lad questions had to know their place. A question that appeared in ||the wrong group would be torched with flames that could be guaranteed to |b

Re: Python on RedHat AS 2.1?

2006-07-15 Thread Fredrik Lundh
Jeremy Winters wrote: > Installable package? > > Any ideas? is RedHat no longer providing pre-built packages for their distributions ? -- http://mail.python.org/mailman/listinfo/python-list

Re: math symbols not displaying

2006-07-15 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Andrew Dabrowski wrote: > I'm working on a simple Python program, with Tkinter, and I need to > display the math symbols for set union and intersection, in unicode > \N{N-ARY UNION} and \N{N-ARY INTERSECTION}. Everything was displaying > correctly (when I ran the program

Re: CPU or MB Serial number

2006-07-15 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, Sybren Stuvel <[EMAIL PROTECTED]> wrote: >Bayazee enlightened us with: >> How can I get CPU Serial number , or motherboard serial number with >> python . I need an idetification of a computer > >Not sure if that'll be sufficient. My serial numbers (according t

Re: Is there a limit to os.popen()?

2006-07-15 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, Steve Holden <[EMAIL PROTECTED]> wrote: >If you are seeing alot of error messages you shoudl really redirect the >standard error to a file to avoid them cluttering up your console. Surely a better technique would be to fix the errors causing the messages. -- ht

Re: stderr, stdout, and errno 24

2006-07-15 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, "Wesley Henwood" <[EMAIL PROTECTED]> wrote: >I've checked and double checked my code and I am closing all files >explicitly after opening them. If you're running your program under Linux, a very easy way to confirm this is to look in the directory /proc//fd