Problem with python
Igor Korot
ikorot01 at gmail.com
Sat Sep 4 15:29:47 EDT 2021
Hi,
Will this syntax work in python 2?
Thank you.
On Sat, Sep 4, 2021 at 1:52 PM dn via Python-list
<python-list at python.org> wrote:
>
> On 05/09/2021 06.27, Igor Korot wrote:
> > Hi, ALL,
> >
> > [code]
> > igor at WaylandGnome ~/bakefile $ python
> > Python 3.9.6 (default, Aug 8 2021, 17:26:32)
> > [GCC 10.3.0] on linux
> > Type "help", "copyright", "credits" or "license" for more information.
> >>>> from distutils import sysconfig
> >>>> print sysconfig.get_python_inc()
> > File "<stdin>", line 1
> > print sysconfig.get_python_inc()
> > ^
> > SyntaxError: invalid syntax
> >>>>
> > [/code]
> >
> > What is the proper way to fix this?
>
> Remember that in Python3 print became a function:
>
> print( sysconfig.get_python_inc() )
>
> --
> Regards,
> =dn
> --
> https://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list