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
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[][
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
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
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
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
> 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
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
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
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:
>
>
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
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
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
>>
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
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
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
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
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
A byte of python with learning python by Mark Lutz is a good combination.
--
http://mail.python.org/mailman/listinfo/python-list
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
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:
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
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
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
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.
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
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.
>
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
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
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
> 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
--
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-
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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
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
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.
--
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
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.
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
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
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:
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
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
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
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:
>
> >
>
>
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
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
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
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
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'
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
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
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
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
> 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
69 matches
Mail list logo