]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use the new, now preferred, form of referring to object specifiers (through
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 13 Jun 2003 14:32:49 +0000 (14:32 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 13 Jun 2003 14:32:49 +0000 (14:32 +0000)
the object, not the module).

Mac/OSXResources/app/Resources/English.lproj/Documentation/scripting.html

index ae9ccee881238f457974f7a7d881190336555f99..58b1fe263bce801639428b7a81fe68939de68ba4 100644 (file)
@@ -21,7 +21,7 @@ Python:</p>
 import Finder
 
 f = Finder.Finder()
-print f.get(Finder.window(1).name)
+print f.get(f.window(1).name)
 </pre></tt></blockquote>
 
 <p>is identical to the following piece of AppleScript:</p>