python-tutorial
python-tutorial copied to clipboard
switch to python >=3.7 and use f-strings
Use github project feature to manage this project with kan-ban strategy
Hi @Akuli , could you describe what needs to be changed?
- f strings in
handy-stuff-strings.md
- add dataclasses to
advanced/datatypes.md
, consider removing named tuples - anything else I forgot?
is someone working on this already? I want to help!
Just do it then :) If multiple people do it, I will combine the changes.
I'm working on this if you have any updates please let me know.
Nice :)
Don't add dataclasses yet. I probably want to restructure things a bit before adding dataclasses. Basically, I think the basics/advanced splitting as it is now doesn't make much sense, and it would be better to have something like basics/intermediate where intermediate would contain things like list/dict/set comprehensions, dataclasses, inheritance, typing, and so on.
Intermediate section is indeed a good idea!
Do you want to replace the old method with f-Strings
or just add an extra f-Strings
section?
We don't need .format()
or %
formatting anymore, at least not in the basics section.
There's still %
formatting in these files:
advanced/functions.md
advanced/magicmethods.md
basics/answers.md
basics/defining-functions.md
basics/exceptions.md
basics/larger-program.md
basics/loops.md
basics/modules.md
sure, I'll replace them asap
This is done now. Thanks @tusharkhatriofficial for working on this!