You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enforce PEP 11 - remove support for legacy systems #56072
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2011-07-08.21:55:35.385>created_at=<Date2011-04-18.00:08:57.309>labels= ['interpreter-core', 'easy', 'type-feature', 'build']
title='Enforce PEP 11 - remove support for legacy systems'updated_at=<Date2011-07-08.21:55:35.385>user='https://github.com/pitrou'
Patch removing cpthread, pth, lwp and solaris thread implementations. The patch on configure.in, around the following diff, is invalid:
----
AC_DEFINE(_REENTRANT)
-AC_CHECK_HEADER(cthreads.h, [AC_DEFINE(WITH_THREAD)
-AC_DEFINE(C_THREADS)
-AC_DEFINE(HURD_C_THREADS, 1,
- [DefineifyouareusingMachcthreadsdirectlyunder/include])
-LIBS="$LIBS -lthreads"-THREADOBJ="Python/thread.o"],[
-AC_CHECK_HEADER(mach/cthreads.h, [AC_DEFINE(WITH_THREAD)
-AC_DEFINE(C_THREADS)
-AC_DEFINE(MACH_C_THREADS, 1,
- [DefineifyouareusingMachcthreadsundermach/])
-THREADOBJ="Python/thread.o"],[
# Just looking for pthread_create in libpthread is not enough:# on HP/UX, pthread.h renames pthread_create to a different symbol name.# So we really have to include pthread.h, and then link.
autoconf will have to be run to update configure.
I am not sure that the patch removes all code related to these threads.
Activity
pitrou commentedon Apr 18, 2011
PEP-11 calls for removing support for the following systems in 3.3:
jcea commentedon Apr 18, 2011
I think I toke care of OSF cleanup already.
vstinner commentedon Apr 19, 2011
Issue bpo-11876 has been marked as a duplicate of this issue.
vstinner commentedon Apr 19, 2011
Patch removing cpthread, pth, lwp and solaris thread implementations. The patch on configure.in, around the following diff, is invalid:
----
autoconf will have to be run to update configure.
I am not sure that the patch removes all code related to these threads.
vstinner commentedon Apr 19, 2011
FYI Hurd only supports cthread, without cthread support, Python will not support threads on Hurd anymore.
There are two Hurd issues to move from cthread to pthread
http://savannah.gnu.org/task/?5487 (opened 5 years ago)
http://savannah.gnu.org/task/?7895 (opened 3 years ago)
vstinner commentedon Apr 19, 2011
Python/thread.c contains a reference to a missing file:
But I don't see where PLAN9_THREADS is defined.
remove_threads.patch removes these 3 lines.
--
There is also an unused file: Python/thread_wince.c. Can it be removed?
pitrou commentedon Apr 19, 2011
+1 to both.
python-dev commentedon Jul 8, 2011
New changeset 638039a4fef3 by Antoine Pitrou in branch 'default':
Issue bpo-11863: remove unused file Python/thread_wince.h
http://hg.python.org/cpython/rev/638039a4fef3
python-dev commentedon Jul 8, 2011
New changeset 0aa3f90f0830 by Antoine Pitrou in branch 'default':
Issue bpo-11863: Remove support for legacy systems deprecated in Python 3.2
http://hg.python.org/cpython/rev/0aa3f90f0830