thanks! :-)
On Mon, Jul 28, 2008 at 6:36 PM, Knapp <[EMAIL PROTECTED]> wrote:
> Numpy or numeric (old) might give you arrays that are more to your
> liking. These are python libs btw.
> --
> Douglas E Knapp
>
> http://sf-journey-creations.wikispot.org/Front_Page
>
Numpy or numeric (old) might give you arrays that are more to your
liking. These are python libs btw.
--
Douglas E Knapp
http://sf-journey-creations.wikispot.org/Front_Page
Me as well, i started using Python identation on ansi-basic, for an
easier recoding between both :-)
Who knows in a future i will be using pep8 on sdlBasic and wxBasic as
well? i think maybe it's only a habit issue...
Well, btw my first scare/concern about pep8 is the code may look too
huge, lik
On Mon, Jul 28, 2008 at 04:03:09PM +0100, Paulo Silva wrote:
>
> James: thanks the encouragement, even when more than 20 years i were
> (in a hobbystic level, of course) coding in ansi-Basic language (8bit,
> Amos, sdlbasic/wxbasic ) my way of coding were nothing looking like
> pep8 - btw, would b
Devon: graphic designer as well? what a small world! :-) - an
interesting link about Python and Graphic Design is this one:
http://ospublish.constantvzw.org/index.php?s=python (constantvzw.org
were at last Libre Graphics Meeting...)
James: thanks the encouragement, even when more than 20 years i w
Don't give up on python, just understand that readability is *REALLY*
important.
If it helps, you should try to remember that the true prupose of a
programming language is NOT to describe to a computer what you want it
to do. The true purpose of a programming language is for you to describe
to
yay graphic designers
here, here, hey, hey!
Devon
--- On Mon, 7/28/08, Paulo Silva <[EMAIL PROTECTED]> wrote:
> From: Paulo Silva <[EMAIL PROTECTED]>
> Subject: Re: [pygame] how hexcolour arrays works?
> To: pygame-users@seul.org
> Date: Monday, July 28, 2008, 6:59
thanks for all as well, Dr0id! :-)
-
On Mon, Jul 28, 2008 at 12:59 PM, Paulo Silva <[EMAIL PROTECTED]> wrote:
> Noah, i also agree completelly each person works differently, of
> course! :-) (maybe that's why i got concerned about politeness on
> pasting code here, which i didn't know how fa
Noah, i also agree completelly each person works differently, of
course! :-) (maybe that's why i got concerned about politeness on
pasting code here, which i didn't know how far is it needed or not...)
- you may be from the academic world, and i'm hobbyst, academically
from graphic design area (an
hi again
Paulo Silva schrieb:
Dr0id, thanks! your code resulted as i wanted, but...
::> This 'a = []*8 ' does not what you expect. See documentation.
which documentation? where?
::> a = [0x883746, 0xA88721, 0xBDE87A, 0xEE875F, 0xFE98A1, 0x334836,
0x374838, 0xAAB398]
Is it the only way f
Paulo Silva wrote:
Stop right now? oh please, just now when i were getting so happy on
trying to learn it? what a stimulation from the open-source world...
:-((
(i really wanted only to focus in the solutions of doubts like mine one...)
If Python doesn't match the way you work, I doubt you
Stop right now? oh please, just now when i were getting so happy on
trying to learn it? what a stimulation from the open-source world...
:-((
(i really wanted only to focus in the solutions of doubts like mine one...)
-
> Stop using Python right now. The whole idea of the language
Paulo Silva wrote:
thanks Noah!
::> There, isn't that easier to read?
it's easier to read on small codes like this, but when the code gets
larger, surelly you need to use the scrollbar like working out in a
gym...
for me is very important being able to see around 5 'def' contents on
the screen
Paulo Silva wrote:
Dr0id, thanks! your code resulted as i wanted, but...
::> This 'a = []*8 ' does not what you expect. See documentation.
which documentation? where?
::> a = [0x883746, 0xA88721, 0xBDE87A, 0xEE875F, 0xFE98A1, 0x334836,
0x374838, 0xAAB398]
Is it the only way for defining nu
thanks Noah!
::> There, isn't that easier to read?
it's easier to read on small codes like this, but when the code gets
larger, surelly you need to use the scrollbar like working out in a
gym...
for me is very important being able to see around 5 'def' contents on
the screen without having to sc
Dr0id, thanks! your code resulted as i wanted, but...
::> This 'a = []*8 ' does not what you expect. See documentation.
which documentation? where?
::> a = [0x883746, 0xA88721, 0xBDE87A, 0xEE875F, 0xFE98A1, 0x334836,
0x374838, 0xAAB398]
Is it the only way for defining numeral (float and inte
running python as direct mode also provides me the same error?
Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a=[]*8
>>> a[0]=0xFF
Traceback (most recent call last):
Fil
Paulo Silva wrote:
thanks, but i found nothing there... :-(
Annotated and style cleaned up. General note: Never put multiple
statements on one line. Just pretend that ; doesn't exist.
import random
import pygame
pygame.init()
# a=[]*8 #- same as 'dim a[8]' from sdlBasic?
# No, this wil
hi
here:
http://www.diveintopython.org/native_data_types/lists.html
in Section:
Example 3.14. List Operators
read carefully ;-)
~DR0ID
Paulo Silva schrieb:
thanks, but i found nothing there... :-(
On Mon, Jul 28, 2008 at 11:56 AM, Noah Kantrowitz <[EMAIL PROTECTED]
Hi
First of all, why do you write that many instruction on one line??
This looks much nicer (ok, it gets a bit longer, but clearer to read):
import pygame,random
pygame.init()
a=[]*8 #- same as 'dim a[8]' from sdlBasic?
a[0]=0x883746
a[1]=0xA88721
a[2]=0xBDE87A
a[3]=0xEE875F #- list assignme
thanks, but i found nothing there... :-(
On Mon, Jul 28, 2008 at 11:56 AM, Noah Kantrowitz <[EMAIL PROTECTED]> wrote:
> Paulo Silva wrote:
>>
>> Hi, i'm having problems on defining a hexcolour array - weird is i
>> never have this kind of problem when defining a string array in t
Paulo Silva wrote:
Hi, i'm having problems on defining a hexcolour array - weird is i
never have this kind of problem when defining a string array in the
same way...
This may look as a very naive mistake, but i got really stuck, since
even from google searches i can't get any help...
Thanks a lot
Hi, i'm having problems on defining a hexcolour array - weird is i
never have this kind of problem when defining a string array in the
same way...
This may look as a very naive mistake, but i got really stuck, since
even from google searches i can't get any help...
Thanks a lot in advance... :-)
i
23 matches
Mail list logo