Re: unicode

2007-07-01 Thread Sander Steffann
Hi, "Erik Max Francis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 7stud wrote: > >> Based on this example and the error: >> >> - >> u_str = u"abc\u" >> print u_str >> >> UnicodeEncodeError: 'ascii' codec can't encode character u'\u' in >> position 3: ordinal not in

RE: Restart Linux System

2007-05-23 Thread Sander Steffann
Hi, > > Probably not. You need to just spawn the "reboot" command, or run > > "init 6." This requires root, though. Without root there's no way > > to reboot a linux system. > > ...unless you run shutdown(8) or reboot(8) setuid root (reboot is > kinda harsh though, btw). It's not that bad. Re

Re: #!/usr/bin/env python > 2.4?

2007-03-21 Thread Sander Steffann
Hi, Op 21-mrt-2007, om 20:41 heeft [EMAIL PROTECTED] het volgende geschreven: > On Mar 21, 11:07 am, Jon Ribbens <[EMAIL PROTECTED]> wrote: >> In article <[EMAIL PROTECTED]>, Stargaming wrote: >>> from sys import version_info >>> if version_info[0] < 2 or version_info[1] < 4: >>> raise Run

Re: ntp in python

2006-08-29 Thread Sander Steffann
Hi, > I want to measure the packet delivery delays over various network > links. For this I need to synchronise the times of the sender and > receiver, either against NTP or eachother. Maybe you can contact RIPE. They have test-boxes for exactly these kind of tests. I know AMS-IX uses them to me

Re: time.clock() going backwards??

2006-08-25 Thread Sander Steffann
Hi, >>>I experimented something very strange, a few days ago. I was debugging an >>>application at a customer's site, and the problem turned out to be that >>>time.clock() was going "backwards", that is it was sometimes >>>(randomically) >>>returning a floating point value which was "less than" th

RE: John Bokma harassment

2006-05-26 Thread Sander Steffann
From: John Bokma > dreamhost has made a decission, a right one IMO. And now you > ask people to harass them more? > > You really are just a pathetic little shit now aren't you? > Not even the balls nor the guts to fix the issue that you are. Using language like this clearly shows who has a commu

RE: goto statement

2005-04-20 Thread Sander Steffann
On 4/20/05, praba kar <[EMAIL PROTECTED]> wrote: >In Python what is equivalent to goto statement An old user-friendly cartoon that might be relevant: http://ars.userfriendly.org/cartoons/?id=2506 Have fun :-) Sander -- http://mail.python.org/mailman/listinfo/python-list