[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11107 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35717] enum.Enum error on sys._getframe(2)

2019-01-11 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi, PR https://github.com/python/cpython/pull/11521 should fix the issue. -- ___ Python tracker <https://bugs.python.org/issue35

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2019-01-14 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +catherinedevlin, tleonhardt ___ Python tracker <https://bugs.python.org/issue28657> ___ ___ Python-bugs-list mailing list Unsub

[issue28657] cmd.Cmd.get_help() implementation can't see do_*() methods added dynamically by setattr()

2019-01-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: CC-ing Catherine Devlin and Todd Leonhardt so we can close the issue by either accepting or refusing such feature. -- ___ Python tracker <https://bugs.python.org/issue28

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I couldn't find any use of _is_valid_netmask() in the code, why should this netmask be invalid? As far as I can tell this should be a valid one, is there a reason to refuse it? -- nosy: +remi.lapeyre ___ P

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Still 255.254.128.0 is a valid subnet. If I understand correctly, rfc1519 relate to how public ip addresses should be attributed. It does not cover what private subnets you use and you still can such submask (as long as you own the whole /16 for example

[issue27015] subprocess.CalledProcessError's repr changes based on kwargs, and doesn't unpickle

2019-01-16 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11260 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue27015> ___ ___ Py

[issue27015] subprocess.CalledProcessError's repr changes based on kwargs, and doesn't unpickle

2019-01-16 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch pull_requests: +11260, 11261 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue27015] subprocess.CalledProcessError's repr changes based on kwargs, and doesn't unpickle

2019-01-16 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch, patch pull_requests: +11260, 11261, 11262 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue27015] subprocess.CalledProcessError's repr changes based on kwargs, and doesn't unpickle

2019-01-16 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I tried to fix the issue, the attached PR solves the issue of saving the kwargs and unpickling the exception but I was not able to fix a regression I caused in test_memory_error_in_PyErr_PrintEx. -- versions: +Python 3.6, Python 3.7, Python 3.8

[issue17005] Add a topological sort algorithm

2019-01-17 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: As the name been already discussed ? I fear that topsort might only be clear to people already knowing what it does. topoligical_sort would be more discoverable and explicit and one can always do from functools import topological_sort as tsort if he

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-17 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11286 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35734> ___ ___ Py

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-17 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch pull_requests: +11286, 11287 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-17 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch, patch pull_requests: +11286, 11287, 11288 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35734] ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask like 255.254.128.0

2019-01-17 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I opened https://github.com/python/cpython/pull/11591 to remove _valid_mask_octets, _is_valid_netmask and _is_hostmask from ipaddress, the patch proposed in issue27860 has a larger scope so it's probably better to remove those unused methods in this

[issue35761] Allow dataclasses to be updated in place

2019-01-17 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue35761> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35734] Remove unused _BaseV4._is_valid_netmask in ipaddress

2019-01-17 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I changed the subject of this issue as the scope of issue27860 is larger. I will review them and open a new PR for them if appropriate once this one is accepted. -- title: ipaddress's _BaseV4._is_valid_netmask fails to detect invalid netmask

[issue35775] Add a general selection function to statistics

2019-01-18 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : Like discussed in #30999, the attached PR adds a general selection function to the statistics module. This allows to simply get the element at a given quantile of a collection. https://www.cs.rochester.edu/~gildea/csc282/slides/C09-median.pdf

[issue35775] Add a general selection function to statistics

2019-01-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11337 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35775> ___ ___ Py

[issue35775] Add a general selection function to statistics

2019-01-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +rhettinger, steven.daprano ___ Python tracker <https://bugs.python.org/issue35775> ___ ___ Python-bugs-list mailing list Unsub

[issue35775] Add a general selection function to statistics

2019-01-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch pull_requests: +11337, 11338 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue30999] statistics module: add "key" keyword argument to median, mode, ...

2019-01-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I suggest we closed this issue in favor of #35775 to discuss adding a selection function and the attached PR. -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue30

[issue20479] Efficiently support weight/frequency mappings in the statistics module

2019-01-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue20479> ___ ___ Python-bugs-list mailing list Unsub

[issue20479] Efficiently support weight/frequency mappings in the statistics module

2019-01-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Is this proposal still relevant? If so, I would like to work on its implementation. I think the third proposition to change the API to have a new `weights` parameter is the best has it does not blindly suppose that a tuple is a pair (value, weight) which

[issue20399] Comparison of memoryview

2019-01-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue20399> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35775] Add a general selection function to statistics

2019-01-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Wouldn't be the 5-th percentile be select(data, round(len(data)/20)? -- ___ Python tracker <https://bugs.python.org/is

[issue17005] Add a topological sort algorithm

2019-01-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > 2) Topological sorting usually is well-defined on totally connected graphs, > so I do not know what exactly it means to topologically sort two disjoint > graphs. This was one of the main drawbacks of the tuple-based approach, but I > think it m

[issue31456] SimpleCookie fails to parse any cookie if an entry has whitespace in the name

2019-01-28 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue31456> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31456] SimpleCookie fails to parse any cookie if an entry has whitespace in the name

2019-01-28 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: It may be relevant: Ruby accept whitespaces in the name of the morsel: ➜ ~ irb irb(main):002:0> require "cgi" => true irb(main):003:0> CGI::Cookie::parse "ASDF=stuff; ASDF space=more stuff" => {"ASDF&q

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I checked and io.TextIOBase is the only io.IOBase subclass to lack one of read, readinto or write: >>> import io, inspect >>> for name, obj in inspect.getmembers(io, predicate=inspect.isclass): ... missing = {'read', 'rea

[issue35848] readinto is not a method on io.TextIOBase

2019-01-29 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue35848> ___ ___ Python-bugs-list mailing list Unsub

[issue29999] repr() of ImportError misses keyword arguments name and path

2019-01-30 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I think the issue steems from the more general #27015 for which a PR is ready that fixes the repr not only for ImportError but all other BaseException subclasses that override __init__. -- keywords: +patch nosy: +remi.lapeyre pull_requests: +11554

[issue30670] pprint for dict in sorted order or insert order?

2019-02-01 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi josephsmeng, dict order preservation is now used in a lot of place in Python. I will post a patch to make pprint use insertion order in a few hours. -- nosy: +remi.lapeyre ___ Python tracker <ht

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-02-01 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch pull_requests: +11611, 11612 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-02-01 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch, patch pull_requests: +11611, 11612, 11613 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-02-01 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11611 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34886> ___ ___ Py

[issue34886] subprocess.run throws exception when input and stdin are passed as kwargs

2019-02-01 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I opened a PR with @josh.r proposed change. -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue34

[issue35887] Doc string for updating the frozen version of importlib in _bootstrap.py incorrect

2019-02-04 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I believe this is why Travis does a `make regen-all` to be sure everything is up to date. A patch to keep instructions up-to-date would be nice, newcomers are not familiar with all `make regen-*` commands. -- nosy: +remi.lapeyre

[issue18765] unittest needs a way to launch pdb.post_mortem or other debug hooks

2019-02-04 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi, this is the only reason I still use pytest, I would love to be able to use only unittest and the constant copy-paste is not a great solution and is not very user friendly. I would like to wotk on this issue. StackOverflow has many example on how to

[issue18765] unittest needs a way to launch pdb.post_mortem or other debug hooks

2019-02-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: @gregory.p.smith Do you think the debugHook should be added to the test case or the test runner? If we add it to the test case, how do you think the runner should tell the test case what flags have been given on the command line? I feel like adding a new

[issue35899] '_is_sunder' function in 'enum' module fails on empty string

2019-02-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @Maxpxt, I think your first solution is appropriate, do you want to open a new pull request with your solution and an appropriate test case? -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.

[issue35897] Support list as argument to .startswith()

2019-02-05 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > A programmer want to instruct the computer to do something, without having to > care about how it works. This is not true, as a programmer you need to choose carefully your data structures because they matter, for example there is a difference between

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2019-02-05 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue2> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35910] Curious problem with my choice of variables

2019-02-06 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @Phil Dream, you reuse i in your inner loop, in the for statement. By the way, I suggest you look at range() to replace your while loop: https://docs.python.org/3/library/functions.html#func-range. For your others questions, the mailing list are more

[issue30670] pprint for dict in sorted order or insert order?

2019-02-06 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11732 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue30670] pprint for dict in sorted order or insert order?

2019-02-06 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch pull_requests: +11732, 11733 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue30670] pprint for dict in sorted order or insert order?

2019-02-06 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch, patch pull_requests: +11732, 11733, 11734 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue30670] pprint for dict in sorted order or insert order?

2019-02-06 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I agree with Karthikeyan, I would expect sort=True to sort all collections, including tuples and lists for example. -- ___ Python tracker <https://bugs.python.org/issue30

[issue35922] robotparser crawl_delay and request_rate do not work with no matching entry

2019-02-06 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue35922> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4356] Add "key" argument to "bisect" module functions

2019-02-07 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- pull_requests: +11764, 11765 ___ Python tracker <https://bugs.python.org/issue4356> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4356] Add "key" argument to "bisect" module functions

2019-02-07 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- pull_requests: +11764 ___ Python tracker <https://bugs.python.org/issue4356> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4356] Add "key" argument to "bisect" module functions

2019-02-07 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- pull_requests: +11764, 11765, 11766 ___ Python tracker <https://bugs.python.org/issue4356> ___ ___ Python-bugs-list mailing list Unsub

[issue35932] Interpreter gets stuck while applying a compiled regex pattern

2019-02-07 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue35932> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35931] pdb: "debug print(" crashes with SyntaxError

2019-02-07 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue35931> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4356] Add "key" argument to "bisect" module functions

2019-02-07 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre versions: +Python 3.8 -Python 3.7 ___ Python tracker <https://bugs.python.org/issue4356> ___ ___ Python-bugs-list m

[issue12317] inspect.getabsfile() is not documented

2019-02-07 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @corona10, Antoine's message is from 2013 and inspect.getabsfile() is still not documented, I think it's safe to say he's not working on it. You can work on the issue and open a new PR on GitHub when you think it is ready for review :)

[issue35875] Crash by Pandas - algos.cp36-win_amd64.pyd join.cp36-win_amd64.pyd

2019-02-08 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Bangert, thanks for reporting the issue. we need more information to reproduce the bug. Can you post the requirement.txt file as a text file rather than a screenshot and the step to reproduce the crash starting from an empty project? Were you able to

[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue17164> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35922] robotparser crawl_delay and request_rate do not work with no matching entry

2019-02-08 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11796 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35922> ___ ___ Py

[issue35922] robotparser crawl_delay and request_rate do not work with no matching entry

2019-02-08 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Thanks for your report Joseph, I opened a new PR to fix this. -- nosy: +orsenthil ___ Python tracker <https://bugs.python.org/issue35

[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- pull_requests: +11797 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue17164> ___ ___ Python-bugs-list mai

[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- pull_requests: +11797, 11798 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue17164> ___ ___ Python-bugs-lis

[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- pull_requests: +11797, 11798, 11799 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue17164> ___ ___ Python-

[issue17164] MozillaCookieJar does not handle session cookies

2019-02-08 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Ramy, thanks for bumping the issue. The solution suggested by Piotr Dobrogost is backward compatible and I think it's the right thing to do. I opened a new PR thanks to the patch of Jérémie Detrey. -- versions: +Python 3.7, Python 3.8 -Pytho

[issue35946] Ambiguous documentation for assert_called_with()

2019-02-08 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11800 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35946> ___ ___ Py

[issue35946] Ambiguous documentation for assert_called_with()

2019-02-08 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch, patch pull_requests: +11800, 11801, 11802 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35946] Ambiguous documentation for assert_called_with()

2019-02-08 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch pull_requests: +11800, 11801 stage: -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35946] Ambiguous documentation for assert_called_with()

2019-02-08 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Mark Forrer, I opened a new PR to add this precision to assert_called_with documentation. -- nosy: +remi.lapeyre versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue35

[issue35912] _testembed.c fails to compile when using --with-cxx-main in the configure step

2019-02-09 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue35912> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35954] Incoherent type conversion in configparser

2019-02-10 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue35954> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21269] Provide args and kwargs attributes on mock call objects

2019-02-10 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: I like this patch, working with calls often feels weird and this change simplify attribute access. -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue21

[issue21269] Provide args and kwargs attributes on mock call objects

2019-02-10 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: @xtreak, couldn't we have made `_Call` inherit from namedtuple to achieve a similar result (albeit the handling of name would be weird)? -- ___ Python tracker <https://bugs.python.org/is

[issue35959] math.prod(range(10)) caues segfault

2019-02-10 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Could it be https://github.com/python/cpython/blob/master/Modules/mathmodule.c#L2565 When 0 is in the iterator, i_result get sets to 0 and then on the next iteration x/i_result is 0/0 which is undefined behavior? C99 6.5.5p5 - The result of the / operator is

[issue35918] multiprocessing's SyncManager.dict.has_key() method is broken

2019-02-11 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @giampaolo.rodola, I will post a PR for this issue. -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue35

[issue35918] multiprocessing's SyncManager.dict.has_key() method is broken

2019-02-11 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch pull_requests: +11841, 11842 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35918] multiprocessing's SyncManager.dict.has_key() method is broken

2019-02-11 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11841 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35918] multiprocessing's SyncManager.dict.has_key() method is broken

2019-02-11 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch, patch, patch pull_requests: +11841, 11842, 11843 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue35918] multiprocessing's SyncManager.dict.has_key() method is broken

2019-02-11 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: has_key method has been removed in Python3 so I think we can remove it from the DictProxy as well as nobody should be relying on it anymore. -- ___ Python tracker <https://bugs.python.org/issue35

[issue5996] abstract class instantiable when subclassing built-in types

2019-02-12 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue5996> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35989] ipaddress.IPv4Network allows prefix > 32

2019-02-13 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue35989> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15753] No-argument super in method with variable arguments raises SystemError

2019-02-13 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue15753> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35962] Slight error in words in [ 2.4.1. String and Bytes literals ]

2019-02-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi Magnien, if you have already used Git, everything should be familiar. You have to clone the whole project, but the documentation leaves in the `Doc` folder. There is a lot of information that you can get at https://devguide.python.org/documenting/ If you

[issue35962] Slight error in words in [ 2.4.1. String and Bytes literals ]

2019-02-14 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: You will find the line you want to change in `Doc/reference/lexical_analysis.rst` -- ___ Python tracker <https://bugs.python.org/issue35

[issue35954] Incoherent type conversion in configparser

2019-02-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +11943 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35954> ___ ___ Py

[issue35954] Incoherent type conversion in configparser

2019-02-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Btw: The name "read_dict" [1] as well as its docstring say exactly the > opposite of what it does. It acts as a "save_dict". Maybe that can be fixed > on the go ... The name `read_dict` is correct, it reads from the dict given a

[issue36023] Import configparser.ConfigParser repr

2019-02-18 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : This is the current repr of the configparser.ConfigParser instances: >>> import configparser >>> config = configparser.ConfigParser() >>> config['sec'] = {} >>> config I think this could be improved to read:

[issue36023] Improve configparser.ConfigParser repr

2019-02-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- title: Import configparser.ConfigParser repr -> Improve configparser.ConfigParser repr ___ Python tracker <https://bugs.python.org/issu

[issue36023] Improve configparser.ConfigParser repr

2019-02-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > Why only sections? ConfigParser contains a lot of other information. Indeed, the defaults might be useful too. Other things like options can be sessions specific and could clutter the repr if added. Would defaults() and sections() be the right behav

[issue4356] Add "key" argument to "bisect" module functions

2019-02-18 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi everybody, I opened PR 11781 to add a key argument to functions in the bisect module. I agree with @dmtr's points that this addition is not a bad design. As far as I can tell, the key function is at called at most once per item as this example whe

[issue36028] Integer Division discrepancy with decimal

2019-02-18 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue36028> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35954] Incoherent type conversion in configparser

2019-02-19 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Other methods validate explicitly their arguments with _validate_value_types for example. Here it raises KeyError which does not seem to be the appropriate exception. ConfigParser implementing the mapping protocol it seems weird to me to have >>>

[issue36036] Add method to get user defined command line arguments in unittest.main

2019-02-19 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- components: +Library (Lib) versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue36036> ___ ___ Python-bugs-list m

[issue36036] Add method to get user defined command line arguments in unittest.main

2019-02-19 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : Hi, I'm working on issue 18765 (running pdb.post_mortem() on failing test cases) where I need to control the behavior of a TestCase based on some outside input. For this issue, I want to add a new --pdb option to turn this feature on when enabled.

[issue36039] Replace append loops with list comprehensions

2019-02-19 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: In some places, using a lot is also a deliberate choice to improve readability. I think the boy scout rule is more appropriate for such changes. -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.

[issue36042] Setting __init_subclass__ and __class_getitem__ methods are in runtime doesnt make them class method.

2019-02-19 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Is this an issue though? Shouldn't methods be defined in the class definition, we don't expect setting a function as an attribute to a class to transform it automatically to a method. Why would we special case __class_getitem__ and not __init_

[issue36049] No __repr__() for queue.PriorityQueue and queue.LifoQueue

2019-02-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi @matrixise, is it really an issue to iterate over all the elements of the deque? __repr__ won't be called on performance sensitive path and we already do this for repr([0]*1), repr({i for i in range(1)}) and repr({i:i for i in range(

[issue36049] No __repr__() for queue.PriorityQueue and queue.LifoQueue

2019-02-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Note: when repr do not round trip, I think it's common practice to use brackets: instead of: LifoQueue('a'...'c') Example with Regex from https://docs.python.org/3/howto/regex.html: >>> re.match(r'From\

[issue36051] (Performance) Drop the GIL during large bytes.join operations?

2019-02-20 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- nosy: +remi.lapeyre ___ Python tracker <https://bugs.python.org/issue36051> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36049] No __repr__() for queue.PriorityQueue and queue.LifoQueue

2019-02-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: See also https://bugs.python.org/issue35889 which add repr to sqlite3.Row -- ___ Python tracker <https://bugs.python.org/issue36

[issue36048] Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__

2019-02-20 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: > I am not sure what to with the int constructor. Should it try __index__ > before __int__? Or just make __index__ without __int__ setting the nb_int > slot as was proposed by Nick in issue33039? Shouldn't it try only __int__ since this w

<    1   2   3   4   5   6   >