cpython/Misc
Trent Nelson e41b0061dd - Issue #2550: The approach used by client/server code for obtaining ports
to listen on in network-oriented tests has been refined in an effort to
  facilitate running multiple instances of the entire regression test suite
  in parallel without issue.  test_support.bind_port() has been fixed such
  that it will always return a unique port -- which wasn't always the case
  with the previous implementation, especially if socket options had been
  set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT).  The
  new implementation of bind_port() will actually raise an exception if it
  is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or
  SO_REUSEPORT socket option set.  Furthermore, if available, bind_port()
  will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed.
  This currently only applies to Windows.  This option prevents any other
  sockets from binding to the host/port we've bound to, thus removing the
  possibility of the 'non-deterministic' behaviour, as Microsoft puts it,
  that occurs when a second SOCK_STREAM socket binds and accepts to a
  host/port that's already been bound by another socket.  The optional
  preferred port parameter to bind_port() has been removed.  Under no
  circumstances should tests be hard coding ports!

  test_support.find_unused_port() has also been introduced, which will pass
  a temporary socket object to bind_port() in order to obtain an unused port.
  The temporary socket object is then closed and deleted, and the port is
  returned.  This method should only be used for obtaining an unused port
  in order to pass to an external program (i.e. the -accept [port] argument
  to openssl's s_server mode) or as a parameter to a server-oriented class
  that doesn't give you direct access to the underlying socket used.

  Finally, test_support.HOST has been introduced, which should be used for
  the host argument of any relevant socket calls (i.e. bind and connect).

  The following tests were updated to following the new conventions:
    test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib,
    test_poplib, test_ftplib, test_telnetlib, test_socketserver,
    test_asynchat and test_socket_ssl.

  It is now possible for multiple instances of the regression test suite to
  run in parallel without issue.
2008-04-08 23:47:30 +00:00
..
RPM Updating for 2.6a2 2008-04-03 04:10:02 +00:00
Vim Update Vim syntax highlighting to specify what revision was used to generate 2008-01-29 04:18:04 +00:00
ACKS Accept patch issue2426 by Paul Kippes (kippesp). 2008-03-28 08:32:09 +00:00
AIX-NOTES The fix to use . was incorporated 2003-06-08 02:25:17 +00:00
BeOS-NOTES Remove Mikael as the maintainer of BeOS at his request. With no maintainer 2007-08-18 18:30:36 +00:00
BeOS-setup.py Patch #2167 from calvin: Remove unused imports 2008-02-23 17:40:11 +00:00
HISTORY Fix a few typos and layout glitches (more work is needed). 2008-02-21 19:46:35 +00:00
NEWS - Issue #2550: The approach used by client/server code for obtaining ports 2008-04-08 23:47:30 +00:00
NEWS.help Bug #1014775: update NEWS.help for changes in docutils. 2004-08-30 14:33:25 +00:00
PURIFY.README Update purify doc some. 2006-08-14 01:49:54 +00:00
Porting Patch #411138: Rename config.h to pyconfig.h. Closes bug #231774. 2001-07-26 13:41:06 +00:00
README Add some doc about using valgrind 2004-06-06 19:58:40 +00:00
README.OpenBSD Add some notes about a recurring problem with OpenBSD 2006-01-09 07:29:03 +00:00
README.coverity Add some explanation about Klocwork and Coverity static analysis 2006-08-02 07:09:32 +00:00
README.klocwork Klocwork made another run and found a bunch more problems. 2006-08-12 01:43:40 +00:00
README.valgrind Add some notes about a couple of poorly behaved tests 2006-04-17 01:49:14 +00:00
RFD Initial revision 1994-01-26 10:20:16 +00:00
SpecialBuilds.txt Fix typo. 2006-11-15 16:23:46 +00:00
build.sh test_smtplib sometimes reports leaks too, suppress it 2008-03-05 05:51:20 +00:00
cheatsheet Fix typo of hexidecimal 2008-02-24 08:27:49 +00:00
developers.txt Add Josiah. 2008-03-26 09:04:36 +00:00
find_recursionlimit.py Whitespace normalization, via reindent.py. 2004-07-18 06:16:08 +00:00
gdbinit break sets a breakpoint rather than stopping the loop. 2005-09-05 16:16:49 +00:00
indent.pro Some new files... 1994-09-14 14:06:46 +00:00
pymemcompat.h Fix grammatically inept comment. 2002-08-22 13:36:11 +00:00
python-config.in Bug #1655392: don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS 2007-03-31 18:56:11 +00:00
python-mode.el sync with most recent version from python-mode sf project 2008-02-05 02:32:16 +00:00
python.man fix two typos in python(1) 2005-03-20 14:16:03 +00:00
setuid-prog.c correct bogus instructions 'ccoment out' -> 'uncomment' 1998-09-10 20:18:09 +00:00
valgrind-python.supp Ignore valgrind problems on Ubuntu from ld 2007-06-11 01:22:03 +00:00
vgrindefs Add 'yield' as a keyword 2001-08-06 17:42:53 +00:00

README

Python Misc subdirectory
========================

This directory contains files that wouldn't fit in elsewhere.  Some
documents are only of historic importance.

Files found here
----------------

ACKS		Acknowledgements
AIX-NOTES	Notes for building Python on AIX
BeOS-NOTES	Notes for building on BeOS
BeOS-setup.py	setup.py replacement for BeOS, see BeOS-NOTES
cheatsheet	Quick summary of Python by Ken Manheimer
find_recursionlimit.py  Script to find a value for sys.maxrecursionlimit
gdbinit		Handy stuff to put in your .gdbinit file, if you use gdb
HISTORY		News from previous releases -- oldest last
HPUX-NOTES	Notes about dynamic loading under HP-UX
indent.pro	GNU indent profile approximating my C style
NEWS		News for this release (for some meaning of "this")
Porting		Mini-FAQ on porting to new platforms
PURIFY.README	Information for Purify users
pymemcompat.h	Memory interface compatibility file.
python.man	UNIX man page for the python interpreter
python-mode.el	Emacs mode for editing Python programs
README		The file you're reading now
README.valgrind	Information for Valgrind users, see valgrind-python.supp
RFD		Request For Discussion about a Python newsgroup
RPM		(Old) tools to build RPMs
SpecialBuilds.txt     Describes extra symbols you can set for debug builds
setuid-prog.c	C helper program for set-uid Python scripts
vgrindefs	Python configuration for vgrind (a generic pretty printer)
valgrind-python.supp	Valgrind suppression file, see README.valgrind