[issue16154] Some minor doc fixes in Doc/library

2012-10-06 Thread Ravi Sinha

New submission from Ravi Sinha:

- Doc/library/math.rst - fsum will pass if 'from math import fsum' is done 
before it, but I've left such issues for now since there seems to be a debate 
about how to go about that
- some seem unfixable too - e.g. Doc/library/filecmp.rst - 'dir1' and 
'dir2' do not exist, and so the print_diff_files() fails, but there seems to be 
no reason to fix this; the same for Doc/library/imghdr.rst - there is no 
/tmp/bass.gif, so it fails
- some fail for inexplicable reasons - Doc/library/string.rst - the 
table of numbers does not match, though it is exactly the same. No idea why.

--
assignee: docs@python
components: Documentation
files: doc_lib.patch
keywords: patch
messages: 172253
nosy: Ravi.Sinha, chris.jerdonek, docs@python, r.david.murray, terry.reedy
priority: normal
severity: normal
status: open
title: Some minor doc fixes in Doc/library
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file27462/doc_lib.patch

___
Python tracker 
<http://bugs.python.org/issue16154>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16155] Some minor doc fixes in Doc/faq

2012-10-06 Thread Ravi Sinha

New submission from Ravi Sinha:

- help(fn) which in the REPL leads to a new pager/ display - seems to be 
difficult to test with doctest - it does not seem to pick the whitespace in the 
docs and does not match - Doc/faq/general.rst
- os.path.isdir returns True or False, not 0 or 1 as in the docs, but I 
didn't know if I should change that - Doc/faq/windows.rst

--
assignee: docs@python
components: Documentation
files: doc_faq.patch
keywords: patch
messages: 172254
nosy: Ravi.Sinha, chris.jerdonek, docs@python, r.david.murray, terry.reedy
priority: normal
severity: normal
status: open
title: Some minor doc fixes in Doc/faq
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file27463/doc_faq.patch

___
Python tracker 
<http://bugs.python.org/issue16155>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16154] Some minor doc fixes in Doc/library

2012-10-14 Thread Ravi Sinha

Ravi Sinha added the comment:

I've used the testsetup directive and the problem in 
http://hg.python.org/cpython/file/40a1652349e9/Doc/library/math.rst, line 79, 
is fixed; the test passes

Added # doctest: +SKIP to lines 179 and 180 in 
http://hg.python.org/cpython/file/40a1652349e9/Doc/library/filecmp.rst, and it 
passes too

For http://hg.python.org/cpython/file/40a1652349e9/Doc/library/string.rst, 
lines 612-624, used +NORMALIZE_WHITESPACE and the test passed, but since Terry 
preferred a code change, did that too; the test passes

Put my name at the proper position in Misc/ACKS

For the multiple versions, I needed to ask whether they'd all belong to this 
same patch or there would be different patches for each version? Sorry if it's 
a silly question; I haven't had the time to wrap my head around how to best 
work with all the versions together 

With the directives Chris and Terry suggested, it should be easy to make 
several other tests pass; I'll make a few more patches

--
Added file: http://bugs.python.org/file27574/doc_lib_Oct14_2012.patch

___
Python tracker 
<http://bugs.python.org/issue16154>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16154] Some minor doc fixes in Doc/library

2012-10-21 Thread Ravi Sinha

Changes by Ravi Sinha :


Added file: http://bugs.python.org/file27649/27.doc_lib_Oct21_2012.patch

___
Python tracker 
<http://bugs.python.org/issue16154>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16154] Some minor doc fixes in Doc/library

2012-10-21 Thread Ravi Sinha

Changes by Ravi Sinha :


Added file: http://bugs.python.org/file27650/32.doc_lib_Oct21_2012.patch

___
Python tracker 
<http://bugs.python.org/issue16154>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16154] Some minor doc fixes in Doc/library

2012-10-21 Thread Ravi Sinha

Changes by Ravi Sinha :


Added file: http://bugs.python.org/file27651/33.doc_lib_Oct21_2012.patch

___
Python tracker 
<http://bugs.python.org/issue16154>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16154] Some minor doc fixes in Doc/library

2012-10-21 Thread Ravi Sinha

Ravi Sinha added the comment:

Based on what I saw on some other issues, I think there is just a separate 
patch for each version (coming from separate working repositories), but all 
attached to the same issue. So I am doing the same. All the changes have been 
made to files under Doc/library/ - colorsys.rst, filecmp.rst, fractions.rst, 
math.rst, string.rst and Misc/ACKS. The beginning number for each patch and the 
description show which version it's meant for.

There are some minor differences for 2.7 and 3.2; they either did not need a 
fix or needed some more tests to be skipped.

For 2.7 and 3.2 I don't know how to use the online source browser to link the 
files directly.

Please let me know if the patches are okay or how to go from here. 
Thanks.

--

___
Python tracker 
<http://bugs.python.org/issue16154>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16155] Some minor doc fixes in Doc/faq

2012-10-21 Thread Ravi Sinha

Ravi Sinha added the comment:

Did the same changes for versions 2.7, 3.2, 3.3, and 3.4

For line wrap in cases like 
http://hg.python.org/cpython/file/40a1652349e9/Doc/faq/general.rst, line 448, 
broke the list across separate lines, and had to use +NORMALIZE_WHITESPACE to 
make the tests pass.

For the same file, in line 454, versions 2.7 and 3.2 don't have '-> None' while 
versions 3.3 and 3.4 do. So made the changes accordingly. Adding '' 
around the contents of the help is making the tests pass too. I am assuming 
that  means the new pager that I get on OS X. This was the case 
uniformly across all 4 versions.

Attaching all 4 patches, for different versions. Please let me know where to go 
from here.

--
Added file: http://bugs.python.org/file27652/27.doc_faq_Oct21_2012.patch

___
Python tracker 
<http://bugs.python.org/issue16155>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16155] Some minor doc fixes in Doc/faq

2012-10-21 Thread Ravi Sinha

Changes by Ravi Sinha :


Added file: http://bugs.python.org/file27653/32.doc_faq_Oct21_2012.patch

___
Python tracker 
<http://bugs.python.org/issue16155>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16155] Some minor doc fixes in Doc/faq

2012-10-21 Thread Ravi Sinha

Changes by Ravi Sinha :


Added file: http://bugs.python.org/file27654/33.doc_faq_Oct21_2012.patch

___
Python tracker 
<http://bugs.python.org/issue16155>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16155] Some minor doc fixes in Doc/faq

2012-10-21 Thread Ravi Sinha

Changes by Ravi Sinha :


Added file: http://bugs.python.org/file27655/34.doc_faq_Oct21_2012.patch

___
Python tracker 
<http://bugs.python.org/issue16155>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com