[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-23 Thread Éric Araujo
Éric Araujo added the comment: I find it strange that you propose to make a function public and remove its doc :) Is a negative missing in the bug title? -- nosy: +eric.araujo ___ Python tracker

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: > In which case can it be None? Oh, I misunderstood threading.py. current_thread().ident cannot be None. During the bootstrap of a thread, Thread._ident is None, but current_thread().ident is not None because current_thread() creates a dummy thread object ha

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I think that threading._get_ident() is more reliable than > threading.current_thread().ident because Thread.ident can be None in > some cases. In which case can it be None? -- ___ Python tracker

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: The threading API changed in Python 3 with the PEP 3108, especially and issue #2875. Extract of the PEP: "thread [done] * People should use 'threading' instead. * Rename 'thread' to _thread. * Deprecate dummy_thread and rename _dummy_thread. * Move

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: @pitrou: What do you think Antoine? -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list ma

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-07 Thread STINNER Victor
STINNER Victor added the comment: I think that threading._get_ident() is more reliable than threading.current_thread().ident because Thread.ident can be None in some cases. -- ___ Python tracker _

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-07 Thread STINNER Victor
New submission from STINNER Victor : I don't know why threading._get_ident() (which is _thread.get_ident()) is private: this function is safe. This function becomes useful with pthread_kill() which will be added by #8407. -- assignee: docs@python components: Documentation, Library (Lib