[issue41045] f-string's "debug" feature is undocumented

2020-07-13 Thread Rishi
Rishi added the comment: Hello all, Could I help by adding this to the documentation ? -- nosy: +rishi93 ___ Python tracker <https://bugs.python.org/issue41

[issue39017] Infinite loop in the tarfile module

2020-07-12 Thread Rishi
Rishi added the comment: Thank you. I have signed the CLA agreement. I have pushed my code changes and also written a testcase for this issue -- ___ Python tracker <https://bugs.python.org/issue39

[issue39017] Infinite loop in the tarfile module

2020-07-12 Thread Rishi
Change by Rishi : -- keywords: +patch pull_requests: +20602 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/21454 ___ Python tracker <https://bugs.python.org/issu

[issue39017] Infinite loop in the tarfile module

2020-07-10 Thread Rishi
Rishi added the comment: Hi ! I would like to start contributing to CPython. Can I start working on this issue ? -- ___ Python tracker <https://bugs.python.org/issue39

[issue39017] Infinite loop in the tarfile module

2020-07-10 Thread Rishi
Change by Rishi : -- nosy: +rishi93 ___ Python tracker <https://bugs.python.org/issue39017> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue1610654] cgi.py multipart/form-data

2014-12-09 Thread Rishi
Rishi added the comment: One of my comments shot the wrapped line limit. Also changed the test in question to check the lengths of the expected and actual buffer to checking the contents of the respective buffers. -- Added file: http://bugs.python.org/file37400/issue1610654_5.patch

[issue1610654] cgi.py multipart/form-data

2014-12-09 Thread Rishi
Rishi added the comment: There is indeed a test failure that occurs without the patch. This is a new test I had added. The reason is that in the existing implementation, when a boundary does not exist, the implementation does not include the trailing CRLF, LF or for that matter CR as part of

[issue1610654] cgi.py multipart/form-data

2014-11-08 Thread Rishi
Rishi added the comment: Hi, I have created a new patch with a small design change. The change is that in situations where I don't find the boundary instead of keeping the last x bytes in the buffer I simply drain the whole data and call a readline(). This seems like the right thing

[issue1610654] cgi.py multipart/form-data

2014-11-04 Thread Rishi
Rishi added the comment: Patch updated from review comments. Also added a few corner test cases. -- Added file: http://bugs.python.org/file37128/issue1610654_2.patch ___ Python tracker <http://bugs.python.org/issue1610

[issue1610654] cgi.py multipart/form-data

2014-10-14 Thread Rishi
Rishi added the comment: I have recreated the patch(issue1610654_1.patch) and it performs more or less like the earlier patch Serhiy, I agree we cannot use handmade buffering here, without seeking ahead. I believe, we can make optimizations for streams which are buffered and non-seekable. Cgi

[issue1610654] cgi.py multipart/form-data

2014-10-13 Thread Rishi
Rishi added the comment: Antoine, I will upload a patch that relies on BufferedReader. As you mentioned, it will get rid of supporting the buffer and reduce a lot of code. The only issue is that it helps me to know if the current buffer is at EOF (the documentation of peek does not mention

[issue1610654] cgi.py multipart/form-data

2014-10-13 Thread Rishi
Rishi added the comment: My observation is that a file with more than normal (exact numbers below) line-feed characters takes way too long. I tried porting the above patch to my default branch, but it has some boundary and CRLF/LF issues, but more importantly it relies on seeking the file

[issue22351] NNTP constructor exception leaves socket for garbage collector

2014-10-10 Thread Rishi
Rishi added the comment: patch updated based on comments. -- Added file: http://bugs.python.org/file36873/issue22351_2.patch ___ Python tracker <http://bugs.python.org/issue22

[issue22351] NNTP constructor exception leaves socket for garbage collector

2014-10-05 Thread Rishi
Rishi added the comment: patch updated to use just plain exception -- Added file: http://bugs.python.org/file36819/issue22351_1.patch ___ Python tracker <http://bugs.python.org/issue22

[issue22351] NNTP constructor exception leaves socket for garbage collector

2014-10-05 Thread Rishi
Rishi added the comment: Here is my attempt to fix this issue. This is my first patch ever :). IMO checking socket leaks in the constructor requires an actual server, so I create an actual localhost dummy server and test some error conditions that are encountered by the constructor