<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Bonjour,<br><br></div>Quand j'exécute le code suivant (tiré du manuel section 7.2.1):<br></div>f = open('workfile', 'r')<br></div>f.read()<br><br></div>Celui-ci fonctionne sous l'interpréteur, mais pas quand le même code est mis dans un fichier.<br><br></div>Merci de proposer une solution (celle-ci sera employé par tout lecteur de la documentation) à ce problème.<br><br></div>Vincent.<br><br></div>--------------------------------------------------------------------------------------------------<br>Hello,<br></div><br></div>When I run this code<br></div>f = open('workfile', 'r')<br></div>f.read()<br></div><br></div>under python interpreter, it operate.<br></div>in a file, it doesn't work<br><br></div>Please, help to fix this bug which be useful for all readers of your docs.<br><br></div>Vincent.<br><div><div><div><div><div><div><div><div><br></div></div></div></div></div></div></div></div></div>