Import sys, codecs not required? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Import sys, codecs not required?

Recently, I have noticed codes using codecs have not been importing sys, codecs and other bits and pieces of script, yet are still functional. What has changed? Is this part of Python 3.8 or something else. Example attached https://code.sololearn.com/c7X2WAze8PwZ/?ref=app

8th Nov 2019, 8:00 AM
Rik Wittkopp
Rik Wittkopp - avatar
6 Answers
+ 2
Because of Linux support may be! SL mobile switched it server to Linux recently, previously it was running on Windows, although SL website is still running on Windows server and Python 3.7 https://code.sololearn.com/cNYrJgKiu93y/?ref=app https://code.sololearn.com/c5XcL497pu4C/?ref=app
23rd Nov 2019, 5:56 AM
OR!ON 🛡️
OR!ON 🛡️ - avatar
+ 5
Rik, you are right, something might have changed. I tried a code file that created an error few weeks ago. It does run properly now without using codecs.
8th Nov 2019, 12:05 PM
Lothar
Lothar - avatar
+ 2
23rd Nov 2019, 6:35 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
OR!ON 🛡️ Great codes you have attached. 👍
23rd Nov 2019, 7:54 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
@Black Jesus check the code -> Platform Information 🙂👆
23rd Nov 2019, 4:52 PM
OR!ON 🛡️
OR!ON 🛡️ - avatar
+ 1
Lothar Hi. I have tried a few google enquiries but have not found anything which makes sense. Hoping someone might know
8th Nov 2019, 9:20 PM
Rik Wittkopp
Rik Wittkopp - avatar