Re: [Tutor] Responding Tweet: A Twitter Bot

2014-02-21 Thread Walter Prins
Hi, On 21 February 2014 03:52, Zaki Akhmad wrote: > On Thu, Feb 20, 2014 at 7:39 PM, James Scholes wrote: > >> Most decent Python libraries for accessing Twitter support the streaming >> API. This lets you keep a connection to the Twitter API alive and >> process new data as it is received. Th

[Tutor] from command prompt use interactive python and running script together

2014-02-21 Thread Gabriele Brambilla
Hi, Is possible on python to running scripts from the command prompt (I'm using python on windows) and in the end saving all the variables and continue the analysis in the interactive mode? (the one that you activate typing python in the command prompt?) Or to use python in the interactive mode an

Re: [Tutor] from command prompt use interactive python and running script together

2014-02-21 Thread David Palao
2014-02-21 15:20 GMT+01:00 Gabriele Brambilla : > Hi, > > Is possible on python to running scripts from the command prompt (I'm using > python on windows) and in the end saving all the variables and continue the > analysis in the interactive mode? (the one that you activate typing python > in the c

Re: [Tutor] from command prompt use interactive python and running script together

2014-02-21 Thread Chris “Kwpolska” Warrick
On Fri, Feb 21, 2014 at 3:20 PM, Gabriele Brambilla wrote: > Hi, > > Is possible on python to running scripts from the command prompt (I'm using > python on windows) and in the end saving all the variables and continue the > analysis in the interactive mode? (the one that you activate typing pytho

Re: [Tutor] from command prompt use interactive python and running script together

2014-02-21 Thread eryksun
On Fri, Feb 21, 2014 at 9:20 AM, Gabriele Brambilla wrote: > > Is possible on python to running scripts from the command prompt (I'm using > python on windows) and in the end saving all the variables and continue the > analysis in the interactive mode? (the one that you activate typing python > in

Re: [Tutor] Regarding Exceptions

2014-02-21 Thread wesley chun
On Mon, Feb 17, 2014 at 3:29 AM, Khalid Al-Ghamdi wrote: Hi, in the following snippet, why is it I don't need to create an Exception object and I can use the class directly in raise my custom exception? here's a new one... i'm going to try to answer this question without working code since everyo

Re: [Tutor] Regarding Exceptions

2014-02-21 Thread eryksun
On Fri, Feb 21, 2014 at 12:48 PM, wesley chun wrote: > in reality, built-ins are part of a magical module called __builtins__ > that's "automagically" imported for you so that you never have to do it > yourself. check this out: > __builtins__.Exception > > > you can also find out what all th

Re: [Tutor] from command prompt use interactive python and running script together

2014-02-21 Thread Steven D'Aprano
On Fri, Feb 21, 2014 at 09:20:15AM -0500, Gabriele Brambilla wrote: > Hi, > > Is possible on python to running scripts from the command prompt (I'm using > python on windows) and in the end saving all the variables and continue the > analysis in the interactive mode? (the one that you activate typ

Re: [Tutor] Regarding Exceptions

2014-02-21 Thread Steven D'Aprano
On Fri, Feb 21, 2014 at 01:27:55PM -0500, eryksun wrote: > On Fri, Feb 21, 2014 at 12:48 PM, wesley chun wrote: > > in reality, built-ins are part of a magical module called __builtins__ > > that's "automagically" imported for you so that you never have to do it > > yourself. check this out: > > >

Re: [Tutor] Regarding Exceptions

2014-02-21 Thread eryksun
On Fri, Feb 21, 2014 at 8:50 PM, Steven D'Aprano wrote: > The history of __builtins__ with an S is quite old. It's used for > performance reasons, and originally it was supposed to be used for > sandboxing Python, but that turned out to not work. So although it still > exists even in Python 3, it'