Robert Kern wrote:
> James Stroud wrote:
>> I did build my own python 2.5, yesterday, requiring me to rebuild all
>> extensions.
>
> Do other extensions build correctly? If so, it's beginning to look like
> a problem in numpy.distutils .
Actually, I just fou
lude/pgsql
Again, see the above rant for an explanation about any needless paths or
flags--though advice and knowledge is welcome.
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
--
http://mail.python.org/mailman/listinfo/python-list
>>
>>In the state of the onion address?
>>
>>http://www.perl.com/pub/a/2006/09/21/onion.html
>
>
> There is also this:
> 'But I think the basic Perl paradigm is "Whatever-oriented programming."'
This reminds me of when I realized I could become m
Robert Kern wrote:
> James Stroud wrote:
>
>> Well I added those arguments to $LDFLAGS, but it seemed like a pretty
>> miserable hack, especially the "-shared" part.
>
>
> Hmmm. Did you have $LDFLAGS set to anything (or more likely, nothing)
> befor
Martin v. Löwis wrote:
> James Stroud schrieb:
>
>>>What happens if you omit these flags?
>>
>>Please see my last message to Robert Kern.
>
>
> If you don't want me to help you, that's fine, then I won't.
>
> I couldn't find an an
or
devising this system for you.
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
--
http://mail.python.org/mailman/listinfo/python-list
Ben Finney wrote:
> James Stroud <[EMAIL PROTECTED]> writes:
>
>> I try things until a build works. I consider everything I do
>> until acquiring a working build as necessary. Going back to see
>> exactly what I did to make things work is not a viable option
>
&
Martin v. Löwis wrote:
> James Stroud schrieb:
>> I think I would like to know how to avoid or correct these sort of
>> issues in the future, which seem to be limited, for me at least, to
>> scipy and numpy, with the possible exception of MySQLdb and its
>> dependenc
re
> indeed overridden by the user's setting of $LDFLAGS.
I unset $LDFLAGS and $CPPFLAGS (not trying one at a time), and this did
the trick. Everything built without a hitch.
James
--
http://mail.python.org/mailman/listinfo/python-list
n, unless it CAN use vim
somehow--and I can get past the port binding. Not really interested on
getting past this port binding issue unless IDLE can be used with vim,
though.
Any advice from someone who has gotten runscript to work or knows of a
tool like I describe would be greatly apprec
Roberto Bechtlufft wrote:
> And another thing: feedparser returns the result entries as
> dictionaries. What's the best approach to create my cache file? I see
> that the cache file in liferea is an xml file. Should I try to create
> my own xml file based on the results from feedparser?
Well you c
walterbyrd wrote:
> If so, I doubt there are many.
>
> I wonder why that is?
>
If you know German, there was just a job posting on this list for a
python programmer. That would be at least one person.
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Bo
ot annoyed by this reduced
> readability.
I'm sure its quite unpopular to agree with you, but I do. I am
tremendously annoyed the format of the interactive interpreter. Lovely
would be output as you describe, but with the option, when selecting for
copy-paste, to include the prompts and/or your suggested whitespace
margin (e.g. select in doctest mode).
James
--
http://mail.python.org/mailman/listinfo/python-list
has anything to teach me that say python, C, and Java don't
(LISP/Scheme is on my short-list to learn.)
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
--
http://mail.python.org/mailman/listinfo/python-list
ed inside of the
setquit() function in the site.py module.
Would moving this class definition to module level be something that
would meet with great resistance?
I was thinking of posting to python-dev, but that list looked pretty
high-level.
James
--
James Stroud
UCLA-DOE Institute for Gen
Ilias Lazaridis wrote:
> James Stroud wrote:
>>Ilias Lazaridis wrote:
>>>I am wondering that other users are not annoyed by this reduced
>>>readability.
>>
>>I'm sure its quite unpopular to agree with you, but I do. I am
>>tremendously annoyed
Fredrik Lundh wrote:
> James Stroud wrote:
>
>> It seems I can find a reference to just about every type except those
>> for "exit" and "quit" in the standard library somewhere. E.g.:
>>
>> py> type(__builtins__.Ellipsis) is types.EllipsisT
Fredrik Lundh wrote:
> James Stroud wrote:
>
>> Yes, but I was speaking more consistency than convenience (see above
>> for what I mean by consistency).
>
> why would having access to a type object for exit/quit help you do
> proper syntax coloring, btw? if you want
Georg Brandl wrote:
> James Stroud wrote:
>> Hello All,
>>
>> Still jubilantly configuring my work environment for python 2.5, I
>> came accross a curiosity when writing an automatic vim syntax file
>> creator (so I can automatically update my syntax colorin
[EMAIL PROTECTED] wrote:
> Xah Lee wrote:
>> Computer Language Popularity Trend
>>
>> This page gives a visual report of computer languages's popularity, as
>> indicated by their traffic level in newsgroups. This is not a
>> comprehensive or fair survey, but does give some indications of
>> popular
[EMAIL PROTECTED] wrote:
> James> But then again, maybe the consistency I perceive for the rest of
> James> __builtins__ is more or less illusory. This might have been the
> James> point of Fredrik's question.
>
> As I implied in my note, there is a d
I've never written a Python program before and I'm trying to read a config
file with file path/names (eg. c:\\python24\\*.dll, ... *.exe) to create an
output file of filename + md5 values. I'm confused. I'm trying to learn
how to use Wing IDE and step through the Stack Data. It seems to be
work
lls.
>
> sherm--
>
While Xah does have a reputation for trolling, and the crossposting
borders on pathological, you must admit that he presents here a bit of
nice and illuminating research. We probably should encourage him when he
does worthwhile things, and perhaps, in the future, he
gt;
> andy
>
In the commented line, you are only creating a generator. This is not
equivalent to calling its "next" function, i.e., nothing will be
"yielded" the way you have written it.
def nn():
def _nn():
print 'inside'
yield 1
ot field in self._fields:
raise ValueError, 'Field "%s" not supported.' % field
else:
self.__setattr__(field, value)
def get_value(field):
if not field in self._fields:
raise ValueError, 'Field "%s" not supported.' % field
James Stroud wrote:
> John Salerno wrote:
>
>> Let's pretend I'm creating an Employee class, which I will later
>> subclass for more specific jobs. Each instance will have stuff like a
>> name, title, degrees held, etc. etc.
>>
>> So I'm won
5. I called %edit from ipython
At which point ipython took me to a new gvi window (and process).
What am I not doing that doesn't seem to be in the instructions?
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.
only to be downloaded when needed. This way, the user
would at least have to reverse engineer your program to see where the
resources were coming from so they could plug the appropriate query in
their web browser.
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
are
using your program so much, that you'll probably be able to go ahead and
buy your own hosting company. One python hosting company offers 50GB/mo
bandwidth for $7.50/mo. Google "python hosting" and you'll find them.
That's hella usage of a program.
James
--
James S
er_set_name = instancemethod(_csn, adb, adb.__class__)
return adb
This fix passes some initial rudimentary tests. No guarantees on proper
handling of unicode. If you are using unicode, you may want to test it
thoroughly with this fix and report your results (preferably on this
comp.lang.python).
James
--
http://mail.python.org/mailman/listinfo/python-list
hg wrote:
> But today ? what is the cost of replacing %w("blah blah") by
> Hi_I_Want_To_Split_The_String_That_Follows( "blah blah")
The latter is beginning to look like the Cocoa/NextStep framework.
Perhaps we should give up scripting languages for ObjC?
James
--
http
b,'value',v+5) for (v,b) in enumerate(alist)]
[None, None, None, None, None]
py> alist
[: 5, : 6, : 7, : 8, : 9]
py> map(setattr, alist, ['value']*5, xrange(5))
[None, None, None, None, None]
py> alist
[: 0, : 1, : 2, : 3, : 4]
--
James Stroud
UCLA-DOE Institute for
John Machin wrote:
> James Stroud wrote:
>
>>Daniel Nogradi wrote:
>>
>>>Is looping over a list of objects and modifying (adding an attribute
>>>to) each item only possible like this?
>>>
>>>mylist = [ obj1, obj2, obj3 ]
>>>
>>&
ut the error?
>
py> try:
... raise ValueError, 'Illegal value for your shoe size!'
... except (IndexError, ValueError), e:
... print e
...
Illegal value for your shoe size!
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 900
k(self, some_value):
... self.value = some_value
...
py> C.value
42
py> c1 = C()
py> c1.value
42
py> c2 = C()
py> c2.value
42
py> c2.separate_from_pack(88)
py> c2.value
88
py> C.value
42
py> c3 = C()
py> c3.value
42
James
--
James Stroud
UCLA-DOE Institu
path/to/Code" in it.
5. Open a new shell so the $PYTHONPATH gets set correctly for your rc
file.
6. Now, start python in that shell and import your packages.
Congratulations! You have now setup an environment where all the code
you write becomes packages and re-usable. Why a similar
x[1] += 1# shorthand
print "newx = %s" % newx# basic formatting
print "res = %s" % res # should be what you expect
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
--
http://mail.python.org/mailman/listinfo/python-list
sense:
res = []
for i in xrange(1,7):
res.append([1,i])
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
--
http://mail.python.org/mailman/listinfo/python-list
hich gives an overflow message
> So can't I truncate the long by discaring the upper bits ..
> Like b[0] = 0x & a[0]
>
> How does one normally cast an object from long to short?
Take the modulo 65536?
py> array.array('H', (array.array('L
Hello,
Does anyone know of the most straightforward way to get rid of the
intensely annoying "console" window that py2app feels so compelled to
create?
On a related but less important note, why would anyone want that stupid
window in the first place?
James
--
http://mail.python.o
James Stroud wrote:
> Hello,
>
> Does anyone know of the most straightforward way to get rid of the
> intensely annoying "console" window that py2app feels so compelled to
> create?
>
> On a related but less important note, why would anyone want that stup
Dave Opstad wrote:
> In article <[EMAIL PROTECTED]>,
> James Stroud <[EMAIL PROTECTED]> wrote:
>
>> Does anyone know of the most straightforward way to get rid of the
>> intensely annoying "console" window that py2app feels so compelled to
>
advice on resolving this issue would be greatly appreciated and
would greatly reduce the size of the download.
James
--
http://mail.python.org/mailman/listinfo/python-list
Hendrik van Rooyen wrote:
> Hi,
>
> I get the following:
>
> [EMAIL PROTECTED]:~/Controller/lib> python display.py
> UpdateStringProc should not be invoked for type font
> Aborted
>
> and I am back at the bash prompt - this is most frustrating, as there is no
> friendly traceback to help me gues
email client that
> only supported plain text would simply use the plain text part of the
> email. Thanks for bringing this to my attention.
>
> Christian
> http://www.dowski.com
Some people are reading this on comp.lang.python.
Best,
James
--
http://mail.python.org/mailman/listinfo/python-list
rmine that information for yourself when it could save you a step
> and just tell you? This seems like a "no-brainer" to me. Am I missing
> something?
>
I think you have a point. I am curious to see how far people are willing
to go to defend this omission. It promises to be en
JustStand wrote:
> For detail, view http://www.homeoftester.com/viewtopic.php?t=281
> __
> I have a dream, I hope I can be as strong as Enter key.
Does this pointless blogvertisement in anyway compensate for the fact
that windows sucks so hard?
James
Russ wrote:
> Fredrik Lundh wrote:
>
>
>>>Sorry I haven't thought this through 100%
>>
>>obviously not.
>
>
>
> And you didn't like the "tone" of some of my earlier posts?
>
Some people consider themselves above a sensi
> if os.name == ''posix':
> linuxStuff()
> elif os.name == 'nt':
> windowsStuff()
> elif os.name == 'os2': ...
> ---
> os.name is 'posix', 'nt', 'os2', 'mac', 'ce' or 'riscos'
>
> -N
Bearing in mind, of course, that Mac will return "posix", too. And
Cygwin might. Erg.
Best,
James
--
http://mail.python.org/mailman/listinfo/python-list
eadlines()
aline = xlines.next
for nextline in xlines:
print aline
aline = nextline
James
--
http://mail.python.org/mailman/listinfo/python-list
James Stroud wrote:
> [EMAIL PROTECTED] wrote:
>> hi,
>> how can i skip printing the last line using loops (for /while)
>>
>> eg
>>
>> for line in open("file):
>> print line.
>>
>> I want to skip printing last line
obble up the entire file, and slice off the last item:
>>
>> for line in list(open("file"))[:-1]:
>> print line
>>
>>
>
> hi
> would it be a problem with these methods if the file is like 20Gb in
> size...?
>
See the documentation for xreadlines.
James
--
http://mail.python.org/mailman/listinfo/python-list
André Thieme wrote:
> greg schrieb:
> > Ken Tilton wrote:
> >
> >> The reason I post macro expansions along with examples of the macro
> >> being applied is so that one can see what code would have to be
> >> written if I did not have the defskill macro to "write" them for me.
> >
> > It seems to m
Fredrik Lundh wrote:
> James Stroud wrote:
>
>> See the documentation for xreadlines.
>
> why?
>
>
>
>
>
5.16 xreadlines -- Efficient iteration over a file
--
http://mail.python.org/mailman/listinfo/python-list
André Thieme wrote:
> William James schrieb:
>
> > def nif num, pos, zero, neg
> > send( num>0 ? pos : (num==0 ? zero : neg) )
> > end
>
> btw, your nif body is built out of 13 tokens, so more
> complicated than the Python version.
>
>
> André
André Thieme wrote:
> Paul Rubin schrieb:
> > André Thieme <[EMAIL PROTECTED]> writes:
> >> and the Lisp version has only 9:
> >> nth, 1+, truncate, signum, num, list, pos, zero, neg
> >
> > Oh come on, you have to count the parentheses too.
>
> We could define hundreds of way how to count tok
André Thieme wrote:
> William James schrieb:
> > André Thieme wrote:
> >> William James schrieb:
> >>
> >>> def nif num, pos, zero, neg
> >>> send( num>0 ? pos : (num==0 ? zero : neg) )
> >>> end
> >> btw, your nif body
André Thieme wrote:
> [EMAIL PROTECTED] schrieb:
> William James schrieb:
> >>> How would you solve this in Python?
> >>> You could embed it inside a lambda and must somehow make the
> >>> variable "it" visible in it, because in the context
ng from its position and make
inferences about the tuple object searched, /philosophically/ speaking?
Or is the logic conveniently one-way?
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
--
http://mail.python.
I use
> for coordinate tuples? Usually, tuples are used. Does this mean that I
> should better use lists from now on because all the components have the
> same type?
I don't think that all homogenous structures should be lists. This is
not the same as saying that all lists should be
e the
operational definition of "inhomogenous". Of course then we would have
to define necessary...
James
--
http://mail.python.org/mailman/listinfo/python-list
there should be a sort() for array.array objects,
especially since they implement pop(), insert(), extend(), etc. Also,
all data types corresponding to array typecodes can be compared in a
sort: <http://docs.python.org/lib/module-array.html>.
In the mean time, try
my_sorted_array = array.array(my_array.typecode, sorted(my_array))
James
--
http://mail.python.org/mailman/listinfo/python-list
gure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
: unknown option "-prefs"
Does this error message look familiar?
Consider:
py> L['text'] = 'bob'
py> L.cget('text')
'bob'
py> L.config(text='carol')
py> L
f
StringVars for prefs, I would initialize it in this manner:
# somewhere in self
defaults = {
'interface' : '-en1',
'verbose' : '-v',
'fontname' : 'Courier',
'point
someone help me smooth this out--to get dict key-values into a
> Tkinter variable like StringVar()?
>
> Thanks.
>
Actually, even more succinctly:
# somewhere in self
defaults = {
'interface' : '-en1',
'verbose' : '-v'
is. Tk is appropriately instantiated if (and only if) __name__ ==
"__main__" here, allowing the App to run as the "main" application here.
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
--
h
doit() # will print 42
# example 2
def doit():
t_len = 42
def nested():
if t_len > 0:
print t_len
else:
t_len = 1
nested()
doit() # will get "referenced before assignment" error
You could make use of your WORK class here, depending on whether t_len
makes sense as a member of the WORK class:
class WORK:
t_len = 0
def getwork(self):
def formattable(table_to_process,type):
# etc., etc.
WORK.t_len = len(str(col))
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
--
http://mail.python.org/mailman/listinfo/python-list
ivate(index)
def change_font(self, fontname):
self.default = self.fonts.index(fontname)
self.highlight()
def add_font(self, fontname, index=None):
if index is None:
self.fonts.append(fontname)
else:
self.fonts.insert(index, fontname)
self.up
James Stroud wrote:
> Kevin Walzer wrote:
>
>> I'm trying to set the active item in a Tkinter listbox to my
>> application's currently-defined default font.
>>
>> Here's how I get the fonts loaded into the listbox:
>>
>> self.fonts=list(
This probably will meet your needs:
import os
os.system("csound play.orc play.sco")
If you need more control try the subprocess module.
[EMAIL PROTECTED] wrote:
> I have been auto-generating .bat files and then running
> os.startfile('whatever.bat'). I don't
> seem to be having much luck when I
DESCRIPTION
HTML parsing library based on the WHATWG Web Applications 1.0 "HTML5"
specification[1]. The parser is designed to work with all existing
flavors of HTML and implements well-defined error recovery that has been
specified though analysis of the behavior of modern desktop web browsers.
yawgmoth7 wrote:
> Hello, I am writing a script that will organize all the code in the
> given directory. Well, currently I have it make dir's with something
> like:
>
> os.mkdir("C")
> os.mkdir("Python")
> os.mkdir("ASM")
>
> And so on. That is not very practical, and I wish to change it. I was
yawgmoth7 wrote:
> Hello, I am writing a script that will organize all the code in the
> given directory. Well, currently I have it make dir's with something
> like:
>
> os.mkdir("C")
> os.mkdir("Python")
> os.mkdir("ASM")
>
> And so on. That is not very practical, and I wish to change it. I was
t:
>
> Traceback (most recent call last):
> File "", line 1, in ?
> TypeError: tuple() takes at most 1 argument (2 given)
>
> As far as i can tell, inheriting from tuple is forcing my constructor to
> only take one argument. Is that the case? If so, anyone got any
Ilias Lazaridis wrote:
> within a python script, I like to create a collection which I fill with
> values from an external text-file (user editable).
>
> How is this accomplished the easiest way (if possible without the need
> of libraries which are not part of the standard distribution)?
>
> s
ypo). This
is very standard usage of Tkinter, so your problem may be somewhere else
in your code. What happens if you replace disp_mes1() with
def disp_mes1(text):
print text
Does it still hang?
James
--
http://mail.python.org/mailman/listinfo/python-list
more than once (either concurrently or at different times).
This is my best guess without any other code to look at.
James
--
http://mail.python.org/mailman/listinfo/python-list
art out with...
>
If you have the time, buy and read Grayson
(http://www.manning.com/books/grayson) or the Tkinter section of
Programming Python by Mark Lutz--and then re-write your code. The
exercise will be well worth the time of learning and the pain of
re-writing your code.
James
-
e can
> find a bunch of useful applications. Variable names could be allowed to
> be non-ascii, as in XML. Think class names in Arabian... Or you could
> use Greek letters if you run out of one-letter variable names, just as
> Mathematicians do. Would this be desirable or rather
not
clear exactly how I was to create the search function that needs
registering. Any help would be appreciated.
James
--
http://mail.python.org/mailman/listinfo/python-list
nd submit your
login from it. You will then see the fields (separated by "+"s and the
values, separated from the fields by "="s). Use the fields and values to
populate the "txdata" dictionary in the example using urllib.urlencode
(an example is in the discussion).
James
--
http://mail.python.org/mailman/listinfo/python-list
Robert Kern wrote:
> James Stroud wrote:
>
>
>>I can't find "≤, ≥, or ≠" on my keyboard.
>
>
> Get a better keyboard? or OS?
Please talk to my boss. Tell him I want a Quad G5 with about 2 Giga ram.
I'll by the keyboard myself, no problemo.
> O
James Stroud wrote:
> Hello All,
>
> I'm using pyinstaller 1.0 (stable) on win32xp and it is not able to find
> the codec for several encodings (hex, base64, etc.). I resorted to
> writing my own for hex, just to see if I could get my program deployed.
> But I think a
ome urls that you will find helpful for these kind of things:
http://docs.python.org/api/fileObjects.html
http://docs.python.org/lib/module-fileinput.html
http://docs.python.org/lib/os-file-dir.html
http://docs.python.org/lib/module-os.path.html
James
--
http://mail.python.org/mailman/listinfo/python-list
terface
>
> - Paddy.
>
Maybe:
"Python is an object oriented programming language designed to increase
productivity. Though it is often compared to Perl, Tcl, Ruby, Scheme, or
Java, it has several powerful features that set it apart."
James
--
http://mail.python.org/mailman/listinfo/python-list
Rocco Moretti wrote:
> (Not that I like the logo, mind you...)
Does anyone? There has to be a better logo! I thought the previous
requirement as established by the BDFL was no snakes. These are snakes,
and they have no personality to boot.
--
http://mail.python.org/mailman/listinfo/python-list
Claudio Grondi wrote:
> It looks very
> commercial and has not the _fun_ and _ease_ in it I get used to face
> when dealing with Python related icons.
> The whole site is just as any other more or less commercial site and
> even if it is sure much better than the old one, I will probably miss
>
Giovanni Bajo wrote:
> James Stroud wrote:
>
>
>>I'm using pyinstaller 1.0 (stable) on win32xp and it is not able to
>>find the codec for several encodings (hex, base64, etc.). I resorted
>>to writing my own for hex, just to see if I could get my program
>>
Kay Schluehr wrote:
> Russell wrote:
>
>>I want my code to be Python 3000 compliant, and hear
>>that lambda is being eliminated. The problem is that I
>>want to partially bind an existing function with a value
>>"foo" that isn't known until run-time:
>>
>> someobject.newfunc = lambda x: f(foo, x
ng and spend a few hours doing that. It will
make you much more pleased with the language.
James
--
http://mail.python.org/mailman/listinfo/python-list
Brennus wrote:
> "Enigma Curry" <[EMAIL PROTECTED]> wrote:
>
>
>>Sorry, for the noob question, but I haven't been able to find
>>documentation on this matter.
>>
>>I've been looking for documentation that describes what the @function()
>>syntax is all about.
>
>
> http://www.google.com/search?q
Peter Hansen wrote:
> Steven D'Aprano wrote:
>
>> James Stroud wrote:
>>
>>> http://www.google.com/search?q=@
>>
>>
>> Doesn't work for me, I just get an (almost) empty Google page. Doesn't
>> even say "No results were foun
ality would
be simple formatting and hyperlink callbacks.
Any guidance or suggestions would be appreciated.
Thank you in advance for your help.
James
--
http://mail.python.org/mailman/listinfo/python-list
Luke wrote:
> Built-in functions don't bind to classes like regular functions. Is
> this intended? (I do notice that the Python Reference Manual sec 3.2
> under "Class Instance" refers to a "user-defined function"). Any ideas
> what the reason is for this distinction between build-in functions a
Luke wrote:
> Thanks James, though from the output of b.x() it appears that x is a
> class method (ie the class is passed as the first parameter rather than
> the instance)...
>
Sorry, the one line was probably supposed to be
b = bob()
I forgot the parens:
py> b
James Stroud wrote:
> Luke wrote:
>
>> Thanks James, though from the output of b.x() it appears that x is a
>> class method (ie the class is passed as the first parameter rather than
>> the instance)...
>>
>
> Sorry, the one line was probably supposed to
t 'bob'
... Frame.destroy(self)
...
py> f = F(tk)
py> f.pack()
py> tk.destroy()
bob
James
--
http://mail.python.org/mailman/listinfo/python-list
events generated in
parents will by processed by children that have focus. Both seem to be
from the Widget interface.
James
--
http://mail.python.org/mailman/listinfo/python-list
Huy wrote:
> I've been unable to find information clarifying this but. What is the
> difference between 'somestring' and "somestring"? When I use type() it
> still reports as string. If there is a difference could someone point
> me to documentation or explain when to use and when not to? Hope
[EMAIL PROTECTED] wrote:
> On AIX and Linux (SuSE 9.3) each color name which contains "gray" is
> also aliased as "grey" for the benefit of both Yanks and Brits. Thus,
Yankee, n. In Europe, an American. In the Northern States of
our Union, a New Englander. In the Southern States the word is
un
1201 - 1300 of 3434 matches
Mail list logo