Re: [Tutor] Best method for filtering lists in lists...

2006-12-15 Thread Alan Gauld
"Chris Hengge" <[EMAIL PROTECTED]> wrote > I'm terming a redundant list just like I posted in the original > message: > [[1,2,3], [4,5,6],[1,2,3]] > > [0][0] and [0][2] are redundant, so I only want to keep one of them. In that case put the inner lists in a Set. That will eliminate duplicates.

Re: [Tutor] Best method for filtering lists in lists...

2006-12-15 Thread Chris Hengge
Oops, sorry about not replying to the list. I must have hit the wrong button. I'm terming a redundant list just like I posted in the original message: [[1,2,3], [4,5,6],[1,2,3]] [0][0] and [0][2] are redundant, so I only want to keep one of them. Thanks again Luke. On 12/15/06, Luke Paireepina

Re: [Tutor] Best method for filtering lists in lists...

2006-12-15 Thread Luke Paireepinart
Chris Hengge wrote: > Yes, we went over that a bit ago, but I wasn't sure if there were any > different or more appropriate approaches to this when dealing with > multidimensional lists. > Well, it depends what you term a redundant list. Like, is [[1,2,3],[3,2,1]] a list with 1 unique elements or

Re: [Tutor] Best method for filtering lists in lists...

2006-12-15 Thread Luke Paireepinart
Chris Hengge wrote: > I've got a list of lists that looks like this > > [[1,2,3], [4,5,6],[1,2,3]] > > I'm looking for a good way to drop the redundant inner lists > (thousands of inner lists) > > Someone either have a good way to tackle this? or willing to point me > in the right direction? > >

[Tutor] Best method for filtering lists in lists...

2006-12-15 Thread Chris Hengge
I've got a list of lists that looks like this [[1,2,3], [4,5,6],[1,2,3]] I'm looking for a good way to drop the redundant inner lists (thousands of inner lists) Someone either have a good way to tackle this? or willing to point me in the right direction? Thanks! ___

[Tutor] pysvn samples

2006-12-15 Thread Andrew Robert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi guys, I am looking to experiment with pysvn and was wondering if anyone knew of a location for code samples/snippets using it? I'm reviewing the pysvn programmers guide and tutorial but some live examples would be great. If anyone can point me at

Re: [Tutor] wrapping a command line tool

2006-12-15 Thread Kent Johnson
Gonzillaaa wrote: > Tanks for the suggestions Kent, windows compatibility is not much of > an issue, but dependencies are. the reason why I'm using a command > line tool written in C is because pyserial depends on JavaComm or > that seems to be implied on their website, I haven't actually tes

Re: [Tutor] Starting over with Python

2006-12-15 Thread Chuck Coker
JC> If anyone could direct me to some site where python is associated JC> with Cryptography I would be very grateful. John, I did a quick Google search using +"python" +"cryptography" as the search term and Google reported Results 1 - 10 of about 1,030,000 for +"python" +"cryptography". (0.09

[Tutor] Python Course starting in January 2007

2006-12-15 Thread Elaine
If you would like to learn Python, Foothill College is offering a course starting Wednesday evening, 10 January 2007, at the Middlefield campus on the corner of San Antonio and Middlefield Road in south Palo Alto. Note that this location is only 1.5 miles from Google in Mountain View. The course is

Re: [Tutor] Integer?

2006-12-15 Thread Bob Gailer
Kent Johnson wrote: > A better way to check for divisibility is to use the modulo operator % > which gives the remainder when one number is divided by another. Only when the left argument is positive does it give the remainder. The manual is in error when it says remainder, but the algorithm it

Re: [Tutor] wrapping a command line tool

2006-12-15 Thread Kent Johnson
Gonzillaaa wrote: > Hello, > > I am using a command line tool that allows me to specify a serial > port and either read from or write data to it. I would like to create > a python module that wraps that functionality and allows me to > manipulate the incoming data to present it in a table fo

Re: [Tutor] wrapping a command line tool

2006-12-15 Thread doug shawhan
Actually, I've had excellent results with pyserial. http://pyserial.sourceforge.net/ I've used it to write a screen-scraping tool. It comes with a little demo terminal program that shows many interesting ways to fiddle about with the module. I use it in conjunction with the wy60 emulator on Open

Re: [Tutor] wrapping a command line tool

2006-12-15 Thread Tim Golden
> I am using a command line tool that allows me to specify a serial > port and either read from or write data to it. I would like to create > a python module that wraps that functionality and allows me to > manipulate the incoming data to present it in a table for instance > (like top works) or may

[Tutor] wrapping a command line tool

2006-12-15 Thread Gonzillaaa
Hello, I am using a command line tool that allows me to specify a serial port and either read from or write data to it. I would like to create a python module that wraps that functionality and allows me to manipulate the incoming data to present it in a table for instance (like top works)

Re: [Tutor] Noobie projects

2006-12-15 Thread Chris Calloway
[EMAIL PROTECTED] wrote: > Is there a set of more basic projects for flexing one's novice Python skills? Three python projects for noobs: http://www.handysoftware.com/cpif/ -- Sincerely, Chris Calloway http://www.seacoos.org office: 332 Chapman Hall phone: (919) 962-4323 mail: Campus Box #33

Re: [Tutor] Integer?

2006-12-15 Thread Kent Johnson
Eli Zabielski wrote: > Checking if a number is prime by deviding it by possible factors. If any > outcome is an integer, and it is not 1 or itself, it is prime. A better way to check for divisibility is to use the modulo operator % which gives the remainder when one number is divided by another.

Re: [Tutor] Noobie projects

2006-12-15 Thread Tor Hildrum
On 12/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is there a set of more basic projects for flexing one's novice Python skills? They key to finding a project is to find something you will enjoy doing. I used statistics to get to know Python. The code parsed some text, added some number

Re: [Tutor] Apology to all

2006-12-15 Thread Alan Gauld
"Archana Maheshwari" <[EMAIL PROTECTED]> wrote > I would like to apologize for showing bad manners in the forum of > very > educated and respected people. My first question to this forum was > put in a > very rude manner. Don't worry about it. It was not really rude, it was just a bit vague. T