Stéphane Wirtel added the comment:

Yury,

An other point, as you proposed, I will check the version of Python in 
an unit test.

But is there a good practice?
Here is my way to check that:

Example from my patch for the issue with inspect.getfullargspec()

+        getfullargspec = getattr(inspect, 'getfullargspec', None)
+        if getfullargspec and sys.version_info >= (3, 7):
+            self.fail("inspect.getfullargspec() is deprecated since 
3.5, "
+                      "you must to remove it in 3.7")

Are you agree with that, or there is a good way for this kind of 
improvement?

Thank you so much,

Stephane

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12916>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to