Re: Another newbie question

2005-12-10 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > def setRho(self, rho): > c = self.fromPolar(rho, self.getTheta()) > self.x, self.y = c.x, c.y > def setTheta(self, theta): > c = self.fromPolar(self.getRho(), theta) > self.x, self.y = c.x, c.y > > That's the maximu

Re: Another newbie question

2005-12-10 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Sat, 10 Dec 2005 13:33:25 -0500, Mike Meyer wrote: >> Steven D'Aprano <[EMAIL PROTECTED]> writes: >>>> In particular, >>>> you can get most of your meaningless methods out of a properly >>

Re: Another newbie question

2005-12-10 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Mike Meyer <[EMAIL PROTECTED]> wrote: >> > Really, I don't think this makes a good poster child for your "attribute >> > mutators make life more difficult" campaign...;-) >> The claim is that

Re: Another newbie question

2005-12-10 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Sat, 10 Dec 2005 22:56:12 -0500, Mike Meyer wrote: >>> Really, I don't think this makes a good poster child for your "attribute >>> mutators make life more difficult" campaign...;-) >> The cla

Re: OO in Python? ^^

2005-12-11 Thread Mike Meyer
"Paul Boddie" <[EMAIL PROTECTED]> writes: > One classic example of a > weakly-typed language is BCPL, apparently, but hardly anyone has any > familiarity with it any more. Actually, BCPL is what Stevenn D'Aprano called "untyped". Except his definition is suitable for after everyone followed IBM's

Re: OO in Python? ^^

2005-12-11 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > Of course, the IT world is full of people writing code and not testing > it, or at least not testing it correctly. That's why there are frequent > updates or upgrades to software that break features that worked in the > older version. That would be impo

Re: OO in Python? ^^

2005-12-11 Thread Mike Meyer
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: >> ^^ There is no functionality to check if a subclass correctly >> implements an inherited interface > > I don't know of any language that provide such a thing. At least for > my definition of "correctly". Well, since your definition of "correclty"

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-11 Thread Mike Meyer
Zeljko Vrba <[EMAIL PROTECTED]> writes: > An obvious defficieny of the current way we write code now is its inherent > tree-structure resulting from {}, indentation, begin/end markers or whatnot. > But the flow of code is often not a tree but a cycle.. Yet we are always > dealing with a tree-like r

Re: Another newbie question

2005-12-11 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Mike Meyer <[EMAIL PROTECTED]> wrote: >... >> It's not my cherished example - it actually came from someone > You picked it to (try and fail to) show that there is DIFFICULTY, which > I showed there isn't. No, you s

Re: instance + classmethod question

2005-12-11 Thread Mike Meyer
Laszlo Zsolt Nagy <[EMAIL PROTECTED]> writes: > Is it possible to tell, which instance was used to call the > classmethod that is currently running? Ok, I read through what got to my nntp server, and I'm still completely confused. A class method isn't necessarilry called by an instance. That's wh

Re: Another newbie question

2005-12-11 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Mike Meyer <[EMAIL PROTECTED]> wrote: >... >> Except you haven't shown that the API was badly designed. You can't >> show that it's badly designed, because you don't know the requirements >> that the

Re: Random Number Generation?

2005-12-11 Thread Mike Meyer
[EMAIL PROTECTED] (Bengt Richter) writes: > Theoretically, the chances of getting an integer from a uniformly > random sample from an interval of real numbers is practically zero, > and even allowing for IEEE 754 double representation, Well, if we're going to be picky, the chances of getting a num

Re: instance + classmethod question

2005-12-12 Thread Mike Meyer
Laszlo Zsolt Nagy <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>Laszlo Zsolt Nagy <[EMAIL PROTECTED]> writes: >>>Is it possible to tell, which instance was used to call the >>>classmethod that is currently running? >>Ok, I read through what got

Re: newbie: generate a function based on an expression

2005-12-12 Thread Mike Meyer
"Jacob Rael" <[EMAIL PROTECTED]> writes: > Hello, > I would like write a function that I can pass an expression and a > dictionary with values. The function would return a function that > evaluates the expression on an input. For example: > > fun = genFun("A*x+off", {'A': 3.0, 'off': -0.5, 'Max': 2

Re: "0 in [True,False]" returns True

2005-12-13 Thread Mike Meyer
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Duncan Booth wrote: >> > For HTML attributes that don't have an explicit value (such as the >> > SELECTED attribute in OPTION) the keyword argument to the function must >> > have the value True >> A better way to do this (given that HTML defines exactly

Re: Another newbie question

2005-12-13 Thread Mike Meyer
Antoon Pardon <[EMAIL PROTECTED]> writes: > Op 2005-12-11, Steven D'Aprano schreef <[EMAIL PROTECTED]>: >> On Sat, 10 Dec 2005 15:46:35 +, Antoon Pardon wrote: >> Do you really think that my class and some other class written by >> another person will have the same API? > If both writers try to

Re: newbie: generate a function based on an expression

2005-12-13 Thread Mike Meyer
"Jacob Rael" <[EMAIL PROTECTED]> writes: > In CppSim, classes are defined that allow various functions to be > defined, like amplifiers. In some cases they are linear: > > y = A*x > > some have offsets: > > y = A*x + off > > some are non-linear > > y = A*x - C*x**3 > > The coefficients and the func

Re: Still Loving Python

2005-12-13 Thread Mike Meyer
Jérôme Laheurte <[EMAIL PROTECTED]> writes: > On Tue, 13 Dec 2005 17:35:40 +0100, Ivan Voras wrote: >> Maybe the OP really wants a GUI builder. >> More than 5 years ago, i programmed in Visual Basic and Delphi and I >> still miss the wonderful ease of graphically creating the user interface >> in

Re: IsString

2005-12-13 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > But neither is it call by reference. If it were call by reference, I could > write something like this: > > def increment(n): > """Add one to the argument changing it in place.""" > # In Pascal, I would need the var keyword to get this behaviour

Re: Still Loving Python

2005-12-13 Thread Mike Meyer
Peter Maas <[EMAIL PROTECTED]> writes: > Mike Meyer schrieb: >> I agree. I've tried a number of different gui builders. I find it much >> faster to type something like: >> ui.add_button("New", self.new) >> ui.add_button("Ope

Re: Comparing dictionaries, is this valid Python?

2005-12-13 Thread Mike Meyer
François Pinard <[EMAIL PROTECTED]> writes: > Would someone know where I could find a confirmation that comparing > dictionaries with `==' has the meaning one would expect (even this is > debatable!), that is, same set of keys, and for each key, same values? It may not exist, so you'll have to go

Re: Still Loving Python

2005-12-13 Thread Mike Meyer
Peter Decker <[EMAIL PROTECTED]> writes: >> > A GUI builder is more pleasant to work with, at least >> > with a good one like Delphi or Qt designer. >> That is your opinion, and I'm sure it's true for you. It isn't true >> for me. > Why, then, do you disparage those who like to do things differentl

Re: Still Loving Python

2005-12-14 Thread Mike Meyer
[EMAIL PROTECTED] (Bengt Richter) writes: > A single click compiles, links and runs the resulting independent windows > .exe in a fraction of a second > for the above, and I can see the hint, kill the .exe, and go on where I was. Click? Yuck. If I wanted it, I've had environments where a single k

Re: Still Loving Python

2005-12-14 Thread Mike Meyer
Peter Decker <[EMAIL PROTECTED]> writes: > On 12/13/05, Mike Meyer <[EMAIL PROTECTED]> wrote: >> > Why this need to have everyone do things the way you do? >> Whatever makes you think I have this need? I said I hated them. I'm >> pretty sure I didn't

Re: "0 in [True,False]" returns True

2005-12-14 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Steve Holden wrote: >> >>It would be somewhat more self-documenting, but why not just use one >> >>name to indicate the state and another, only meaningful in certain >> >>states, to indicate the callback? >> > Why should I do that? Checking the type of a variable is conc

Re: IsString

2005-12-14 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >>>So Python behaves demonstrably different from BOTH call by value and call >>>by reference. Consequently, it is neither of them. >> Right. *Python* behaves differently. That's not the

Re: OO in Python? ^^

2005-12-14 Thread Mike Meyer
Magnus Lycka <[EMAIL PROTECTED]> writes: > Huh? I must have expressed my thoughts badly. This is trivial to > use in Python. You could for instance write a module like this: > > ### my_module.py ### > import copy > > def sum(*args): > result = copy.copy(args[0]) > for arg in args[1:]: >

Re: Still Loving Python

2005-12-14 Thread Mike Meyer
[EMAIL PROTECTED] (Bengt Richter) writes: > On Wed, 14 Dec 2005 10:07:04 -0500, Mike Meyer <[EMAIL PROTECTED]> wrote: >>[EMAIL PROTECTED] (Bengt Richter) writes: >>> A single click compiles, links and runs the resulting independent windows >>> .exe in a fraction o

Re: definition of 'polymorphism' and python

2005-12-14 Thread Mike Meyer
"gene tani" <[EMAIL PROTECTED]> writes: > Grant Edwards wrote: >> On 2005-12-14, Gabriel Zachmann <[EMAIL PROTECTED]> wrote: >> > I understand the Wikipedia article on Polymorphism ( >> > http://en.wikipedia.org/wiki/Polymorphism_%28computer_science%29 >> > ) that it doesn't make sense to talk abou

Re: Which Python web framework is most like Ruby on Rails?

2005-12-14 Thread Mike Meyer
[Not sure if this attribution is correct.] > Alex Martelli wrote: > Because of course if other languages have 1 or two frameworks, python > needs a dozen. People keep talking about Python's wealth of web frameworks as if it were a bad thing. I just don't see it. Just like I like to have more than

Re: Worthwhile to reverse a dictionary

2005-12-14 Thread Mike Meyer
Erik Max Francis <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: >> What is the difference between >> " d1 = {'A' : '1', 'B' : '2', 'C' : '3'} " >> and >> " d1 = dict(A = 1, B = 2, C = 3) " ? >> All of the dictionary examples I saw (python.org, >> aspn.activestate.com, >> Learning Python b

Re: IsString

2005-12-14 Thread Mike Meyer
Tom Anderson <[EMAIL PROTECTED]> writes: >> Python does call by reference, which means that it passes pointers >> to objects by value. > That's not what call by reference is - call by reference is passing > pointers to *variables* by value. In which case, Python can't do call-by-reference at all,

Re: IsString

2005-12-14 Thread Mike Meyer
Donn Cave <[EMAIL PROTECTED]> writes: > I would like to argue that "value" basically means the > computational effect. In "s = a + b", the value of "b" > is whatever ends up applied to that "+" operator. In > isolation, the value of some object is its computational > potential - the object isn't

Re: Online Ruby

2005-12-14 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Maybe a page like this for Python exists already, or it can be useful > to create it: > http://tryruby.hobix.com/ Working on it, in my spare time (~1hr/day). You can poke at it at http://www.mired.org/home/mwm/try_python/, but it's *very* much not ready for release.

Re: how to get select label?

2005-12-14 Thread Mike Meyer
Dan M <[EMAIL PROTECTED]> writes: > On Wed, 14 Dec 2005 13:56:24 -0800, lli wrote: >> I build web application. So I use CGI. I need to show select text in >> the html page. Now I can only display select value such as '001'. But I >> need to display its text 'AAA'. > I'm a Python newbie, so by all m

Re: IsString

2005-12-14 Thread Mike Meyer
"Tuvas" <[EMAIL PROTECTED]> writes: > I don't know if I can help with this much, I'm still somewhat new to > python, but it is my understanding that "simple" variable, ei, strings, > ints, etc, although they don't have such names, behave like variables, > ei, if you pass them to a function, the fun

Re: Python packages on OS X vs Windows

2005-12-14 Thread Mike Meyer
Kenneth McDonald <[EMAIL PROTECTED]> writes: > At the moment I'm doing most of my stuff on a Mac, but I've been > considering also getting > a Windows laptop. One of the reasons is that I've found it very > difficult to get certain > Python related things running on the Mac; for example, if one wan

Re: Python packages on OS X vs Windows

2005-12-14 Thread Mike Meyer
Scott David Daniels <[EMAIL PROTECTED]> writes: > BartlebyScrivener wrote: > The tough part on Windows (for the Linux/Unix/*ix bigots) is that > each program scans the command line that invoked it in its own > inimitable way. This is not really the fault of the windows command > line processor; th

Re: Which Python web framework is most like Ruby on Rails?

2005-12-15 Thread Mike Meyer
"Ben Sizer" <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> [Not sure if this attribution is correct.] And it was apparently wrong. Apologies to both DH and AM. >> > Alex Martelli wrote: >> > Because of course if other languages have 1 or two frame

Re: Why and how "there is only one way to do something"?

2005-12-15 Thread Mike Meyer
[EMAIL PROTECTED] writes: > The point is again, "obvious" is not so obvious sometimes. You keep leaving out the context. We're writing *python*. What's obvious when you're writing python won't be when you're writing FORTRAN, or Scheme, or O'Caml, or Eiffel, or Generally (not always, I'll admi

Re: IsString

2005-12-15 Thread Mike Meyer
Chris Mellon <[EMAIL PROTECTED]> writes: > I think the issue is pretty simple, myself: > With mutable objects, Python has the semantics normally associated > with pass-by-reference. Except when it doesn't. For instance, if that were true, then in this: >>> def inc(x): ... x = x + [1] ... >>> y

Re: Which Python web framework is most like Ruby on Rails?

2005-12-15 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: > Robert Kern <[EMAIL PROTECTED]> wrote: >... >> Picking RoR because you want to do the project in Ruby makes sense. >> Picking Ruby because it only has one web framework is as silly as picking >> one Python web framework at random. Just because RoR is

Re: Enumeration idioms: Values from different enumerations

2005-12-15 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > For example, if enumerations are intended to reduce the likelihood of > certain types of errors (where the use of typical =3 "constants" > might be more prone to errors), then perhaps this suggests that > passing errors silently is bad. That is, tryin

Re: Enumeration idioms: Values from different enumerations

2005-12-16 Thread Mike Meyer
Ben Finney <[EMAIL PROTECTED]> writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> Peter Hansen <[EMAIL PROTECTED]> writes: >>> That is, [perhaps] trying to compare enumerations that should not >>> be compared *is* an error (raising an exception) *becau

Re: Which Python web framework is most like Ruby on Rails?

2005-12-16 Thread Mike Meyer
"chuck" <[EMAIL PROTECTED]> writes: > As I read through this thread I can't say that I disagree that having > more choices is a 'good thing'. However in your example here - I > suspect that you are a bit sharper and have a bit more guts than your > average code slinger since you appear to be an in

Re: Which Python web framework is most like Ruby on Rails?

2005-12-16 Thread Mike Meyer
"Ben Sizer" <[EMAIL PROTECTED]> writes: > I see what you mean, but unfortunately I think there is a lot more > fuzziness than that. If the separate parts were clearly delineated > things would be a lot better. I look to the Database API Specification > as a great example of how this could (should?)

Re: Which Python web framework is most like Ruby on Rails?

2005-12-16 Thread Mike Meyer
"Alia Khouri" <[EMAIL PROTECTED]> writes: > If Subway does not unite, chaos will continue in python web app land, > and ruby will become ascendant. This is more than a critical issue - > don't dismiss it without understanding that doing so will have severe > repercussions for subway (and by a proce

Re: Which Python web framework is most like Ruby on Rails?

2005-12-16 Thread Mike Meyer
"chuck" <[EMAIL PROTECTED]> writes: >> "it would make Python more popular" isn't an adequate >> justification for a change > I disagree. The world desperately needs programming languages, > frameworks, etc. that allow for the more efficient creation and > maintenance of software application - web

Re: Which Python web framework is most like Ruby on Rails?

2005-12-17 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Mike Meyer wrote: >> It's conceivable that a change might make Python more popular and also >> detract from the language in some way. For a ridiculous example, >> making Python interpret Perl 6 would certainly make it more popular, >&

Re: Changing a shell's current directory with python

2005-12-18 Thread Mike Meyer
Peter Hansen <[EMAIL PROTECTED]> writes: > Andy B. wrote: >> I've got a python utility that I want to change my shell's current >> directory based on criteria it finds. I've scoured google and the >> python cookbook and can't seem to figure out if this is even possible. >> So far, all my attempts

Re: reading files

2005-12-19 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > The text you read is still hanging around, waiting for you to use it. Once > you are done with it, you might want to reclaim that memory used, > especially if it is a 100MB text file: > > mytext = "" # re-bind the name 'mytext' to the empty string If

Re: modify a long-running python script while it is running?

2005-12-19 Thread Mike Meyer
Benjamin Rutt <[EMAIL PROTECTED]> writes: > I suppose this question could be reformatted as "does CPython read the > entire script file into memory and then close the file before > executing the script, making it safe for me to modify the script after > I know it has started?"[1] Yes, but (didn't

Re: Which Python web framework is most like Ruby on Rails?

2005-12-19 Thread Mike Meyer
Benji York <[EMAIL PROTECTED]> writes: > Russell E. Owen wrote: >> I disagree. Once you've picked a database (not trivial in itself, of >> course), you typically only have a few options for talking to in in >> Python. > Perhaps it's off-topic for this thread, but I think "picking a > database" is t

ANNOUNCE; Try python beta

2005-12-19 Thread Mike Meyer
Ok, I've given it the interface I want, and made it less of an attractive nuisance. http://www.mired.org/home/mwm/try_python/ is now ready for people to play with. There's no tutorial information on it yet, that's the next thing to do. However, I won't be able to work on it for a while, so if you

Re: ANNOUNCE; Try python beta

2005-12-19 Thread Mike Meyer
"Lonnie Princehouse" <[EMAIL PROTECTED]> writes: > Pretty neat =) > But aren't you concerned about security? Letting anybody execute > arbitrary Python expressions (and therefore also arbitrary system > commands?!) on your box --- even from within a FreeBSD jail --- seems a > bit dangerous. What'

Re: ANNOUNCE; Try python beta

2005-12-19 Thread Mike Meyer
Claudio Grondi <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> Ok, I've given it the interface I want, and made it less of an >> attractive nuisance. >> http://www.mired.org/home/mwm/try_python/ is now ready for people to >> play with. There's no tuto

Re: ANNOUNCE; Try python beta

2005-12-19 Thread Mike Meyer
"David Wahler" <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: >> The previous version was in a jail, which is why I didn't want it >> generally announced. The logs made amusing reading. I like Gerhard's >> idea of removing __import__, and have do

Re: ANNOUNCE; Try python beta

2005-12-19 Thread Mike Meyer
[EMAIL PROTECTED] writes: > >> It does work for me in FireFox and Netscape: > >> >>> 1+1 > >> 2 > Mike> Also Safari, Mozilla and Netscape. > I tried 4+3 in Safari and got I've been futzing with it all evening. Various things I've done have broken it in strange ways. It's working n

Re: adding vectors

2005-12-19 Thread Mike Meyer
Paul Rubin writes: > Andy Leszczynski <[EMAIL PROTECTED]> writes: >> Short question: why (1,"abc",0.3)+(2,"def",10.2) != (3,"abcdef",10.5)? >> How to elegantly achieve (3,"abcdef",10.5) as a result of addition ... > tuple([(a+b) for a,b in zip((1,"abc",0.3),(2,"def",10.2

Re: putenv

2005-12-20 Thread Mike Meyer
Terry Hancock <[EMAIL PROTECTED]> writes: > On Tue, 20 Dec 2005 05:35:48 - > Grant Edwards <[EMAIL PROTECTED]> wrote: >> On 2005-12-20, [EMAIL PROTECTED] <[EMAIL PROTECTED]> >> wrote: >> > I have csh script that calls a bunch of python programs >> > and I'd like to use env variables as kind of

Re: Which Python web framework is most like Ruby on Rails?

2005-12-20 Thread Mike Meyer
"Paul Boddie" <[EMAIL PROTECTED]> writes: > Paul Rubin wrote: >> It's been a long-time source of puzzlement to me why so many web sites >> are so slow, and RDBMS overhead is an obvious candidate. So the rant >> seems appropriate even in the case of web apps where clients can cause >> db updates. >

Re: ANNOUNCE; Try python beta

2005-12-20 Thread Mike Meyer
Richie Hindle <[EMAIL PROTECTED]> writes: >> Yeah, I know. I poked at it briefly, but couldn't figure out what was >> goiing on. MSIE on the Mac doesn't work at all (no AJAT), and I don't >> have regular access to a Windows box to try it on. > > I think it's your JavaScript '\r' processing that's b

Re: pythonic equivalent of upvar?

2005-12-20 Thread Mike Meyer
[EMAIL PROTECTED] (David MacKay) writes: « > > I am writing a command-line reader for python. > > I'm trying to write something with the same brevity > as perl's one-liner > > eval "\$$1=\$2" while @ARGV && $ARGV[0]=~ /^(\w+)=(.*)/ && shift; > > and with similar functionality. Why? Do

Re: ANNOUNCE; Try python beta

2005-12-20 Thread Mike Meyer
Richie Hindle <[EMAIL PROTECTED]> writes: >> My assumption is that if splitting on '\n' leaves us with one >> thing, we may have gotten a string that used \r for newlines > Ah, OK. Your comment talks about DOS - that won't happen on DOS (or > Windows) which uses \r\n. I don't know about the Mac.

Re: Which Python web framework is most like Ruby on Rails?

2005-12-20 Thread Mike Meyer
Paul Rubin writes: >> IANAL but that is not my understanding of the GPL. GPL version 2 >> section 2.b) reads, "You must cause any work that you distribute or >> publish, that in whole or in part contains or is derived from the >> Program or any part thereof, to be license

Re: ANNOUNCE; Try python beta

2005-12-21 Thread Mike Meyer
"Maravilloso" <[EMAIL PROTECTED]> writes: > I'm afraid that I've spoiled the "try_python" working by means of > executing the sentence: > > open("try.py").write("\n") > > Sorry. I hope it don't be difficult for you to restore the module again > to the default folder. No problem - I'm not crazy eno

Re: ANNOUNCE; Try python beta

2005-12-21 Thread Mike Meyer
Eric <[EMAIL PROTECTED]> writes: > I'm not sure about everyone else, but I find the big warnings about > CSS and JavaScript almost as annoying as the fact that it doesn't do > anything. At all, even with JavaScript enabled. Then again, my main > browser is elinks, so my opinion is somewhat biased

Detect File System changes

2005-12-23 Thread Lukas Meyer
Hello, I'm trying to detect changes in a directory. E.g if someone crates a file, i'll execute another function on this file. I tried to solve this by creating a loop that permanently checks the contents of this directory with os.listdir() and compares it with the one before. But this isn't reall

Re: Detect File System changes

2005-12-23 Thread Lukas Meyer
Hello, Thank you for your assistance. I could manage it using your link to the already discussed thread. best regards, Lukas -- http://mail.python.org/mailman/listinfo/python-list

Re: Herds of cats

2005-12-23 Thread Mike Meyer
Steve Holden <[EMAIL PROTECTED]> writes: > Alex Martelli wrote: >> Not a bad point at all, although perhaps not entirely congruent to >> open >> source: hiring key developers has always been a possibility (net of >> non-compete agreements, but I'm told California doesn't like those). California pl

Re: Trying to find regex for any script in an html source

2005-12-24 Thread Mike Meyer
"28tommy" <[EMAIL PROTECTED]> writes: > Hi, > I'm trying to find scripts in html source of a page retrieved from the > web. > I'm trying to use the following rule: > > match = re.compile('') > > I'm testing it on a page that includes the following source: > >