Re: Building things with setup.py

2006-09-22 Thread James Stroud
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

Re: Building things with setup.py

2006-09-22 Thread James Stroud
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

Re: +1 QOTW

2006-09-22 Thread James Stroud
>> >>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

Re: Building things with setup.py

2006-09-22 Thread James Stroud
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

Re: Building things with setup.py

2006-09-22 Thread James Stroud
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

Re: License / Registration key enabled software

2006-09-22 Thread James Stroud
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

Re: Building things with setup.py

2006-09-23 Thread James Stroud
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 > &

Re: Building things with setup.py

2006-09-23 Thread James Stroud
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: Building things with setup.py

2006-09-23 Thread James Stroud
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

Ideal python idle

2006-09-24 Thread James Stroud
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

Re: RSS aggregator with curses and feedparser

2006-09-24 Thread James Graham
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

Re: does anybody earn a living programming in python?

2006-09-25 Thread James Stroud
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

Re: IDLE - Customizing output format

2006-09-26 Thread James Stroud
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

Re: Survival of the fittest

2006-09-26 Thread James Stroud
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

What's up with site.Quitter?

2006-09-26 Thread James Stroud
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

Re: IDLE - Customizing output format

2006-09-26 Thread James Stroud
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

Re: What's up with site.Quitter?

2006-09-26 Thread James Stroud
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

Re: What's up with site.Quitter?

2006-09-27 Thread James Stroud
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

Re: What's up with site.Quitter?

2006-09-27 Thread James Stroud
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

Re: Computer Language Popularity Trend

2006-09-27 Thread James Stroud
[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

Re: What's up with site.Quitter?

2006-09-27 Thread James Stroud
[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

Extra Newby question - Trying to create md5 File Listing

2006-09-27 Thread James Johnston
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

Re: Computer Language Popularity Trend

2006-09-27 Thread James Stroud
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

Re: generator with subfunction calling yield

2006-09-27 Thread James Stroud
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

Re: best way to get data into a new instance?

2006-09-28 Thread James Stroud
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

Re: best way to get data into a new instance?

2006-09-28 Thread James Stroud
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

Using vim in server mode with ipython

2006-09-28 Thread James Stroud
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.

Re: DAT file compilation

2006-09-29 Thread James Stroud
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

Re: DAT file compilation

2006-09-29 Thread James Stroud
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

Re: MySQLdb for Python 2.5

2006-09-30 Thread James Stroud
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

Re: ruby %w equivalent

2006-09-30 Thread James Stroud
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

Re: loop over list and modify in place

2006-09-30 Thread James Stroud
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

Re: loop over list and modify in place

2006-09-30 Thread James Stroud
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 ] >>> >>&

Re: How to Catch 2 Exceptions at once?

2006-09-30 Thread James Stroud
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

Re: question about scope

2006-09-30 Thread James Stroud
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

Re: how to reuse class deinitions?

2006-10-01 Thread James Stroud
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

Re: strange append

2006-10-01 Thread James Stroud
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

Re: strange append

2006-10-02 Thread James Stroud
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

Re: Need help with an array problem.

2006-10-02 Thread James Stroud
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&#x

py2app console

2006-10-03 Thread James Stroud
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

Re: py2app console

2006-10-03 Thread James Stroud
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

Re: py2app console

2006-10-04 Thread James Stroud
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 >

py2app semi-standalone semi-works

2006-10-04 Thread James Stroud
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

Re: Python/Tkinter crash.

2006-10-04 Thread James Stroud
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

Re: ANN: CherryPy 3.0 RC1

2006-11-29 Thread James Cunningham
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

Re: Why not just show the out-of-range index?

2006-12-03 Thread James Stroud
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

Re: A mail from Steve Ballmer. See what Microsoft will do and follow.

2006-12-03 Thread James Stroud
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

Re: Why not just show the out-of-range index?

2006-12-04 Thread James Stroud
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

Re: how to determine Operating System in Use?

2006-12-13 Thread James Cunningham
> 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

Re: skip last line in loops

2006-12-14 Thread James Stroud
eadlines() aline = xlines.next for nextline in xlines: print aline aline = nextline James -- http://mail.python.org/mailman/listinfo/python-list

Re: skip last line in loops

2006-12-14 Thread James Stroud
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

Re: skip last line in loops

2006-12-15 Thread James Stroud
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

Re: merits of Lisp vs Python

2006-12-15 Thread William James
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

Re: skip last line in loops

2006-12-15 Thread James Stroud
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

Re: merits of Lisp vs Python

2006-12-15 Thread William James
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é

Re: merits of Lisp vs Python

2006-12-15 Thread William James
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

Re: merits of Lisp vs Python

2006-12-15 Thread William James
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

Re: merits of Lisp vs Python

2006-12-15 Thread William James
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

Re: tuple.index()

2006-12-15 Thread James Stroud
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.

Re: tuple.index()

2006-12-15 Thread James Stroud
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

Re: tuple.index()

2006-12-16 Thread James Stroud
e the operational definition of "inhomogenous". Of course then we would have to define necessary... James -- http://mail.python.org/mailman/listinfo/python-list

Re: Why there isn't a sort method for array ?

2006-12-18 Thread James Stroud
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

Re: Tkinter, StringVar and dict

2006-12-20 Thread James Stroud
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

Re: Tkinter, StringVar and dict

2006-12-20 Thread James Stroud
f StringVars for prefs, I would initialize it in this manner: # somewhere in self defaults = { 'interface' : '-en1', 'verbose' : '-v', 'fontname' : 'Courier', 'point&#x

Re: Tkinter, StringVar and dict

2006-12-20 Thread James Stroud
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'

Re: tkFileDialog closes main application

2006-12-21 Thread James Stroud
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

Re: scopes of local and global variable

2006-12-22 Thread James Stroud
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

Re: Retrieve Tkinter listbox item by string, not by index

2006-12-22 Thread James Stroud
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

Re: Retrieve Tkinter listbox item by string, not by index

2006-12-22 Thread James Stroud
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(

Re: looking for a better way to call a file.

2006-12-31 Thread James Thiele
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

[ANN] html5lib 0.2

2007-01-09 Thread James Graham
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.

Re: Making dir's

2006-01-22 Thread James Stroud
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

Re: Making dir's

2006-01-22 Thread James Stroud
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

Re: Returning a tuple-struct

2006-01-22 Thread James Stroud
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

Re: Loading a Python collection from an text-file

2006-01-23 Thread James Stroud
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

Re: Oddities of Tkinter

2006-01-23 Thread James Stroud
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

Re: Oddities of Tkinter

2006-01-23 Thread James Stroud
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

Re: Oddities of Tkinter

2006-01-23 Thread James Stroud
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 -

Re: Using non-ascii symbols

2006-01-23 Thread James Stroud
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

Codec Search Function

2006-01-24 Thread James Stroud
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

Re: logging into secure website with script

2006-01-24 Thread James Stroud
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

Re: Using non-ascii symbols

2006-01-24 Thread James Stroud
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

Re: Codec Search Function

2006-01-25 Thread James Stroud
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

Re: List of files to be opened

2006-01-25 Thread James Stroud
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

Re: beta.python.org content

2006-01-26 Thread James Stroud
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

Re: beta.python.org content

2006-01-26 Thread James Stroud
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

Re: beta.python.org content

2006-01-26 Thread James Stroud
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 >

Re: Codec Search Function

2006-01-26 Thread James Stroud
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 >>

Re: How do I dynamically create functions without lambda?

2006-01-27 Thread James Stroud
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

Re: textvariable help

2006-01-28 Thread James Stroud
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

Re: Language Semantics: @ symbol??

2006-01-29 Thread James Stroud
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

Re: Language Semantics: @ symbol??

2006-01-30 Thread James Stroud
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

Marked-Up Text Viewer for Python/Tkinter

2006-01-30 Thread James Stroud
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

Re: incompatible with

2006-01-30 Thread James Stroud
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

Re: incompatible with

2006-01-30 Thread James Stroud
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

Re: incompatible with

2006-01-30 Thread James Stroud
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

Re: Getting Tkinter Text contents before destruction

2006-02-06 Thread James Stroud
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

Re: Tkinter: is there a has_focus method or property for a window?

2006-02-07 Thread James Stroud
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

Re: apostrophe or double quote?

2006-02-07 Thread James Stroud
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

Re: Xah's Edu Corner: Unix damage: color names

2006-02-08 Thread William James
[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

<    8   9   10   11   12   13   14   15   16   17   >