Re: searching a project to contribute to

2005-10-09 Thread Mike Meyer
"Clint Norton" <[EMAIL PROTECTED]> writes: > Well, > I though about it but I'm looking for something a little more > interesting then bug fixing... Bug fixing is an easy way to start learning the code and providing an immediate contribution to the project. As for interesting - you gotta pick

Re: Jargons of Info Tech industry

2005-10-10 Thread Mike Meyer
Tim Tyler <[EMAIL PROTECTED]> writes: > The "user mode" uses style sheets you specify. > > There's a whole bunch of built-in ones - and you can cascade them: Yup, saw those. > ``There is also the inclusion of 12 packaged user style sheets and an easy > menu application interface (View > Style)

Re: Python's Performance

2005-10-10 Thread Mike Meyer
Donn Cave <[EMAIL PROTECTED]> writes: > I agree that there are many shades of grey here, but there's also a > real black that's sharply distinct and easy to find -- real native > code binaries are not interpreted. Except when they are. Many machines are microcoded, which means your "real native co

Re: Python's garbage collection was Re: Python reliability

2005-10-10 Thread Mike Meyer
Tom Anderson <[EMAIL PROTECTED]> writes: > Has anyone looked into using a real GC for python? I realise it would > be a lot more complexity in the interpreter itself, but it would be > faster, more reliable, and would reduce the complexity of extensions. > > Hmm. Maybe it wouldn't make extensions e

Re: Python's Performance

2005-10-10 Thread Mike Meyer
Donn Cave <[EMAIL PROTECTED]> writes: > In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> > wrote: > >> Donn Cave <[EMAIL PROTECTED]> writes: >> > I agree that there are many shades of grey here, but there's also a >> &g

Re: convert char to byte representation

2005-10-10 Thread Mike Meyer
[Format recovered from top posting.] Larry Bates <[EMAIL PROTECTED]> writes: > Grant Edwards wrote: >> On 2005-10-10, Larry Bates <[EMAIL PROTECTED]> wrote: I am trying to xor the byte representation of every char in a string with its predecessor. But I don't know how to convert a char int

Why asci-only symbols?

2005-10-10 Thread Mike Meyer
Out of random curiosity, is there a PEP/thread/? that explains why Python symbols are restricted to 7-bit ascii? http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. -- http://mail.python.org/mailman/listinfo/python-

Re: Batteries Included?

2005-10-11 Thread Mike Meyer
"Alex" <[EMAIL PROTECTED]> writes: > One of the first things I wanted to do when I start learning Python was > to produce a simple standalone application that I could distribute to > my users (windows users). Python's moto is "Batteries Included", but > where are the batteries for making exe files

Re: Let My Terminal Go

2005-10-11 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > Hello, > > A user of my application points me to a behavior in gVim, > the text editor, that I would like to implement in my > application. > > When gVim is launched from a shell terminal, it completely > frees the terminal. You can continue to use

Re: Jargons of Info Tech industry

2005-10-11 Thread Mike Meyer
[EMAIL PROTECTED] writes: > I don't know how much spam other people receive but on one account I > hardly receive any as I reserve it for friends and business. On another > I had about 40 spam messages which took all of ten seconds to delete. > Hardly a serious matter. You don't have a spam proble

Re: piping out binaries properly

2005-10-11 Thread Mike Meyer
Andy Leszczynski writes: > I have got following program: > > import sys > import binascii > from string import * > sys.stdout.write(binascii.unhexlify("41410A4141")) > > > when I run under Unix I got: > > $ python u.py > u.bin > $ od -t x1 u.bin > 000 41 41 0a 41 41 > > and under Windows/Cygwi

Re: piping out binaries properly

2005-10-11 Thread Mike Meyer
Andy Leszczynski writes: > Mike Meyer wrote: >> It's not normal to write binary content to stdout - you normally write > > Well, I grew up in the Unix world and it is normal over there. I watched the Unix world grow up, and it ain't normal to me. I don't think I&

Re: piping out binaries properly

2005-10-11 Thread Mike Meyer
marduk <[EMAIL PROTECTED]> writes: > On Wed, 2005-10-12 at 00:16 -0400, Mike Meyer wrote: > [...] >> It's not normal to write binary content to stdout - you normally write >> it to a file. Open the file with open(name, 'wb') to write binaries. >> >

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Casper H.S. Dik <[EMAIL PROTECTED]> writes: > Steven D'Aprano <[EMAIL PROTECTED]> writes: >>Can I remind you that spam is approximately 70% of all email traffic these >>days? Most of that is blocked by the ISPs, but even so you are obviously >>one of the lucky few. > > 95% - 99% of all email, not 7

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 20:06:34 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>Nah, I've just know people who spend a lot of time - and money - >>dealing with spam, and we've discussed these issues at great

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 06:32:07 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>Formatted spam can include pictures of words. That's a common spam >>tactic - send a multipart/alternative with a text part that

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 19:25:46 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>The downside is that I have no idea how many people try to contact me >>out of the blue, or from an address other than the one I sent

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 19:25:46 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : > You don't need 100% spam blocking to effectively solve the spam > problem. You just have to make spam uneconomic. There are good reason

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Wed, 12 Oct 2005 21:46:12 GMT, Tim Tyler <[EMAIL PROTECTED]> wrote > or quoted : > >>Viruses can mail out change of address messages to everyone in the >>compromised machine's address book today. >> >>Of course, viruses don't bother doing that - since

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > 3. prevent phishing. When PayPal sends you an email, you want to know > for sure it really is from PayPal. This means corporate users at > least will all have digital ids, and all emails will be digitally > signed. That won't prevent phishing, that will

Re: Jargons of Info Tech industry

2005-10-13 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Thu, 13 Oct 2005 01:32:03 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>That won't prevent phishing, that will just raise the threshhold a >>little. The first hurdle you have to get past is that most mail

Re: FORM data in cgi

2005-10-13 Thread Mike Meyer
"jponiato" <[EMAIL PROTECTED]> writes: > Greetings. > An HTML form submits it's data to a python cgi script on my server. This > script accepts this POST data, and uses urllib.urlopen() to call a different > cgi script (on an external server), passing this same data. I'm using > cgi.FieldStorag

Re: Jargons of Info Tech industry

2005-10-13 Thread Mike Meyer
Brendan Guild <[EMAIL PROTECTED]> writes: >> 2. flipping to a sender pays system so that the Internet does not >> subsidise spam. > > This is very promising. Our ISPs should put limits on how much email we > can send. The limits should be rather insane, nothing that any > nonspammer would ever co

Re: Python's garbage collection was Re: Python reliability

2005-10-14 Thread Mike Meyer
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > And regarding the "zero exceptions" - I know for sure that quite a few > programs were crashing when the transition in 68K from 24 bit > addresses to real 32 bit was done on popular systems like the ATARI ST > - as some smart-asses back then used the

Re: UI toolkits for Python

2005-10-14 Thread Mike Meyer
"Adriaan Renting" <[EMAIL PROTECTED]> writes: [On Qt] > I don't know how it performs on OSX, I think it works fine, as Qt is > available on OSX. Qt on OS X is halfway there. It looks - and acts - like an aqua application. However, to support the Command key, they hacked things so that it is report

Re: Jargons of Info Tech industry

2005-10-14 Thread Mike Meyer
Paul Rubin writes: >> Not so: you disable Java, Javascript and plugins. You leave the ability >> to format, colour and hint documents. This is not /that/ difficult. > Don't forget disabling Unicode. To kill web bugs, you have to turn off images, and anything else th

Re: UI toolkits for Python

2005-10-14 Thread Mike Meyer
"Adriaan Renting" <[EMAIL PROTECTED]> writes: >>>>Mike Meyer <[EMAIL PROTECTED]> 10/14/05 5:39 pm >>> > $"Adriaan Renting" <[EMAIL PROTECTED]> writes: > $[On Qt] > $>I don't know how it performs on OSX, I think it work

Re: Problem splitting a string

2005-10-14 Thread Mike Meyer
Robert Kern <[EMAIL PROTECTED]> writes: > Anthony Liu wrote: >> I have this simple string: >> >> mystr = 'this_NP is_VL funny_JJ' >> >> I want to split it and give me a list as >> >> ['this', 'NP', 'is', 'VL', 'funny', 'JJ'] > You could use regular expressions as Jason Stitt mentions, or you cou

Re: MD5 module Pythonicity

2005-10-14 Thread Mike Meyer
Leandro Lameiro <[EMAIL PROTECTED]> writes: > What's wrong in having a function like the one I said, that would > split files for you, feed md5.update and, when it is over, return the > digest? Nothing in particular; it's just a trivial thing to write. If you add every usefull utility function to

Re: Microsoft Hatred FAQ

2005-10-15 Thread Mike Meyer
"Jeroen Wenting" writes: >>>Q: Microsoft's Operating System is used over 90% of PCs. If that's >>>not monopoly, i don't know what is. >> They got where they are by CHEATING. That is why they are evil, not >> because they have a large market share. > no, they got their by clever marketing and

Re: UI toolkits for Python

2005-10-16 Thread Mike Meyer
Malte Clasen <[EMAIL PROTECTED]> writes: > Claudio Grondi wrote: >> What is that complex, that it can't be solved using an Internet Browser as a >> GUI? > > Nothing, but session management isn't trivial with http > interfaces. You have to deal with the back button of the browsers, > bookmarks to p

Re: Microsoft Hatred FAQ

2005-10-16 Thread Mike Meyer
"Peter T. Breuer" <[EMAIL PROTECTED]> writes: > In comp.os.linux.misc Jeroen Wenting > wrote: >> Without Microsoft 90% of us would never have seen a computer more powerful >> than a ZX-81 and 90% of the rest of us would never have used only dumb >> mainframe terminals. > Uh - when microsoft pro

Re: Microsoft Hatred FAQ

2005-10-16 Thread Mike Meyer
"David Schwartz" <[EMAIL PROTECTED]> writes: > I don't really know why and I don't particularly care. I think it has a > lot to do with support costs and may also have to do with the type of deals > Microsoft offers. It has nothing to do with support costs. It has everything to do with the t

Re: Microsoft Hatred FAQ

2005-10-16 Thread Mike Meyer
Greymaus <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> You clearly weren't paying attention to what the rest >> of the microcomputer industry was doing while Gates was selling IBM >> non-existent software. While IBM was introducing 16-bit processors and >

Re: Microsoft Hatred FAQ

2005-10-16 Thread Mike Meyer
"Jeroen Wenting" writes: >>> IBM's prediction that there would be 5 computers (not counting game >>> computers like the Comodores and Spectrums) by 2000 would likely have >>> come >>> true. >> I see. You're a troll. > nope, I'm just sick and tired of trolls like you calling everyone who > doesn'

Re: Jargons of Info Tech industry

2005-10-16 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sat, 15 Oct 2005 23:24:21 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote or > quoted : >>How about pdf? > My complaint with it is it is Adobe proprietary. This make the tools > very expensive. No, it isn't. The standard is publicly available, so anyone c

Re: Microsoft Hatred FAQ

2005-10-16 Thread Mike Meyer
John Bokma <[EMAIL PROTECTED]> writes: > Which standards? Again: w3c is not an official standards organization. > Moreover, Netscape added LiveScript, oh wait, I mean JavaScript, and the > *cough* blink element. >> By contracting with sites to include non-standard IE features to >> deliberately br

Re: Microsoft Hatred FAQ

2005-10-16 Thread Mike Meyer
"David Schwartz" <[EMAIL PROTECTED]> writes: > As for it being illegal, it was illegal only because if was Microsoft > doing it. Actually, *any* company with a defacto monopoly pulling such a stunt would be found in violation of the law. Such companies operate under different legal rules than

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Mon, 17 Oct 2005 00:17:03 -0400, Mike Meyer wrote: >> Yup. When NS was the 800 lb gorilla > When was this? When did Netscape have a monopoly in any market? Starting with the release of Netscape 1.0, until MS decided to tak

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Meyer
"Mike Schilling" <[EMAIL PROTECTED]> writes: > What matters in generating HTML is which browsers you want to support and > what they understand. Standards and recommendations are both irrelevant. Unless, of course, you want to support any compliant browser. In which case standards and recommend

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Meyer
"David Schwartz" <[EMAIL PROTECTED]> writes: > It is not Microsoft's obligation to be "fair". It is Microsoft's > obligation to push their vision of the future of computing, one with > Microsoft's products at the center, using anything short of force or fraud. Wrong. The only obligation Micr

Re: Microsoft Hatred FAQ

2005-10-17 Thread Mike Meyer
"Mike Schilling" <[EMAIL PROTECTED]> writes: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> "Mike Schilling" <[EMAIL PROTECTED]> writes: >>> What matters in generating HTML is which brow

Re: UI toolkits for Python

2005-10-18 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Maybe that's the key difference between the mindset of a > mathematician and that of an engineer -- I consider reaching over > 95% of visitors to be _quite good indeed_, Oh? So you'd consider an SMTP/IMAP/POP/DNS/NFS/etc server that rejected 5% of the sy

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Meyer
"Mike Schilling" <[EMAIL PROTECTED]> writes: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> "Mike Schilling" <[EMAIL PROTECTED]> writes: >>> "Mike Meyer" <[EMAIL PROTECTED]>

Re: Jargons of Info Tech industry

2005-10-18 Thread Mike Meyer
Tim Tyler <[EMAIL PROTECTED]> writes: > In comp.lang.java.programmer Ross Bamford <[EMAIL PROTECTED]> wrote or quoted: > About all email has going for it these days is an open format and a > large existing user base. Yeah, and all that Windows has going for it is being on 9X% of the desktops. Noth

Re: UI toolkits for Python

2005-10-18 Thread Mike Meyer
Mark Roseman <[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] (Alex Martelli) writes: >> > Maybe that's the key difference between the mindset of a >> > mathematician and that of an engineer -- I consider reaching

Re: UI toolkits for Python

2005-10-18 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Mike Meyer <[EMAIL PROTECTED]> wrote: >> What surprises me is that marketing types will accept turning away - >> what's the current internet user base? 200 million? - 10 million >> potential customers without a complai

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Meyer
"Mike Schilling" <[EMAIL PROTECTED]> writes: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> "Mike Schilling" <[EMAIL PROTECTED]> writes: >>> "Mike Meyer" <[EMAIL PROTECTED]>

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Meyer
"Mike Schilling" <[EMAIL PROTECTED]> writes: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> One alternative, as I've said, is to write to the standards, and then >> work around bugs in the popular browse

Re: Microsoft Hatred FAQ

2005-10-18 Thread Mike Meyer
On Tue, 18 Oct 2005 11:53:29 -0700, David Schwartz wrote: >>> Wrong. The only obligation Microsoft has is to their shareholders. >> If you genuinely believe that, you are a psychopath. If you genuinely believe that, you are delusional. http://www.mired.org/home/mwm/ Independe

Re: UI toolkits for Python

2005-10-19 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Mike Meyer <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] (Alex Martelli) writes: >> > Mike Meyer <[EMAIL PROTECTED]> wrote: >> >> What surprises me is that marketing types will accept turning away - >&g

Re: Sequence and/or pattern matching

2005-10-19 Thread Mike Meyer
"Séb" <[EMAIL PROTECTED]> writes: >> Essentially, if I understand correctly, you want to detect LOOPS given a >> sequence of directed connections A->B. "loop detection" and "graph" >> would then be the keywords to search for, in this case. > > Exactly, but the sequence has to be discovered by the

Re: Having trouble deleting objects from a list...

2005-10-19 Thread Mike Meyer
Jason Stitt <[EMAIL PROTECTED]> writes: > On Oct 19, 2005, at 8:16 PM, KraftDiner wrote: > 'for obj in self.objList' will keep right on iterating through the > list even if you don't increment i. And if you modify self.objList while you're iterating over it, the results are undefined. > A direct

Re: destroy your self????

2005-10-19 Thread Mike Meyer
"KraftDiner" <[EMAIL PROTECTED]> writes: > Well I guess what I'm trying to achive is the invalidate the instance > of the object. > I have been using None to denote an invalide or uninitialized instance > of an object. > > There is a degenerate case in my code where a polygon has less than 3 > poi

Re: Some more odd behaviour from the Regexp library

2005-10-19 Thread Mike Meyer
"David Veerasingam" <[EMAIL PROTECTED]> writes: > Can anyone explain why it won't give me my captured group? > > In [1]: a = 'exit: gkdfjgfjdfsgdjglkghdfgkd' > In [2]: import re > In [3]: b = re.search(r'exit: (.*?)', a) > In [4]: b.group(0) > Out[4]: 'exit: ' > > In [5]: b.group(1) > Out[5]: '' >

Re: How to extract a part of html file

2005-10-20 Thread Mike Meyer
Ben Finney <[EMAIL PROTECTED]> writes: > Joe <[EMAIL PROTECTED]> wrote: >> I'm trying to extract part of html code from a tag to a tag > For tag soup, use BeautifulSoup: > http://www.crummy.com/software/BeautifulSoup/> Except he's trying to extract an apparently random part of the file. Beaut

Re: Sequence and/or pattern matching

2005-10-20 Thread Mike Meyer
"Séb" <[EMAIL PROTECTED]> writes: > Hi everybody, > > Thanks for the time taken to answer my question. Unfortunatly, it seems > that there's a little confusion about what I want to do. > > In fact, I don't want to search for a particular path between > computers. What I really want is to detect se

Re: Set an environment variable

2005-10-20 Thread Mike Meyer
"Eric Brunel" <[EMAIL PROTECTED]> writes: > -myScript.py-- > print 'export MY_VARIABLE=value' > -- > > -myScript.sh-- > python myScript.py > /tmp/chgvars.sh > . /tmp/chgvars.sh I

Re: best way to replace first word in string?

2005-10-20 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > I am looking for the best and efficient way to replace the first word > in a str, like this: > "aa to become" -> "/aa/ to become" > I know I can use spilt and than join them > but I can also use regular expressions > and I sure there is a lot ways,

Re: Searching for txt file and importing to ms access

2005-10-20 Thread Mike Meyer
"Mark Line" <[EMAIL PROTECTED]> writes: > I'm managed to get some code to download a message from the email account > and save it to a text file, does any one have a link to some sample code to > search though a file until a string of characters is matched? Or could > point me to some functions

Re: Python vs Ruby

2005-10-20 Thread Mike Meyer
at http://mitpress.mit.edu/sicp/full-text/book/book.html >. Oz: Concepts, Techniques and Models of Computer Programming, by Van Roy and Haridi. Sometimes shortened to "The Oz book." Read more about it at http://www2.info.ucl.ac.be/people/PVR/book.html >. Eiffel: Object Oriented

Re: fun with lambdas

2005-10-20 Thread Mike Meyer
Robert Kern <[EMAIL PROTECTED]> writes: > Juan Pablo Romero wrote: >> Hello! >> >> given the definition >> >> def f(a,b): return a+b >> >> With this code: >> >> fs = [ lambda x: f(x,o) for o in [0,1,2]] >> >> or this >> >> fs = [] >> for o in [0,1,2]: >> fs.append( lambda x: f(x,o) ) >>

Re: Set an environment variable

2005-10-21 Thread Mike Meyer
Grant Edwards <[EMAIL PROTECTED]> writes: > On 2005-10-21, Christian <[EMAIL PROTECTED]> wrote: >>> >>> The closest thing you can do is that: >>> >>> -myScript.py-- >>> print 'export MY_VARIABLE=value' >>> -- >>>

Re: Binding a variable?

2005-10-21 Thread Mike Meyer
Paul Dale <[EMAIL PROTECTED]> writes: > Hi everyone, > > Is it possible to bind a list member or variable to a variable such that > > temp = 5 > > list = [ temp ] > > temp == 6 > > list > > would show > > list = [ 6 ] No. You need to either put a mutable in the list, or subclass list so that inde

Re: how to modify text in html form from python

2005-10-21 Thread Mike Meyer
rm) >> >> except: >> logging.exception("\nEXCEPTION 1") >> try: >> >> form['tosrv'].value = "TEST" >> except: >> logging.exception("\nEXCEPTION 2") >> pass >> >> >>

Re: Set an environment variable

2005-10-21 Thread Mike Meyer
Grant Edwards <[EMAIL PROTECTED]> writes: > My point: the OP wanted to know how to export an environment > variable to a child process. Either of the lines of code above > will do that, so what's with all the shellular shenanigans? Actually, the OP didn't say he wanted to export a variable to a c

Re: how to modify text in html form from python

2005-10-21 Thread Mike Meyer
"Philippe C. Martin" <[EMAIL PROTECTED]> writes: > Mike, > > Here is what I am trying to do: > > WHAT > -) a client opens his/her browser and click on some button which triggers my > plugin > -) the plugin starts to communicate with a server on some URL. > -) the communication between th

Re: A question about searching with multiple strings

2005-10-21 Thread Mike Meyer
"googleboy" <[EMAIL PROTECTED]> writes: > for item in all_items: > > strItem = str(item) > > m = re.search(p[i], strItem, flags = re.I) > if m: > height = getattr(item, "height") > length = getattr(item, "length") > function = getattr(item

Re: how to modify text in html form from python

2005-10-21 Thread Mike Meyer
"Philippe C. Martin" <[EMAIL PROTECTED]> writes: >> You've got lots of stuff going on here. I count at least five programs >> and three network connections. How much is working, and which parts >> are you trying to do in Python? > > I am starting from existing applications (cross-platform - and in

Re: Python cgi

2005-10-21 Thread Mike Meyer
"jbrewer" <[EMAIL PROTECTED]> writes: > Also, I need to run an external program with my CGI script using > something like os.system with flags from input forms, which is a major > security risk. Is it simply enough to test for flag.isalnum() or > should I do more to prevent random programs from be

Re: how to modify text in html form from python

2005-10-21 Thread Mike Meyer
"Philippe C. Martin" <[EMAIL PROTECTED]> writes: > I feel fairly stupid ... but to my defense in the past 17 years of coding, > i've only spent 3 days looking at web stuff: > > I now can understand how "writing" to an existing form field from a cgi > script might not work: how would the browser kn

Re: how to modify text in html form from python

2005-10-21 Thread Mike Meyer
"Philippe C. Martin" <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> I don't know much about plugins. I believe they get started when the >> page loads, which gives you a chance to do the authentication when you >> want it done. > Well not in thi

Re: best way to replace first word in string?

2005-10-22 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > py> def tester(n): > ... s1 = "" > ... s2 = "%s" * n > ... bytes = tuple([chr(i % 256) for i in range(n)]) > ... t1 = time.time() > ... for i in range(n): > ... s1 = s1 + chr(i % 256) > ... t1 = time.time() - t1 > ...

Re: Question about inheritance...

2005-10-22 Thread Mike Meyer
"KraftDiner" <[EMAIL PROTECTED]> writes: > I have a base class called Shape > And then classes like Circle, Square, Triangle etc, that inherit from > Shape: > > My quesiton is can a method of the Shape class call a method in Circle, > or Square etc...? Yup: >>> class Shape(object): ... def comm

Re: High Order Messages in Python

2005-10-22 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > I'm reading about "high order messages" in Ruby by Nat Pryce, and > thinking if it could be util and if so, if it could be done in Python. > Someone already tried? Yes, I'm pretty sure it could be done in Python. All it really needs is the abilit

Re: Microsoft Hatred FAQ

2005-10-22 Thread Mike Meyer
"David Schwartz" <[EMAIL PROTECTED]> writes: > "Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> On Fri, 21 Oct 2005 21:47:27 -0700, David Schwartz wrote: That's basic economics. Something which can be allowed or ignored or even encouraged when done

Re: Python vs Ruby

2005-10-22 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Fri, 21 Oct 2005 13:03:29 +0100, Alex Stapleton wrote: >> Perl is more like a CISC CPU. There are a million different commands. >> Python is more RISC like. >> Line count comparisons = pointless. > > Not so. > > Every line = more labour for the devel

Re: Binding a variable?

2005-10-22 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Fri, 21 Oct 2005 13:33:18 -0400, Mike Meyer wrote: > >> Paul Dale <[EMAIL PROTECTED]> writes: >> >>> Hi everyone, >>> >>> Is it possible to bind a list member or variable to a variabl

Re: Microsoft Hatred FAQ

2005-10-22 Thread Mike Meyer
"David Schwartz" <[EMAIL PROTECTED]> writes: > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >>>> Neither I, nor you, nor the government of any nation, should care a >>>> monkey's toss specifically f

Re: Python vs Ruby

2005-10-22 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Mike Meyer <[EMAIL PROTECTED]> wrote: >> > Every line = more labour for the developer = more cost and time. >> > Every line = more places for bugs to exist = more cost and time. >> There were studies done in the

Re: best way to replace first word in string?

2005-10-22 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Sat, 22 Oct 2005 14:54:24 -0400, Mike Meyer wrote: >>> The string formatting is two orders of magnitude faster than the >>> concatenation. The speed difference becomes even more obvious when you >>> increase

Re: Microsoft Hatred FAQ

2005-10-23 Thread Mike Meyer
entropy <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote... >> [EMAIL PROTECTED] wrote... >> > In comp.lang.perl.misc David Schwartz <[EMAIL PROTECTED]> wrote: >> > > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message >> >

Re: Microsoft Hatred FAQ

2005-10-23 Thread Mike Meyer
"David Schwartz" <[EMAIL PROTECTED]> writes: >> Instead, you outline a class of actions and tag them >> all as illegal. That's why we have laws against assault and battery >> and unsafe driving. And laws against exercising monopoly power in an >> unfair manner. > Interesting how you, again, equ

Re: how to count and extract images

2005-10-23 Thread Mike Meyer
Joe <[EMAIL PROTECTED]> writes: > start = s.find(' stop = s.find('">Save File', > start) fileName = s[start:stop] > and then construct the url with the filename to download the image > which works fine as cause every image has the Save File link and I can > count number of images easy the problem

Re: Syntax across languages

2005-10-23 Thread Mike Meyer
Tom Anderson <[EMAIL PROTECTED]> writes: > On Sun, 23 Oct 2005, Fredrik Lundh wrote: >> [EMAIL PROTECTED] wrote: >>> - ~== for approximate FP equality >> str(a) == str(b) > This is taken from the AI 754 standard, i take it? :) > > Seriously, that's horrible. Fredrik, you are a bad man, and

Re: output from external commands

2005-10-23 Thread Mike Meyer
James Colannino <[EMAIL PROTECTED]> writes: > Hey everyone. First off, I'm new to the list. I had had a little bit > of experience with Perl before discovering Python. The more Python I > learn, the more I love it :) I just have a quick question to ask. I > know that this is probably a simple

Re: Syntax across languages

2005-10-23 Thread Mike Meyer
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > On Sun, 23 Oct 2005 20:59:46 -0400, Mike Meyer <[EMAIL PROTECTED]> declaimed > the following in comp.lang.python: > >> Hopefully user defined. Rexx has a global control that lets you set >> the number of digits to b

Re: output from external commands

2005-10-24 Thread Mike Meyer
darren kirby <[EMAIL PROTECTED]> writes: > If all you want is filenames this will work: import glob files = ["%s" % f for f in glob.glob("*")] What's the point of doing "%s" % f? How is this different from just file = [f for f in glob.glob("*")]? http://www.mired.

Re: [OT] Re: output from external commands

2005-10-24 Thread Tony Meyer
On 25/10/2005, at 3:36 PM, Steven Bethard wrote: > I wouldn't fret too much about a sharp remark from Fredrik Lundh. > They're pretty much all that way. ;) [...] It takes a little > training to get used to > him, but if you can look past the nasty bite, he's really a valuable > resource around h

Re: Importing at runtime

2005-10-24 Thread Mike Meyer
"David Poundall" <[EMAIL PROTECTED]> writes: > I have several .py files in a directory that I would like to import at > run time. Each file contains a state machine that requires to be run > in its own thread. Imports happen at run time. Beware starting threads in the code run at import time in e

Re: Read/Write from/to a process

2005-10-25 Thread Mike Meyer
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > Followed by the Amiga... The Amiga IPC used "message ports" (linked > lists owned by the creating process to which, if "public" [named], other > processes could send message packets). The Amiga port of REXX made use > of message ports as its nat

Re: security

2005-10-25 Thread Mike Meyer
"Mattia Adami" <[EMAIL PROTECTED]> writes: > Hi to all. > I'm intristing in write a plugin for browsers that can execute python > code. > I know the main problem is security. Many thread were opened about this > in the ng. > I would know if fork python rewriting some library could avoid > problems

Re: [OT] Re: output from external commands

2005-10-25 Thread Mike Meyer
Terry Hancock <[EMAIL PROTECTED]> writes: > I think Mr. Lundh's point was only that the output from glob.glob is already > guaranteed to be strings, so using either '%s'%f or str(f) is superfluous. Just for the record - this was why I asked what the point was in the first place.

Re: Newbie question: string replace

2005-10-25 Thread Mike Meyer
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > So how to overwrite the config file directly in script.py instead of > running script.py with two params? Don't overwrite the file directly. Save a copy, then rename it. That way, you don't replace the new version until you know the old version is

Re: Microsoft Hatred FAQ

2005-10-25 Thread Mike Meyer
Not Bill Gates <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote... >> On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: >> > Heck, I dunno. Like you, I don't even really care all that much. >> You don't care that innovation in desktop software has been crippled by >> the actions of

Re: Top-quoting defined [was: namespace dictionaries ok?]

2005-10-25 Thread Mike Meyer
> On Tuesday 25 October 2005 00:31, Duncan Booth wrote: >> P.S. James, *please* could you avoid top-quoting > James Stroud <[EMAIL PROTECTED]> writes: > I'm sorry if I can't find a dumb terminal for a "VAX" with which to read my > email. Perhaps, if i could, I would understand your frustration a l

Re: Microsoft Hatred FAQ

2005-10-25 Thread Mike Meyer
Not Bill Gates <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote... >> Not Bill Gates <[EMAIL PROTECTED]> writes: >> > [EMAIL PROTECTED] wrote... >> >> On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: >> >> > Heck, I dunno. Like you, I don't even really care all that much. >> >> Yo

Re: a Haskell a Day

2005-10-26 Thread Mike Meyer
Erik Max Francis <[EMAIL PROTECTED]> writes: > Xah Lee wrote: >> This is my learning notes on Haskell. I call it a-Haskell-a-day. Interesting. Xah Lee's orginals don't show up in the Python newsgroup. No big loss. In any case, please help google find Xah Lee under the proper search terms. Add a l

Re: Double replace or single re.sub?

2005-10-26 Thread Mike Meyer
"Iain King" <[EMAIL PROTECTED]> writes: > I have some code that converts html into xhtml. For example, convert > all tags into . Right now I need to do to string.replace calls > for every tag: > > html = html.replace('','') > html = html.replace('','') > > I can change this to a single call to

Re: Set an environment variable

2005-10-26 Thread Mike Meyer
Jorgen Grahn <[EMAIL PROTECTED]> writes: > On Wed, 26 Oct 2005 07:42:19 -0700, Alex Martelli <[EMAIL PROTECTED]> wrote: >> Grant Edwards <[EMAIL PROTECTED]> wrote: >>> On 2005-10-24, Eric Brunel <[EMAIL PROTECTED]> wrote: >>> >> The only think you can export an environment variable to is a >>> >> c

<    1   2   3   4   5   6   7   8   9   10   >