[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

2017-06-14 Thread Nitish
Changes by Nitish <nitishchandrachi...@gmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30664> ___ _

[issue31557] tarfile: incorrectly treats regular file as directory

2017-10-04 Thread Nitish
Nitish <nitishchandrachi...@gmail.com> added the comment: Try 'tar xvf test.tar'. On Linux machine at least, it is in fact producing a tree of directories. Not a single file. So - in a way what Python is reporting is correct. -- ___ Python t

[issue31780] Using format spec ',x' displays incorrect error message

2017-10-14 Thread Nitish
Change by Nitish <nitishchandrachi...@gmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31780> ___ _

[issue31795] Slicings documentation doesn't mention Ellipsis

2017-10-15 Thread Nitish
New submission from Nitish <nitishchandrachi...@gmail.com>: Ellipsis object documentation[1] specifies that Ellipsis is mainly used by Slicings. But Slicing's documentation[2] doesn't mention anything about Ellipsis. Consequently - it is not immediately clear from Ellipsis documentatio

[issue31774] tarfile.open ignores custom bufsize value when creating a new archive

2017-10-16 Thread Nitish
Change by Nitish <nitishchandrachi...@gmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31774> ___ _

[issue31774] tarfile.open ignores custom bufsize value when creating a new archive

2017-10-16 Thread Nitish
Nitish <nitishchandrachi...@gmail.com> added the comment: Sorry. My bad. There *is* an argument 'copybufsize' in TarFile. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue31774] tarfile.open ignores custom bufsize value when creating a new archive

2017-10-16 Thread Nitish
Nitish <nitishchandrachi...@gmail.com> added the comment: Seems like bufsize is used only in streaming modes. Even in the documentation bufsize is described only in the context of streaming modes. Even TarFile constructor doesn't take bufsize as an argument. Why is

[issue31795] Slicings documentation doesn't mention Ellipsis

2017-10-16 Thread Nitish
Nitish <nitishchandrachi...@gmail.com> added the comment: The problem is that while documentation for other objects like Null object, NotImplemented object make it clear what they are used for, documentation for Ellipsis object only says that it's used in slicings and the sl

[issue31619] Strange error when convert hexadecimal with underscores to int

2017-09-29 Thread Nitish
Change by Nitish <nitishchandrachi...@gmail.com>: -- keywords: +patch pull_requests: +3800 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31619] Strange error when convert hexadecimal with underscores to int

2017-09-29 Thread Nitish
Nitish <nitishchandrachi...@gmail.com> added the comment: The problem is with the following check: n = digits * bits_per_char + PyLong_SHIFT - 1; if (n / bits_per_char < p - start) { PyErr_SetString(PyExc_ValueError, "int string too la

[issue31557] tarfile: incorrectly treats regular file as directory

2017-09-30 Thread Nitish
Nitish <nitishchandrachi...@gmail.com> added the comment: > This check was the source of a bug that caused tarfile to report a regular as > a directory because the file path was extra long, and when the tar write > truncated the path to the first 100B, it so happened to end on

[issue31619] Strange error when convert hexadecimal with underscores to int

2017-09-29 Thread Nitish
Nitish <nitishchandrachi...@gmail.com> added the comment: > PR 3816 fixes the symptom, but not the core issue -- an overflow check > depending on undefined behaviour. I don't understand this check completely actually. When exactly is an int too larg

[issue31619] Strange error when convert hexadecimal with underscores to int

2017-09-29 Thread Nitish
Nitish <nitishchandrachi...@gmail.com> added the comment: >> PR 3816 fixes the symptom, but not the core issue -- an overflow check >> depending on undefined behaviour. > I don't understand this check completely actually. When exactly is an int too > large to co

[issue17852] Built-in module _io can lose data from buffered files at exit

2017-12-15 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue17852> ___ __

[issue32228] truncate() changes current stream position

2017-12-13 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- keywords: +patch pull_requests: +4747 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue28197] Add start and stop parameters to the range.index() ABC method

2017-11-12 Thread Nitish
Change by Nitish <nitishchandrachi...@gmail.com>: -- keywords: +patch pull_requests: +4326 stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31942] Document that support of start and stop parameters in the Sequence's index() is optional

2017-11-04 Thread Nitish
Change by Nitish <nitishchandrachi...@gmail.com>: -- keywords: +patch pull_requests: +4239 stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31942] Document that support of start and stop parameters in the Sequence's index() is optional

2017-11-04 Thread Nitish
Change by Nitish <nitishchandrachi...@gmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31942> ___ _

[issue31942] Document that support of start and stop parameters in the Sequence's index() is optional

2017-12-07 Thread Nitish
Nitish <nitishchandrachi...@gmail.com> added the comment: Any comments on the PR? -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue28197] Add start and stop parameters to the range.index() ABC method

2017-12-07 Thread Nitish
Nitish <nitishchandrachi...@gmail.com> added the comment: Any comments on the PR? -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-08 Thread Nitish
Change by Nitish <nitishchandrachi...@gmail.com>: -- keywords: +patch pull_requests: +4659 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue22589] mimetypes uses image/x-ms-bmp as the type for bmp files

2017-12-08 Thread Nitish
Change by Nitish <nitishchandrachi...@gmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue22589> ___ _

[issue32255] csv.writer converts None to '""\n' when it is first line, otherwise '\n'

2017-12-08 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32255> ___ __

[issue26414] os.defpath too permissive

2017-12-08 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue26414> ___ __

[issue30718] open builtin function: specifying the size of buffer has no effect for text files

2017-12-11 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue30718> ___ __

[issue32228] truncate() changes current stream position

2017-12-11 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32228> ___ __

[issue32270] subprocess closes redirected fds even if they are in pass_fds

2017-12-10 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32270> ___ __

[issue32255] csv.writer converts None to '""\n' when it is first line, otherwise '\n'

2017-12-09 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: Which scenario you think is the wrong behaviour in this case? First one or second one? I don't know much about csv module, but I thought it was a deliberate choice made to quote all empty lines and hence considered the second sc

[issue32421] Keeping an exception in cache can segfault the interpreter

2017-12-24 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: What is six.reraise in except block? -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue32511] Thread primitives do not report the OS-level error on failure

2018-01-07 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32511> ___ __

[issue31368] Support asynchronous, non-blocking buffered reads (RWF_NONBLOCK)

2018-01-15 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31368> ___ __

[issue32536] ast and tokenize disagree about line number

2018-01-16 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32536> ___ __

[issue32655] File mode should be a constant

2018-01-25 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: It appears some files like Lib/tokenize.py changes the mode of TextIOWrapper: text = TextIOWrapper(buffer, encoding, line_buffering=True) text.mode = 'r' setting of mode via _PyObject_SetAttrId(wrapper, _mode, modeobj) i

[issue32668] deepcopy() fails on ArgumentParser instances

2018-01-26 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: This seems to have been fixed in the latest master. Commit I tested: 37420deb80dcf0fc41a728838b0340b93ca01d90 -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2018-01-30 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue19915> ___ __

[issue29317] test_copyxattr_symlinks fails

2018-02-02 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue29317> ___ __

[issue32685] Erroneous suggestion in print statement

2018-01-27 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: > For the right offset, I think we'll want to drop the initial XStrip call > added for bpo-32028 entirely, and instead calculate the right offset as a > PyUnicode_FindChar search for ";" (replacing it with the leng

[issue32606] Email Header Injection Protection Bypass

2018-01-27 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: RFC 5322[1] says that header field's name can't have space in it and the must be immediately followed by the ':' character. Is it common for SMTP servers to accept messages with ' ' before ':'? [1] https://tools.ietf.org/html/r

[issue32685] Erroneous suggestion in print statement

2018-01-27 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- keywords: +patch pull_requests: +5216 stage: needs patch -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue20082] Misbehavior of BufferedRandom.write with raw file in append mode

2018-02-01 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue20082> ___ __

[issue32806] locally imported modules are unaccessible in lambdas in pdb

2018-02-10 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32806> ___ __

[issue32755] Several cookies with the same name get intermixed

2018-02-09 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32755> ___ __

[issue32806] locally imported modules are unaccessible in lambdas in pdb

2018-02-11 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: This can be traced back to the following issue: >>> c = compile("(lambda: re.findall('a', 'aaa'))()", "", "single") >>> import re as rea >>> exec(c, None, {'re': rea}) NameError

[issue32806] locally imported modules are unaccessible in lambdas in pdb

2018-02-11 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: Sorry. I didn't finish my last message. Is the behaviour described in that message a bug? If yes, that would explain the original behaviour. If no, why not? -- ___ Python tracke

[issue32836] Symbol table for comprehensions (list, dict, set) still includes temporary _[1] variable

2018-02-12 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32836> ___ __

[issue32489] Allow 'continue' in 'finally' clause

2018-02-13 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32489> ___ __

[issue32836] Symbol table for comprehensions (list, dict, set) still includes temporary _[1] variable

2018-02-13 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- keywords: +patch pull_requests: +5476 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32391] Add StreamWriter.wait_closed()

2017-12-22 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32391> ___ __

[issue32536] ast and tokenize disagree about line number

2018-01-17 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: What should happen ideally? The stray '\r' be treated like a whitespace? -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33222] Various test failures if PYTHONUSERBASE is not canonicalized

2018-04-05 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33222> ___ __

[issue33211] lineno and col_offset are wrong on function definitions with decorators

2018-04-05 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33211> ___ __

[issue33223] test_posix fails ERRNO 0

2018-04-04 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33223> ___ __

[issue25433] whitespace in strip()/lstrip()/rstrip()

2018-03-31 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue25433> ___ __

[issue33197] Confusing error message when constructing invalid inspect.Parameters

2018-04-01 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: @Antony Lee since you know the fix, do you want to submit a PR? -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33162] TimedRotatingFileHandler in logging module

2018-04-01 Thread Nitish
Change by Nitish <nitis...@protonmail.com>: -- nosy: +nitishch ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33162> ___ __

[issue33197] Confusing error message when constructing invalid inspect.Parameters

2018-04-01 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: Also, _ParameterKind class has a __str__ method. So, I guess it's better to use "{!s}" in the format string instead of using kind.name. -- ___ Python tracker <rep...@bugs

[issue33219] x in IntFlag() should test int x's inclusion in IntFlag

2018-04-03 Thread Nitish
Nitish <nitis...@protonmail.com> added the comment: @Ethan Furman how can Flag do that? IntFlag can deal with int values too. Would it be possible to deal with int values in this case in Flag.__contains__? -- nosy: +nitishch ___ Python tracke

[issue36697] inspect.getclosurevars returns wrong globals dict

2019-04-22 Thread Nitish
Change by Nitish : -- nosy: +nitishch ___ Python tracker <https://bugs.python.org/issue36697> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45147] Typo in "What's New In Python 3.10" documentation

2021-09-09 Thread Nitish Sharma
Nitish Sharma added the comment: Yeah, are you talking about this PR? https://github.com/python/cpython/pull/28254 -- nosy: +nitss007 ___ Python tracker <https://bugs.python.org/issue45