You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to ask for your help to clarify an inconsistency across one of the lessons in our Python sequence. A reader got in touch to let us know about a mistake the EN lesson working-with-text-files. He noticed that one of the code blocks (which gives the parameter w) is followed by a textual explanation of what the parameter is doing (referencing the parameter wb). This causes confusion and seems like an error.
As I reviewed this EN lesson alongside the ES, PT and FR translations, I find that we have a mix of approaches!
Which Python parameter is required, w or wb?
Let me know if you have time to help? With your advice, I am happy to implement the changes needed.
Thank you,
Anisa
--
EN working-with-text-files f = open('helloworld.txt','w') "The wb parameter says that you intend to write content to this new file using Python"
FR travailler-avec-des-fichiers-texte f = open('helloworld.txt','w') "Le paramètre wb spécifie que le fichier ouvert est destiné à l’écriture (write) de contenus par Python"
ES trabajar-con-archivos-de-texto f = open ('holamundo.txt','w') "El parámetro w indica que pretendemos escribir contenido en este nuevo archivo utilizando Python"
PT trabalhando-ficheiros-texto-python f = open('olamundo.txt','wb') "O parâmetro wb diz que você pretende gravar conteúdo neste novo ficheiro usando Python"
The text was updated successfully, but these errors were encountered:
This also relates to a previous Issue, in which we updated the command = response.read() to = response.read().decode('UTF-8').
In the case of one of the other FR lessons, we discussed and decided in collaboration with @ericbrasiln that we would make an adjustment from wb to w. But I'm not sure what is best in this case?
anisa-hawes
changed the title
Clarify which Python command is required, w or wb?
Clarify which Python parameter is required, w or wb?
Dec 17, 2021
Hello there @jairomelo,
I'd like to ask for your help to clarify an inconsistency across one of the lessons in our Python sequence. A reader got in touch to let us know about a mistake the EN lesson working-with-text-files. He noticed that one of the code blocks (which gives the parameter
w
) is followed by a textual explanation of what the parameter is doing (referencing the parameterwb
). This causes confusion and seems like an error.As I reviewed this EN lesson alongside the ES, PT and FR translations, I find that we have a mix of approaches!
Which Python parameter is required,
w
orwb
?Let me know if you have time to help? With your advice, I am happy to implement the changes needed.
Thank you,
Anisa
--
EN working-with-text-files
f = open('helloworld.txt','w')
"Thewb
parameter says that you intend to write content to this new file using Python"FR travailler-avec-des-fichiers-texte
f = open('helloworld.txt','w')
"Le paramètrewb
spécifie que le fichier ouvert est destiné à l’écriture (write) de contenus par Python"ES trabajar-con-archivos-de-texto
f = open ('holamundo.txt','w')
"El parámetrow
indica que pretendemos escribir contenido en este nuevo archivo utilizando Python"PT trabalhando-ficheiros-texto-python
f = open('olamundo.txt','wb')
"O parâmetrowb
diz que você pretende gravar conteúdo neste novo ficheiro usando Python"The text was updated successfully, but these errors were encountered: