Re: What is python?????

2007-11-16 Thread Hendrik van Rooyen
: Thorsten Kampe thorste...enkampe.de wrote: * Cope (Fri, 16 Nov 2007 06:09:31 -0800 (PST)) please tell me what is python.This group is so crowded. A Python is dangerous snake[1]. This group here mainly consists of misguided snake worshippers. You'd better run before they come to your

Re: What is python?????

2007-11-16 Thread Hendrik van Rooyen
kyoso..gmail.com(Mike) wrote: On Nov 16, 1:16 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Nov 16, 8:14 am, Thorsten Kampe [EMAIL PROTECTED] wrote: * Cope (Fri, 16 Nov 2007 06:09:31 -0800 (PST)) please tell me what is python.This group is so crowded. A Python is dangerous

Re: pyserial: loose connection after inactivity

2007-11-08 Thread Hendrik van Rooyen
Frank Aune Fran...park.no wrote: Hello, I configure the serial connection using: self.port = serial.Serial(baudrate=57600, timeout=0.06, parity=serial.PARITY_EVEN,

Re: Python good for data mining?

2007-11-06 Thread Hendrik van Rooyen
D.Hering vel.a..mail.com wrote: [1] Anything/everything that is physical/virtual, or can be conceived is hierarchical... if the system itself is not random/chaotic. Thats a lovely revelation I've had... EVERYTHING is hierarchical. If it has context it has hierarchy. Do I hear Echoes of What

Re: count increment...

2007-11-03 Thread Hendrik van Rooyen
Beema shafreen wrote: 8 --- file my script: #!/usr/bin/env python fh = open('complete_span','r') line = fh.readline().split('#') old_probe = line[0].strip() old_value = line[1].strip() print old_probe, old_value count = 1 Better to start the count off as

Re: python newbie

2007-11-02 Thread Hendrik van Rooyen
Bruno Desthuilliers wrote: functions are *not* methods of their module. Now I am confused - if I write: result = foo.bar(param) Then if foo is a class, we probably all agree that bar is a method of foo. But the same syntax would work if I had imported some module as foo. So what's the

Re: dynamically generating temporary files through python/cgi (ot)

2007-11-01 Thread Hendrik van Rooyen
Miss Pfeffe wrote: How do you make a python out of a banana?! You kiss it just long enough - else it turns into a frog, so be careful! -- http://mail.python.org/mailman/listinfo/python-list

Re: Built-in functions and keyword arguments

2007-10-29 Thread Hendrik van Rooyen
Tim Chase [EMAIL PROTECTED] I think you are being a little bit unfair here: help(len) says: len(...) len(object) - integer Return the number of items of a sequence or mapping. which implies that the argument to len has the name 'object' (although in fact it

Re: Built-in functions and keyword arguments

2007-10-29 Thread Hendrik van Rooyen
Jean-Paul Calderone [EMAIL PROTECTED] wrote: On Mon, 29 Oct 2007 19:03:34 +0200, Hendrik van Rooyen [EMAIL PROTECTED] wrote: Looks like a gotcha to me - its the difference between a keyword (master = 42) and an assignment (s='I am a string') But it's not a keyword: len(s

Re: Going past the float size limits?

2007-10-28 Thread Hendrik van Rooyen
Steven D'Aprano steve.com.au wrote: Calculating numbers like 10**52 or its reciprocal is also a very good exercise in programming. Anyone can write a program to multiply two floating point numbers together and get a moderately accurate answer: product = X*Y # yawn But

Re: Proposal: Decimal literals in Python.

2007-10-28 Thread Hendrik van Rooyen
Paul Hankin p...l.comwrote: Even clearer is not to allow octal literals :) Is there *any* use for them? I tend to agree with this point of view - but I fear it will set up a howl of protest amongst the Brits who cut their teeth on 24 bit ICT/ICL equipment... - Hendrik --

Re: Going past the float size limits?

2007-10-27 Thread Hendrik van Rooyen
[EMAIL PROTECTED] wrote: On Oct 26, 6:56 pm, Chris Mellon [EMAIL PROTECTED] wrote: What in the world are you trying to count? The calculation looks like this A = 0.35 T = 0.30 C = 0.25 G = 0.10 and then I basically continually multiply those numbers together. I need to do it like

Re: transmit an array via socket

2007-10-27 Thread Hendrik van Rooyen
Jeff Pang p...uno.com wrote: I want to transmit an array via socket from a host to another. How to do it? thank you. pickle it and send it and unpickle it on the other side. See the cPickle module docs for loads and dumps. - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Iteration for Factorials

2007-10-24 Thread Hendrik van Rooyen
Jon Ribbens jon+use...quivocal.co.uk wrote: On 2007-10-23, Hendrik van Rooyen [EMAIL PROTECTED] wrote: Yuk. Reminds me of one of the Hitachi processors that has a single depth hardware link register that tells a subroutine where it was called from. That's how ARM processors work

Re: Iteration for Factorials

2007-10-23 Thread Hendrik van Rooyen
Marco Mariani marcarta.com wrote: I don't see how my answer is in any way worse than those based on lambda. Maybe I'm just envious because when I was his age I couldn't google for answers. He should at least be able to do that, shouldn't he? But wait. That would mean understanding

Re: Need help parsing with pyparsing...

2007-10-23 Thread Hendrik van Rooyen
Paul McGuire ptstin.rr.com wrote: By the way, are these possible data lines?: A Line With No Upper Case Words A LINE WITH NO TITLE CASE WORDS SOME UPPER CASE WORDS A Title That Begins With A One Letter Word That last one is a killer, and comes under the heading of cruel and unusual.

Re: Need help parsing with pyparsing...

2007-10-23 Thread Hendrik van Rooyen
Just Another Victim of the Ambient Morality ihatemail.com wrote: FAHRENHEIT 451 2000 Copies Sold 1984 Book Of The Year The last example is actually okay but the first one is honestly ambiguous. hey - Fahrenheit 451 - if my memory serves me correctly, by Ray Bradbury, is a classic of

Re: Iteration for Factorials

2007-10-23 Thread Hendrik van Rooyen
Dennis Lee Bieber [EMAIL PROTECTED] wrote: Heh... the one saving grace of taking a CS major in a period where the primary languages taught were FORTRAN (IV), COBOL (74), and something close to KK BASIC. Heck, even the assembler class followed the FORTRAN parameter handling scheme (argument

Re: what is the difference between the two kinds of brackets?

2007-10-21 Thread Hendrik van Rooyen
Paul Hankin pamail.com wrote: If everything else is equal, use tuples. Interesting point of view - mine is just the opposite. I wonder if its the philosophical difference between: Anything not expressly allowed is forbidden and Anything not expressly forbidden is allowed ? - Hendrik

Re: What Data is Available With a Pickled Object Over a Socket?

2007-10-19 Thread Hendrik van Rooyen
milan_sanremo hanco,,,ail.comwrote: pickledMailbag = cPickle.dump(mb, HIGHEST_PROTOCOL) If you are going to send it over a socket - is it not better to use dumps instead of dump? - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Noob questions about Python

2007-10-19 Thread Hendrik van Rooyen
Arnaud Delobelle arnoemail.com wrote: In binary 2 is 10. When you multiply by 10, you shift all your digits left by 1 place. When you multiply by 10**n (which is 1 followed by n zeroes), you shift all your digits left by n places. I read somewhere: Only 1 person in 1000 understands

Re: Last iteration?

2007-10-18 Thread Hendrik van Rooyen
Raymond Hettinger pyt...cn.com wrote: More straight-forward version: def lastdetecter(iterable): t, lookahead = tee(iterable) lookahead.next() return izip(chain(imap(itemgetter(0), izip(repeat(False), lookahead)), repeat(True)), t) If this is what you call straightforward -

Re: [Pyro] ConnectionClosedError

2007-10-13 Thread Hendrik van Rooyen
George Sakkis ge...ail.com wrote: Didn't have much luck with this in the Pyro mailing list so I am trying here, just in case. I have a Pyro server running as a daemon process and occasionally (typically after several hours or days of uptime) a ConnectionClosedError is raised when a client

Re: Moving objects in Tkinter

2007-10-13 Thread Hendrik van Rooyen
Evjen Halverson wrote: I have tried to make a Tkinter program make a rectangle move down the window, but did not succeed. All it does is make a rectangle trail. What am I doing wrong? You are not deleting the old instances of the rectangle. Look at the delete method of the canvas

Re: Please Help me

2007-10-06 Thread Hendrik van Rooyen
Jean-Francois Canac wrote: 8 -- duplicate request --- see other answer. - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter question

2007-10-06 Thread Hendrik van Rooyen
Kevin Walzer [EMAIL PROTECTED] wrote: I find pack to be more flexible than grid, so I prefer it for complex layouts. grid is better for simple layouts. *does a double take* are you serious? - my experience is that pack is only good for simple single row or single column stuff. - Hendrik

Re: module confusion

2007-10-05 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] wrote: Hendrik van Rooyen wrote: Steve Holden ste...web.com wrote: religious issues for me. It's more like This problem has a cross head, so I'll need a Philips screwdriver. As long as it is not a Pozidrive, that is a commendable attitude. I said

Re: Program with wx in Linux and Windows

2007-10-05 Thread Hendrik van Rooyen
marcpp ma...mail.com wrote: Hi I've developed a program (WXpython GUI). In Linux the GUI is correct (various distributions), but in Windows all appears disordered. Any recomendations? You are not going to like this recommendation. Use Tkinter instead - seems to work nicely cross platform

Re: Real time plot

2007-10-05 Thread Hendrik van Rooyen
Jean-Francois Canac jfcan...e.fr wrote: Hendrik van Rooyen m.co.za a écrit dans le message de news: I would draw dots on a suitably sized Tkinter canvas, after drawing a schematic of the race track (laborious). 20 per second will be no problem, provided the machine is half decent

Re: racism kontrol (OT)

2007-10-05 Thread Hendrik van Rooyen
Wildemar Wildenburger lasses_w...so.net wrote: Hendrik van Rooyen wrote: Wildemar Wildenburger lasseeso.net wrote: (By the way: Accusing a German of racism is almost too easy an insult. Not that I had taken any, just saying.) I always thought that it would be insulting

Re: Real time plot

2007-10-04 Thread Hendrik van Rooyen
Jean-Francois Canac wrote: I am reading a large amount of data from a COM port (or from a file) at a rate of 20 records per second. It is about positioning of a vehicle on a race track. In each record we have time, position (lat and long) speed, course all from GPS equipment. I would like to

Re: module confusion

2007-10-04 Thread Hendrik van Rooyen
Steve Holden ste...web.com wrote: religious issues for me. It's more like This problem has a cross head, so I'll need a Philips screwdriver. As long as it is not a Pozidrive, that is a commendable attitude. - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: racism kontrol

2007-10-04 Thread Hendrik van Rooyen
Wildemar Wildenburger lasseeso.net wrote: (By the way: Accusing a German of racism is almost too easy an insult. Not that I had taken any, just saying.) I always thought that it would be insulting to a German if you accused him or her of not being a racist... - Hendrik --

Re: module confusion

2007-10-04 Thread Hendrik van Rooyen
Lawrence D'Oliveiro [EMAIL PROTECTED] wote: Honestly, why do people react to the word pointer as though computers have to wear underwear to conceal something shameful going on in their nether regions? I think it is because a pointer is a variable containing as a value the address of

Re: Google and Python

2007-09-27 Thread Hendrik van Rooyen
Nick Craig-Wood od.com wrote: Hendrik van Rooyen ma.p.co.za wrote: Paul Rubin http://lid wrote: Hendrik van Rooyen m..orp.co.za writes: Ok got it - so instead of starting a thread, as is current practice, you fork a process (possibly on another machine) and hand over

Re: Google and Python

2007-09-26 Thread Hendrik van Rooyen
Paul Rubin http://lid wrote: Hendrik van Rooyen m..orp.co.za writes: What is the advantage of passing the open file rather than just the fully qualified file name and having the other process open the file itself? The idea is that the application is a web server. The socket listener

Re: Google and Python

2007-09-25 Thread Hendrik van Rooyen
Nick Craig-Wood nid.com wrote: Passing file descriptors between processes is one of those things I've always meant to have a go with, but the amount of code (in Advanced Programming in the Unix Environment) needed to implement it is rather disconcerting! A python module to do it would be

Re: Writing Object Data to Disk

2007-09-22 Thread Hendrik van Rooyen
Amit Kumar Saha dao.in wrote: I would like to know if Pickling the class object is the only way of writing it to disk for persistent storage. look at marshall and shelve ...Also, do we have a concept similar to array of objects in

Re: Google and Python

2007-09-20 Thread Hendrik van Rooyen
TheFlyingDutchman [EMAIL PROTECTED] wrote: Around 2000 I heard that Google was using Python to some extent. Now I see that Guido Van Rossum works for them as well as Alex Martellis 8 - - It seems that

Re: Tutorial or Example (or Tutorial) of Using Canvas to Producea Plot

2007-09-20 Thread Hendrik van Rooyen
W. Watson [EMAIL PROTECTED] wrote: I'm just trying to get some feel for how canvas works. I'm about to modify a program I use for meteor work. It uses canvas to display images, and I plan to draw on the image. For example, I plan to draw compass headings on a circle every 30 degrees.

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-20 Thread Hendrik van Rooyen
Steven D'Aprano [EMAIL PROTECTED] wrote: I think a better question is, how much faster/slower would Stein's code be on today's processors, versus CPython being hand-simulated in a giant virtual machine made of clockwork? This obviously depends on whether or not the clockwork is orange

Re: list index()

2007-09-01 Thread Hendrik van Rooyen
Erik Max Francis ma...e.com wrote: Hendrik van Rooyen wrote: weird this - maybe a native English speaker can comment - when I pronounce what fishermen do - it rhymes with roll, but when I am talking about the thing that lives under bridges and munches goats, the O sound is shorter

Re: list index()

2007-09-01 Thread Hendrik van Rooyen
Paddy pado.mail.com wrote: I say the 'oll' in troll like the 'ol' in frolic, and pronounce roll and role similarly. My accent is probably from the East Midlands of the UK, but is not pronounced. Same here - when the Troll lives under a bridge - I could not think of something to rhyme

Re: list index() (OT)

2007-09-01 Thread Hendrik van Rooyen
Richie Hindle richi...ian.com wrote: But - the word for someone who posts to the internet with the intention of stirring up trouble derives from the word for what fishermen do, not from the word for something that lives under a bridge. It derives from trolling for suckers or trolling for

Re: Let's Unite Against Jews and Mongrels!

2007-09-01 Thread Hendrik van Rooyen
Wildemar Wildenburger lasstwieso.net wrote: Barry OGrady wrote: He has some wrong ideas. The blacks are victims of the jews as well. And Jews are the victims of Christians. And Christians are the victims of Muslims. Anybody not a victim of anyone else, please raise your hand!

Re: list index()

2007-09-01 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] wrote: Paddy wrote: My accent is probably from the East Midlands of the UK, but is not pronounced. If your accent isn't pronounced how do we know what it sounds like? When he says pronounced, he doesn't mean pronounced, he means pronounced! - To

Re: Is there a simple way to exit a while loop on keystroke?

2007-09-01 Thread Hendrik van Rooyen
gsxg [EMAIL PROTECTED] wrote: I am new to python, and have written a simple program to read a port via telnet. I would like it to run until any key is pressed. Of course I wouldn't mind requiring a specific keystroke in the future, but I would think this is simpler for now. I have used

Re: Non-Blocking IO

2007-09-01 Thread Hendrik van Rooyen
mp mailil.com wrote: Calling try3() yields the error: File ./test.py, line 54, in try3 print os.read(fout.fileno(),256) OSError: [Errno 35] Resource temporarily unavailable This means there is no data available- its actually working! - Hendrik --

Re: list index() (OT)

2007-09-01 Thread Hendrik van Rooyen
Steve Holden s...web.com wrote: Where's Godwin's Law when yo need it? Hitler would not have spellt you like that... - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: status of Programming by Contract (PEP 316)?

2007-09-01 Thread Hendrik van Rooyen
Carl Banks pavlmail.com wrote: This is starting to sound silly, people. Critical is a relative term, and one project's critical may be anothers mundane. Sure a flaw in your flagship product is a critical problem *for your company*, but are you really trying to say that the

Re: list index()

2007-08-31 Thread Hendrik van Rooyen
Carsten Haese car...ys.com wrote: .. If we start labeling people, this thread will earn you a label that rhymes with roll. weird this - maybe a native English speaker can comment - when I pronounce what fishermen do - it rhymes with roll, but when I am talking about the thing

Re: Socket recv(1) seems to block instead of returning end of file.

2007-08-24 Thread Hendrik van Rooyen
Grant Edwards grcom wrote: On 2007-08-23, Hendrik van Rooyen mocorp.co.za wrote: While doing a netstring implementation I noticed that if you build a record up using socket's recv(1), then when you close the remote end down, the recv(1) hangs, I don't see that behavior running

Re: Socket recv(1) seems to block instead of returning end of file.

2007-08-24 Thread Hendrik van Rooyen
Dan Stromberg - Datallegro dstrtallegro.com wrote: Are you using sock.settimeout()? Yes. I've always done timed-out sockets in python using select; IINM, the settimeout method is a new addition. I agree with Grant though - posting a minimal snippet of code that replicates the

Re: Socket recv(1) seems to block instead of returning end of file.

2007-08-24 Thread Hendrik van Rooyen
Grant Edwards gra...si.com wrote: On 2007-08-23, Dan Stromberg - Datallegro dstrgro.com wrote: Are you using sock.settimeout()? Hey, somebody snuck timeouts into the socket module when I wasn't looking... I agree with Grant though - posting a minimal snippet of code that

Re: How would I go about making a file open. Not the way you might think.

2007-08-23 Thread Hendrik van Rooyen
Lamonte Harris wrote: Basically you can open a file by double clicking, and by default it would open w/ what every program you have it set to. Most text files would open in notepad. How can I make a txt open so that notepad opens w/ the content in it by using just python. I asked this

Socket recv(1) seems to block instead of returning end of file.

2007-08-23 Thread Hendrik van Rooyen
While doing a netstring implementation I noticed that if you build a record up using socket's recv(1), then when you close the remote end down, the recv(1) hangs, despite having a short time out of 0.1 set. If however, you try to receive more than one char, (I tested with 3, did not try 2),

Re: Submit Your Python Scripts

2007-08-22 Thread Hendrik van Rooyen
Steve Holden ste..nweb.com wrote: Ooh, goody. I just *live* to expose my scripts. Not. What? And miss out on all the wonderful special offers? ;-) - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Dispatching default application for file, cross platform.

2007-08-22 Thread Hendrik van Rooyen
How do I do the equivalent of clicking (in SuSe) or double clicking (in Windows) on a file? In effect I want to tell the OS - take this file and feed it to the application that is registered for it. Not too sure what to Google for. - Hendrik --

Re: Dispatching default application for file, cross platform.

2007-08-22 Thread Hendrik van Rooyen
Tim Golden [EMAIL PROTECTED] wrote: Hendrik van Rooyen wrote: How do I do the equivalent of clicking (in SuSe) or double clicking (in Windows) on a file? In effect I want to tell the OS - take this file and feed it to the application that is registered for it. Not too sure what

Re: Dispatching default application for file, cross platform.

2007-08-22 Thread Hendrik van Rooyen
Tim Golden mame.uk Peter Otten wrote: Tim Golden wrote: Hendrik van Rooyen wrote: How do I do the equivalent of clicking (in SuSe) or double clicking (in Windows) on a file? In effect I want to tell the OS - take this file and feed it to the application that is registered

Re: Dispatching default application for file, cross platform.

2007-08-22 Thread Hendrik van Rooyen
Tommy Nordgren [EMAIL PROTECTED] wrote: On 22 aug 2007, at 12.04, Peter Otten wrote: Tim Golden wrote: Hendrik van Rooyen wrote: How do I do the equivalent of clicking (in SuSe) or double clicking (in Windows) on a file? In effect I want to tell the OS - take this file

Re: best GUI library for vector drawing program

2007-08-18 Thread Hendrik van Rooyen
pierbre.it [EMAIL PROTECTED] wrote: I used wxWidgets for a work like that. I found it quite easy to use and I found simple to create a Gui with wxdev which is quite rad. bye Pier Paolo There is also pycad, but apart from knowing that it exists, I know nothing about it. - Hendrik --

Re: (sort of) deterministic timing in Python

2007-08-17 Thread Hendrik van Rooyen
Paul Rubin http://p..id wrote: [EMAIL PROTECTED] (John Fisher) writes: mark start time start event event finishes count time until next interval start second event… rather than this: start event event finishes sleep for interval start second event ... So how do

Re: (sort of) deterministic timing in Python

2007-08-14 Thread Hendrik van Rooyen
John Fisher jo.cast.net wrote: import time period_time = TIME_CONSTANT # The time of a period in seconds - 0.001 is a millisec mark start time start_time = time.time() start event event finishes event_time = time.time() - start_time wait_time = period_time-event_time count time

Re: Heterogeneous lists

2007-08-08 Thread Hendrik van Rooyen
Gordon Airporte J[EMAIL PROTECTED] This is one of those nice, permissive Python features but I was wondering how often people actually use lists holding several different types of objects. I do it all the time - I only use tuples when I _have_ to. It looks like whenever I need to

Re: Issues of state (was: Tkinter or wxpython?)

2007-08-08 Thread Hendrik van Rooyen
Paul Rubin http:/...nvalid wrote: [EMAIL PROTECTED] (Cameron Laird) writes: application in the web app model (I haven't even touched on the whole stateless HTTP being mapped to a stateful environment issue, or the need to manage the local web server) actually buys you anything. I . Go

Re: i am new to python-Please somebody help

2007-08-03 Thread Hendrik van Rooyen
gregarican greg.il.com wrote: Maybe it's just me but the word grovelling just doesn't ring of newbie friendliness. To each their own I guess. Kind of like the Smalltalk list where a few respondents are really dry. Someone will post asking something like Can I use Smalltalk to do X so

Re: Memory Leak with Tkinter Canvas (Python 2.5 Win32)

2007-08-03 Thread Hendrik van Rooyen
frikk fr...l.com wrote: 1. ... Am I somehow leaving objects laying around that aren't being deleted? Is create_rectangle not the appropriate function to use?) Try calling the canvas's delete method with the old rectangle before making a new one. - Hendrik --

Re: i am new to python-Please somebody help

2007-08-03 Thread Hendrik van Rooyen
Bruno Desthuilliers bdes...art.fr wrote: Now if you want some examples of definitively rude newsgroups, I suggest you take your chance on other newsgroups in the comp.* hierarchy... I know someone who derisively refers to anybody that is associated with computers in any way as a Pencil Neck.

Re: Process Control Help

2007-08-01 Thread Hendrik van Rooyen
Walt Leipold lei...e-net.com wrote: 8--- summary of state of the art - (Wow, that was a depressing post to write.) Cheer up! - The end is nigh! Warning: The rest of this post is barely on topic for python, and contains some shameless self advertising. Its probably

Re: simple string backspace question

2007-08-01 Thread Hendrik van Rooyen
John Machin sjm...con.net wrote: Point (2): Backspace??? YAGNI --- backspace hasn't been much use for anything (except when typing text) since the days when in order to get a bold letter (say X) on a character impact printer, one would transmit X\bX\bX ... ooh! Ugly! Almost as bad as,

Re: Process Control Help

2007-07-28 Thread Hendrik van Rooyen
[EMAIL PROTECTED] wrote: I'm attempting to start some process control using Python. I've have quite a bit of literature on networking, and have made some tinkering servers and clients for different protocols HTTP, FTP, etc... But now it's time for the murky web of industrial protocol.

Re: Pickled objects over the network

2007-07-27 Thread Hendrik van Rooyen
Paul Rubin http://p...AM.invalidwrote: Hendrik van Rooyen ma...rocorp.co.za writes: But more seriously - is there any need for a simple serialiser that will be able to be used to transfer a subset of the built in types over an open network in a safe manner, for the transfer of things

Re: I am giving up perl because of assholes on clpm -- switching toPython

2007-07-26 Thread Hendrik van Rooyen
James Matthews wrote: Wow! They might leave this newsgroup now also! Would be a pity, somehow - there seems to be a dearth of female posters here ;-) - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading files, splitting on a delimiter and newlines.

2007-07-26 Thread Hendrik van Rooyen
: [EMAIL PROTECTED] Wrote: On Jul 25, 10:46 am, [EMAIL PROTECTED] wrote: Hello, I have a situation where I have a file that contains text similar to: myValue1 = contents of value1 myValue2 = contents of value2 but with a new line here myValue3 = contents

Re: Pickled objects over the network

2007-07-26 Thread Hendrik van Rooyen
Marco Mariani m...rta.com wrote: Hendrik van Rooyen ha scritto: But more seriously - is there any need for a simple serialiser that will be able to be used to transfer a subset of the built in types over an open network in a safe manner, for the transfer of things like lists

Re: Pickled objects over the network

2007-07-24 Thread Hendrik van Rooyen
Steve Holden wrote: It's difficult to establish, and then correctly implement, almost any security protocol without leaving cracks that attackers can lever open and use to inject code into your process's memory space. I can accept this - its difficult enough to write a receiver that syncs up

Re: Pickled objects over the network

2007-07-23 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] wrote: Yes. Why? - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickled objects over the network

2007-07-22 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] wrote: I think someone has already pointed out netstrings, which will allow you to send arbitrary strings over network connections deterministically. Yes I brought it up I'm afraid for the rest it's just a matter of encoding your information in a way that

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-22 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED],..eb.com wrote: The trouble there, though, is that although COBOL was comprehensible (to a degree) relatively few people have the rigor of thought necessary to construct, or even understand, an algorithm of any kind. This is true - and in my experience the

Re: Pickled objects over the network

2007-07-21 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] wrote: Hmm, I suspect I detect the sounds of the square wheel being reinvented. Very helpful, thank you, Steve - Now how about pointing out in which direction the round wheels are kept, and what their monikers are? - Hendrik --

Re: Pickled objects over the network

2007-07-20 Thread Hendrik van Rooyen
Walker Lindley wrote: Right, I could use Pyro, but I don't need RPC, I just wanted an easy way to send objects across the network. I'm sure both Pyro and Yami can do that and I may end up using one of them. For the initial version pickle will work because we have the networking issues figured

Re: Real-time Update

2007-07-20 Thread Hendrik van Rooyen
Alex Martelli [EMAIL PROTECTED] wrote: Hendrik van Rooyen [EMAIL PROTECTED] wrote: there is a recipe for this sort of thing, but I keep losing links. http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82965 . thanks - but its probably no use - I predict I will lose this too

Re: Real-time Update

2007-07-19 Thread Hendrik van Rooyen
ReTrY [EMAIL PROTECTED] wrote: I'm writing a program with Tkinter GUI, When the program is running it need to be updated every five seconds (data comes from internet). How should I do that ? How to make a function in main loop ? Short answer: use the after method to set up a periodic scan of

Re: Best method for inter process communications

2007-07-18 Thread Hendrik van Rooyen
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Tue, 17 Jul 2007 08:08:45 +0200, Hendrik van Rooyen wrote: I heard a rumour once that a hello world string takes something like 10k bytes in XMLRPC - have never bothered to find out if its BS... Just try it out: In [8]: import xmlrpclib

Re: Can a low-level programmer learn OOP?

2007-07-18 Thread Hendrik van Rooyen
Dennis Lee Bieber [EMAIL PROTECTED] wrote: Don't confuse Python's roaming names with OOP, though. There are OOP languages that still follow the variable=memory address containing object structure. roaming names is a brilliant description! Thanks Dennis! - Hendrik --

Re: Pickled objects over the network

2007-07-18 Thread Hendrik van Rooyen
Walker Lindley wrote: 8 complaint about pickle error on receiving side - Google for netstrings. It looks to me like you are trying to unpickle something that is not a whole pickle... Append the length of the pickle to the front of it, and on the receiving side, first receive

Re: Best method for inter process communications

2007-07-17 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] wrote: Given the radically inefficient representations that XML typically requires, however, I think that worrying about localhost socket overhead is unnecessary: if your application was *that* critical you wouldn't be using XML in the first place. I heard a

Re: Access Object From 2 Applications or Fix Scheduler

2007-07-17 Thread Hendrik van Rooyen
Robert Rawlins - Think Blue [EMAIL PROTECTED] top posted: Also Hendrik, I should probably mention that the second application is a constant running application, it's nothing something that can just be 'started' by the first one, its running non-stop and just needs data passed into it regularly

Re: Can a low-level programmer learn OOP?

2007-07-17 Thread Hendrik van Rooyen
Bruno Desthuilliers [EMAIL PROTECTED] wrote: My my my... Would you believe that my coworkers do consider me like an old sage because I started programming in 1990 with HyperTalk on Mac Classic !-) I suddenly feel 20 again ! Woo !-) *hands him a straw boater and a cane* ok youngster - lets

Re: 2**2**2**2**2 wrong? Bug?

2007-07-16 Thread Hendrik van Rooyen
Wayne Brehaut [EMAIL PROTECTED] wrote: On Sun, 15 Jul 2007 17:37:13 -0400, Steve Holden [EMAIL PROTECTED] wrote: Wayne Brehaut wrote: On Fri, 13 Jul 2007 14:32:03 -0700, [EMAIL PROTECTED] 8 - Also, I tend to follow

Re: Access Object From 2 Applications or Fix Scheduler

2007-07-16 Thread Hendrik van Rooyen
Robert Rawlins - Think Blue wrote: Hello Guys, I have two applications which I need to get talking and sharing an object, what ’s the best way to do this? Basically my first application parses an XML document into a bunch of lists and tuples etc, and I need to access the data in these lists

Re: Can a low-level programmer learn OOP?

2007-07-14 Thread Hendrik van Rooyen
Chris Carlen crcarldia.gov wrote: Form 2: Use Python and PySerial and TkInter or wxWidgets. Pro: Cross-platform goal will likely be achieved fully. Have a programmer nearby with extensive experience who can help. Con: Must learn new language and library. Must possibly learn a

Re: Can a low-level programmer learn OOP?

2007-07-14 Thread Hendrik van Rooyen
Aahz [EMAIL PROTECTED] wrote: Newbie. ;-) (I started with BASIC in 1976.) *grinz @ Newbie* I was writing COBOL and NEAT/3 in 1968... - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-14 Thread Hendrik van Rooyen
Lenard Lindstrom [EMAIL PROTECTED] wrote: Pascal has no break, continue or return. Eiffel doesn't even have a goto. In such imperative languages boolean variables are used a lot. Thanks did not know this. from StringIO import StringIO lines = StringIO(one\ntwo\nthree\nfour\n)

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-13 Thread Hendrik van Rooyen
Donn Cave [EMAIL PROTECTED] wrote: In its day, goto was of course very well loved. Does anybody know for sure if it is in fact possible to design a language completely free from conditional jumps? At the lower level, I don't think you can get away with conditional calls - hence the jumps with

Re: Should I use Python for these programs?

2007-07-12 Thread Hendrik van Rooyen
CC [EMAIL PROTECTED] wrote: 8 --- Basically, it's almost impossible to use ethernet on other than PCs, on the official LAN. I will have to look into this further though, as higher data rate stuff is a problem with serial. Although

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-12 Thread Hendrik van Rooyen
John Nagle [EMAIL PROTECTED] wrote: I've worked in big mainframe shops, where an operating system crash caused everything to suddenly freeze, red lights came on all over the building, and a klaxon sounded. I've worked for aerospace companies, where one speaks of defects, not bugs, and

Re: Tuple vs List: Whats the difference?

2007-07-12 Thread Hendrik van Rooyen
Shafik [EMAIL PROTECTED] wrote: Hello folks, I am an experienced programmer, but very new to python (2 days). I wanted to ask: what exactly is the difference between a tuple and a list? I'm sure there are some, but I can't seem to find a situation where I can use one but not the other.

Re: socket: connection reset by server before client gets response

2007-07-11 Thread Hendrik van Rooyen
ahlongxp [EMAIL PROTECTED] wrote: I feel a little embarrassed now. There is nothing to be embarrassed about. Experience is a thing that is hard won. As someone once said: no Pain, no Gain - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   9   >