[issue32480] czipfile installation failure
New submission from Ajay : pip installation for czipfile is failing with compilation error (as below) Command Execute: pip install --no-cache-dir czipfile Error: Collecting czipfile Downloading czipfile-1.0.0.tar.gz (144kB) 100% || 153kB 726kB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File "C:\Users\503022~1\AppData\Local\Temp\pip-build-3uthum1g\czipfile\setup.py", line 18 print "cython not found, using previously-cython'd .c file." ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int "cython not found, using previously-cython'd .c file.")? Command "python setup.py egg_info" failed with error code 1 in... -- components: Library (Lib) messages: 309364 nosy: ajayhn priority: normal severity: normal status: open title: czipfile installation failure type: compile error versions: Python 3.6 ___ Python tracker <https://bugs.python.org/issue32480> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39283] Add ability to inherit unittest arguement parser
New submission from Ajay Tripathi : I am currently writing a unittest script that requires argparser but since the unittest module already has a ArgumentParser instance, I cannot create and use my own ArgumentParser instance. Possible solution: The problem would be solved I could inherit the parent ArgumentParser instance created here: https://github.com/python/cpython/blob/master/Lib/unittest/main.py#L162 Please let me know if it's feasible / acceptable to change `parent_parser` as `self.parent_parent` for inheritance. I would love to create a pull request for it. -- components: Library (Lib) messages: 359704 nosy: atb00ker priority: normal severity: normal status: open title: Add ability to inherit unittest arguement parser type: behavior ___ Python tracker <https://bugs.python.org/issue39283> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39283] Add ability to inherit unittest arguement parser
Ajay Tripathi added the comment: Hi, Thanks for your response, here is a code sample of what I am doing right now: ``` import unittest import sys class MyTest(unittest.TestCase): def __init__(self, testName, extraArg): super(MyTest, self).__init__(testName) self.myExtraArg = extraArg def test_something(self): print(self.myExtraArg) extraArg = sys.argv.pop() suite = unittest.TestSuite() suite.addTest(MyTest('test_something', extraArg)) unittest.TextTestRunner(verbosity=2).run(suite) ``` It works. However, this can be cumbersome if there are a lot of "extraArgs" and MyTestClasses. Especically, if there is an existing argparser function existing that is used in the program, re-writing the code for passing args in another way for unittest doesn't seem ideal. Ideally, I think something like this may work perfectly: ``` import unittest class SomethingLikeInheritedUnitest(unittest.TestProgram): # parent_parser is used here: https://github.com/python/cpython/blob/master/Lib/unittest/main.py#L162 parent = super().createParentArgParserAndReturnIt() parser = argparse.ArgumentParser(parents=[parent]) parser.add_argument('--myarg1', ...) parser.add_argument('--myarg2', ...) return parser ``` Now the parser may be exposed to user's MyTest class and they can use arguements as: `paser.myarg1` Note: I am not certain this may be the way to go about it, there may be a better way, infact, I've not even had the time to read the entire code. :-( I am only trying to point out is that the ability to add `myarg1` in the parent_parser may be useful at times. Hope this makes the point a bit more clear. If I have misunderstood something please correct me. Thank You, Ajay Tripathi -- ___ Python tracker <https://bugs.python.org/issue39283> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue39283] Add ability to inherit unittest arguement parser
Ajay Tripathi added the comment: Hi pual, > The issue of testing a script that uses argparse has come up on StackOverFlow > a number of times. Sorry for the confusing but this is not a support ticket, I am not stuck with a problem and I am aware of the variaous solutions on Stackoverflow to use arguements with unittest module. Instead, I am proposing a change in the module so that the user of unittest can get the `parent_parser` and add their arguements in the unitest argparser instance itself. I propose this change because it seems like a more intuitive way to use argparser with unittest to me and I hope to hear your thoughts on the change and if it is desired. Best, Ajay Tripathi -- ___ Python tracker <https://bugs.python.org/issue39283> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9305] Don't use east/west of UTC in date/time documentation
Ajay Mahato added the comment: I would like to work on this issue. Please assign this to me. -- nosy: +Ajay Mahato ___ Python tracker <https://bugs.python.org/issue9305> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9305] Don't use east/west of UTC in date/time documentation
Ajay Mahato added the comment: I am taking up this issue. -- ___ Python tracker <https://bugs.python.org/issue9305> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37988] Issue found during language name processing in a list
New submission from SYAM PARAKASH,AJAY KUMAR : I found an error in processing language name like Malayalam,English.. in a list created using Python 3.6.1 -- files: IMG_20190830_162306__1567162571_88362.jpg messages: 350869 nosy: AjaySyam priority: normal severity: normal status: open title: Issue found during language name processing in a list type: behavior Added file: https://bugs.python.org/file48576/IMG_20190830_162306__1567162571_88362.jpg ___ Python tracker <https://bugs.python.org/issue37988> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com