Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5140
| From | Philipp Klaus Krause <pkk@spth.de> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Migration Python 2 auf 3 |
| Date | 2018-03-16 15:32 +0100 |
| Organization | solani.org |
| Message-ID | <p8gkh3$bn2$1@solani.org> (permalink) |
| References | <p8ggsi$96i$1@solani.org> <ef92513f-469b-723b-730c-baac911a313a@crazy-compilers.com> <mailman.108.1521208312.1867.python-de@python.org> |
Am 16.03.2018 um 14:44 schrieb Hartmut Goebel: > Am 16.03.2018 um 14:29 schrieb Philipp Klaus Krause: >> spawn = popen2.Popen4(cmd) >> spawn.wait() >> output = spawn.fromchild.readlines() > > Verwende einfach das Modul subprocess. Wie Du von popen2.Popen4 auf > subprocess umstellst sollte unter docs.python.org erklärt sein. https://docs.python.org/2/library/subprocess.html#subprocess-replacements hatte ich gesehen. aber für jemanden, der noch nie in Python programmiert hat, ist nicht klar, wie man das Beispiel dort (mit 3 Parametern, und 2 Rückgabewerten?) auf den Code in SDCC überträgt. Philipp
Back to de.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
Migration Python 2 auf 3 Philipp Klaus Krause <pkk@spth.de> - 2018-03-16 14:29 +0100
Re: [Python-de] Migration Python 2 auf 3 Christopher Arndt <chris@chrisarndt.de> - 2018-03-16 14:44 +0100
Re: [Python-de] Migration Python 2 auf 3 Hartmut Goebel <h.goebel@crazy-compilers.com> - 2018-03-16 14:44 +0100
Re: [Python-de] Migration Python 2 auf 3 Philipp Klaus Krause <pkk@spth.de> - 2018-03-16 15:32 +0100
Re: Migration Python 2 auf 3 Philipp Klaus Krause <pkk@spth.de> - 2018-03-16 15:35 +0100
Re: [Python-de] Migration Python 2 auf 3 Stefan Behnel <python-de@behnel.de> - 2018-03-16 15:46 +0100
Re: [Python-de] Migration Python 2 auf 3 Christopher Arndt <chris@chrisarndt.de> - 2018-03-16 15:50 +0100
Re: [Python-de] Migration Python 2 auf 3 Stefan Behnel <python-de@behnel.de> - 2018-03-16 17:05 +0100
csiph-web