[issue32133] documentation: numbers module nitpick

2021-05-14 Thread Bhaskara Aditya Sriram
Bhaskara Aditya Sriram added the comment: I would like work on this, but I'm very new to fixing bugs. Could someone please help me on how to proceed with this bug. Thank You in advance -- nosy: +adityasriram.b ___ Python tracker <ht

[issue35375] name shadowing while a module tries to import another

2018-12-02 Thread Sriram Krishna
Sriram Krishna added the comment: Already covered in issue29929: https://bugs.python.org/issue29929. Thanks xtreak for the link to the message thread. PEP 432 seems to have methods to resolve this. Currently if the code doesn't access to .local, one can use the -I commandline option

[issue35375] name shadowing while a module tries to import another

2018-12-02 Thread Sriram Krishna
Sriram Krishna added the comment: My contention is that this behaviour breaks the Principle of Least Astonishment. In the particular example I gave, the user doesn't know (and can't be expected to know) the existence of a module called profile in the standard library. Here the user

[issue35375] name shadowing while a module tries to import another

2018-12-02 Thread Sriram Krishna
New submission from Sriram Krishna : Suppose I have a file profile.py in the same directory as the file I am running (say test.py) Let the contents of the files be: profile.py: raise Exception test.py: import cProfile now if I run test.py $ python test.py Traceback (most recent call last

[issue31090] import error for numpy

2017-07-31 Thread Sriram
Sriram added the comment: Yes, i just found that after creating the issue, Sorry. Anyhow thanks for quick response, i have addressed this to numpy team. https://github.com/numpy/numpy/issues/9501 -- ___ Python tracker <rep...@bugs.python.org>

[issue31090] import error for numpy

2017-07-31 Thread Sriram
New submission from Sriram: When i tried to import numpy for any program in VS 2017, it returns with Import Error. Traceback (most recent call last): File "C:\Program Files\Python36\lib\site-packages\numpy\core\__init__.py", line 16, in from . import multiarray ImportError

[issue26779] pdb continue followed by an exception in the same frame shows incorrect frame linenumber

2016-05-23 Thread Sriram Rajagopalan
Sriram Rajagopalan added the comment: ping. Gentle reminder to review the patch -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26779] pdb continue followed by an exception in the same frame shows incorrect frame linenumber

2016-05-18 Thread Sriram Rajagopalan
Sriram Rajagopalan added the comment: ping -- nosy: +bglsriram ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26779> ___ ___ Pyth

[issue26779] pdb continue followed by an exception in the same frame shows incorrect frame linenumber

2016-04-18 Thread Sriram Rajagopalan
Changes by Sriram Rajagopalan <bglsri...@gmail.com>: Removed file: http://bugs.python.org/file42486/bdbfix.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26779] pdb continue followed by an exception in the same frame shows incorrect frame linenumber

2016-04-18 Thread Sriram Rajagopalan
Changes by Sriram Rajagopalan <bglsri...@gmail.com>: Added file: http://bugs.python.org/file42508/bdbfix.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python

[issue26779] pdb continue followed by an exception in the same frame shows incorrect frame linenumber

2016-04-16 Thread Sriram Rajagopalan
New submission from Sriram Rajagopalan: Consider this simple python program - 1 #!/usr/bin/python 2 3 import pdb 4 import sys 5 import traceback 6 7 def trace_exception( type, value, tb ): 8 traceback.print_tb( tb ) 9 pdb.post_mortem( tb ) 10 11 sys.excepthook

[issue14157] time.strptime without a year fails on Feb 29

2016-02-29 Thread Sriram Rajagopalan
Sriram Rajagopalan added the comment: Opened issue 26460 for fixing the leap day bug in datetime.datetime.strptime() -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26460] datetime.strptime without a year fails on Feb 29

2016-02-29 Thread Sriram Rajagopalan
New submission from Sriram Rajagopalan: $ python Python 3.5.1 (default, Dec 7 2015, 12:58:09) [GCC 5.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> >>> >>>

[issue14157] time.strptime without a year fails on Feb 29

2016-02-29 Thread Sriram Rajagopalan
Sriram Rajagopalan added the comment: datetime.strptime() uses the return value of _strptime() [ which returns 1900 for 29th Feb without an year ] and eventually ends up calling datetime_new()->check_date_args() [ datetimemodule.c ] with 29th Feb 1900 and eventual failure. Should we enha

[issue5727] doctest pdb readline broken

2010-05-04 Thread Sriram
Sriram sriramrathinav...@yahoo.com added the comment: Hi, On second thoughts, it made more sense to validate pdb directly instead of validating doctest's debugger. I have also used few inputs, I got from irc chat at #python-dev room in writing the test case. Thanks to them. I have attached

[issue8619] Doc bug for urllib.request._urlopener in Python 3.1+

2010-05-04 Thread Sriram Thaiyar
New submission from Sriram Thaiyar sriram.thai...@gmail.com: http://docs.python.org/dev/py3k/library/urllib.request.html#urllib.request._urlopener [in the body] urllib._urlopener should be urllib.request._urlopener -- assignee: d...@python components: Documentation messages: 104998

[issue5727] doctest pdb readline broken

2010-04-27 Thread Sriram
Sriram sriramrathinav...@yahoo.com added the comment: Hi, I believe this behaviour can be tested if we can prove that Cmd's cmdloop uses raw_input to get the data as against self.stdin.readline(). To test it, ideally I would have liked to override sys.stdin with a fake input stream and pass

[issue5727] doctest pdb readline broken

2009-12-27 Thread Sriram
Sriram sriramrathinav...@yahoo.com added the comment: Hi, This is the first bug am working in python, kindly excuse my mistakes, if any. As far as I can understand, the pdb disabled readline when an explicit stdin or stdout is passed, to allow remote debugging. I found this in Python 2.5.4

[issue5727] doctest pdb readline broken

2009-09-19 Thread Sriram
Sriram sriramrathinav...@yahoo.com added the comment: Hi, How about changing pdb's behavior, that it disables readline only if the passed stream is not the stdout stream? Also when looking at doctest module, I found that bdb's trace_dispatch was overridden to set the debugger's output stream