Difference between revisions of "User:Alvonruff"

From ISFDB
Jump to navigation Jump to search
Line 6: Line 6:
  
 
* Python3 does not tolerate mixed tabs and spaces. Convert tabs in all files to 8 spaces.
 
* Python3 does not tolerate mixed tabs and spaces. Convert tabs in all files to 8 spaces.
* Use [[User:Alvonruff/Python2.7_Futurize]] to perform a mass conversion from python2.7 syntax to python3 syntax.
+
* Use [[User:Alvonruff/Python2.7_Futurize]] to perform a mass conversion from python2.7 syntax to python3 syntax. This allows for locating potential unicode issues. This produces a result suitable for python2.
 +
* Use 2to3 in a manner the same as futurize. This produces results suitable for python3.
 
* Use of md5 needs to be replaced with hashlib
 
* Use of md5 needs to be replaced with hashlib
 
* The next two items need to be done together, as there is no mysql-connector-python for python2:
 
* The next two items need to be done together, as there is no mysql-connector-python for python2:

Revision as of 08:53, 24 April 2023

Founder of the ISFDB.

Python3 Notes

General outline of steps to move to Python3:

  • Python3 does not tolerate mixed tabs and spaces. Convert tabs in all files to 8 spaces.
  • Use User:Alvonruff/Python2.7_Futurize to perform a mass conversion from python2.7 syntax to python3 syntax. This allows for locating potential unicode issues. This produces a result suitable for python2.
  • Use 2to3 in a manner the same as futurize. This produces results suitable for python3.
  • Use of md5 needs to be replaced with hashlib
  • The next two items need to be done together, as there is no mysql-connector-python for python2:
    • Update to the official MySQL User:Alvonruff/mysql.connector. There is no python3 support for MySQLdb, which is our current connector. Moving to a new connector is a prerequisite.
    • Update to python3. This leverages the futurize work, by removing the "from __future__" lines.
  • Update all character sets. Final procedure still TBD.
    • Change the default charset in MySQL
    • Repair strings which have URL encodings in MySQL

System Upgrade Notes

Details on how to bring up a LAMP stack (on two different OSs), and how to setup https:

User:Alvonruff/Test Page

Other Loose Notes

Obituary Sources

Reading List