Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #47320

Re: Changing filenames from Greeklish => Greek (subprocess complain)

Date 2013-06-07 18:56 +1000
From Cameron Simpson <cs@zip.com.au>
Subject Re: Changing filenames from Greeklish => Greek (subprocess complain)
References <51B19587.8030801@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2846.1370595402.3114.python-list@python.org> (permalink)

Show all headers | View raw


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 comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Changing filenames from Greeklish => Greek (subprocess complain) Cameron Simpson <cs@zip.com.au> - 2013-06-07 18:56 +1000

csiph-web