[issue46019] collections.Counter - Cast list of keys into set to remove iteration over duplicate elements for __le__, __ge__ and __eq__

2021-12-08 Thread Rahul Gupta
Rahul Gupta added the comment: After looking at this again, I agree with you - the key duplication issue seems to have gone. Thank you for providing this feedback, it is very helpful. -- ___ Python tracker <https://bugs.python.org/issue46

[issue46019] collections.Counter - Cast list of keys into set to remove iteration over duplicate elements for __le__, __ge__ and __eq__

2021-12-08 Thread Rahul Gupta
Change by Rahul Gupta : -- keywords: +patch pull_requests: +28222 stage: -> patch review pull_request: https://github.com/python/cpython/pull/2 ___ Python tracker <https://bugs.python.org/issu

[issue46019] collections.Counter - Cast list of keys into set to remove iteration over duplicate elements for __le__, __ge__ and __eq__

2021-12-08 Thread Rahul Gupta
New submission from Rahul Gupta : On lines 725, 737 and 749 there is the following code: '''for c in (self, other) for e in c''' which generates an iterable with all the keys in self and other - casting c to a set will remove duplicates and allow faster iteration - some minor benchmarks I

[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-09 Thread Tangellapalli Sai Hanuma Rahul
Tangellapalli Sai Hanuma Rahul added the comment: Yes, it's true, it's so naive method, Contextvars! may be inside the Future Object? -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracke

[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-09 Thread Tangellapalli Sai Hanuma Rahul
Tangellapalli Sai Hanuma Rahul added the comment: In summary; == Current Problem: -- ThreadPoolExecutor handles all threads-related activities so the user needs to just submit tasks and set max_workers and other Executor settings if necessary. If ThreadPoolExecutor

[issue45689] Add the ability to give custom names to threads created by ThreadPoolExecutor

2021-11-08 Thread Tangellapalli Sai Hanuma Rahul
Tangellapalli Sai Hanuma Rahul added the comment: There is a new function submit_with_name in _base.Executor that can accept name parameters before args and kwargs, submit can continue to be used as before. submit internally calls submit_with_name with name as None. Calling submit_with_name

[issue45689] Custom Name for ThreadPoolExecutor

2021-11-07 Thread Tangellapalli Sai Hanuma Rahul
Tangellapalli Sai Hanuma Rahul added the comment: ThreadPool handles tasks concurrently through Threads so users need not worry about the creation/deletion of Threads, it uses reuses threads whenever possible and it can handle any tasks. However, it should be possible for users to at least

[issue45689] Custom Name for ThreadPoolExecutor

2021-11-03 Thread Tangellapalli Sai Hanuma Rahul
Change by Tangellapalli Sai Hanuma Rahul : -- versions: -Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issue45689> ___ ___ Python-bug

[issue45689] Custom Name for ThreadPoolExecutor

2021-11-02 Thread Tangellapalli Sai Hanuma Rahul
Change by Tangellapalli Sai Hanuma Rahul : -- hgrepos: -410 ___ Python tracker <https://bugs.python.org/issue45689> ___ ___ Python-bugs-list mailing list Unsub

[issue45689] Custom Name for ThreadPoolExecutor

2021-11-02 Thread Tangellapalli Sai Hanuma Rahul
Change by Tangellapalli Sai Hanuma Rahul : -- hgrepos: +410 keywords: +patch pull_requests: +27619 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29359 ___ Python tracker <https://bugs.python.org/issu

[issue45689] Custom Name for ThreadPoolExecutor

2021-11-02 Thread Tangellapalli Sai Hanuma Rahul
New submission from Tangellapalli Sai Hanuma Rahul : Feature Request: Where we can use custom Names for separate threads submitted in ThreadPoolExecutor. It achieves by sending the name string to _work_queue of ThreadPoolExecutor and then in _worker function modifies the name

[issue45424] ssl.SSLError: unknown error (_ssl.c:4034)

2021-10-11 Thread Rahul Lakshmanan
Rahul Lakshmanan added the comment: Thanks for the answer! When I upgraded Python to 3.8.12, the issue went away. Can be closed. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracke

[issue45424] ssl.SSLError: unknown error (_ssl.c:4034)

2021-10-10 Thread Rahul Lakshmanan
New submission from Rahul Lakshmanan : I face this error when trying to use a package called streamlit. Streamlit calls Tornado which calls SSL. File "C:\Users\\.conda\envs\stockprediction\lib\ssl.py", line 589, in create_default_context context.load_default_certs(purpose)

[issue43978] Incorrect "versionadded" info in typing.NoReturn documentation

2021-05-04 Thread Rahul Kumaresan
Rahul Kumaresan added the comment: Hello Ken Jin, Thanks for this clarification! -- ___ Python tracker <https://bugs.python.org/issue43978> ___ ___ Python-bug

[issue24247] Docs: "unittest discover" modifies sys.path

2021-04-30 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue24247> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43978] Incorrect "versionadded" info in typing.NoReturn documentation

2021-04-29 Thread Rahul Kumaresan
Rahul Kumaresan added the comment: Although the documentation for 'typing.NoReturn' is made in: https://github.com/python/cpython/pull/7107/files The actual inclusion of the 'typing.NoReturn' was made through the following this PR: https://github.com/python/typing/pull/397 Also the change

[issue43978] Incorrect "versionadded" info in typing.NoReturn documentation

2021-04-29 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue43978> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30044] shutil.copystat should (allow to) copy ownership, and other attributes

2021-01-01 Thread Rahul Jha
Change by Rahul Jha : -- nosy: +RJ722 ___ Python tracker <https://bugs.python.org/issue30044> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34451] docs: tutorial/introduction doesn't mention toggle of prompts

2021-01-01 Thread Rahul Jha
Change by Rahul Jha : -- nosy: +RJ722 ___ Python tracker <https://bugs.python.org/issue34451> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12915] Add inspect.locate and inspect.resolve

2020-12-31 Thread Rahul Jha
Change by Rahul Jha : -- nosy: +RJ722 ___ Python tracker <https://bugs.python.org/issue12915> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35783] incorrect example of fetching messages in imaplib documentation

2020-12-22 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue35783> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29860] smtplib.py doesn't capitalize EHLO.

2020-12-22 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue29860> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27820] Possible bug in smtplib when initial_response_ok=False

2020-12-22 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue27820> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41822] Document the meaning of values for sys.float_info.rounds

2020-09-26 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue41822> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39326] Python-3.8.1 "test_importlib" failed

2020-09-26 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue39326> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-30 Thread Rahul Jha
Rahul Jha added the comment: > Note that these are two solution that take very different approaches. What > Nick is suggesting with "checking for two or more hanging INDENTS" would > drastically change how codeop._maybe_compile does its thing, while his other

[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-29 Thread Rahul Jha
Rahul Jha added the comment: > That may actually be another alternative: instead of doing the "try > appending newlines and see if it works or generates different errors", > we may be able to switch to the tokenizer if the initial compilation > fails and check for hang

[issue34360] urllib.parse doesn't fully comply to RFC 3986

2020-06-29 Thread Rahul Jha
Change by Rahul Jha : -- nosy: +RJ722 ___ Python tracker <https://bugs.python.org/issue34360> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41154] test_pkgutil:test_name_resolution fails on master

2020-06-29 Thread Rahul Jha
New submission from Rahul Jha : After configuring and building using the command: ./configure --with-pydebug ** make -j I ran the test suite (without changing anything) and saw that test_pkg has failed. Here is the output of `./python.exe -m test -v test_pkgutil`: == CPython 3.10.0a0

[issue19335] codeop misclassifies incomplete code with 'nonlocal'

2020-06-28 Thread Rahul Jha
Change by Rahul Jha : -- nosy: +RJ722 ___ Python tracker <https://bugs.python.org/issue19335> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17490] Improve ast.literal_eval test suite coverage

2020-06-28 Thread Rahul Jha
Rahul Jha added the comment: Some of the test cases from Nick's patch are not passing on master: ast.literal_eval('') # raises SyntaxError; expected: ValueError ast.literal_eval('6j--3') # expected: 3+6j ast.literal_eval('(2j+4j)+(1+2)') # expected: 3+6j ast.literal_eval

[issue17490] Improve ast.literal_eval test suite coverage

2020-06-28 Thread Rahul Jha
Rahul Jha added the comment: Nick, hello! I'd like to take it onwards from here. -- nosy: +RJ722 ___ Python tracker <https://bugs.python.org/issue17490> ___ ___

[issue40579] Second argument to iterator.next not described

2020-05-22 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue40579> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40725] Documentation: Benchmark table in "What's new in Python 3.9" has weird values

2020-05-22 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue40725> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40640] Tutorial for Continue missing ... line

2020-05-22 Thread Rahul Kumaresan
Rahul Kumaresan added the comment: I think the ommission of secondary prompt(...) at the end of the loop in the code snippet doesn't affect what the example wanted to demonstrate. Even so, if this has to be fixed, this correction is to be done in versions 3.5 through 3.10

[issue40670] supplying an empty string to timeit causes an IndentationError

2020-05-22 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: -rahul-kumi ___ Python tracker <https://bugs.python.org/issue40670> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25872] multithreading traceback KeyError when modifying file

2020-05-18 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue25872> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40620] Range tutorial shorthand could be made clearer

2020-05-18 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue40620> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40646] Builtins in doc show signature in documentation

2020-05-18 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue40646> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40646] Builtins in doc show signature in documentation

2020-05-18 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: -rahul-kumi ___ Python tracker <https://bugs.python.org/issue40646> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40670] supplying an empty string to timeit causes an IndentationError

2020-05-18 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue40670> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40042] Enum Flag: psuedo-members have None for name attribute

2020-05-18 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue40042> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40666] TarFile.add does not support pathlib.Path as a value to first argument.

2020-05-18 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue40666> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40657] Resource leaks with threading.Thread

2020-05-18 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue40657> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40640] Tutorial for Continue missing ... line

2020-05-18 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue40640> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40264] List item inside tuple seemingly allows for item assignment even after throwing error

2020-04-12 Thread Rahul B
New submission from Rahul B : Even though item assignment throws error, the list inside tuple 'a' gets modified in place. Refer below, where the list value [8] gets added to the list value [5,6,7,7] at a[3] >>> a (2, 3, 4, [5, 6, 7, 7], 1) >>> id(a[3]) 140531212178376 >&

[issue39705] Tutorial, 5.6 Looping Techniques, sorted() example

2020-03-14 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- keywords: +patch pull_requests: +18346 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18999 ___ Python tracker <https://bugs.python.org/issu

[issue20039] Missing documentation for argparse.ArgumentTypeError

2020-03-11 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue20039> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39935] argparse: help parameter not documented in add_subparsers().add_parser

2020-03-11 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue39935> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39937] Suggest the usage of Element.iter() instead of iter() in whatsnew

2020-03-11 Thread Rahul Kumaresan
New submission from Rahul Kumaresan : In the whatsnew section, under the point which mentions the deprecation of getchildren() and getiterator() through bpo-36543, it is suggested to use iter() instead. Ideally there should be a suggestion to use Element.iter() instead. -- assignee

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-03-11 Thread Rahul Kumaresan
Change by Rahul Kumaresan : -- nosy: +rahul-kumi nosy_count: 3.0 -> 4.0 pull_requests: +18289 pull_request: https://github.com/python/cpython/pull/18937 ___ Python tracker <https://bugs.python.org/issu

[issue39705] Tutorial, 5.6 Looping Techniques, sorted() example

2020-02-25 Thread Rahul Kumaresan
Rahul Kumaresan added the comment: I would like to work on this documentation improvement task. Please help me understand if this is not being worked on already. -- nosy: +rahul-kumi ___ Python tracker <https://bugs.python.org/issue39

[issue39712] Doc for `-X dev` option should mention PYTHONDEVMODE

2020-02-23 Thread Rahul Kumaresan
Rahul Kumaresan added the comment: I would like to work on this issue. Can you please suggest me specifics that I should be considering before I update the doc with the suggested inclusions. -- nosy: +rahul-kumi ___ Python tracker <ht

[issue37274] Scripts folder is empty in python 3.7.3 for windows.

2019-06-14 Thread Rahul Virpara
Rahul Virpara added the comment: This happened to me when I used customized option and unticked "pip". I assume you are not doing the same. -- nosy: +Rahul Virpara ___ Python tracker <https://bugs.python.o

[issue33467] Python 3.7: profile-opt build errors because a test seems to hang

2018-05-11 Thread Rahul Ravindran
New submission from Rahul Ravindran <rahu...@gmail.com>: make run_profile_task runs the tests and does not seem to have any mechanism to exclude tests that I could find based on looking at the Makefile. Previously, on Python 3.6, this test test_poplib was failing(https://bugs.pyth

[issue33217] x in enum.Flag member is True when x is not a Flag

2018-04-30 Thread Rahul Jha
Change by Rahul Jha <rahul7...@gmail.com>: -- pull_requests: +6347 stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue33217] x in enum.Flag member is True when x is not a Flag

2018-04-28 Thread Rahul Jha
Rahul Jha <rahul7...@gmail.com> added the comment: Hi Ethan, The only thing which is left is to change the Deprecation Warning to raise a `TypeError` and alter the tests accordingly. Seeing that most of the work for the issue has already been done, can I take it forward from here on

[issue32161] Python 2.7.14 installation on Ubuntu 16.04/GCC 5.4 throws "internal compiler error" in "PyFloat_GetMax" function

2017-11-28 Thread Rahul
Rahul <rahulrajaram2...@gmail.com> added the comment: Thanks for your response. I'll follow up with GCC. On Nov 28, 2017 14:48, "STINNER Victor" <rep...@bugs.python.org> wrote: > > STINNER Victor <victor.stin...@gmail.com> added the comment: > > &

[issue32161] Python 2.7.14 installation on Ubuntu 16.04/GCC 5.4 throws "internal compiler error" in "PyFloat_GetMax" function

2017-11-28 Thread Rahul
New submission from Rahul <rahulrajaram2...@gmail.com>: Attempt to `make` Python 2.7.14 on Ubuntu 16.04/GCC 5.4 throws the following error: Objects/floatobject.c: In function ‘PyFloat_GetMax’: Objects/floatobject.c:59:5: internal compiler error: Illegal instruction return D

[issue27237] Kafka Python Consumer Messages gets truncated

2016-06-05 Thread Rahul
New submission from Rahul: Snippet code is below: from kafka import KafkaConsumer from kafka.client import KafkaClient from kafka.consumer import SimpleConsumer consumer = KafkaConsumer('eventdetails_ingestion' , group_id='1',bootstrap_servers=‘:9092', max_partition_fetch_bytes=1055

[issue23275] Can assign [] = (), but not () = []

2015-05-27 Thread Rahul Gupta
Rahul Gupta added the comment: isn't it logical? [] is a mutable data structure while () is a immutable data structure (b, a) = [1, 2] is fine because a and b are mutable -- nosy: +Rahul Gupta ___ Python tracker rep...@bugs.python.org http

[issue6752] -1**2=-1

2009-08-21 Thread rahul
New submission from rahul rahulalone1...@gmail.com: what is the reason for this -- components: 2to3 (2.x to 3.0 conversion tool) messages: 91809 nosy: rahul1618 severity: normal status: open title: -1**2=-1 type: compile error versions: Python 2.5

[issue6752] -1**2=-1

2009-08-21 Thread rahul
rahul rahulalone1...@gmail.com added the comment: -1**2 -1 ??? what is reason for this -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6752

[issue3681] Cannot read saved csv file in a single run

2008-08-25 Thread Rahul Ghosh
New submission from Rahul Ghosh [EMAIL PROTECTED]: I am trying to save a csv file from a scope and then open it to post process the data. The file is getting created currectly, but when it tries to open the csv file it complains about file not found. I am trying to do this in a single run

[issue3681] Cannot read saved csv file in a single run

2008-08-25 Thread Rahul Ghosh
Rahul Ghosh [EMAIL PROTECTED] added the comment: I wrote a python GPIB command to the scope to export the waveform as a csv file. Then in another function I try to read this file that I just saved and it cannot find the file till I rerun. ___ Python tracker