Re: [Tutor] Picking up citations

2009-02-10 Thread Dinesh B Vadhia
You're probably right Paul. But, my assumption is that the originators of legal documents pay a little more attention to getting the citation correct and in the right format then say Joe Bloggs does when completing an address block. I think that Kent has reached the end of his commendable eff

[Tutor] IDLE/phythonWin -- Who's On First? (Abbott and Costello)

2009-02-10 Thread Wayne Watson
Title: Signature.html My program in IDLE bombed with: == Exception in Tkinter callback Traceback (most recent call last):   File "C:\Python25\lib\lib-tk\Tkinter.py", line 1403, in __call__     return self.func(*args)   File "C:\Sandia_Meteors\New_Sentinel_Development\Sentuser_Utilit

[Tutor] IDLE

2009-02-10 Thread WM.
Allen G.asked me how I made IDLE work. I did nothing on purpose. One can open Python into the IDLE window or into the program window. I recently changed from the program window to the IDLE window. IDLE now works exactly right. As a bonus my DOS-oidle window which used to produce error messages

Re: [Tutor] Reply All Dilemma of This List

2009-02-10 Thread Wayne Watson
Title: Signature.html Oh, I realize that chances are slim to do anything about it. So how did this list get started? How old is it? Fortunately, there are other choices, which I can make, if re-posting to Tutor becomes too often or long delayed by my cranky mouse use. ;-) Two lists anyone? :-)

Re: [Tutor] IDLE

2009-02-10 Thread Alan Gauld
"WM." wrote A while back I made a big fuss about how IDLE indenting works. Kent was finally able to use language simple enough for me to understand. So I kept working IDLE. Today I got an error message. Somebody fixed it! It now indents just like all the other Python windows. Great going, S

[Tutor] IDLE

2009-02-10 Thread WM.
A while back I made a big fuss about how IDLE indenting works. Kent was finally able to use language simple enough for me to understand. So I kept working IDLE. Today I got an error message. Somebody fixed it! It now indents just like all the other Python windows. Great going, Snake. And thank

Re: [Tutor] Picking up citations

2009-02-10 Thread Kent Johnson
On Tue, Feb 10, 2009 at 12:42 PM, Dinesh B Vadhia wrote: > Kent > > The citation without the name is perfect (and this appears to be how most > citation parsers work). There are two issues in the test run: > > 1. The parallel citation 422 U.S. 490, 499 n. 10, 95 S.Ct. 2197, 2205 n. > 10, 45 L.Ed

Re: [Tutor] Picking up citations

2009-02-10 Thread Dinesh B Vadhia
I'm guessing that '499 n. 10' is a page reference ie. page 499, point number 10. Legal citations are all a mystery - they even have their own citation bluebook (http://www.legalbluebook.com/) ! Dinesh From: Kent Johnson Sent: Tuesday, February 10, 2009 10:57 AM To: Dinesh B Vadhia Cc: tu

Re: [Tutor] Picking up citations

2009-02-10 Thread Paul McGuire
Dinesh and Kent - I've been lurking along as you run this problem to ground. The syntax you are working on looks very slippery, and reminds me of some of the issues I had writing a generic street address parser with pyparsing (http://pyparsing.wikispaces.com/file/view/streetAddressParser.py). Ma

Re: [Tutor] can't import Danny.OOo.OOoLib.py

2009-02-10 Thread Kent Johnson
On Tue, Feb 10, 2009 at 1:42 PM, johnf wrote: > Hi, > How silly of me to think I understood the import command. I'm trying to learn > how to automate printing documents from OpenOffice using python. I found > several ways and I was able to get some of them to work. But I found the > Danny.OOo.O

[Tutor] can't import Danny.OOo.OOoLib.py

2009-02-10 Thread johnf
Hi, How silly of me to think I understood the import command. I'm trying to learn how to automate printing documents from OpenOffice using python. I found several ways and I was able to get some of them to work. But I found the Danny.OOo.OOoLib.py tools (kind of old 2005 but still on the wiki

Re: [Tutor] Picking up citations

2009-02-10 Thread Kent Johnson
On Tue, Feb 10, 2009 at 12:42 PM, Dinesh B Vadhia wrote: > Kent > > The citation without the name is perfect (and this appears to be how most > citation parsers work). There are two issues in the test run: > > 1. The parallel citation 422 U.S. 490, 499 n. 10, 95 S.Ct. 2197, 2205 n. > 10, 45 L.Ed

Re: [Tutor] Splitting strings and undefined variables

2009-02-10 Thread Andreas Kostyrka
Am Mon, 9 Feb 2009 12:05:33 -0800 schrieb Moos Heintzen : > Hello all, > > I was looking at this: > http://www.debian.org/doc/manuals/reference/ch-program.en.html#s-python > > I have a question about the line of code that uses split() > > With the python version, the line below only works if th

Re: [Tutor] Reply All Dilemma of This List

2009-02-10 Thread Robert Berman
Mozilla Thunderbird  version 2.0.0.19 (20090105) running under Ubuntu Linux 8.10 does not have  "Reply to Group". Even if it did, out of habit I would be hitting the "Reply All" button. Old preferences die hard. Robert spir wrote: Le Tue, 10 Feb 2009 12:20:51 -0500, Brian Mathis a écrit :

Re: [Tutor] Inserting special characters into urlencoded string

2009-02-10 Thread pa yo
"Denis,\n\nThat works perfectly!\n\nMerci Beaucoup!\n\nPayo" :-) On Tue, Feb 10, 2009 at 6:48 PM, spir wrote: > Le Tue, 10 Feb 2009 18:08:26 +0100, > pa yo a écrit : > >> Novice programmer here. >> >> I am using urllib.urlencode to post content to a web page: >> >> ... >> >>Title = "First Steps

Re: [Tutor] Reply All Dilemma of This List

2009-02-10 Thread spir
Le Tue, 10 Feb 2009 12:20:51 -0500, Brian Mathis a écrit : > This war has been raging since the dawn of mailing lists, and you're > not likely to get a resolution now either. Newer mail user agents have a "to list" reply button. End of war? -- la vida e estranya

Re: [Tutor] Inserting special characters into urlencoded string

2009-02-10 Thread spir
Le Tue, 10 Feb 2009 18:08:26 +0100, pa yo a écrit : > Novice programmer here. > > I am using urllib.urlencode to post content to a web page: > > ... > >>Title = "First Steps" > >>Text = "Hello World." > >>Username = "Payo2000" > >>Content = Text + "From: " + Username > >>SubmitText = urllib.url

Re: [Tutor] Simple PassGen

2009-02-10 Thread python
DOH! I just realized why we're getting different results. Sorry for the confusion - I wasn't trying to be a smart-ass! We've been trying to future proof our new code for Python 3.x so we automatically have 3.0 print() functionality enabled in our Python 2.6 dev environments. Malcolm - Origin

Re: [Tutor] Picking up citations

2009-02-10 Thread Dinesh B Vadhia
Kent The citation without the name is perfect (and this appears to be how most citation parsers work). There are two issues in the test run: 1. The parallel citation 422 U.S. 490, 499 n. 10, 95 S.Ct. 2197, 2205 n. 10, 45 L.Ed.2d 343 (1975) is resolved as: 422 U.S. 490 (1975) 499 n. 10 (1975)

Re: [Tutor] Reply All Dilemma of This List

2009-02-10 Thread Martin Walsh
Wayne Watson wrote: > I belong to many, many forums, Yahoo Groups, (Usenet) newsgroups, and > mail lists. Probably 100 or more. I think it's fair to say that none of > them but this one has an implicit "Reply All". For newsgroups and mail > lists, I just press my Mozilla Seamonkey mailer Reply butt

Re: [Tutor] Reply All Dilemma of This List

2009-02-10 Thread Brian Mathis
You've stepped on a religious-war landmine. You can read all about why this is bad here: http://www.unicom.com/pw/reply-to-harmful.html ("Reply-To" Munging Considered Harmful) and why it's good here: http://www.metasystema.net/essays/reply-to.mhtml (Reply-To Munging Considered Useful) This war ha

[Tutor] Inserting special characters into urlencoded string

2009-02-10 Thread pa yo
Novice programmer here. I am using urllib.urlencode to post content to a web page: ... >>Title = "First Steps" >>Text = "Hello World." >>Username = "Payo2000" >>Content = Text + "From: " + Username >>SubmitText = urllib.urlencode(dict(Action = 'submit', Headline = Title, >>Textbox = Content)) >>

[Tutor] Reply All Dilemma of This List

2009-02-10 Thread Wayne Watson
Title: Signature.html I belong to many, many forums, Yahoo Groups, (Usenet) newsgroups, and mail lists. Probably 100 or more. I think it's fair to say that none of them but this one has an implicit "Reply All". For newsgroups and mail lists, I just press my Mozilla Seamonkey mailer Reply button

Re: [Tutor] Simple PassGen

2009-02-10 Thread spir
Le Tue, 10 Feb 2009 10:26:54 -0500, pyt...@bdurham.com a écrit : > IDLE 2.6.1 > >>> from __future__ import print_function > >>> print( 3, 4 ) > 3 4 lol! -- la vida e estranya ___ Tutor maillist - Tutor@python.org http://mail.python.org/ma

Re: [Tutor] Simple PassGen

2009-02-10 Thread python
Lie, >> Here's what I get: >> >> >>> print( 3, 4 ) >> 3 4 > Are you sure it isn't python 3.x you're playing with? The reason why simple > print function "works" in python 2.x is because of a syntactical coincidence, it is still a 100% statement. Yes, I'm sure :) I restarted IDLE and pasted my

Re: [Tutor] Simple PassGen

2009-02-10 Thread Lie Ryan
On Tue, 10 Feb 2009 09:43:18 -0500, python wrote: > Kent, > >> Except they are not equivalent when you want to print more than one >> thing. ... >> Python 2.6: >> In [1]: print(3, 4) >> (3, 4) > > I'm running Python 2.6.1 (32-bit) on Windows XP. > > I don't get the tuple-like output that you ge

Re: [Tutor] IDLE vs PythonWin

2009-02-10 Thread Wayne Watson
Thanks, but I think I'll keep my IDLE training wheels on for awhile yet. ALAN GAULD wrote: I have 3 windows open. An editor A Python shell An OS console The editor is used to edit the code The python shell for interactive experiments and tests The console for running the program

Re: [Tutor] Tkinter program start with focus?`

2009-02-10 Thread Wayne Watson
Title: Signature.html I have no idea, but I'm going to take a guess based on what you said that helped me understand code someone else wrote. See Chapter 9 of Lundh's An Intro to TkInter. TkSimpleDialog. WW W W wrote: Hi, I'm running into a problem that's bugging me because I know a

Re: [Tutor] Simple PassGen

2009-02-10 Thread python
Kent, > Except they are not equivalent when you want to print more than one thing. > ... > Python 2.6: > In [1]: print(3, 4) > (3, 4) I'm running Python 2.6.1 (32-bit) on Windows XP. I don't get the tuple-like output that you get. Here's what I get: >>> print( 3, 4 ) 3 4 Malcolm

Re: [Tutor] Picking up citations

2009-02-10 Thread Kent Johnson
On Mon, Feb 9, 2009 at 12:51 PM, Dinesh B Vadhia wrote: > Kent /Emmanuel > > Below are the results using the PLY parser and Regex versions on the > attached 'sierra' data which I think covers the common formats. Here are > some 'fully unparsed" citations that were missed by the programs: > > Smit

Re: [Tutor] IDLE vs PythonWin

2009-02-10 Thread W W
On Mon, Feb 9, 2009 at 9:29 PM, Eric Dorsey wrote: > You can call a .py script from the command line, and it will run there. So, > in Windows XP: Start > Run > type "CMD" > Vista: Start > type "CMD" into the Start Search field. > If you're in Linux, get to a Terminal. > In Windows another window

Re: [Tutor] Picking up citations

2009-02-10 Thread Lie Ryan
On Mon, 09 Feb 2009 14:42:47 -0800, Marc Tompkins wrote: > Aha! My list of "magic words"! > (Sorry for the top post - anybody know how to change quoting defaults in > Android Gmail?) > --- www.fsrtechnologies.com > > On Feb 9, 2009 2:16 PM, "Dinesh B Vadhia" > wrote: > > Kent /Emmanuel > > I

Re: [Tutor] help with loop that is to be fed out of a word list

2009-02-10 Thread Alan Gauld
"David" wrote def uses_all(word, required): for letter in required: if letter not in word: return False return True Now, I want to feed this code a list of words. This is what I have so far: def uses_all(required): It is usually better to leave things that work a

Re: [Tutor] re Binding Event

2009-02-10 Thread Alan Gauld
"prasad rao" wrote HelloI changed the code as follows.But still the callback function is not working. The he() is working well but clicking on the frame has no result. class app: def __init__(self,root): frame=Frame(root) frame.bind("", callback) Should this not be self.callback? def

[Tutor] re Binding Event

2009-02-10 Thread prasad rao
HelloI changed the code as follows.But still the callback function is not working. The he() is working well but clicking on the frame has no result. class app: def __init__(self,root): frame=Frame(root) frame.bind("", callback) frame.pack() self.button=Button(root,text='quit',fg='red',command=f

Re: [Tutor] re.Binding Events

2009-02-10 Thread ALAN GAULD
> I am mixing 2 examples given in "an-introduction-to- tkinter " > by Fredrik Lundh.(and got this code) > Today I got this error message > > Traceback (most recent call last): > File "", line 1, in >xx=app(root,event) > NameError: global name 'event' is not defined Which tells you that e