Re: I'm happy with Python 2.5

2011-02-27 Thread Bill Allen
On Sun, Feb 27, 2011 at 07:34, n00m  wrote:

> Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
> (Intel)] on win32
>
> and Idon't move neither up nor down from it (the best & the fastest
> version)
> -- 


Trolls should also be happy...
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PyPad 2.7.1 (Update 2)

2011-05-14 Thread Bill Allen
Jon,

Looks very promising.  Seems to be an issue with interactive mode.  The
following code behaves as thus:

testvar=raw_input("enter value: ")
print testvar


When run, the prompt from raw_input does print to the output screen as:
enter value:


But when you tap in the lower window to enter the value for the input, the
app closes unexpected.  When I reopen it, what I was working on is still
present.

However, if I tap into the lower window and do this one line at a time from
the interactive prompt >>>, the above code works ok.

A problem?   Or am I missing something?

Anyway, I love this little Python app.   Been wanting something like this
for a long time.  I installed this on my iPhone running iOS 4.3.3 (8J2).

Congrats on a great app!

Bill Allen







<http://www.python.org>
<http://www.catb.org/%7Eesr/faqs/hacker-howto.html><http://taarc.rebelwolf.com>



On Thu, May 12, 2011 at 02:06, Jon D  wrote:

> Hi All,
>
> PyPad 2.7.1 Update 2 is now available on the AppStore. This is mainly
> a bug fix release addressing a number of issues with the interactive
> mode, but does also add some colour highlighting of output.
>
> PyPad is a port of the standard python code base to the iPad. It
> includes most of the standard python modules and can be used for
> testing small scripts or interactively for simple computation.
>
> Regards,
>
> Jon
> --
> http://mail.python.org/mailman/listinfo/python-announce-list
>
>Support the Python Software Foundation:
>http://www.python.org/psf/donations/
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Abandoning Python

2011-05-21 Thread Bill Allen
You have ideas, a text editor, and a computer - best get to coding.   What's
stopping you?  You largely want Python, with modifications.   Join the
development team and help implement those changes, or fork your own flavor
and do what you wish.   Right?  You imagine it's an easy task, so get after
it.   Also, quit saying "give me".   I realize that was a troll post, but I
hear people say so many things like this about lots of things.   Sick of
it.  Shut up and do something constructive instead.   Contribute with
effort, rather than a lot of "wishlist" and "give me" talk.




On Sat, May 21, 2011 at 10:49, John J Lee  wrote:

> 
>
> I still like Python after using it for over a decade, but there are
> things I don't like.
>
> What are your favourite up-and-coming languages of the moment?
>
> Here's my wishlist (not really in any order):
>
>  * A widely used standard for (optional) interface declaration -- or
>   something better.  I want it to be easier to know what interface an
>   object has when reading code, and which objects provide that
>   interface.
>  * Lower memory usage and faster execution speed.  Yes, this has been a
>   price worth paying.  But I do want jam on it, please: give me a
>   language where I get most of Python's advantages but don't have to
>   pay it.
>  * Better support for writing correct programs in the form of better
>   support for things like non-imperative programming, DBC, etc. (with
>   the emphasis on "etc").
>  * Perhaps better built-in support for common tasks in common application
>   domains.  Concurrency, persistence, database queries come to mind.
>  * Better refactoring tools, better code analysis tools (lint, search,
>   etc.).
>  * An even larger user base, contributing more and better free and
>   commercial software.
>
> I'm prepared to compromise on the last one.  Obviously, it should do all
> that while preserving all the nice features of Python -- surely an easy
> task.
>
>
> John
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python's equivalent to Main calling program and subprograms

2010-12-01 Thread Bill Allen
Thanks for the explanation of "main".   Some tutorials mention it, some
don't.   I have written some not trial Python programs and have never had a
real need to use that convention, but at least I understand it now.

--Bill

On Wed, Dec 1, 2010 at 1:13 PM, Tim Harig  wrote:

> > On Wed, Dec 1, 2010 at 9:08 AM, m b  wrote:
> >>> > if __name__ == "__main__":
> >>> > main()
> >>
> >> What does this mean?
>
> It is a Python idiom and a good practice.  Strictly speaking it is
> unnecessary.  Python doesn't recognize any functional initialization
> vector other then the start of the file.  When Python loads a module,
> it executes anything it finds in the module scope (Anything not in the
> body of a class or function declaration).  Using a main function is just
> a convention.  You could just place all of your main level code in the
> module scope:
>
> def Subprogram1():
># code
> def Subprogram2():
># code
> def Subprogram3():
># code
>
> # main code
>
> or equivilantly, always execute main():
>
> def Subprogram1():
># code
> def Subprogram2():
># code
> def Subprogram3():
># code
> def main():
># main code
> main()
>
> Both are valid from Python's point of view.
>
> The 'if __name__ == "__main__":' idiom is used, because it allows the
> module to be loaded without running main().  This is useful if you wanted
> to use Subprogram2() from another program.  Even if you don't forsee using
> any of the subprograms (functions to Python), this can be useful when
> writing test code as you can import the program as a module to test its
> classes or functions separately.
>  --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python on wikipedia

2010-12-12 Thread Bill Allen
Yeah, I noticed that a while back too.   Kinda cool.

--Bill

On Sun, Dec 12, 2010 at 3:21 PM, DevPlayer  wrote:

> Snapshot in time, hey look at that; someone used Python as THE example
> of what a programming language is on Wikipedia.
> http://en.wikipedia.org/wiki/Programming_language
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Which is the best book to learn python

2011-02-14 Thread Bill Allen
Alan Gauld has written a very good online book called Learning to Program.
I would definitely recommend it.

http://www.alan-g.me.uk/l2p/index.htm



-Bill



On Mon, Jan 24, 2011 at 11:09, santosh hs  wrote:

> Hi All,
> i am beginner to python please tell me which is the best available
> reference for beginner to start from novice
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list