[issue7850] platform.system() should be "macosx" instead of "Darwin" on OSX

2019-02-11 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This issue can be closed. Status quo wins due to backward compatibility 
concerns.

BTW. The primary reason for proposing "macosx" as the return value for 
platform.system() is that the platform name as used in egg files (at the time, 
now wheels) is "macosx". That, and having two clearly different platforms with 
the same name (macOS and iOS).

And one final note: I definitely wouldn't mind having an API in platform that 
returns the marketing name and version of the current system (like mac_ver and 
linux_distribution).  But that API cannot be system_alias because its API 
contract does not give it access to enough information. Such an API could be 
designed in a new issue.

--
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7850] platform.system() should be "macosx" instead of "Darwin" on OSX

2019-02-11 Thread STINNER Victor


STINNER Victor  added the comment:

I suggest to close this issue.

@Ronald: Or do you think that something should still be done on macOS in the 
platform module?

This issue looks like a duplicate of bpo-35516. It has been decided that 
platform.system_alias() doesn't replace Darwin with macOS (it's now explained 
in a comment: see my commit 60875db2f67815d7d181c552bfac59e8c97619e3).

I modified platform.platform() to return "macOS" rather than "darwin" on macOS: 
"bpo-35344: platform.platform() uses mac_ver() on macOS (GH-10780)" (commit 
ea0ca218b0c28b2af2b1f6a5d3383569de7fc2c1).

--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7850] platform.system() should be "macosx" instead of "Darwin" on OSX

2019-02-11 Thread Jason R. Coombs


Jason R. Coombs  added the comment:

This issue now needs to consider that Mac OS X was renamed to macOS.

--
nosy: +jaraco

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7850] platform.system() should be "macosx" instead of "Darwin" on OSX

2016-01-30 Thread Nicholas Chammas

Nicholas Chammas added the comment:

As of Python 3.5.1 [0], it looks like

1) the `aliased` and `terse` parameters of `platform.platform()` are documented 
to take integers instead of booleans (contrary to what Marc-Andre requested), 
and 

2) calling `platform.platform()` with `aliased` set to 1 or True still returns 
"Darwin" on OS X.

Is this by design?

[0] https://docs.python.org/3.5/library/platform.html#platform.platform

--
nosy: +Nicholas Chammas

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7850] platform.system() should be macosx instead of Darwin on OSX

2014-05-05 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Caelyn: Thanks for the patch.

Some comments:

* Please use aliased=False instead of aliased=0 in the patch.
* It would be great if you could enhance the test a bit to actually check the 
return value. This would need a mock of the os.uname API for the test.
* Doc string if aliased is true should read If aliased is true

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7850
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7850] platform.system() should be macosx instead of Darwin on OSX

2014-05-05 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Removing 2.7 as target, since this is a new feature.

--
versions:  -Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7850
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7850] platform.system() should be macosx instead of Darwin on OSX

2014-05-04 Thread Christian Clauss

Christian Clauss added the comment:

assert sys.platform == platform.system().lower()

Should that always be True?  It is on Mac OS X but...

On iOS (Pythonista):
sys.platform == 'unknown'
platform.system() == 'Darwin'

https://docs.python.org/2/library/sys.html#sys.platform should be updated to 
provide the correct values for iOS and Android devices which now outnumber many 
of the other OSes listed.

--
nosy: +Christian.Clauss

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7850
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7850] platform.system() should be macosx instead of Darwin on OSX

2014-04-15 Thread Caelyn McAulay

Caelyn McAulay added the comment:

Added aliased option to platform.system(). I used the same system_alias method 
as platform.platform(), so the result of the aliased version will match the 
system entry of the aliased platform.platform(). 

Added to platform.system unit test to test new functionality. Updated 
Documentation.

I am not sure if there is anywhere else I need to update the documentation to 
add this, i.e. if it needs a whatsnews entry (and if so, a pointer to docs on 
how to add to a whatsnews entry would be appreciated).

--
keywords: +patch
nosy: +math_foo
Added file: http://bugs.python.org/file34891/aliased_system7850.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7850
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7850] platform.system() should be macosx instead of Darwin on OSX

2010-02-22 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

-1, my Ubuntu laptop says linux2 and not ubuntu. This would also be an 
incompatible change that would cause headaches with little benefit to balance 
it out.

--
nosy: +jackdied

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7850
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7850] platform.system() should be macosx instead of Darwin on OSX

2010-02-22 Thread Justin Cappos

Justin Cappos justincap...@gmail.com added the comment:

Perhaps the right way to fix the problem without breaking code would be to 
propose a new function for platform which would return a 'newbie readable' 
string of the system type?

--
nosy: +Justin.Cappos

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7850
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7850] platform.system() should be macosx instead of Darwin on OSX

2010-02-22 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

platform.system() is a direct interface to platform.uname() which in return is 
an interface to the platform's uname() API, so the reasoning is much the same 
as for sys.platform on those platforms that do expose a uname() function (and 
command).

On Mac OS X, uname returns Darwin.

What we can do, is add a new function parameter ''aliased'' (just like we have 
for platform.platform()) which then enables applying some aliasing to the 
returned uname() values.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7850
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7850] platform.system() should be macosx instead of Darwin on OSX

2010-02-03 Thread Ronald Oussoren

New submission from Ronald Oussoren ronaldousso...@mac.com:

The output of platform.system() should IMO be macosx on OSX to ensure that 
platform.platform() is consistent with distutils.util.get_platform().

The same is true for sys.platform, although it is unclear how much code that 
would break.

There are two reasons for wanting these changes. First of all the values tend 
to end up at locations where less sophistated users might see them unless we're 
careful (tests for 'sys.platform' in scripts, platform names in distributions, 
...) and 'darwin' is not obviously related to MacOSX unless you're already 
quite technical.   The other reason is slightly nit picking: Darwin is the 
name of the kernel and a stand-alone unix based on that, which MacOSX is the 
name of the entire system which includes much more beyond basic unix stuff.


BTW. I know why sys.platform is darwin on OSX, that doesn't mean I have to 
like it ;-)

--
components: Library (Lib)
messages: 98801
nosy: ronaldoussoren
severity: normal
status: open
title: platform.system() should be macosx instead of Darwin on OSX
type: behavior
versions: Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7850
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com