Dear Kay,

Plus there is one Python-3-only feature that is a really big help for any large and complex project: Type annotations lets you specify is a simple way the type of function parameters, both for documentation and so that your IDE can flag cases where you misuse the parameters.

But of course it does not help if yuo depend on code that is only available in Python 2.

Yours,

Rasmus

On 07/06/18 11:43, Marcin Wojdyr wrote:
On 7 June 2018 at 05:29, graeme.win...@diamond.ac.uk
<graeme.win...@diamond.ac.uk> wrote:
Dear Kay,

Yes, it’s writing code to be compatible with Python2 and Python3 - in real life 
they are largely idiomatically similar, with well documented differences e.g.

In other words, it's learning both Python2 and Python3 and using the
subset of the language that works with both interpreters.
It's an extra burden and if one is learning Python choosing any of the
two versions will make it easier.

########################################################################

To unsubscribe from the CCP4BB list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCP4BB&A=1




--
Rasmus H. Fogh                                   Tel.: +44 (0)1223 353033
Global Phasing Ltd.,                             Fax.: +44 (0)1223 366889
Sheraton House,
Castle Park,
Cambridge CB3 0AX
United Kingdom

########################################################################

To unsubscribe from the CCP4BB list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCP4BB&A=1

Reply via email to