[issue37119] Equality on dict.values() are inconsistent between 2 and 3

2019-05-31 Thread
New submission from 林自均 : When I create 2 different dicts with the same literal, their dict.values() are equal in python2 but not equal in python3. Here is an example in python2: $ python2 Python 2.7.16 (default, Mar 4 2019, 09:02:22) [GCC 4.2.1 Compatible Apple LLVM 10.0.0

[issue37119] Equality on dict.values() are inconsistent between 2 and 3

2019-06-02 Thread
林自均 added the comment: Hi Karthikeyan and Serhiy, Thank you for the explanation. I'll check the references you gave me. -- ___ Python tracker <https://bugs.python.org/is

[issue34763] Python lacks 0x4E17

2019-06-03 Thread
林自均 added the comment: "丗" means "30" in Japanese. However, it is a variant Chinese character to "世", where "世" means "world" in Chinese. I'm not sure if this information makes any difference. -- nosy: +johnlinp ___

[issue22253] ConfigParser does not handle files without sections

2017-07-13 Thread
林自均 added the comment: Hi Pedro Lacerda, I think you should submit your patch as a GitHub pull request. Please correct me if I'm wrong. Thanks. -- nosy: +林自均 ___ Python tracker <http://bugs.python.org/is

[issue31528] Let ConfigParser parse systemd units

2017-09-20 Thread
New submission from 林自均: Although systemd units are inspired by .ini format, ConfigParser is unable to parse those files because: 1. Multiple assignments to the same option in systemd units are concatenated with white spaces. 2. Multiple sections with the same section name are merged. 3. An

[issue36639] Provide list.rindex()

2019-04-15 Thread
New submission from 林自均 : There are str.index() and str.rindex(), but there is only list.index() and no list.rindex(). It will be very handy if we provide it. -- components: Library (Lib) messages: 340312 nosy: johnlinp priority: normal severity: normal status: open title: Provide

[issue36639] Provide list.rindex()

2019-04-15 Thread
Change by 林自均 : -- keywords: +patch pull_requests: +12776 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36639> ___ ___ Python-

[issue36639] Provide list.rindex()

2019-04-16 Thread
林自均 added the comment: Hi @SilentGhost, Thank you for the feedback. The PR is only a WIP and a placeholder. Hi @xtreak, Thank you for searching that mailing list for me. However, after reading the thread, it seems that we didn't have any conclusion on whether we should add list.rindex

[issue36639] Provide list.rindex()

2019-04-17 Thread
林自均 added the comment: Hi @rhettinger , Thank you for the reply. May I ask what is the known, strong use cases for str.rindex()? -- ___ Python tracker <https://bugs.python.org/issue36

[issue36639] Provide list.rindex()

2019-04-23 Thread
林自均 added the comment: >From the discussion in >https://mail.python.org/pipermail/python-ideas/2019-April/056416.html, Guido >said: > Some use cases for rindex() on strings that I found in a large codebase here include searching a pathname for the final slash, a list of comma-sep

[issue36639] Provide list.rindex()

2019-04-24 Thread
林自均 added the comment: Hi @SilentGhost, Yes, sorry I didn't make it clear. I was just posting the discussion here for some reference, not claiming that this issue should be reopened. -- ___ Python tracker <https://bugs.python.org/is