• [^] # Re: Python3

    Posté par (site web personnel) . En réponse au journal Utiliser Python comme interpréteur dans vos Makefile. Évalué à 2.

    Je pense qu'il fait référence au fait qu'en Python 3, print n'est plus un mot clé du langage mais une fonction :

    # Python 2
    print "hello, world"
    # Python 3
    print("hello, world")

    Xavier Claude<, j'ai fait le test suivant, ça répond à ta question ?

    [killou@fantasmic tmp]$ cat Makefile
    SHELL = /usr/bin/env python3
    name=world
    all:
     @print("hello, $(name)")
    [killou@fantasmic tmp]$ make
    hello, world