Deprecated Python Functions

I have a Django application written in Python 2.5, and I plan to update it for compatibility with Python 2.6. It contains hundreds of .py files. Is there an easy way to find all the obsolete functions in these files?

+3
source share
5 answers

I'm not sure what you mean by "deprecated features" when upgrading from Python 2.5 to Python 2.6.

Release notes are very specific. http://docs.python.org/whatsnew/2.6.html

No outdated features. Several integer modules are deprecated and one attribute of the Exception class.

You have GREP (or FIND) and you have PYTHON, which you can use to search 100 Python source files.

2.5 2.6, .

" ".

, . . (, md5.) , GREP md5 .

+5

Python (, 2.5 2.6) , , . , -W.

point release, . Python 2.x 3.0, , -, , Python 3.0.

+5

, Python 2.5 2.6 . 2.6 , 3.0 2.6.

0

- 2.6 3.0. , :

http://blip.tv/file/1949281

:

  • ;
  • ,
  • -DOS;
  • .
0

, : " testuite, ". testuite, , ? , ( , "";)).

0

Source: https://habr.com/ru/post/1721565/


All Articles