[Tutor] How do I learn python for web development

abdulhakim haliru abdulhakim.haliru at leproghrammeen.com
Sun Jul 31 22:22:30 CEST 2011


Hi guys,

I am really interested in switching from PHP to python but there don't appear to be a book for such.

Can anyone advice me please.

Abdulhakim.
Sent from my BlackBerry wireless device from MTN

-----Original Message-----
From: tutor-request at python.org
Sender: tutor-bounces+abdulhakim.haliru=leproghrammeen.com at python.org
Date: Sun, 31 Jul 2011 07:01:56 
To: <tutor at python.org>
Reply-To: tutor at python.org
Subject: Tutor Digest, Vol 89, Issue 92

Send Tutor mailing list submissions to
	tutor at python.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.python.org/mailman/listinfo/tutor
or, via email, send a message with subject or body 'help' to
	tutor-request at python.org

You can reach the person managing the list at
	tutor-owner at python.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tutor digest..."


Today's Topics:

   1. Re: How to make tkMessage function to have duration
      (Steven D'Aprano)
   2. Re: How to make tkMessage function to have duration (Emeka)
   3. newbie needs pypy setup tips (Tom Roche)
   4. Re: newbie needs pypy setup tips (eire1130 at gmail.com)
   5. Re: Mainloop conflict (Christopher King)
   6. Re: Mainloop conflict (Stefan Behnel)


----------------------------------------------------------------------

Message: 1
Date: Sat, 30 Jul 2011 21:25:27 +1000
From: Steven D'Aprano <steve at pearwood.info>
To: tutor at python.org
Subject: Re: [Tutor] How to make tkMessage function to have duration
Message-ID: <4E33EA27.50301 at pearwood.info>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Emeka wrote:
> Hello All,
> 
> Say I have the below(code), .... I would want the message to last say 30
> seconds and afterwards disappear. I won't want the user to be the one to
> enable it to disappear.
> 
> Basically, what I want is to be able to show the user some message , and
> after some seconds, the message goes away

I *hate* it when applications do that. Just as I'm trying to read the 
message, take a screen shot, or whatever, the message disappears. I 
think that's one of the worst things you can do in an application.

If the message isn't important enough to require it to stay visible 
until the user explicitly closes it, then it shouldn't go into a dialog 
in the first place.



-- 
Steven


------------------------------

Message: 2
Date: Sat, 30 Jul 2011 16:27:21 +0100
From: Emeka <emekamicro at gmail.com>
To: "Steven D'Aprano" <steve at pearwood.info>
Cc: tutor at python.org
Subject: Re: [Tutor] How to make tkMessage function to have duration
Message-ID:
	<CAOypoo49WRri7EWAoiU96OUs8rPwCincc=teLm4jxKOOa5j6OQ at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Steven,,


Thanks!


Emeka

On Sat, Jul 30, 2011 at 12:25 PM, Steven D'Aprano <steve at pearwood.info>wrote:

> Emeka wrote:
>
>> Hello All,
>>
>> Say I have the below(code), .... I would want the message to last say 30
>> seconds and afterwards disappear. I won't want the user to be the one to
>> enable it to disappear.
>>
>> Basically, what I want is to be able to show the user some message , and
>> after some seconds, the message goes away
>>
>
> I *hate* it when applications do that. Just as I'm trying to read the
> message, take a screen shot, or whatever, the message disappears. I think
> that's one of the worst things you can do in an application.
>
> If the message isn't important enough to require it to stay visible until
> the user explicitly closes it, then it shouldn't go into a dialog in the
> first place.
>
>
>
> --
> Steven
> ______________________________**_________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/**mailman/listinfo/tutor<http://mail.python.org/mailman/listinfo/tutor>
>



-- 
*Satajanus  Nig. Ltd


*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110730/c3697f06/attachment-0001.html>

------------------------------

Message: 3
Date: Sat, 30 Jul 2011 17:49:02 -0400
From: Tom Roche <Tom_Roche at pobox.com>
To: tutor at python.org,
Subject: [Tutor] newbie needs pypy setup tips
Message-ID: <877h6zfnht.fsf at pobox.com>
Content-Type: text/plain; charset=us-ascii


I need advice about configuring pypy to run other python code. Why I ask:

I'm running a model implemented in python. Unfortunately a run on "straight" python 2.6.x or 2.7.x requires

- 130 min on my ubuntu laptop (on which working would be more convenient)
- 55 min on a better build machine on which I currently have access

However I have read that this model runs 5x faster under pypy, so I wanna get me that, but I'm finding the pypy docs pretty inscrutable. Nevertheless, I have managed to do

me at it:~$ uname -rv
> 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:13:52 UTC 2011
me at it:~$ which pypy
> /usr/local/bin/pypy
me at it:~$ ls -al $(which pypy)
> lrwxrwxrwx 1 root root 37 2011-07-30 16:06 /usr/local/bin/pypy -> /opt/pypy-c-jit-1.5.0-alpha0/bin/pypy
me at it:~$ pypy --version
> Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34)
> [PyPy 1.5.0-alpha0 with GCC 4.4.3]

However, when I try to *really* run the @#$%^&! thing, it spews:

me at it:~$ pypy
> debug: WARNING: library path not found, using compiled-in sys.path and sys.prefix will be unset
> 'import site' failed
> Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34)
> [PyPy 1.5.0-alpha0 with GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> debug: OperationError:
> debug:  operror-type: ImportError
> debug:  operror-value: No module named _pypy_interact

What do I need to do to fix its library path?

TIA, Tom Roche <Tom_Roche at pobox.com>


------------------------------

Message: 4
Date: Sat, 30 Jul 2011 22:06:04 +0000
From: eire1130 at gmail.com
To: tutor at python.org,"Tom Roche" <Tom_Roche at pobox.com>
Subject: Re: [Tutor] newbie needs pypy setup tips
Message-ID:
	<836810990-1312063566-cardhu_decombobulator_blackberry.rim.net-18925951- at b1.c28.bise6.blackberry>
	
Content-Type: text/plain

I think, but not 100 percent, that pypy has a list. You might get better traction there if you don't get a good *nswer here.

Although I have a couple questions. Have you profiled in python to look for hotspots?

Have you tried writting portions in c?

What kind of model is it, out of curiousity.
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Tom Roche <Tom_Roche at pobox.com>
Sender: tutor-bounces+eire1130=gmail.com at python.org
Date: Sat, 30 Jul 2011 17:49:02 
To: <tutor at python.org>
Reply-To: tutor at python.org, Tom Roche <Tom_Roche at pobox.com>
Subject: [Tutor] newbie needs pypy setup tips


I need advice about configuring pypy to run other python code. Why I ask:

I'm running a model implemented in python. Unfortunately a run on "straight" python 2.6.x or 2.7.x requires

- 130 min on my ubuntu laptop (on which working would be more convenient)
- 55 min on a better build machine on which I currently have access

However I have read that this model runs 5x faster under pypy, so I wanna get me that, but I'm finding the pypy docs pretty inscrutable. Nevertheless, I have managed to do

me at it:~$ uname -rv
> 2.6.32-33-generic #70-Ubuntu SMP Thu Jul 7 21:13:52 UTC 2011
me at it:~$ which pypy
> /usr/local/bin/pypy
me at it:~$ ls -al $(which pypy)
> lrwxrwxrwx 1 root root 37 2011-07-30 16:06 /usr/local/bin/pypy -> /opt/pypy-c-jit-1.5.0-alpha0/bin/pypy
me at it:~$ pypy --version
> Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34)
> [PyPy 1.5.0-alpha0 with GCC 4.4.3]

However, when I try to *really* run the @#$%^&! thing, it spews:

me at it:~$ pypy
> debug: WARNING: library path not found, using compiled-in sys.path and sys.prefix will be unset
> 'import site' failed
> Python 2.7.1 (b590cf6de419, Apr 30 2011, 02:00:34)
> [PyPy 1.5.0-alpha0 with GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> debug: OperationError:
> debug:  operror-type: ImportError
> debug:  operror-value: No module named _pypy_interact

What do I need to do to fix its library path?

TIA, Tom Roche <Tom_Roche at pobox.com>
_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

------------------------------

Message: 5
Date: Sat, 30 Jul 2011 22:30:34 -0400
From: Christopher King <g.nius.ck at gmail.com>
To: python mail list <tutor at python.org>
Subject: Re: [Tutor] Mainloop conflict
Message-ID:
	<CAKBg9Z2eQmoYeBXxUhieCnCmnRWRiHwrEbJ=KBNWRN28T_5r+A at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I think I'll go with threading. I've become more familiar with it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110730/9b42e528/attachment-0001.html>

------------------------------

Message: 6
Date: Sun, 31 Jul 2011 07:01:41 +0200
From: Stefan Behnel <stefan_ml at behnel.de>
To: tutor at python.org
Subject: Re: [Tutor] Mainloop conflict
Message-ID: <j12njl$3rj$1 at dough.gmane.org>
Content-Type: text/plain; charset=UTF-8; format=flowed

Christopher King, 31.07.2011 04:30:
> I think I'll go with threading. I've become more familiar with it.

That's ok. When used carefully, threads can be pretty helpful to gain 
concurrency in I/O tasks.

But just in case you ever feel like using them for anything else, this is 
worth a read:

http://ptolemy.eecs.berkeley.edu/publications/papers/06/problemwithThreads/

Stefan



------------------------------

_______________________________________________
Tutor maillist  -  Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor


End of Tutor Digest, Vol 89, Issue 92
*************************************


More information about the Tutor mailing list