[issue815646] thread unsafe file objects cause crash

2010-10-14 Thread Paul Bolle

Paul Bolle  added the comment:

0) I ran into some (small) problems with the documentation added by revision 
62195. It seems more efficient to reuse this issue to report these. Feel free 
to ask me to open another issue if that's not appreciated.

1) A small patch that addresses two problems with the current (ie, 2.7) 
documentation should be attached:
- link three occurrences of "GIL" to the GIL entry in the glossary; and
- add some example code to clarify the usage of PyFile_IncUseCount() 
andPyFile_DecUseCount().

2) That patch also adds a link to the "Thread State and the Global Interpreter 
Lock" section to the GIL entry in the Documentation index. That is a separate 
problem. But fixing that minor problem could also be of help to people (like 
me) that need to better understand the GIL aspects of those two functions.

--
nosy: +pebolle
Added file: http://bugs.python.org/file19237/python-2.7-Doc-gil.patch

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



[issue10111] Minor problems with PyFileObject documentation (Doc/c-api/file.rst)

2010-10-14 Thread Paul Bolle

New submission from Paul Bolle :

0) I ran into some (small) problems with the documentation added by revision 
62195 (see issue 815646 for background).

1) A small patch that addresses two problems with the Python 2.7 documentation 
should be attached:
- link three occurrences of "GIL" to the GIL entry in the glossary; and
- add some example code to clarify the usage of PyFile_IncUseCount() 
andPyFile_DecUseCount().

2) That patch also adds a link to the "Thread State and the Global Interpreter 
Lock" section to the GIL entry in the Documentation index. That is a separate 
problem. But fixing that minor problem could also be of help to people (like 
me) that need to better understand the GIL aspects of those two functions.

--
assignee: d...@python
components: Documentation
files: python-2.7-Doc-gil.patch
keywords: patch
messages: 118742
nosy: d...@python, pebolle
priority: normal
severity: normal
status: open
title: Minor problems with PyFileObject documentation (Doc/c-api/file.rst)
versions: Python 2.7
Added file: http://bugs.python.org/file19241/python-2.7-Doc-gil.patch

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



[issue815646] thread unsafe file objects cause crash

2010-10-14 Thread Paul Bolle

Paul Bolle  added the comment:

> please open a new issue and attach your patch(s) there

Issue 10111 now tracks the documentation problems.

--

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



[issue8340] bytearray undocumented on trunk

2010-10-15 Thread Paul Bolle

Changes by Paul Bolle :


--
nosy: +pebolle

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



[issue10124] obvious typo in cporting HOWTO

2010-10-16 Thread Paul Bolle

New submission from Paul Bolle :

0) There's an obvious typo in the cporting HOWTO:

[...] It’s also important to remember that PyBytes and PyUnicode in 3.0 are not 
interchangeable like PyString and PyString are in 2.x. [...]

That PyString and PyString are interchangeable is obviously not what the author 
wanted to tell.

1) I'll attach a patch to change this into what I suppose the author had in 
mind. (If I knew for sure I wouldn't have read that HOWTO in the first place.)

--
assignee: d...@python
components: Documentation
files: python-2.7-Doc-pystring.patch
keywords: patch
messages: 118875
nosy: d...@python, pebolle
priority: normal
severity: normal
status: open
title: obvious typo in cporting HOWTO
Added file: http://bugs.python.org/file19251/python-2.7-Doc-pystring.patch

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