[IPython-dev] Python 3 single codebase - merged
asmeurer at gmail.com
Tue Oct 29 20:36:07 EDT 2013
I guess a more reliable way (and faster to type) to check if you are
in Python 3 is to type "01". In Python 2 this gives octal 1, in Python
3, it is a syntax error.
On Tue, Oct 29, 2013 at 6:23 PM, Fernando Perez <fperez.net at gmail.com> wrote:
> Ah, never mind. I wrote 'print 1' and it worked, and I thought I had a 2
> kernel. In fact, it was autocall fixing it for me, which in the notebook
> happens silently.
> Yes, the kernel is py3, all is well.
> On Tue, Oct 29, 2013 at 5:20 PM, Thomas Kluyver <takowl at gmail.com> wrote:
>> On 29 October 2013 17:18, Fernando Perez <fperez.net at gmail.com> wrote:
>>> Ah, there's still the issue of that approach producing python2 kernels in
>>> a notebook... Need to look at that more closely, but I have to run now.
>> I though we used sys.executable for that. Odd.
>> IPython-dev mailing list
>> IPython-dev at scipy.org
> Fernando Perez (@fperez_org; http://fperez.org)
> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
> fernando.perez-at-berkeley: contact me here for any direct mail
> IPython-dev mailing list
> IPython-dev at scipy.org
More information about the IPython-dev