Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Fábio Santos
> And of course, the Python Programmer's moral code is only 80 characters wide. No! Was it not seventy characters wide? Was I fooled my entire life? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread llanitedave
On Sunday, May 5, 2013 12:10:47 PM UTC-7, Steven D'Aprano wrote: > > > Also, Perl programmers are an unprincipled, devious bunch, always looking > > for an opportunity to blackmail their employers into paying them extra. > > Python programmers are a decent, law-abiding people with a strong m

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Henry Law
On 05/05/13 18:11, Ignoramus16992 wrote: According to CIO.com What an amusing thread; lightened my (non-programmer) day. -- Henry LawManchester, England -- http://mail.python.org/mailman/listinfo/python-list

Re: Python not starting

2013-05-05 Thread Steven D'Aprano
On Sun, 05 May 2013 20:15:08 -0700, drjreddy7 wrote: > I am very happy to inform all of > you that the problem is solved. The problem was due to the prescence of > duplicates for genericpath.pyc and stat.pyc.I have deleted them and new > ones were generated as i started python. Thanking all of you

Re: (Learner-here) Lists + Functions = headache

2013-05-05 Thread 88888 Dihedral
Bradley Wright於 2013年5月6日星期一UTC+8上午8時59分15秒寫道: > Hey guys and gals doing this tutorial(codecademy) and needed a bit help from > the experienced. > > > > I'm writing a function that takes a list(one they supply during runtime) > > here's what my function is supposed to do > > > > 1. for each

Re: Python not starting

2013-05-05 Thread Chris Angelico
On Mon, May 6, 2013 at 1:15 PM, wrote: > On Monday, May 6, 2013 3:59:01 AM UTC+5:30, Chris Angelico wrote: >> On Mon, May 6, 2013 at 4:15 AM, DRJ Reddy wrote: >> I did read and understood that while replying if > is there we will get a >> blank line unnecessarily. >> If you read that page, you'

Re: Python not starting

2013-05-05 Thread drjreddy7
On Monday, May 6, 2013 3:59:01 AM UTC+5:30, Chris Angelico wrote: > On Mon, May 6, 2013 at 4:15 AM, DRJ Reddy wrote: > I did read and understood that while replying if > is there we will get a > blank line unnecessarily. > If you read that page, you'll know that it does NOT advocate the total > e

Re: How to avoid PEP8 'imported but unused'

2013-05-05 Thread Adam Jiang
Thank you. Problem solved. /Adam On Sun, May 05, 2013 at 06:27:44PM +0100, Fábio Santos wrote: > That assert will never fail. If the symbol is not imported, the import > statement raises ImportError. And actually "assert" makes sure that > the value is not false-ish, not None/Null. And AFAIK a mod

Re: Python not starting

2013-05-05 Thread drjreddy7
import nt print nt.__file__ I have done above ones as you stated. I'm getting an error Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute '__file__' -- http://mail.python.org/mailman/listinfo/python-list

Re: (Learner-here) Lists + Functions = headache

2013-05-05 Thread Steven D'Aprano
On Mon, 06 May 2013 01:31:48 +, Steven D'Aprano wrote: > So your function always returns either 0 (if there are no > "fizz" in the list at all) or 1 (if there is any "fizz"). Correction: (thanks to Terry for pointing this out). It will return None or 1, not 0. How easy it is to fall into th

Re: (Learner-here) Lists + Functions = headache

2013-05-05 Thread Bradley Wright
On Sunday, May 5, 2013 9:24:44 PM UTC-4, Bradley Wright wrote: > On Sunday, May 5, 2013 9:21:33 PM UTC-4, alex23 wrote: > > > On May 6, 10:59 am, Bradley Wright > > > > > > wrote: > > > > > > > def fizz_cout(x): > > > > > > >     count = 0 > > > > > > >     for item in x: > > > > >

Re: (Learner-here) Lists + Functions = headache

2013-05-05 Thread Steven D'Aprano
On Sun, 05 May 2013 17:59:15 -0700, Bradley Wright wrote: > Hey guys and gals doing this tutorial(codecademy) and needed a bit help > from the experienced. > > I'm writing a function that takes a list(one they supply during runtime) > here's what my function is supposed to do > > 1. for each ins

Re: (Learner-here) Lists + Functions = headache

2013-05-05 Thread Terry Jan Reedy
On 5/5/2013 8:59 PM, Bradley Wright wrote: Hey guys and gals doing this tutorial(codecademy) and needed a bit help from the experienced. I'm writing a function that takes a list(one they supply during runtime) here's what my function is supposed to do Do they supply an example so you can test

Re: (Learner-here) Lists + Functions = headache

2013-05-05 Thread Bradley Wright
On Sunday, May 5, 2013 9:21:33 PM UTC-4, alex23 wrote: > On May 6, 10:59 am, Bradley Wright > > wrote: > > > def fizz_cout(x): > > >     count = 0 > > >     for item in x: > > >         while item == "fizz": > > >             count += 1 > > >             return count > > > > > > Please re

Re: (Learner-here) Lists + Functions = headache

2013-05-05 Thread alex23
On May 6, 10:59 am, Bradley Wright wrote: > def fizz_cout(x): >     count = 0 >     for item in x: >         while item == "fizz": >             count += 1 >             return count > > Please remember that i am a eager beginner, where am i going wrong? There are several problems with your code:

(Learner-here) Lists + Functions = headache

2013-05-05 Thread Bradley Wright
Hey guys and gals doing this tutorial(codecademy) and needed a bit help from the experienced. I'm writing a function that takes a list(one they supply during runtime) here's what my function is supposed to do 1. for each instance of the string "fizz" make a count 2. Finally return that count he

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Ignoramus16992
On 2013-05-05, Paul Rubin wrote: > Paul Rubin writes: >> I see "New York" listed as a location for Perl but not for Python. > > Whaat? It's there for Python, though in the #3 position rather than #2. > I must have flipped through the slides too fast. My website algebra.com is written in perl, i

Re: Python not starting

2013-05-05 Thread Chris Angelico
On Mon, May 6, 2013 at 4:15 AM, DRJ Reddy wrote: > I did read and understood that while replying if > is there we will get a > blank line unnecessarily. If you read that page, you'll know that it does NOT advocate the total elimination of quoted text, which is what you've now done. Please don't.

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Chris Angelico
On Mon, May 6, 2013 at 7:09 AM, Rainer Weikusat wrote: > j...@toerring.de (Jens Thoms Toerring) writes: >> Now you got me badly worried, using both Perl and Python (and >> other, unspeakable languages, but not VB I promise!) Will I >> end up as a Python hacker for the mob or worse > > https://en.w

Re: Python not starting

2013-05-05 Thread Andrew Berg
On 2013.05.05 13:55, Steven D'Aprano wrote: > (you might need to use /S on Windows instead, I'm not sure.) That is only a convention among Microsoft's CLI utilities. Very few others follow it (even for programs written specifically for Windows), and it is certainly not a necessity on Windows. --

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Roy Smith
In article , Dennis Lee Bieber wrote: > On Sun, 05 May 2013 17:07:41 -0400, Roy Smith declaimed > the following in gmane.comp.python.general: > > > In article <5186af75$0$29997$c3e8da3$54964...@news.astraweb.com>, > > Steven D'Aprano wrote: > > > > > Right now, I'd consider learning PHP fo

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Jens Thoms Toerring
In comp.lang.python Roy Smith wrote: > In article , > j...@toerring.de (Jens Thoms Toerring) wrote: > > Well, that didn't have a happy ending:-( Should have listened to > > my parents when they told me again and again "Never use Perl, just > > say no!". Seems I'm doomed - what's the proper way t

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Roy Smith
In article , j...@toerring.de (Jens Thoms Toerring) wrote: > Well, that didn't have a happy ending:-( Should have listened to > my parents when they told me again and again "Never use Perl, just > say no!". Seems I'm doomed - what's the proper way to apply for a > job with the mob? I don't think

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread 88888 Dihedral
Steven D'Aprano於 2013年5月6日星期一UTC+8上午3時10分47秒寫道: > On Sun, 05 May 2013 12:11:11 -0500, Ignoramus16992 wrote: > > > > > According to CIO.com, Python programmers make only $83,000 per year, > > > while Perl programmers make $93,000 per year. > > > > > > http://www.cio.com/slideshow/detail/97819

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Jens Thoms Toerring
In comp.lang.python Rainer Weikusat wrote: > j...@toerring.de (Jens Thoms Toerring) writes: > > In comp.lang.python Steven D'Aprano > > wrote: > >> On Sun, 05 May 2013 12:11:11 -0500, Ignoramus16992 wrote: > > > >> > According to CIO.com, Python programmers make only $83,000 per year, > >> > whi

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Paul Rubin
Paul Rubin writes: > I see "New York" listed as a location for Perl but not for Python. Whaat? It's there for Python, though in the #3 position rather than #2. I must have flipped through the slides too fast. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Paul Rubin
Ignoramus16992 writes: > I would like to know, what explains the discrepancy. I see "New York" listed as a location for Perl but not for Python. That implies: 1) some general skew because of the very high cost of living in NY (even compared to San Francisco or Silicon Valley); 2) further skew b

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Rainer Weikusat
j...@toerring.de (Jens Thoms Toerring) writes: > In comp.lang.python Steven D'Aprano > wrote: >> On Sun, 05 May 2013 12:11:11 -0500, Ignoramus16992 wrote: > >> > According to CIO.com, Python programmers make only $83,000 per year, >> > while Perl programmers make $93,000 per year. >> > >> > http

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Roy Smith
In article <5186af75$0$29997$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > Right now, I'd consider learning PHP for an extra $100 a month. Or > peddling my arse down at the docks for twenty cents a time, which will be > less embarrassing and much less painful. Having spent th

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Petite Abeille
On May 5, 2013, at 9:13 PM, Steven D'Aprano wrote: > On Sun, 05 May 2013 13:58:51 -0400, Roy Smith wrote: > >> In article , >> Ignoramus16992 wrote: >> >>> According to CIO.com, Python programmers make only $83,000 per year, >>> while Perl programmers make $93,000 per year. >> >> It's amazi

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Jens Thoms Toerring
In comp.lang.python Steven D'Aprano wrote: > On Sun, 05 May 2013 12:11:11 -0500, Ignoramus16992 wrote: > > According to CIO.com, Python programmers make only $83,000 per year, > > while Perl programmers make $93,000 per year. > > > > http://www.cio.com/slideshow/detail/97819?source=ifwartcio#sl

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Steven D'Aprano
On Sun, 05 May 2013 13:58:51 -0400, Roy Smith wrote: > In article , > Ignoramus16992 wrote: > >> According to CIO.com, Python programmers make only $83,000 per year, >> while Perl programmers make $93,000 per year. > > It's amazing the depths to which people are willing to sink for an extra >

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Steven D'Aprano
On Sun, 05 May 2013 12:11:11 -0500, Ignoramus16992 wrote: > According to CIO.com, Python programmers make only $83,000 per year, > while Perl programmers make $93,000 per year. > > http://www.cio.com/slideshow/detail/97819?source=ifwartcio#slide10 > http://www.cio.com/slideshow/detail/97819?sourc

Re: Python not starting

2013-05-05 Thread Steven D'Aprano
On Sun, 05 May 2013 06:43:25 -0700, rama29065 wrote: > I was using python from over an year and half.Suddenly from yesterday > i'm unable to run it. Well, the obvious question is, what did you do yesterday to change your system? Did you install any new packages? Run a Windows update? Delete so

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Mark Lawrence
On 05/05/2013 18:35, rusi wrote: On May 5, 10:11 pm, Ignoramus16992 wrote: According to CIO.com, Python programmers make only $83,000 per year, while Perl programmers make $93,000 per year. http://www.cio.com/slideshow/detail/97819?source=ifwartcio#slide10http://www.cio.com/slideshow/detail/97

Re: Python not starting

2013-05-05 Thread DRJ Reddy
I did read and understood that while replying if > is there we will get a blank line unnecessarily. -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Help] learning python

2013-05-05 Thread leonardo selmi
thanks! Il giorno 05/mag/2013, alle ore 18:58, Eric Brunson ha scritto: > On 05/05/2013 10:08 AM, leonardo selmi wrote: >> hi guys >> >> i need to find a good book to learn python with exercises and solutions, any >> suggestions? >> >> thanks! >> > > Leonardo, > > There are several good

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Roy Smith
In article , Ignoramus16992 wrote: > According to CIO.com, Python programmers make only $83,000 per year, > while Perl programmers make $93,000 per year. It's amazing the depths to which people are willing to sink for an extra $10k per year. -- http://mail.python.org/mailman/listinfo/python-

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Fábio Santos
> Most likely more legacy Perl code in mission critical systems Which is unfair because when Python is ever surpassed by an even better language/technology then we get paid more to work Python and not move the industry forward by moving to the new technology and hacking on it. -- Fábio Santos --

Re: Python not starting

2013-05-05 Thread Roy Smith
In article <9d2513ed-2738-4b6f-92af-82c1faa54...@googlegroups.com>, DRJ Reddy wrote: > > If you're using GoogleCrap� please read this > > > > http://wiki.python.org/moin/GoogleGroupsPython. > > > > > > > > Mark Lawrence > > Sorry for double spaced stuff,how can i get rid of it. I don't

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread rusi
On May 5, 10:11 pm, Ignoramus16992 wrote: > According to CIO.com, Python programmers make only $83,000 per year, > while Perl programmers make $93,000 per year. > > http://www.cio.com/slideshow/detail/97819?source=ifwartcio#slide10http://www.cio.com/slideshow/detail/97819?source=ifwartcio#slide11

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Chris Angelico
On Mon, May 6, 2013 at 3:11 AM, Ignoramus16992 wrote: > According to CIO.com, Python programmers make only $83,000 per year, > while Perl programmers make $93,000 per year. > > http://www.cio.com/slideshow/detail/97819?source=ifwartcio#slide10 > http://www.cio.com/slideshow/detail/97819?source=ifw

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Stephan Vladimir Bugaj
And seniority combined with annual cost of living raises, due to Perl being in use longer S Sent from my pocket UNIVAC. On May 5, 2013, at 10:11 AM, Ignoramus16992 wrote: > According to CIO.com, Python programmers make only $83,000 per year, > while Perl programmers make $93,000 per year. >

Re: How to avoid PEP8 'imported but unused'

2013-05-05 Thread Fábio Santos
That assert will never fail. If the symbol is not imported, the import statement raises ImportError. And actually "assert" makes sure that the value is not false-ish, not None/Null. And AFAIK a module object is *always* true. > One more question. In this particular case it seems 'assert' should be

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Fábio Santos
I wouldn't touch perl code with a ten foot pole. On the other hand, python is pleasing to the eye and easy to write, read and modify. This means that you can easily be replaced with someone else who also knows python, so your company doesn't care much about paying you well and keeping you there.

Re: Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Stephan Vladimir Bugaj
Most likely more legacy Perl code in mission critical systems S Sent from my pocket UNIVAC. On May 5, 2013, at 10:11 AM, Ignoramus16992 wrote: > According to CIO.com, Python programmers make only $83,000 per year, > while Perl programmers make $93,000 per year. > > http://www.cio.com/slides

Why do Perl programmers make more money than Python programmers

2013-05-05 Thread Ignoramus16992
According to CIO.com, Python programmers make only $83,000 per year, while Perl programmers make $93,000 per year. http://www.cio.com/slideshow/detail/97819?source=ifwartcio#slide10 http://www.cio.com/slideshow/detail/97819?source=ifwartcio#slide11 I would like to know, what explains the discrep

Re: [Python-Help] learning python

2013-05-05 Thread Eric Brunson
On 05/05/2013 10:08 AM, leonardo selmi wrote: hi guys i need to find a good book to learn python with exercises and solutions, any suggestions? thanks! Leonardo, There are several good online tutorials available, many listed here: http://wiki.python.org/moin/BeginnersGuide There is al

Re: How to avoid PEP8 'imported but unused'

2013-05-05 Thread Adam Jiang
Thanks. It works very well. One more question. In this particular case it seems 'assert' should be safe as a workaround, doesn't it? 'assert' will check if the symbol is imported and not NULL. Is there side effect if I just applied this rule as a generic one. /Adam On Sun, May 05, 2013 at 05:18:

Re: How to avoid PEP8 'imported but unused'

2013-05-05 Thread Peter Otten
Adam Jiang wrote: > I am new to python. Now, I am woring on an application within Django > framework. When I checked my code with pep8 and pyflakes, some warning > messages show up-'Foobar imported but unused'. Obviously, it indicates > that some modules are imprted to current module but never get

Re: Python not starting

2013-05-05 Thread DRJ Reddy
Chris i have seen stat.__file__. It gives me 'C:\\Python27\\lib\\stat.pyc'. What should i do now. -- http://mail.python.org/mailman/listinfo/python-list

Re: learning python

2013-05-05 Thread DRJ Reddy
A byte of python with learning python by Mark Lutz is a good combination. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to avoid PEP8 'imported but unused'

2013-05-05 Thread MRAB
On 05/05/2013 17:00, Adam Jiang wrote: I am new to python. Now, I am woring on an application within Django framework. When I checked my code with pep8 and pyflakes, some warning messages show up-'Foobar imported but unused'. Obviously, it indicates that some modules are imprted to current module

Re: How to avoid PEP8 'imported but unused'

2013-05-05 Thread Fábio Santos
I usually do this on pyflakes: import whatever assert whatever # silence pyflakes Pyflakes and pep8 have no way of knowing django will import and use your module, or whether you are just importing a module for the side effects, so they issue a warning anyway. Assert'ing counts as using the modul

learning python

2013-05-05 Thread leonardo selmi
hi guys i need to find a good book to learn python with exercises and solutions, any suggestions? thanks! best regards leonardo-- http://mail.python.org/mailman/listinfo/python-list

How to avoid PEP8 'imported but unused'

2013-05-05 Thread Adam Jiang
I am new to python. Now, I am woring on an application within Django framework. When I checked my code with pep8 and pyflakes, some warning messages show up-'Foobar imported but unused'. Obviously, it indicates that some modules are imprted to current module but never get references. However, it se

Re: Python not starting

2013-05-05 Thread Chris Angelico
On Mon, May 6, 2013 at 1:11 AM, DRJ Reddy wrote: > On Sunday, May 5, 2013 8:30:59 PM UTC+5:30, Chris Angelico wrote: >> On Mon, May 6, 2013 at 12:16 AM, Roy Smith wrote: >> >> > In article , >> >> > DRJ Reddy wrote: >> >> >> Even from command prompt i can't start python.The error is coming >>

Re: Python not starting

2013-05-05 Thread DRJ Reddy
On Sunday, May 5, 2013 8:30:59 PM UTC+5:30, Chris Angelico wrote: > On Mon, May 6, 2013 at 12:16 AM, Roy Smith wrote: > > > In article , > > > DRJ Reddy wrote: > > >> Even from command prompt i can't start python.The error is coming up.Python > > >> in Windows7 box. > > > > > > I don't kno

Re: Python not starting

2013-05-05 Thread Chris Angelico
On Mon, May 6, 2013 at 12:16 AM, Roy Smith wrote: > In article , > DRJ Reddy wrote: >> Even from command prompt i can't start python.The error is coming up.Python >> in Windows7 box. > > I don't know Windows, but my guess is still that it's finding some other > file called stat.py before it's fi

Re: Python not starting

2013-05-05 Thread DRJ Reddy
On Sunday, May 5, 2013 7:56:58 PM UTC+5:30, Mark Lawrence wrote: > On 05/05/2013 15:00, DRJ Reddy wrote: > > > On Sunday, May 5, 2013 7:21:59 PM UTC+5:30, Roy Smith wrote: > > >> In article <9ace60b8-a07d-41bc-ac9f-507f6c61f...@googlegroups.com>, > > >> > > >> rama29...@gmail.com wrote: > >

Re: Python not starting

2013-05-05 Thread DRJ Reddy
On Sunday, May 5, 2013 7:46:48 PM UTC+5:30, Roy Smith wrote: > > On Sunday, May 5, 2013 7:21:59 PM UTC+5:30, Roy Smith wrote: > > > > In article <9ace60b8-a07d-41bc-ac9f-507f6c61f...@googlegroups.com>, > > > > > > Just a wild guess, but did you happen to create a module of your own > > > > na

Re: Python not starting

2013-05-05 Thread Mark Lawrence
On 05/05/2013 15:00, DRJ Reddy wrote: On Sunday, May 5, 2013 7:21:59 PM UTC+5:30, Roy Smith wrote: In article <9ace60b8-a07d-41bc-ac9f-507f6c61f...@googlegroups.com>, rama29...@gmail.com wrote: I was using python from over an year and half.Suddenly from yesterday i'm unable to run it. The e

Re: Python not starting

2013-05-05 Thread Roy Smith
> On Sunday, May 5, 2013 7:21:59 PM UTC+5:30, Roy Smith wrote: > > In article <9ace60b8-a07d-41bc-ac9f-507f6c61f...@googlegroups.com>, > > Just a wild guess, but did you happen to create a module of your own > > named "stat", which is getting imported instead of the one from the > > library? In

Re: Python not starting

2013-05-05 Thread DRJ Reddy
On Sunday, May 5, 2013 7:21:59 PM UTC+5:30, Roy Smith wrote: > In article <9ace60b8-a07d-41bc-ac9f-507f6c61f...@googlegroups.com>, > > rama29...@gmail.com wrote: > > > > > I was using python from over an year and half.Suddenly from yesterday i'm > > > unable to run it. > > > The error is as

Re: Python not starting

2013-05-05 Thread Roy Smith
In article <9ace60b8-a07d-41bc-ac9f-507f6c61f...@googlegroups.com>, rama29...@gmail.com wrote: > I was using python from over an year and half.Suddenly from yesterday i'm > unable to run it. > The error is as follows > Traceback (most recent call last): > File "C:\Python27\lib\site.py", line 5

Python not starting

2013-05-05 Thread rama29065
I was using python from over an year and half.Suddenly from yesterday i'm unable to run it. The error is as follows Traceback (most recent call last): File "C:\Python27\lib\site.py", line 563, in main() File "C:\Python27\lib\site.py", line 546, in main known_paths = addsitepackages(kn

Re: Help with loading file into an array

2013-05-05 Thread Colin J. Williams
On 05/05/2013 3:43 AM, Fábio Santos wrote: Using a nested array should waste a lot of memory. I think you should use PIL to load and read the image. > > I want to read the data from that gif file taking the red data (excluding the green and blue data) and store that in an array called Image[][

Re: Help with loading file into an array

2013-05-05 Thread Jens Thoms Toerring
peter berrett wrote: > I am trying to build a program that can find comets in a series of > astronomical images. I have already written functions to find the comet in a > series of images, the data of which is stored in embedded lists. > The area I am having difficulty with is take a standard gif

Re: Help with loading file into an array

2013-05-05 Thread Fábio Santos
Using a nested array should waste a lot of memory. I think you should use PIL to load and read the image. > > I want to read the data from that gif file taking the red data (excluding the green and blue data) and store that in an array called Image[][] which is a nested array length 1024 with a li