Re: [Tutor] LOCATION ISSUES

2010-07-12 Thread Dipo Elegbede
> > Which is what it will do when python is started from that directory. > > I actually found the copies that were made by the code in the same > directory but found out that they all had a .thumbnail ext which would not > open and it is understandable. > > I have however chaged that part of the co

Re: [Tutor] LOCATION ISSUES

2010-07-12 Thread Emile van Sebille
On 7/12/2010 11:13 PM Dipo Elegbede said... Hello All, Kindly help me with the location for the files created by this codes. I have already compiled the codes and it has no error. I copied the code from the following url: http://www.pythonware.com/library/pil/handbook/image.htm This is suppos

[Tutor] LOCATION ISSUES

2010-07-12 Thread Dipo Elegbede
Hello All, Kindly help me with the location for the files created by this codes. I have already compiled the codes and it has no error. I copied the code from the following url: http://www.pythonware.com/library/pil/handbook/image.htm This is supposed to create thumbnails of picture in the dire

Re: [Tutor] Request for help learning the right way to deal with lists in lists

2010-07-12 Thread David Hutto
On Mon, Jul 12, 2010 at 9:45 PM, Eric Hamiter wrote: > I'm fairly new to programming and Python as well, but I have a suggestion > that may be worth looking into-- are you familiar with pickling? It sounds > like something that may fit in well with what you're trying to do. > > Good reference art

Re: [Tutor] Request for help learning the right way to deal with lists in lists

2010-07-12 Thread Eric Hamiter
I'm fairly new to programming and Python as well, but I have a suggestion that may be worth looking into-- are you familiar with pickling? It sounds like something that may fit in well with what you're trying to do. Good reference article: http://articles.techrepublic.com.com/5100-10878_11-105219

Re: [Tutor] Request for help learning the right way to deal with lists in lists

2010-07-12 Thread Steven D'Aprano
On Tue, 13 Jul 2010 08:19:51 am Siren Saren wrote: > I'm still fairly new to programming. [...] Please don't include the ENTIRE 300+ lines of the digest in your post. Start a NEW email, don't reply to the digest, and if you absolutely have to reply to the digest, delete the parts that you are no

[Tutor] Request for help learning the right way to deal with lists in lists

2010-07-12 Thread Siren Saren
py that can do this kind of extraction. I am quite new to >> numpy. How can do the same ? >> >> Thank you, >> Bala >> >> >> > I don't know numpy, and it probably would be better to use that forum.  But > there are several people here who do, an

Re: [Tutor] module for fingerprint and pictures

2010-07-12 Thread Emile van Sebille
On 7/12/2010 12:22 PM Dipo Elegbede said... Hello people, I am working on an interface that is supposed to interact with a webcam and capture pictures into a database and also fingerprint from a fingerprint hardware. I've done this a couple different times now, one time using panasonic webcam

[Tutor] module for fingerprint and pictures

2010-07-12 Thread Dipo Elegbede
Hello people, I am working on an interface that is supposed to interact with a webcam and capture pictures into a database and also fingerprint from a fingerprint hardware. Is there any python module or library I can work with. I need suggestions, assistance and information where necessary. To

Re: [Tutor] Python Documentation Clarification

2010-07-12 Thread Alan Gauld
"Huy Ton That" wrote Just not grokking it correctly and I can't seem to track down where the documentation formatting is defined within the python.org documentation... It is confusing I agree, but the style goes back to the dawn of computing - certainly further back than me! I remember seei

Re: [Tutor] Python Documentation Clarification

2010-07-12 Thread Huy Ton That
Proverbial Ah-ha moment all. This clarifies things greatly (: Thanks you all!! On Mon, Jul 12, 2010 at 11:29 AM, Nick Raptis wrote: > > >> compile(source, filename, mode[, flags[, dont_inherit]]) >> >> I see within this built in function, the first argument can be what they >> define as source,

Re: [Tutor] Python Documentation Clarification

2010-07-12 Thread David Hutto
On Mon, Jul 12, 2010 at 10:49 AM, Huy Ton That wrote: > This is going to sound silly, but I realized there are some areas within the > documentation that do not make absolute sense to me. > e.g. > compile(source, filename, mode[, flags[, dont_inherit]]) > I see within this built in function, the f

Re: [Tutor] Python Documentation Clarification

2010-07-12 Thread Mark Lawrence
On 12/07/2010 15:49, Huy Ton That wrote: This is going to sound silly, but I realized there are some areas within the documentation that do not make absolute sense to me. e.g. compile(source, filename, mode[, flags[, dont_inherit]]) I see within this built in function, the first argument can b

Re: [Tutor] Python Documentation Clarification

2010-07-12 Thread Nick Raptis
compile(source, filename, mode[, flags[, dont_inherit]]) I see within this built in function, the first argument can be what they define as source, the second argument as the filename and the third as the mode. But what confuses me is sometimes I see a bracket, above as [, flags[, dont_in

Re: [Tutor] Python Documentation Clarification

2010-07-12 Thread Adam Bark
On 12 July 2010 15:49, Huy Ton That wrote: > This is going to sound silly, but I realized there are some areas within > the documentation that do not make absolute sense to me. > > e.g. > > compile(source, filename, mode[, flags[, dont_inherit]]) > > I see within this built in function, the first

[Tutor] Python Documentation Clarification

2010-07-12 Thread Huy Ton That
This is going to sound silly, but I realized there are some areas within the documentation that do not make absolute sense to me. e.g. compile(source, filename, mode[, flags[, dont_inherit]]) I see within this built in function, the first argument can be what they define as source, the second ar

Re: [Tutor] extract a submatrix

2010-07-12 Thread Bala subramanian
Dear Eike, Thank you so much, the simple slicing operation solved my problem. Thank you for the links, i am just going through the same. Dave I wanted was to extract a matrix of dimension 330,330 from a matrix of dimension 550,550. Sorry if my previous post was not clear. I am able to do it by sli

Re: [Tutor] extract a submatrix

2010-07-12 Thread Dave Angel
Bala subramanian wrote: Friends, Excuse me if this question is not appropriate for this forum. I have a matrix of size 550,550. I want to extract only part of this matrix say first 330 elements, i dnt need the last 220 elements in the matrix. is there any function in numpy that can do this kind

Re: [Tutor] extract a submatrix

2010-07-12 Thread Eike Welk
Hello Bala! On Sunday July 11 2010 23:41:14 Bala subramanian wrote: > I have a > matrix of size 550,550. I want to extract only part of this matrix say > first 330 elements, i dnt need the last 220 elements in the matrix. is > there any function in numpy that can do this kind of extraction. I d