Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #47320 > unrolled thread
| Started by | Cameron Simpson <cs@zip.com.au> |
|---|---|
| First post | 2013-06-07 18:56 +1000 |
| Last post | 2013-06-07 18:56 +1000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Changing filenames from Greeklish => Greek (subprocess complain) Cameron Simpson <cs@zip.com.au> - 2013-06-07 18:56 +1000
| From | Cameron Simpson <cs@zip.com.au> |
|---|---|
| Date | 2013-06-07 18:56 +1000 |
| Subject | Re: Changing filenames from Greeklish => Greek (subprocess complain) |
| Message-ID | <mailman.2846.1370595402.3114.python-list@python.org> |
On 07Jun2013 11:10, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= <nikos.gr33k@gmail.com> wrote:
| On 7/6/2013 10:42 πμ, Michael Weylandt wrote:
| >os.rename( filepath_bytes filepath.encode('utf-8')
| >Missing comma, which is, after all, just a matter of syntax so it can't matter, right?
|
| I doubted that os.rename arguments must be comma seperated.
Why?
Every other python function separates arguments with commas.
| 'mv source target' didn't require commas so i though it was safe to assume that os.rename did not either.
"mv" is shell syntax.
os.rename is Python syntax.
Two totally separate languages.
--
Cameron Simpson <cs@zip.com.au>
Cynic, n. A blackguard whose faulty vision sees things as they are, not as
they ought to be.
Ambrose Bierce (1842-1914), U.S. author. The Devil's Dictionary (1881-1906).
Back to top | Article view | comp.lang.python
csiph-web