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


Groups > comp.lang.python > #40235

In win32 and linux platform, os modules has diffreent output order, is it a bug?

Newsgroups comp.lang.python
Date 2013-03-01 00:43 -0800
Message-ID <270cf08f-aefd-436c-a3e6-4adf373d5356@googlegroups.com> (permalink)
Subject In win32 and linux platform, os modules has diffreent output order, is it a bug?
From Honghe Wu <leopardsaga@gmail.com>

Show all headers | View raw


env: python 2.7.3

6 test files' name in a directory as below:
12ab  Abc  Eab  a1bc  acd  bc

the following is test code:
for root, dirs, files in os.walk(os.getcwd()):
    print files

the output in win32 platform is:
['12ab', 'a1bc', 'Abc', 'acd', 'bc', 'Eab']

but in linux is:
['Eab', 'acd', 'a1bc', '12ab', 'bc', 'Abc' ]

they are so different. a bug?

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

In win32 and linux platform, os modules has diffreent output order, is it a bug? Honghe Wu <leopardsaga@gmail.com> - 2013-03-01 00:43 -0800
  Re: In win32 and linux platform, os modules has diffreent output order, is it a bug? Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-03-01 01:01 -0800
  Re: In win32 and linux platform, os modules has diffreent output order, is it a bug? Chris Rebert <clp2@rebertia.com> - 2013-03-01 00:55 -0800
  Re: In win32 and linux platform, os modules has diffreent output order, is it a bug? Honghe Wu <leopardsaga@gmail.com> - 2013-03-01 17:24 +0800
    Re: In win32 and linux platform, os modules has diffreent output order, is it a bug? Nobody <nobody@nowhere.com> - 2013-03-01 12:56 +0000

csiph-web