[issue23217] help() function incorrectly captures comment preceding a nested function

2015-01-19 Thread anupama srinivas murthy

anupama srinivas murthy added the comment:

In Python 2.7, the capture happens even if there is no decorator. The code:
#Hey this is f
def f():

 return
 
help(f)
gives the output:
Help on function f in module __main__:

f()
#Hey this is f
whereas a docstring inside the function causes the comment to be ignored. 
Therefore, the code:
#Hey this is f
def f():
 '''this is the function f'''
 return
 
help(f)
gives the output:
Help on function f in module __main__:

f()
this is the function f
@Gwenllina:I need to clarify my previous comment. The docstring that would 
cause the preceding comment to be ignored must be in the inner function in case 
of the first example. Placing it in f() still causes comment capture as you said

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23217
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23217] help() function incorrectly captures comment preceding a nested function

2015-01-18 Thread anupama srinivas murthy

anupama srinivas murthy added the comment:

The comment is captured only in the absence of a docstring within the function. 
The capture happens whether the function is nested or otherwise

--
nosy: +anupama.srinivas.murthy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23217
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22594] Add a link to the regex module in re documentation

2014-10-28 Thread anupama srinivas murthy

anupama srinivas murthy added the comment:

I have modified the patch and listed the points I know. Could you review it?

--
versions:  -Python 3.4, Python 3.5
Added file: http://bugs.python.org/file37052/regex-link.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22594
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22594] Add a link to the regex module in re documentation

2014-10-13 Thread anupama srinivas murthy

anupama srinivas murthy added the comment:

I have added the link and attached the patch below. Could you review it?

Thank you

--
components:  -Regular Expressions
keywords: +patch
nosy: +anupama.srinivas.murthy
Added file: http://bugs.python.org/file36900/regex-link.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22594
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22456] __base__ undocumented

2014-09-30 Thread anupama srinivas murthy

anupama srinivas murthy added the comment:

I have documented the function in object.rst file. I do not know the use of the 
function and have not mentioned that. My documentation is based on what I 
understood from the comments below and the explanation here:
http://code.activestate.com/lists/python-list/334282/

--
keywords: +patch
nosy: +anupama.srinivas.murthy
Added file: http://bugs.python.org/file36760/function-documentation.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22456
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com