yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #44253
[Bug 1532086] [NEW] Use print('value') instead of print 'value' in python3
Public bug reported:
Do not use print 'some string' in python3, python3 will complain.
Use print('some string') instead, because that will work on both python2 n python3.
It will help in adding support for python3.
Example:-
File : nova/tools/xenserver/stress_test.py
Line : 166
print "%s, finished in %.2f secs" % (result, duration)
** Affects: nova
Importance: Undecided
Status: New
** Affects: sahara
Importance: Undecided
Status: New
** Description changed:
Do not use print 'some string' in python3, python3 will complain.
Use print('some string') instead, because that will work on both python2 n python3.
It will help in adding support for python3.
- Eg.
+ Example:-
File : nova/tools/xenserver/stress_test.py
Line : 166
- print "%s, finished in %.2f secs" % (result, duration)
+ print "%s, finished in %.2f secs" % (result, duration)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1532086
Title:
Use print('value') instead of print 'value' in python3
Status in OpenStack Compute (nova):
New
Status in Sahara:
New
Bug description:
Do not use print 'some string' in python3, python3 will complain.
Use print('some string') instead, because that will work on both python2 n python3.
It will help in adding support for python3.
Example:-
File : nova/tools/xenserver/stress_test.py
Line : 166
print "%s, finished in %.2f secs" % (result, duration)
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1532086/+subscriptions
Follow ups
-
[Bug 1532086] Re: Use print('value') instead of print 'value' in python3
From: Anusha, 2016-02-19
-
[Bug 1532086] Re: Use print('value') instead of print 'value' in python3
From: Kirill Zaitsev, 2016-01-26
-
[Bug 1532086] Re: Use print('value') instead of print 'value' in python3
From: Travis McPeak, 2016-01-25
-
[Bug 1532086] Re: Use print('value') instead of print 'value' in python3
From: Gábor Antal, 2016-01-25
-
[Bug 1532086] Re: Use print('value') instead of print 'value' in python3
From: Sergey Reshetnyak, 2016-01-09
-
[Bug 1532086] Re: Use print('value') instead of print 'value' in python3
From: Zhihai Song, 2016-01-08
-
[Bug 1532086] Re: Use print('value') instead of print 'value' in python3
From: sandeep nandal, 2016-01-08
-
[Bug 1532086] Re: Use print('value') instead of print 'value' in python3
From: sandeep nandal, 2016-01-08
-
[Bug 1532086] Re: Use print('value') instead of print 'value' in python3
From: sandeep nandal, 2016-01-08
-
[Bug 1532086] Re: Use print('value') instead of print 'value' in python3
From: sandeep nandal, 2016-01-08