Re: [Python-Dev] Dinamically set __call__ method

2014-11-04 Thread Nathaniel Smith
On Tue, Nov 4, 2014 at 7:15 PM, Roberto Martínez wrote: > > > On Tue, Nov 4, 2014 at 8:06 PM, Skip Montanaro > wrote: >> >> >> On Tue, Nov 4, 2014 at 1:01 PM, Roberto Martínez >> wrote: >>> >>> The workaround of calling a different method inside __call__ is not valid >>> for my case because I wa

Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition

2014-12-10 Thread Nathaniel Smith
On 10 Dec 2014 17:16, "Ian Cordasco" wrote: > > On Wed, Dec 10, 2014 at 11:10 AM, Donald Stufft wrote: > > > > On Dec 10, 2014, at 11:59 AM, Bruno Cauet wrote: > > > > Hi all, > > Last year a survey was conducted on python 2 and 3 usage. > > Here is the 2014 edition, slightly updated (from 9 to

Re: Query

2007-10-09 Thread Nathaniel Smith
> I want to make a binary file , which would execute on it's own. First do $ which python to get the location of your python binary. The default, i think, is just /usr/bin/python. Then add this line to the top of your file: #!/usr/bin/python (or whatever the `which` command returned) th