Great recommendation, thanks.-MHOn May 18, 2005, at 8:12 PM, Lee Cullens wrote:Mike,You may not be looking for a commercial IDE, but I am very happy with WingIDE and using it with Tiger.Lee COn May 18, 2005, at 6:54 PM, Mike Hall wrote: I should of specified that I'm looking for an IDE
Does anyone know of a Python debugger that will run under OSX 10.4? The Eric debugger was looked at, but it's highly unstable under Tiger. Thanks.-MH___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Ah, so it has to do with access to the window manager. That answers a
lot, thanks.
On Mar 31, 2005, at 4:09 PM, Max Noel wrote:
On Apr 1, 2005, at 00:14, Mike Hall wrote:
On Mar 31, 2005, at 12:21 AM, Max Noel wrote:
It's been too long since I used Python on MacOSX, but IIRC you
can't just run
On Mar 28, 2005, at 4:24 PM, [EMAIL PROTECTED] wrote:
So, you are writing a GUI app and you want some kind of open file
dialog? Won't
this depend on what toolkit you are using for your GUI?
If you are using Tkinter (which should work on OS X, I think), try:
import tkFileDialog
f =
I'm curious on whether or not JavaScript and Python can talk to each
other. Specifically, can a python function be called from within a JS
function? Admittedly this is probably more of a JavaScript than Python
question, but I'd love to know if anyone can at least point me in a
direction to
there are
other ways.
Thanks,
Ryan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Hall
Sent: Friday, March 25, 2005 2:18 PM
To: tutor@python.org
Subject: [Tutor] Python and Javascript
I'm curious on whether or not JavaScript and Python can talk
On Mar 25, 2005, at 12:41 PM, Alan Gauld wrote:
If you are using WSH on Windows and have the Python active scripting
installed then yes. Similarly if you use IE as web browser then it
can be done in a web page too.
I'm on OSX, and would be doing this through Safari most likely.
-MH
On Mar 25, 2005, at 4:53 PM, Alan Gauld wrote:
intrigued by Dashboard, which will be in the next OSX release. It
allows you to create widgets which are essentially little html
pages
There is an API for Dashboard and I'm pretty sure MacPython will
support it - it covers most of the cocoa type
to worse, you could always do -
x = file(myFile, 'r').read()
listX = x.split('\r')
On Tue, 22 Mar 2005 17:10:43 -0800, Mike Hall
[EMAIL PROTECTED]> wrote:
Unless I'm mistaken .readlines() is supposed to return a list, where
each index is a line from the file that was handed to it. Well I'm
find
On Mar 23, 2005, at 3:17 AM, Kent Johnson wrote:
Anyway, Mike, it seems clear that your file has line endings in it
which are not consistent with the default for your OS. If reading with
universal newlines doesn't solve the problem, please let us know what
OS you are running under and give more
Unless I'm mistaken .readlines() is supposed to return a list, where
each index is a line from the file that was handed to it. Well I'm
finding that it's putting more than one line of my file into a single
list entry, and separating them with \r. Surely there's a way to have a
one to one
On Mar 18, 2005, at 1:02 PM, Christopher Weimann wrote:
On 03/18/2005-10:35AM, Mike Hall wrote:
A caret as the first charachter in a class is a negation.
So this [^\s]+ means match one or more of any char that
isn't whitespace.
Ok, so the context of metas change within a class. That makes sense
, Christopher Weimann wrote:
On 03/16/2005-12:12PM, Mike Hall wrote:
I'm having trouble getting re to stop matching after it's consumed
what I want it to. Using this string as an example, the goal is to
match CAPS:
s = only the word in CAPS should be matched
jet% python
Python 2.4 (#2, Jan 5 2005
On Mar 16, 2005, at 8:32 PM, Kent Johnson wrote:
in (.*?)\b will match against in because you use .* which will
match an empty string. Try in (.+?)\b (or (?=\bin)..+?\b )to
require one character after the space.
Another working example, excellent. I'm not too clear on why the back
to back ..
I don't have that script on my system, but I may put pythoncard on here
and run it through that:
http://pythoncard.sourceforge.net/samples/redemo.html
Although regexPlor looks like it has the same functionality, so I may
just go with that. Thanks.
On Mar 17, 2005, at 1:31 AM, Michael Dunn
On Mar 17, 2005, at 11:11 AM, Kent Johnson wrote:
The first one matches the space after 'in'. Without it the .+? will
match the single space, then \b matches the *start* of the next word.
I think I understand. Basically the first dot advances the pattern
forward in order to perform a non-greedy
I'm having trouble getting re to stop matching after it's consumed what I want it to. Using this string as an example, the goal is to match CAPS:
>>> s = only the word in CAPS should be matched
So let's say I want to specify when to begin my pattern by using a lookbehind:
>>> x =
towards it :)
On Mar 16, 2005, at 2:36 PM, Liam Clarke wrote:
x=re.compile(r(?=\bin).+\b)
Try
x = re.compile(in (.*?)\b)
.*? is a non-greedy matcher I believe.
Are you using python24/tools/scripts/redemo.py? Use that to test
regexes.
Regards,
Liam Clarke
On Wed, 16 Mar 2005 12:12:32 -0800, Mike Hall
On Mar 16, 2005, at 5:32 PM, Sean Perry wrote:
I know this does not directly help, but I have never successfully used
\b in my regexs. I always end up writing something like foo\s+bar or
something more intense.
I've had luck with the boundary flag in relation to lookbehinds. For
example, if I
-0800, Mike Hall
[EMAIL PROTECTED] wrote:
I'm having some strange results using the or operator. In every
test
I do I'm matching both sides of the | metacharacter, not one or the
other as all documentation says it should be (the parser supposedly
scans left to right, using the first match it finds
-expressions.info/alternation.html
Regards,
Liam Clarke
On Thu, 10 Mar 2005 09:09:13 +1300, Liam Clarke [EMAIL PROTECTED]
wrote:
Hi Mike,
Do you get the same results for a search pattern of 'A|B'?
On Wed, 9 Mar 2005 11:11:57 -0800, Mike Hall
[EMAIL PROTECTED] wrote:
I'm having some strange results using
I'd like to get a match for a position in a string preceded by a specified word (let's call it Dog), unless that spot in the string (after Dog) is directly followed by a specific word(let's say Cat), in which case I want my match to occur directly after Cat, and not Dog.
I can easily get the spot
, str2)
print rep1
The REPLACE chased the car
print rep2
The REPLACE cat parade was under way
...what I'm looking for is a match for the position in front of Cat,
should it exist.
On Mar 8, 2005, at 5:54 PM, Sean Perry wrote:
Mike Hall wrote:
I'd like to get a match for a position in a string
following it, then I simply want this:
(?=dog)
...if that makes sense :) thanks.
On Mar 8, 2005, at 6:05 PM, Danny Yoo wrote:
On Tue, 8 Mar 2005, Mike Hall wrote:
I'd like to get a match for a position in a string preceded by a
specified word (let's call it Dog), unless that spot in the string
I'm on OS X, and I cannot get Python to import modules I've saved. I
have created the the environment.plist file and appended it with my
desired module path. If I print sys.path from the interpreter, my new
path does indeed show up as the first listing, yet any attempt at
importing modules
Hm, so if I import glob, and then execute this line:
print glob.glob('/Local_HD/Users/mike/Documents/pythonModules/*.py')
I simply get brackets returned:
[]
...not sure what this means. Thanks again.
On Feb 14, 2005, at 5:41 PM, Danny Yoo wrote:
On Mon, 14 Feb 2005, Mike Hall wrote:
Can you
Ok, I've got it working. The environment.plist file wants a path
beginning with /Users, not /Local_HD. So simple! Thanks everyone.
On Feb 14, 2005, at 6:26 PM, David Rock wrote:
* Mike Hall [EMAIL PROTECTED] [2005-02-14 18:22]:
Hm, so if I import glob, and then execute this line:
print
27 matches
Mail list logo