Re: [Tutor] Linux/Window Differences in Python?

2005-08-19 Thread Catherine Kostyn
Thanks to everyone for their comments on Python. I am glad to hear that, aside from specific modules, it is pretty much cross-platform as I thought, I just wanted to make certain that my understanding was correct. I am NOT a programmer, though my job responsibilities keep dragging me closer and c

[Tutor] Expanding _treeList in TreeCtrl

2005-08-19 Thread _ Dan _
Hi to all, list: Well, I wanted to ask for some help on some subject. I have a TreeCtrl with a _treeList variable: _treeList = [ ( 'Parent 1', ['Child 1.1','Child 1.2'] ), ( 'Parent 2', [] ), ( 'Parent 3', [ 'Child 3.1', 'Child 3.2'] ), ( 'Parent 4', ['Child 4'] )

[Tutor] hi HELP

2005-08-19 Thread Suranga Sarukkali
I want to unsubscribe from your python mailing list and anything related that keeps sending un imagned amount of emails that anrt spam but a bit of shit. pls Unsubscribe me. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinf

Re: [Tutor] hi HELP

2005-08-19 Thread oliver
On 8/14/05, Suranga Sarukkali <[EMAIL PROTECTED]> wrote: > I want to unsubscribe from your python mailing list and anything related > that keeps sending un imagned amount of emails that anrt spam but a bit > of shit. pls Unsubscribe me. > > ___ > Tutor m

Re: [Tutor] hi HELP

2005-08-19 Thread Bob Gailer
At 09:57 PM 8/14/2005, Suranga Sarukkali wrote: >I want to unsubscribe from your python mailing list and anything related >that keeps sending un imagned amount of emails that anrt spam but a bit >of shit. pls Unsubscribe me. You are on this list because you subscribed. You must also unsubscribe. C

[Tutor] Searching Sorted Lists

2005-08-19 Thread DaSmith
Hi, Can someone tell me if there is a bulit in Binary search function for python lists ? I am currently building lists and sorting them with a comparison function. The only list search function I know is List.Index(X), which is pretty inefficient I reckon, especially hen the lists are likely t

Re: [Tutor] Searching Sorted Lists

2005-08-19 Thread Danny Yoo
> Hi, Can someone tell me if there is a bulit in Binary search function > for python lists ? > > I am currently building lists and sorting them with a comparison > function. The only list search function I know is List.Index(X), which > is pretty inefficient I reckon, especially hen the lists are

Re: [Tutor] Searching Sorted Lists

2005-08-19 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > > Hi, Can someone tell me if there is a bulit in Binary search function for > python lists ? The bisect module implements a binary search though it doesn't support custom comparison functions. You could make your list elements be instances of a class with a __cmp__()

[Tutor] How do you turn something into a number?

2005-08-19 Thread Lane, Frank L
Hello,   Not understanding the proper phraseology for my question I can’t search the faq so here goes:   I have what I think is a string from socket.recvfrom(…).  I want to turn it into numbers so I tried: from socket import * from array import *   data, address  = recvfrom (...stuf

Re: [Tutor] Tutor Digest, Vol 18, Issue 78

2005-08-19 Thread Greg Lindstrom
I want to unsubscribe from your python mailing list and anything relatedthat keeps sending un imagned amount of emails that anrt spam but a bit of shit. pls Unsubscribe me. If you're still subscribed, you may want to switch over to the digest mode and only get a few emails a day.  This is an active

Re: [Tutor] How do you turn something into a number?

2005-08-19 Thread Danny Yoo
> I have what I think is a string from socket.recvfrom(...). I want to > turn it into numbers Hi Frank, If you know how those bytes should be interpreted, you may want to look at the 'struct' module to destructure them back into integers: http://www.python.org/doc/lib/module-struct.html

Re: [Tutor] Silly loop question

2005-08-19 Thread mailing list
Hehe, Yah, I should've read the tutorial again, I do apologise, it was a 3 in the morning-coffee not working question. Regards, Liam Clarke On 8/17/05, Alan G <[EMAIL PROTECTED]> wrote: > > changeIndex = None > > al = len(line) > > for i in range(al): > > And theres the problem. > Pythonpro

[Tutor] Declaring encoding question

2005-08-19 Thread mailing list
Hi all, I've got some source code which will be handling non-ASCII chars like umlauts and what not, and I've got a testing portion stored in the code. I get this deprecation warning when I run my code - __main__:1: DeprecationWarning: Non-ASCII character '\xfc' in file C:\Python24\testit.py on

Re: [Tutor] Sorting a list of lists aka nested lists

2005-08-19 Thread mailing list
No-one's mentioned a Schwartzian Transform yet ; ) On 8/15/05, Kent Johnson <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Note that in Python2.4+, you can use key= instead: > > > > def sortKey(lst): > > return lst[2] > > Quant.sort(key=sortKey) > > > > This is more effient than spe

Re: [Tutor] UTf-8 to Entity

2005-08-19 Thread mailing list
You'll need the csv module. And that should be about it, I think. The rest would just be using string methods. On 8/15/05, Diaz, Wendell <[EMAIL PROTECTED]> wrote: > > > > Hey guys, > > > > Hope you can help me on this. > > > > I want to make a python program which opens an XML (U

Re: [Tutor] Sorting a list of lists aka nested lists

2005-08-19 Thread Kent Johnson
mailing list wrote: > No-one's mentioned a Schwartzian Transform yet ; ) because it's obsoleted by the key parameter to sort... > > > > On 8/15/05, Kent Johnson <[EMAIL PROTECTED]> wrote: > >>[EMAIL PROTECTED] wrote: >> >>>Note that in Python2.4+, you can use key= instead: >>> >>>def sortKey