[issue46500] make timeit module accept files

2022-01-24 Thread Arjun
Arjun added the comment: I was modifying the try/except/finally/else code generation and wanted to run my own benchmarks. It's cumbersome to edit them in a command to test different variations, especially when you have to indent. -- ___ Python

[issue46500] make timeit module accept files

2022-01-23 Thread Arjun
Change by Arjun : -- keywords: +patch pull_requests: +29026 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30844 ___ Python tracker <https://bugs.python.org/issu

[issue46500] make timeit module accept files

2022-01-23 Thread Arjun
New submission from Arjun : currently, timeit accepts programs line by line as commandline arguments. it would be convenient to give it a program as a file to benchmark. -- components: Library (Lib) messages: 411448 nosy: CCLDArjun priority: normal severity: normal status: open title

[issue44674] dataclasses should allow frozendict default value

2021-07-23 Thread Arjun
Arjun added the comment: Which frozendict does your message concern? I found this in some test: https://github.com/python/cpython/blob/bb3e0c240bc60fe08d332ff5955d54197f79751c/Lib/test/test_builtin.py#L741 or are you suggesting any user defined immutable object? I'm not sure indicating

[issue32536] ast and tokenize disagree about line number

2021-06-18 Thread Arjun
Arjun added the comment: Well actually, it depends on the platform? -- ___ Python tracker <https://bugs.python.org/issue32536> ___ ___ Python-bugs-list mailin

[issue32536] ast and tokenize disagree about line number

2021-06-18 Thread Arjun
Arjun added the comment: the line numbers are different for me too (MacOS). it seems that tokenize module is off by +1 line -- nosy: +CCLDArjun ___ Python tracker <https://bugs.python.org/issue32

[issue44405] add program passed as string to dis module.

2021-06-13 Thread Arjun
Change by Arjun : -- pull_requests: +25302 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26714 ___ Python tracker <https://bugs.python.org/issu

[issue44405] add program passed as string to dis module.

2021-06-12 Thread Arjun
Arjun added the comment: > If _test were considered obsolete, it could be removed. removing _test: https://github.com/CCLDArjun/cpython/commit/8b3b8ccef0ef693f8f4105fd1eb56e9386675301 does not break dis tests. -- ___ Python tracker <

[issue44405] add program passed as string to dis module.

2021-06-12 Thread Arjun
Arjun added the comment: > If _test were considered obsolete, it could be removed. Yup, originally it was added 2 decades ago (in 2000) originally as a test: 1fdae12c932 -- ___ Python tracker <https://bugs.python.org/issu

[issue44405] add program passed as string to dis module.

2021-06-12 Thread Arjun
Arjun added the comment: Huh, that's actually weird that the "exisisting command line interface" (quotes because it was added as a test) isn't official. I've found it to be convinient as a newcomer to the cpython codebase. > What is unusual, I think, for a CLI

[issue44405] add program passed as string to dis module.

2021-06-12 Thread Arjun
New submission from Arjun : python dis module should have a program passed in as string. Currently, you can do this: $ echo "x = 6" | python -m dis /dev/stdin 1 0 LOAD_CONST 0 (6) 2 STORE_NAME 0 (x) 4

[issue14322] More test coverage for hmac

2021-06-10 Thread Arjun
Arjun added the comment: would the update invalid test belong in the TestVectorsTestCase class or should I make a new one? -- ___ Python tracker <https://bugs.python.org/issue14

[issue14322] More test coverage for hmac

2021-06-09 Thread Arjun
Change by Arjun : -- pull_requests: +25222 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/26636 ___ Python tracker <https://bugs.python.org/issu

[issue14322] More test coverage for hmac

2021-06-09 Thread Arjun
Arjun added the comment: The only things I think we should add to the current hmac tests are test_update_error_handling and test_with_invalid_msg. For test_withnoncallable_digestmod(), hmac itself seems it can no longer be used: >>> hmac.HMAC(b"", None, "hma

[issue44324] add a "expected expression" syntax error

2021-06-08 Thread Arjun
Change by Arjun : -- keywords: +patch pull_requests: +25176 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26592 ___ Python tracker <https://bugs.python.org/issu

[issue44324] add a "expected expression" syntax error

2021-06-06 Thread Arjun
Arjun added the comment: > This one will be very tricky to do correctly because the '=' is very > context-sensitive and the parser can be confused when backtracking, so this > *may* be quite delicate/complex Well, I was thinking we could just do a sim

[issue44324] add a "expected expression" syntax error

2021-06-06 Thread Arjun
Arjun added the comment: I forgot to add, I would be willing to make the necessary changes, if accepted -- ___ Python tracker <https://bugs.python.org/issue44

[issue44324] add a "expected expression" syntax error

2021-06-06 Thread Arjun
New submission from Arjun : Recently, CPython got a new syntax error, "SyntaxError: expression expected after dictionary key and ':'". I propose to add a "expected expression" in general for consistency. I would like to have it changed for all the "equals"

[issue34420] Complete your registration to Python tracker -- keysnSwaZe6PtikiEZf4bdIXIiuwFyFZFxp

2018-08-17 Thread sai arjun
New submission from sai arjun : I have received the email. Sent from Mail for Windows 10 From: Python tracker Sent: 16 August 2018 17:08 To: venkkar...@yahoo.com Subject: Complete your registration to Python tracker -- keysnSwaZe6PtikiEZf4bdIXIiuwFyFZFxp To complete your registration

[issue33218] Fix instances in documentation where dictionaries are referenced as unordered

2018-04-03 Thread arjun v
New submission from arjun v <arjun...@gmail.com>: In python 3.6 (and above hopefully), dictionary keys are going to be ordered, while their documentation still reference them as being unordered. https://docs.python.org/3/tutorial/datastructures.html#dictionaries 1: `It is best to