Re: Detecting computers on network

2005-07-22 Thread Sybren Stuvel
linuxfreak enlightened us with: > How about sending an ICMP echo packet to your broadcast address and > checking which hosts send a reply Won't work on all boxes. Windows boxes ignore broadcast pings, for example. I'd go for a call to "nmap -sP" instead, and filter it's output. Sybren -- The pr

Re: wxPython & Fedora Core 4

2005-07-22 Thread Sybren Stuvel
linuxfreak enlightened us with: > Has anyone installed wxPython on Fedora Core 4. Apparently it need > the libstdc++.so.5 file while Fedora installs the newer > libstdc++.so.6 [...] Fedora does not allow multiple versions of the > same file. Try Ubuntu Linux, which does allow having libstdc++.so.5

Re: Detecting computers on network

2005-07-22 Thread Sybren Stuvel
Peter Tillotson enlightened us with: > You could use a sniffer in promiscuous mode. pypcap -- or something > like. This will record every packet seen by your network card. > Whether is will work depends on whether you are on a true braodcast > network. That's not going to work on a switched networ

Re: wxPython & Fedora Core 4

2005-07-22 Thread Sybren Stuvel
Christophe Lambin enlightened us with: > However, since your wxPython package wasn't built for FC4, you may > run into other problems. That should be solved by recompiling the wxPython RPMs. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for st

Re: Separation of Code in CGI App

2005-07-22 Thread Sybren Stuvel
Rob Cowie enlightened us with: > I need to create a planner/calendar system using python cgi scripts. > It is my first CGI app (beyond a few tutorial examples). Are you sure you want to use CGI? I'd go for mod_python instead if at all possible, since that'll give you a much better performance. >

Re: Get directory from http web site

2005-07-22 Thread Sybren Stuvel
rock69 enlightened us with: > I was wondering if there's some neat and easy way to get the entire > contents of a directory at a specific web url address. [...] Is it > possible to retrieve this list (not the physical files) and have it > stored in a variable of type list or something? Check out t

Re: Python on a public library computer

2005-07-22 Thread Sybren Stuvel
Anton Vredegoor enlightened us with: > Some time ago I started a thread about it.(Google won't let me reply > to older topics so I'm starting a new topic with the same title) Why not use a proper Usenet client? > A few days ago I found a Jython console applet that can be run from > a webpage: Ni

Re: Python on a public library computer

2005-07-22 Thread Sybren Stuvel
Robert Kern enlightened us with: > Because he's on a public computer without one installed? Guess it's time someone wrote a good Usenet client in a Jython applet ;-) Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we

Re: Create a variable "on the fly"

2005-07-28 Thread Sybren Stuvel
Paul D.Smith enlightened us with: > The background is that I've inherited some historical Python scripts > that need to be configured from a bash shell script [...] instead of > the existing Pything config script. [...] The problem is that this > config file is almost certainly not complete [...] a

Re: SOAP and XMLRPC

2005-08-21 Thread Sybren Stuvel
phil hunt enlightened us with: > I thought it was the whole point of XMLRPC that the server can be > written in one language and the client in another. Am I wrong? It is, but not all SOAP libs really support the standard. Sybren -- The problem with the world is stupidity. Not saying there should

Re: Python dutch

2005-08-21 Thread Sybren Stuvel
Dragonfly enlightened us with: > Do you have a python lesson book in dutch version on your site? I'd suggest learning English. The programming language is based on English anyway. Besides, everybody in The Netherlands learns English at school. Sybren -- The problem with the world is stupidity. N

Re: Python dutch

2005-08-22 Thread Sybren Stuvel
Sybren Stuvel enlightened us with: > I'd suggest learning English. The programming language is based on > English anyway. Besides, everybody in The Netherlands learns English > at school. Sorry, not a really helpful answer. There is plenty of docs in Dutch, which is of no surprise

Re: Doubt C and Python

2005-08-23 Thread Sybren Stuvel
Will McGugan enlightened us with: > Because I can create software many times faster. And its more fun. Same here. And because it's very easy to write unittests, for instance. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why

Re: while c = f.read(1)

2005-08-23 Thread Sybren Stuvel
Antoon Pardon enlightened us with: > The problem with interpreting empty as false is that empty just > means no data now. But no data now can mean no data yet or it can > mean no more data. The problem is not so much as having empty > interpreted as false but that people don't seem to think about w

Re: FileIO problem

2005-08-24 Thread Sybren Stuvel
Layin'_Low enlightened us with: > count = 0 > while count != 1000: > count = count + 1 > print "Admin forceclass " , count , gclas I think you want: output = file('out', 'w') gclas = raw_input("What is the class:") for count in range(1000): output.write("Admin forceclass %4i %s\n"

Re: list insertion

2005-08-24 Thread Sybren Stuvel
Randy Bush enlightened us with: > hold = self.next > self.next = DaClass(value) > self.next.next = hold shouldn't that last line be this? self.next.prev = hold > but i suspect (from print statement insertions) that the result is > not as i expect. What did you expect, and wha

Re: Inline::Python, pyperl, etc.

2005-08-24 Thread Sybren Stuvel
Eli Stevens (WG.c) enlightened us with: > I've bumped into some snags with pyperl (can't import perl2.so? But > it's right there in site-packages/ !), and I'm wondering if it's bitrot > or a config error on my end. If the .so file is as old as you described, it's probably linked to an old versi

Re: how to deal with space between numbers

2005-08-24 Thread Sybren Stuvel
Mohammed Altaj enlightened us with: > I managed to do all these things , but i did it in the way that i am > reading my data as strings ( no space between numbers) Keep the spaces, and use thestring.split() Sybren -- The problem with the world is stupidity. Not saying there should be a capital p

Re: how to deal with space between numbers

2005-08-24 Thread Sybren Stuvel
Mohammed Altaj enlightened us with: > Thanks a lot for your valuable answer, i like the way you code , but > i would like to use my own, You don't learn to code properly if you always stick to your own stuff... > so if it is possible for you and if you have time, please could you > fix my code, s

Re: pipes like perl

2005-08-24 Thread Sybren Stuvel
max(01)* enlightened us with: > but i need to check the success/failure of the external command > *before* closing the file! You can't, unless you have a more intimite knowledge of the command involved. If you know, for instance, that any output on stderr means an error, you can check for just tha

Re: python asp page keeps state across queries !?!?

2005-08-24 Thread Sybren Stuvel
nicolas_riesch enlightened us with: > I notice that variables outside functions keep their value across > queries. I don't know if it is normal. I think it's normal. > To be sure, I tried a similar asp script written in VB script, and I > can see that in VBscript, variables at this same level AR

Re: py-serial + CSV

2005-08-24 Thread Sybren Stuvel
McBooCzech enlightened us with: > This (according to your suggestions) is my code which works for me > > import serial > s = serial.Serial(port=0,baudrate=4800, timeout=20) > while 1: > line = s.readline() > words = line.split(',') > if words[0]=="$GPRMC": > print wo

Re: Should I move to Amsterdam?

2005-08-25 Thread Sybren Stuvel
Martin P. Hellwig enlightened us with: > Personal transportation sucks in the Netherlands, if you live in the > Randstad (the area of the above mentioned cities) and you have to > travel across the Randstad, you go with the bike and/or > bus/tram/metro/train because that is the fastest way of > tra

Re: Should I move to Amsterdam?

2005-08-25 Thread Sybren Stuvel
Adriaan Renting enlightened us with: > A lot of my foreign collegues commplain about how rude the dutch can > be. Countries like sweden or japan seem to have much better > manners. I also think the Dutch aren't all that communicative. I was queueing in a store when they announced to have the new

Re: loop in python

2005-08-25 Thread Sybren Stuvel
James enlightened us with: > One does not compare speed when they use Perl/Python/Ruby/Tcl. They > are all more or less in the same performance ball park. I don't want to offend you or anything, but doesn't the second sentence mean that someone DID do a speed comparison? Sybren -- The problem wi

Re: RE Despair - help required

2005-08-25 Thread Sybren Stuvel
Yoav enlightened us with: > I am trying the following: > > re.search(r'\\[^"\\]+(?=("?$))', "c:\ret_files") > > and I get a return of NoneType, and I have no idea why. Because you don't match a carriage return "\r". > I know that I missing something here, but I really can't figure out > why (I be

Re: variable hell

2005-08-25 Thread Sybren Stuvel
Nx enlightened us with: > I am unpacking a list into variables, for some reason they need to > be unpacked into variable names like a0,a1,a2upto aN whatever is > in the list. You're probably doing things the wrong way. What is your ultimate goal with this? There is probably a better way of doi

Re: loop in python

2005-08-25 Thread Sybren Stuvel
Peter Hansen enlightened us with: > Yes, and has shown that they are in the same ballpark, and therefore > one does not _need_ to compare speed any more. Ok. I'd worded it as "there have been tests already, so there is no need to do your own", instead of "one does not test". Sybren -- The proble

Re: Should I move to Amsterdam?

2005-08-26 Thread Sybren Stuvel
Wouter van Ooijen (www.voti.nl) enlightened us with: >>True. Unless you have two proper locks. In that case your bike will >>last a very long time. > > Nope. You will probably retrieve your two locks from the fencing you > attached them to (if you did!), with your bike gone. That's not my experien

Re: Should I move to Amsterdam?

2005-08-26 Thread Sybren Stuvel
Martin P. Hellwig enlightened us with: > Yes it is, and it sucks too In Amsterdam, it's the best way to go. > or do you find it amusing to ride 15 clicks through rain and wind to > get to your clients? Makes a man out of you ;-) Of course, rain sucks, but as long as it's not raining too hard it'

Re: ideas for university project ??

2005-08-26 Thread Sybren Stuvel
Jon Hewer enlightened us with: > Areas of interested include AI, distributed systems. Most of all i > want something that is interesting, and actually useful (thats > probably stating the obvious!) You could help developing Dynamite (contact Dick van Albada from the University of Amsterdam for th

Re: Virtual Slicing

2005-08-27 Thread Sybren Stuvel
Bryan Olson enlightened us with: > I recently wrote a module supporting value-shared slicing. Maybe I'm dumb, but could you explain this concept? Why would someone whant this? Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but wh

Re: py to exe: suggestions?

2005-08-28 Thread Sybren Stuvel
chris patton enlightened us with: > I need to convert a python file to an '.exe'. I've tried py2exe, and > I don't like it because you have to include that huge dll and > libraries. Then what would you expect? The whole Python interpreter is needed if you want to run Python programs. It's more a s

Re: NooB Question

2005-08-28 Thread Sybren Stuvel
APCass enlightened us with: > How do you execute a .py in Linux with KDE? If I double click on my > program it opens Kwrite, for editing. Make it executable (properties, permissions, executable). Make sure it has #!/usr/bin/python as the first line. Sybren -- The problem with the world is stupi

Re: Python built email message doesn't support OutLook Express

2005-08-29 Thread Sybren Stuvel
praba kar enlightened us with: > This code will build plain email message properly. It's not a plain email message. It's an html email without a plain text part. Highly annoying to many people. > But after building the message. If a email user download this mail > through out look express then t

Re: reg email packages work

2005-08-30 Thread Sybren Stuvel
Steve Holden enlightened us with: > It's obvious you aren't using that EXACT code, because it doesn't > formulate a three-paragraph message. So the bit we really need to > see is how you capture and formulate the argument to set_payload(). I'd rather see what I asked for, which is the output of ms

Re: Bicycle Repair Man usability

2005-08-31 Thread Sybren Stuvel
Rex Eastbourne enlightened us with: > Are there any Bicycle Repair Man users here? I am. > I recently got PyDev for Eclipse, which comes with BRM. I use it from VIM. > I am disappointed with what I've seen, although I'm not sure if I'm > using its full functionality. Why would it need more fun

Re: OpenSource documentation problems

2005-08-31 Thread Sybren Stuvel
Bryan Olson enlightened us with: > I don't see any need to look beyond Python for a good example of > poor documentation. Are there serious Python programmers who don't > constantly struggle with errors and omissions in the doc? I don't have any problems with the documentation. It just works for

Re: Python doc problems example: gzip module

2005-08-31 Thread Sybren Stuvel
Xah Lee enlightened us with: > but after a minute of scanning, please someone tell me what the fuck > is it talking about? How difficult is it? The first line of the Gzip class explains it all to me: "Constructor for the GzipFile class, which simulates most of the methods of a file object" Sybren

Re: OpenSource documentation problems

2005-09-01 Thread Sybren Stuvel
Bryan Olson enlightened us with: > > Why don't you help us by improving the documentation? > > Workin' on it. That's all I needed to know ;-) Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety la

Re: HTML tags optimization [ interesting problem]

2005-09-01 Thread Sybren Stuvel
DENG enlightened us with: > i use SGMLParser to process HTML files, in order to do some > optimizations, > > something like this: > >TEXT1TEXT2 > > optimise to > >TEXT1TEXT2 Why not optimize it to: TEXT1 TEXT2? > [ snipped stuff about tags ] If you're serious about using HTML, I suggest you re

Re: The penis is way too delicate for masturbation

2005-09-02 Thread Sybren Stuvel
Steve Holden enlightened us with: > [about Americans] > Personally I find that most individuals, no matter how misguided, > have their hearts in the right place. Same here. Then again, I might have just met the smart ones who were visiting Europe. Just kidding! Sybren -- The problem with th

Re: Has anybody tried to make a navigation like Google?

2005-09-05 Thread Sybren Stuvel
Lad enlightened us with: > I would like to make in my web application a similar navigation like > Google uses, I mean at the bottom of each page there are numbers of > returned pages after you search query. Has anyone tried that? Is > there an algorithm for that? I do not want to re-invent the wh

Re: Proposal: add sys to __builtins__

2005-09-05 Thread Sybren Stuvel
Rick Wotnaz enlightened us with: > That is, a reference to xxx.func(), without a previous import of xxx > *could* be resolvable automatically, at least for those modules that > can be found in a standard location. -1 on that one. If I want to use a module, I'll write an import statement for it. Th

Re: epydoc CLI and many files

2005-09-05 Thread Sybren Stuvel
Laszlo Zsolt Nagy enlightened us with: > I wrote a small program that lists all of my modules after the > cli. Something like this: > > cli.py --html --inheritance=grouped module1.py module2.py module3.py > .. > > The problem is that now I have so many modules that the shell > (cmd.exe) can

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread Sybren Stuvel
talin at acm dot org enlightened us with: > I'd be sad to see the notion of "anonymous functions" go Same here. I think it's a beautyful concept, and very powerful. It also allows for dynamic function creation in cases where a name would not be available. > What about passing an anonymous functio

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread Sybren Stuvel
Leif K-Brooks enlightened us with: >> It also allows for dynamic function creation in cases where a name >> would not be available. > > What cases are those? An example: def generate_randomizer(n, m): randomizer = def(x): return x ** n % m return randomizer Sybren -- The proble

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread Sybren Stuvel
Paul Rubin enlightened us with: > You're a little bit confused; "name" doesn't necessarily mean > "persistent name". Wonderful. Another feature added to Python (that is: the Python version in my mind ;-) without the need to add any features to Python (that is: the real Python) Thanks! Sybren --

Re: Replacement for lambda - 'def' as an expression?

2005-09-06 Thread Sybren Stuvel
Terry Reedy enlightened us with: > Are you claiming that including a reference to the more humanly readable > representation of a function (its source code) somehow detracts from the > beauty of the function concept? Nope. > Or are you claiming that binding a function to a name rather than > so

Create new instance of Python class in C

2005-09-09 Thread Sybren Stuvel
Hi people, I'm creating a program that can solve and create Sudoku puzzles. My creation function needs to make a lot of copies of a puzzle. Until now, I used copy.deepcopy(), but that's too slow. I want to implement such a copying function in C and use that instead. My idea about this is: - Get t

Re: Create new instance of Python class in C

2005-09-09 Thread Sybren Stuvel
djw enlightened us with: > Personally, I would try Psyco first, and consider Pyrex next. Ok, I'll take a look at those. > Are you sure your algorithm can't be optimized first, before you > start trying to write this in C? I'm sure there will be optimizations, but profiling showed that the copyin

Re: Create new instance of Python class in C

2005-09-10 Thread Sybren Stuvel
phil hunt enlightened us with: > Why do you need to maske lots of copies? The puzzles are stored in a NxN list of strings. The strings contain all the numerals that that block can contain. So a 9x9 puzzle contains 81 strings "123456789" when it's "empty". My creation function picks a block that i

Re: Python for ARM7?

2005-09-13 Thread Sybren Stuvel
Ken Seehart enlightened us with: > Hello. Where might I find python binaries for ARM7 (Linux 2.4)? Check http://www.vanille.de/projects/python.spy > If I absolutely have to build my own python, I would probably use a > cygwin (or maybe linux) cross-compiler for ARM7, but that seems like a > daun

Re: Python for ARM7?

2005-09-13 Thread Sybren Stuvel
Ken Seehart enlightened us with: > 1. How do I know whether to use sharprom or modern? If it works, use it. > 2. What do I do with ipk files? I surfed around and found that in > one example, the command is "ipkg install foo.ipk", but ipkg doesn't > seem to exist on my hardware. ipkg doesn't hav

Re: Python for ARM7?

2005-09-14 Thread Sybren Stuvel
Ken Seehart enlightened us with: > I could try to unpack them on another (non-ARM7) linux box and then > move the files over to the ARM7 device. Yep, that should work. > Better yet, can I unpack them on windows XP somehow? Don't know. > If for some reason that is not possible, i suppose my next

Re: network parameters

2005-09-14 Thread Sybren Stuvel
le dahut enlightened us with: > Is there a way to get network parameters (number of network > interfaces, ip address(es), DNS, gateway) on a linux station using > python 2.3 ? Sure. - number of network interfaces, ip address(es), gateway: read from /proc - DNS: read /etc/resolv.conf Sybren -- T

Re: No newline using printf

2005-09-16 Thread Sybren Stuvel
Johnny Lee enlightened us with: > Why the prompt followed after the output? Maybe it's not as > expected. Because it did what you ask of it: write "012" to stdout, and nothing else. Hence, no newline at the end, hence the prompt is on the same line. Sybren -- The problem with the world is stupid

Re: Software bugs aren't inevitable

2005-09-16 Thread Sybren Stuvel
Terry Hancock enlightened us with: > This is ludicrous sophistry. The technical reason for having ANY high > level languages is "psychological". Computers are happier with binary > code, over ANY language that must be interpreted. Computers aren't happy. They couldn't care less about the programm

Re: Wrapper module for Linux shared lib

2005-09-16 Thread Sybren Stuvel
Ernesto enlightened us with: > What's the best resource for finding out how to write a wrapper > module for a shared library file *.so* in Linux? The extension documentation on the python website. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment

Wrapping float

2005-09-17 Thread Sybren Stuvel
Hi all, I'm trying to make a float-like class (preferably a subclass of 'float') that wraps around. The background: I'm modeling a multi-dimensional space, and some of those dimensions are circular. Here is my code so far: class WrapFloat(float): def __init__(self, value, wrap = None):

Re: Software bugs aren't inevitable

2005-09-17 Thread Sybren Stuvel
phil hunt enlightened us with: > If a program is too slow to respond isn't that about "system time"? Not by definition. Could be anything. If it's slow to respond due to a slow harddisk, then you're right. If it's slow to respond due to not putting the I/O and the GUI main loop in different thread

Re: Do thread die?

2005-09-17 Thread Sybren Stuvel
Maurice LING enlightened us with: > So, at the end of run(), what happens to the thread? Just die? Yep. > While I am on it, can threading.Thread.run() accept any parameters? Nope. Pass them to the constructor and remember them. > class myThread(threading.Thread): > def __init__(self, func)

Re: Brute force sudoku cracker

2005-09-17 Thread Sybren Stuvel
Bas enlightened us with: > I came across some of these online sudoku games and thought after > playing a game or two that I'd better waste my time writing a solver > than play the game itself any longer. I managed to write a pretty > dumb brute force solver that can at least solve the easy cases >

Re: Wrapping float

2005-09-17 Thread Sybren Stuvel
Bengt Richter enlightened us with: > Float is an immutable, so you need to override __new__ Thanks, that works! Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don't we just take the safety labels off of everything and let

Re: What am I doing wrong?

2005-09-20 Thread Sybren Stuvel
keithlackey enlightened us with: > def __init__(self, folders = []): > self.folders = folders Read all about this very common mistake at http://docs.python.org/tut/node6.html#SECTION00671 > def add_folder(self, folder): > self.folders.append

Re: Newbie Question on ctypes

2005-09-20 Thread Sybren Stuvel
Efrat Regev enlightened us with: >My question is, therefore, if I can build ctypes locally. I tried > > rpm -i python-ctypes-0.9.1-1.rf.src.rpm That _installs_ the source package, not build it as you intended. Read the RPM manual: rpm --rebuild python-ctypes-0.9.1-1.rf.src.rpm Sybren -- The

Re: Invoking Unix commands from a Python app

2005-12-16 Thread Sybren Stuvel
Rob Cowie enlightened us with: > Ok, I know see that os.spawnl() will suffice. However, how do I > retrieve the output of the command. Apparently, os.spawnl() didn't suffice. Check out the popen2 module and Popen* classes. Sybren -- The problem with the world is stupidity. Not saying there shoul

Re: Wingide is a beautiful application

2005-12-17 Thread Sybren Stuvel
vinjvinj enlightened us with: > I haven't used an IDE in a long time but gave wing ide a try because > I wanted the same development platform on Linux and Windows. I use gvim for that :) > - Ability to double click on the project plan and it hides and you > double click on it and it becomes visab

Re: Wingide is a beautiful application

2005-12-18 Thread Sybren Stuvel
Claudio Grondi enlightened us with: > With [Strg]-[End] I went to the end of the file where I wanted to > continue editing, but the syntax highlighting told me there is no > code but only a comment. I checked it and found out, that Vim is > apparently not able to do proper highlighting when jumping

Re: Wingide is a beautiful application

2005-12-18 Thread Sybren Stuvel
Claudio Grondi enlightened us with: > The file I was editing was just 22 KByte large having 450 lines, so > you try here to explain to me, that for speed reasons Vim has to cut > it into pieces? Yep. > Stani SPE based on Scintilla does it right, UltraEdit does it right, > Wing does it right, so w

Re: Wingide is a beautiful application

2005-12-18 Thread Sybren Stuvel
Sybren Stuvel enlightened us with: > SPE is already annoying because of all the new windows it opens... > Not a good start. I remember using it before, to check out the > Blender integration. Unfortunately, that didn't work. I'll give it > another go. I downloaded it, tr

Re: Add to python path in Linux

2005-12-20 Thread Sybren Stuvel
ninhenzo64 enlightened us with: > The variable PYTHONPATH doesn't seem to exist. Yet it is the one you should use. It's got the same syntax as the regular PATH variable. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but why don'

Re: Help with python_fold.vim

2005-12-20 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > Found an earlier thread that answered my question: Good for you. I often want only one or two levels of indentation at maximum. This ensures not all if/while/for etc. blocks are indented. Most of my python files either contain classes (max indent 2) or onl

Re: PyHtmlGUI Project is looking for developers

2005-12-26 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > The aim of the project is to create a web application framework. The > API of PyHtmlGUI wants to be close to Trolltechs famous Qt API but > incooperates the idea of a text based renderengine instead of the > pixel based one. The obviouse target is html/css b

Re: PyHtmlGUI Project is looking for developers

2005-12-27 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > the idea of pyhtmlgui is that you can develop a web application the > same way like a standard gui application. So what you get is a > widget tree (buttons, forms, title bars, etc.) on the server side > and a gui on the client side. Ah, okay - it's the othe

Re: PyHtmlGUI Project is looking for developers

2006-01-02 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > At the moment we don't work with javascript. But it should not be to > hard to create a JavaScript Renderer similar to the css one we already > have. Isn't CSS for rendering, and JavaScript for client-side scripting? Sybren -- The problem with the world i

Re: Spelling mistakes!

2006-01-08 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > I'm one of those people who, for better or worse, is a good speller. > Words just look right or wrong to me and it bothers me when they > look wrong. Same here. I have to use code that has "childs" instead of "children"... I also can't stand "then" vs "than

Re: Spelling mistakes!

2006-01-09 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > Terry> But not faster than use a dict server! Why not just use (e.g.) > Terry> kdict? > > Maybe because not everybody has it? Lame excuse. If you don't have something but you do want to use it, you get it. If everybody just used what they had at one point

Re: Spelling mistakes!

2006-01-09 Thread Sybren Stuvel
Walter S. Leipold enlightened us with: > [Gee, I hope their were no spelling misteaks inn that paragraph...] It should be "where" Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but wh

Re: string to datetime parser?

2006-01-09 Thread Sybren Stuvel
beza1e1 enlightened us with: > Is there a library which can parse strings and output a datetime > object? If you're happy with a mx.DateTime object, take a look at its parser. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishment for stupidity, but wh

Re: Spelling mistakes!

2006-01-09 Thread Sybren Stuvel
Xavier Morel enlightened us with: > 1- The unit test will obviously fail in this case, telling you in > which code unit the issue is Given the assumption the same mistake hasn't been made in the test as well. Sybren -- The problem with the world is stupidity. Not saying there should be a capital

Re: how to test for a dependency

2006-01-09 Thread Sybren Stuvel
Darren Dale enlightened us with: > I would like to test that latex is installed on a windows, mac or linux > machine. What is the best way to do this? This should work: > > if os.system('latex -v'): > print 'please install latex' The downside is that you can only use this to test by executing.

Re: Is 'everything' a refrence or isn't it?

2006-01-13 Thread Sybren Stuvel
Mike Meyer enlightened us with: >> I think type 'object' has only one value, so that's it. > > In that case, they should all be equal, right? > object() == object() > False You compare instances of the type 'object'. They both have one value: >>> object() >>> object() So the claim "type '

Re: ssl question

2006-01-13 Thread Sybren Stuvel
DarkBlue enlightened us with: > I want connect to another linux machine via ssl , > after password entry execute : It seems like you've already got something running. Do you really mean SSL? Or do you mean SSH? Sybren -- The problem with the world is stupidity. Not saying there should be a capi

Re: New Python.org website ?

2006-01-13 Thread Sybren Stuvel
Tim Chase enlightened us with: > In both Mozilla-suite (1.7) and FireFox (1.5), the links on the left > (the grey-backgrounded all-caps with the ">>" at the right) all > intrude into the body text. Looks fine here on Firefox 1.5 and Konqueror 3.4.3. The site looks really nice! I think this is goi

Re: SPE [was: Wingide is a beautiful application]

2006-01-15 Thread Sybren Stuvel
SPE - Stani's Python Editor enlightened us with: > This is a misinterpretation, SPE failed because of something else. > (As would have become clear if you would have run SPE in the > debugging mode 'python SPE.py --debug'.) IMO displayed messages should be clear without having to resort to a debug

Re: SPE [was: Wingide is a beautiful application]

2006-01-15 Thread Sybren Stuvel
SPE - Stani's Python Editor enlightened us with: > If you would have read the blog (http://pythonide.stani.be/blog), > you could clearly read this: I haven't. >2. download and unpack the archive >SPE-0.8.1.d-wx2.6.1.0-no_setup.zip > > If you follow these three steps nothing more, nothing

Re: ConfigParser: writes a list but reads a string?

2006-01-16 Thread Sybren Stuvel
Terry Carroll enlightened us with: > It looks like ConfigParser will accept a list to be writing to the > *.ini file; but when reading it back in, it treats it as a string. It doesn't say so explicitly in the manual, but I did find this: """The values in defaults must be appropriate for the "%(

Re: ANN: SimpleJSONRPCServer

2006-10-07 Thread Sybren Stuvel
aum enlightened us with: > I've built a module called SimpleJSONRPCServer, which is essentially > the same as the familiar python library module SimpleXMLRPCServer, > except that it uses the JSON-RPC protocol. Thanks a lot! I've used XML-RPC on a low-speed device, and it was way too slow. Sybren

Re: operator overloading + - / * = etc...

2006-10-07 Thread Sybren Stuvel
SpreadTooThin enlightened us with: > Can these operators be overloaded? Yes. > If so. How? Implement __add__, __sub__ etc. in the class that you want to be able to add, subtract, etc. Sybren -- Sybren Stüvel Stüvel IT - http://www.stuvel.eu/ -- http://mail.python.org/mailman/listinfo/pytho

Re: operator overloading + - / * = etc...

2006-10-07 Thread Sybren Stuvel
Tim Chase enlightened us with: > With the caveat of the "=" mentioned in the subject-line (being > different from "==")...I haven't found any way to override > assignment in the general case. Why would you want to do that? Sybren -- Sybren Stüvel Stüvel IT - http://www.stuvel.eu/ -- http://ma

Re: WSGI - How Does It Affect Me?

2006-10-08 Thread Sybren Stuvel
Gregory Piñero enlightened us with: > So I keep hearing more and more about this WSGI stuff, and honestly I > still don't understand what it is exactly AFAIK it's a standard for web frameworks. In such a framework, you receive a 'request' object, and return a 'response' object. If I'm correct, the

Re: WSGI - How Does It Affect Me?

2006-10-08 Thread Sybren Stuvel
Theerasak Photha enlightened us with: >> > 3. Using IIS [...] >> >> Why would you want to use that monstrosity? > > Two words: "contractual obligation" That doesn't answer the question. It only makes me ask it to someone else, namely the parties involved in creating the contract. Sybren -- Sybre

Re: Converting MSWord Docs to PDF

2006-10-10 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > is it possible to convert MSword docs into PDF format? Yes, it is. check out http://www.stuvel.eu/ooo-python#header3. It's about converting Excel to PDF, but it equally applies to MSWord. Sybren -- Sybren Stüvel Stüvel IT - http://www.stuvel.eu/ -- htt

Re: Funky file contents when os.rename or os.remove are interrupted

2006-10-10 Thread Sybren Stuvel
Russell Warren enlightened us with: > On first pass I would think that both of those calls are single step > operations (removing/changing an entry in the FAT, or FAT-like > thing, on the HDD) and wouldn't result in an intermediate, > null-populated, step, but the evidence seems to indicate I'm > w

Re: Need a Regular expression to remove a char for Unicode text

2006-10-13 Thread Sybren Stuvel
శ్రీనివాస enlightened us with: > Can any one tell me how can i remove a character from a unocode > text. కల్<200c>&హార is a Telugu word in Unicode. Here i want to > remove '&' but not replace with a zero width char. And one more > thing, if any whitespaces are there b

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > Yes, I want to find a way to send email without an external smtp server. You can't. Use a DNS server to find the MX record of the destination domain, connect to that SMTP server, then deliver the mail. Sybren -- Sybren Stüvel Stüvel IT - http://www.stuv

Re: Save/Store whole class (or another object) in a file

2006-10-17 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > is it possible in python (with/without matplotlib, numpy etc) to > store a whole class with its data into a file Check out the pickle module. Sybren -- Sybren Stüvel Stüvel IT - http://www.stuvel.eu/ -- http://mail.python.org/mailman/listinfo/python-li

Re: building extensions for Windows Python

2006-10-17 Thread Sybren Stuvel
JW enlightened us with: > Thanks to Michael and Nick, I can now cross-compile my Pyrex > extensions for bog-standard Python 2.5 [...] I can now use Linux to > cross-build my extension for Windows, and my preliminary testing > (under WINE -- See the original post. I must adhere to my > employment c

Re: HTML Encoded Translation

2006-10-17 Thread Sybren Stuvel
Dave enlightened us with: > How can I translate this: > > gi > > to this: > > "gi" > > I've tried urllib.unencode and it doesn't work. As you put so nicely in the subject: it is HTML encoding, not URL encoding. Those are two very different things! Try a HTML decoder, you'll have more luck with tha

<    1   2   3   4   5   >