Hello. I have been trying to use PIL's .putdata() method and I have
been having some problems. The error I get is:
Traceback (most recent call last):
File "realautomata.py", line 72, in ?
nim.putdata(y)
File "C:\Python24\Lib\site-packages\PIL\Image.py", line 1120, in
putdata
self.im.pu
I thought people would be interested in this little script I wrote to
reproduce the 256 simple automata that is shown in the first chapters
of "A New Kind of Science". You can see a few results without running
the script, at http://cooper-j.blogspot.com . And here is the code (You
will need PIL (Py
Sorry about the code. It seems to have been truncated. I have it hosted
at
http://xahlee.org/x/realautomata.py
Thanks to Xah Lee.
--
http://mail.python.org/mailman/listinfo/python-list
blog-of-justin.blogspot.com
Sorry for the error.
--
http://mail.python.org/mailman/listinfo/python-list
I can't remember the proposal number, but many of you reading will have
probably read the features that will be added to python 2.5. The actual
part I wanted to talk about was the finally part of try. Isn't it
totally defeating a compiler's job by executing the finally part even
if there is an erro
arvind wrote:
> Hi all,
> I am going to work on Python 2.4.3 and MSSQL database server on
> Windows platform.
> But I don't know how to make the connectivity or rather which module to
> import.
> I searched for the modules in the Python library, but I couldn't find
> which module to go for.
> Ple
I have had what I think is quite a nice game idea, but I don't really
have the experience or knowledge to go about it. Would anyone be
willing to start a game project? The game I am thinking about is a
virtual IRC stock exchange. There will be a bot in the channel which
gets the live stock quotes a
How can I print html documents in Python on Windows?
--
http://mail.python.org/mailman/listinfo/python-list
Claudio Grondi wrote:
> defcon8 wrote:
> > How can I print html documents in Python on Windows?
> >
> ;-)
>
> 1. You start the Microsoft Internet Explorer and make some space on the
> Desktop for a Python shell window.
> 2. You start the Python shell and position it
Does a ghostscript interface for python exist? I have searched google
quite a bit and all I have been able to find are command line hacks
from within python. Thanks in advance for any useful help.
--
http://mail.python.org/mailman/listinfo/python-list
All of you are nazis!
--
http://mail.python.org/mailman/listinfo/python-list
Hello. I have recently been experimenting with cellular automata and I
would like to know how I could convert a 2d list of 0's and 1's into
white and black squares on an image. I have tried to install matplotlib
and also NumTut but both to no avail. There seem to be bugs in their
installation and I
Thank you very much. That is highly simple, useful and it works.
--
http://mail.python.org/mailman/listinfo/python-list
It seemed to work with a 1d list but not with 2d.
--
http://mail.python.org/mailman/listinfo/python-list
import Image
x = []
buff = []
buff = [[0 for y in range(41)] for x in range(21)]
buff[0][(len(buff)-1)/2] = 1
def rule1():
for i in range(len(buff)-1):
for j in range(len(buff[0])-1):
if i == len(buff)-1:
break
elif j == 0:
if buf
Sorry this is the latest, the previous didn't work so well:
import Image
x = []
buff = []
buff = [[0 for y in range(41)] for x in range(21)]
buff[0][(len(buff[0])-1)/2] = 1
def rule1():
for i in range(len(buff)-1):
for j in range(len(buff[0])-1):
if i == len(buff)-1:
Actually never mind either. I guessed I needed to append all values
after eachother in one row list:
x = []
for y in buff:
for z in y:
x.append(z)
thanks for the help
--
http://mail.python.org/mailman/listinfo/python-list
Have you checked the persmissions to the folder? You can look from the
properties of the folder to see.
--
http://mail.python.org/mailman/listinfo/python-list
How do I get all the URL's in a page?
--
http://mail.python.org/mailman/listinfo/python-list
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
1. Does it matter?
2. Is it affecting your productivity.
3. Are you not trying to programme?
4. It is open source, change it and stop whining.
--
http://mail.python.org/mailman/listinfo/python-list
21 matches
Mail list logo