braces fixed '#{' and '#}'

2009-01-18 Thread v4vijayakumar
I saw some code where someone is really managed to import braces from
__future__. ;)

def test():
#{
print hello
#}
--
http://mail.python.org/mailman/listinfo/python-list


small issue with Idle

2008-08-08 Thread v4vijayakumar
When you press 'home' button cursor goes before  prompt. This is
little uncomfortable.

I am using Idle 1.2.2. (python 2.5.2.)
--
http://mail.python.org/mailman/listinfo/python-list


Re: More Datastore Examples Please

2008-08-07 Thread v4vijayakumar
On Aug 7, 11:38 am, Tim Roberts [EMAIL PROTECTED] wrote:
 v4vijayakumar [EMAIL PROTECTED] wrote:

 Google appengine datastore is not very clear, and I couldn't get much
 from API documents. It would be very helpful if there are some more
 detailed documents with examples.

 I would gently suggest that you are not trying hard enough.  I had never
 encountered the Google appengine datastore, but the first hit in Googling
 that phrase took me to the Google documentation, which seems to be quite
 thorough.

Google documentation is not clear for me. Documentation provided there
is not helping much with modeling entities. This requires some
practice, so I thought that If there were some ways to access this
APIs through Idle. This is not as simple as adding some directories to
PYTHONPATH. There are some more things to be done before working
directly on datastore through Idle. This is not documented, but
luckily got some help from the group, google-appengine.

 If you have never worked with a database before, then you might want to go
 find a good book on databases first.

No. That won't help, because this datastore is not a relational
database, but Google's proprietary format called BigTable.

 What are you trying to DO with the datastore?

I am just experimenting with google-appengine, and building an
application on it.
--
http://mail.python.org/mailman/listinfo/python-list


More Datastore Examples Please

2008-08-05 Thread v4vijayakumar
Google appengine datastore is not very clear, and I couldn't get much
from API documents. It would be very helpful if there are some more
detailed documents with examples. Django provides very good
documentation, but I don't know how much it is compatible with google
appengine.

Google appengine examples are not using datastore extensively, so this
is also not helping much in modeling datastore.

wiki.py is using low level APIs, this looks simple but couldn't find
any documentation for this.

Web search is also not giving anything useful.

Can anyone please provide me some URLs where I can find some datastore
examples, articles, etc.

Thanks in advance.

--
posted the same on google-appengine group. cross posting here.
http://groups.google.com/group/google-appengine/browse_thread/thread/ae9ba26893c2854d
--
http://mail.python.org/mailman/listinfo/python-list


Re: python newbie: some surprises

2008-05-09 Thread v4vijayakumar
On May 9, 1:48 pm, Bruno Desthuilliers bruno.
[EMAIL PROTECTED] wrote:
 v4vijayakumar a écrit :

  When I started coding in python, these two things surprised me.

  1. my code is inconsistently indented with the combination of tabs and
  spaces. Even lines looked intended, but it is not.

 Then you have a problem with your code editor - not with Python.


Editors can not be wrong. :)

I think there should be some way to say python compiler, to consider
tab and two blank spaces equal, when tab space = 2.
--
http://mail.python.org/mailman/listinfo/python-list


python newbie: some surprises

2008-05-08 Thread v4vijayakumar
When I started coding in python, these two things surprised me.

1. my code is inconsistently indented with the combination of tabs and
spaces. Even lines looked intended, but it is not.

2. python requires to pass self to all instance methods

and I missed : often. :)
--
http://mail.python.org/mailman/listinfo/python-list


Game design : Making computer play

2008-04-14 Thread v4vijayakumar
In computer based, two player, board games, how to make computer play?
Are there any formal ways to _teach_ computer, to choose best possible
move?

I know this is kind of off-topic here. Please redirect me, if there
are more appropriate newsgroup.

Many thanks.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Game design : Making computer play

2008-04-14 Thread v4vijayakumar
On Apr 14, 12:35 pm, Richard Heathfield [EMAIL PROTECTED] wrote:
 v4vijayakumar said:
  In computer based, two player, board games, how to make computer play?

 Write some code that works out what the computer player should do. If you
 want a better answer, ask a better question.

I am just implementing a game played in my village (Tamilnadu /
India), called aadupuli (goats and tigers). There are only 23
positions and 18 characters (15 goats and 3 tigers). Some of you might
be aware of this.

I can post initial version of the game (implemented using html/
javascript) in couple of hours here.

Welcome any help in making computer to play one of these player.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Game design : Making computer play

2008-04-14 Thread v4vijayakumar
On Apr 14, 1:00 pm, v4vijayakumar [EMAIL PROTECTED]
wrote:
...
 I can post initial version of the game (implemented using html/
 javascript) in couple of hours here.

The game is here,

  http://v4vijayakumar.googlepages.com/goats-and-tigers.html
-- 
http://mail.python.org/mailman/listinfo/python-list