[issue28242] os.environ.get documentation missing

2016-09-21 Thread Ned Deily
Ned Deily added the comment: The difference is that os.environ is a reference to a mapping object, essentially a dict, that has all of the process environment variables. By using the get('x') method on that object, you ask the object to find and return the value corresponding to key 'x' or to

[issue28242] os.environ.get documentation missing

2016-09-21 Thread Dennis Jensen
Changes by Dennis Jensen : -- status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue28242] os.environ.get documentation missing

2016-09-21 Thread Dennis Jensen
Dennis Jensen added the comment: Okay well thanks for that information but after investigating this then I have to ask what is the difference between: os.environ.get() and os.getenv() As these 2 functions now appear to do exactly the same thing? If this is the case then should there not be

[issue28242] os.environ.get documentation missing

2016-09-21 Thread Ned Deily
Ned Deily added the comment: os.environ is documented as being a "mapping" object. The "get" method is a standard method for all mapping objects; it's not unique to os.environ. Thus, there is no need to specially call out "get" or any of the other "mapping" methods and operations available w

[issue28242] os.environ.get documentation missing

2016-09-21 Thread Dennis Jensen
New submission from Dennis Jensen: I was encountering what seemed to be odd behavior from os.environ.get() from what I could find out about it and so I tried to locate the actual documentation on how it is supposed to be used now. However, all I can find is a minor reference to os.environ. T