[New-bugs-announce] [issue38647] Why only the MacOSXOSAScript in webbrowser does not have the name property?

Yoshihiro Nagano report at bugs.python.org
Wed Oct 30 13:32:47 EDT 2019


New submission from Yoshihiro Nagano <y.nagano.92 at gmail.com>:

Hello.

I am using the webbrowser library in macOS and just found that only the MacOSXOSAScript object has `_name` property instead of `name.`
All of the other class, which is inherited from the BaseBrowser, has `name` property.
Are there any specific reasons for this API?
Or, are there any ways to access the name of the browser object independent from the browser type?

The corresponding implementation is shown below:
https://github.com/python/cpython/blob/4cb08b6c0ae6989d169dd48c2b24087941f6d0b0/Lib/webbrowser.py#L641-L643

Thank you.

----------
components: Library (Lib), macOS
messages: 355725
nosy: Yoshihiro Nagano, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Why only the MacOSXOSAScript in webbrowser does not have the name property?
type: behavior
versions: Python 2.7, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38647>
_______________________________________


More information about the New-bugs-announce mailing list