Georg Brandl
47fe9817f1
Merged revisions 67952-67953,67955,67957-67958,67960-67961,67963,67965,67967,67970-67971,67973,67982,67988,67990,67995,68014,68016,68030,68057,68061,68112,68115-68118,68120-68121,68123-68128 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r67952 | georg.brandl | 2008-12-27 18:42:40 +0100 (Sat, 27 Dec 2008) | 2 lines
#4752 : actually use custom handler in example.
........
r67953 | georg.brandl | 2008-12-27 19:20:04 +0100 (Sat, 27 Dec 2008) | 3 lines
Patch #4739 by David Laban: add symbols to pydoc help topics,
so that ``help('@')`` works as expected.
........
r67955 | georg.brandl | 2008-12-27 19:27:53 +0100 (Sat, 27 Dec 2008) | 3 lines
Follow-up to r67746 in order to restore backwards-compatibility for
those who (monkey-)patch TextWrapper.wordsep_re with a custom RE.
........
r67957 | georg.brandl | 2008-12-27 19:49:19 +0100 (Sat, 27 Dec 2008) | 2 lines
#4754 : improve winsound documentation.
........
r67958 | georg.brandl | 2008-12-27 20:02:59 +0100 (Sat, 27 Dec 2008) | 2 lines
#4682 : 'b' is actually unsigned char.
........
r67960 | georg.brandl | 2008-12-27 20:04:44 +0100 (Sat, 27 Dec 2008) | 2 lines
#4695 : fix backslashery.
........
r67961 | georg.brandl | 2008-12-27 20:06:04 +0100 (Sat, 27 Dec 2008) | 2 lines
Use :samp: role.
........
r67963 | georg.brandl | 2008-12-27 20:11:15 +0100 (Sat, 27 Dec 2008) | 2 lines
#4671 : document that pydoc imports modules.
........
r67965 | antoine.pitrou | 2008-12-27 21:34:52 +0100 (Sat, 27 Dec 2008) | 3 lines
Issue #4677 : add two list comprehension tests to pybench.
........
r67967 | benjamin.peterson | 2008-12-27 23:18:58 +0100 (Sat, 27 Dec 2008) | 1 line
fix markup
........
r67970 | alexandre.vassalotti | 2008-12-28 02:52:58 +0100 (Sun, 28 Dec 2008) | 2 lines
Fix name mangling of PyUnicode_ClearFreeList.
........
r67971 | alexandre.vassalotti | 2008-12-28 03:10:35 +0100 (Sun, 28 Dec 2008) | 2 lines
Sort UCS-2/UCS-4 name mangling list.
........
r67973 | alexandre.vassalotti | 2008-12-28 03:58:22 +0100 (Sun, 28 Dec 2008) | 2 lines
Document Py_VaBuildValue.
........
r67982 | benjamin.peterson | 2008-12-28 16:37:31 +0100 (Sun, 28 Dec 2008) | 1 line
fix WORD_BIGEDIAN declaration in Universal builds; fixes #4060 and #4728
........
r67988 | ronald.oussoren | 2008-12-28 20:40:56 +0100 (Sun, 28 Dec 2008) | 1 line
Issue4064: architecture string for universal builds on OSX
........
r67990 | ronald.oussoren | 2008-12-28 20:50:40 +0100 (Sun, 28 Dec 2008) | 3 lines
Update the fix for issue4064 to deal correctly with all three variants of
universal builds that are presented by the configure script.
........
r67995 | benjamin.peterson | 2008-12-28 22:16:07 +0100 (Sun, 28 Dec 2008) | 1 line
#4763 PyErr_ExceptionMatches won't blow up with NULL arguments
........
r68014 | benjamin.peterson | 2008-12-29 18:47:42 +0100 (Mon, 29 Dec 2008) | 1 line
#4764 set IOError.filename when trying to open a directory on POSIX platforms
........
r68016 | benjamin.peterson | 2008-12-29 18:56:58 +0100 (Mon, 29 Dec 2008) | 1 line
#4764 in io.open, set IOError.filename when trying to open a directory on POSIX platforms
........
r68030 | benjamin.peterson | 2008-12-29 22:38:14 +0100 (Mon, 29 Dec 2008) | 1 line
fix French
........
r68057 | vinay.sajip | 2008-12-30 08:01:25 +0100 (Tue, 30 Dec 2008) | 1 line
Minor documentation change relating to NullHandler.
........
r68061 | georg.brandl | 2008-12-30 11:15:49 +0100 (Tue, 30 Dec 2008) | 2 lines
#4778 : attributes can't be called.
........
r68112 | benjamin.peterson | 2009-01-01 00:48:39 +0100 (Thu, 01 Jan 2009) | 1 line
#4795 inspect.isgeneratorfunction() should return False instead of None
........
r68115 | benjamin.peterson | 2009-01-01 05:04:41 +0100 (Thu, 01 Jan 2009) | 1 line
simplfy code
........
r68116 | georg.brandl | 2009-01-01 12:46:51 +0100 (Thu, 01 Jan 2009) | 2 lines
#4100 : note that element children are not necessarily present on "start" events.
........
r68117 | georg.brandl | 2009-01-01 12:53:55 +0100 (Thu, 01 Jan 2009) | 2 lines
#4156 : make clear that "protocol" is to be replaced with the protocol name.
........
r68118 | georg.brandl | 2009-01-01 13:00:19 +0100 (Thu, 01 Jan 2009) | 2 lines
#4185 : clarify escape behavior of replacement strings.
........
r68120 | georg.brandl | 2009-01-01 13:15:31 +0100 (Thu, 01 Jan 2009) | 4 lines
#4228 : Pack negative values the same way as 2.4
in struct's L format.
........
r68121 | georg.brandl | 2009-01-01 13:43:33 +0100 (Thu, 01 Jan 2009) | 2 lines
Point to types module in new module deprecation notice.
........
r68123 | georg.brandl | 2009-01-01 13:52:29 +0100 (Thu, 01 Jan 2009) | 2 lines
#4784 : ... on three counts ...
........
r68124 | georg.brandl | 2009-01-01 13:53:19 +0100 (Thu, 01 Jan 2009) | 2 lines
#4782 : Fix markup error that hid load() and loads().
........
r68125 | georg.brandl | 2009-01-01 14:02:09 +0100 (Thu, 01 Jan 2009) | 2 lines
#4776 : add data_files and package_dir arguments.
........
r68126 | georg.brandl | 2009-01-01 14:05:13 +0100 (Thu, 01 Jan 2009) | 2 lines
Handlers are in the `logging.handlers` module.
........
r68127 | georg.brandl | 2009-01-01 14:14:49 +0100 (Thu, 01 Jan 2009) | 2 lines
#4767 : Use correct submodules for all MIME classes.
........
r68128 | antoine.pitrou | 2009-01-01 15:11:22 +0100 (Thu, 01 Jan 2009) | 3 lines
Issue #3680 : Reference cycles created through a dict, set or deque iterator did not get collected.
........
2009-01-01 15:46:10 +00:00
Ronald Oussoren
9bc4ad224a
Backport of r67988
2008-12-28 19:42:55 +00:00
Ronald Oussoren
5640ce2f1e
MacOS X: Enable 4-way universal builds
...
This patch adds a new configure argument on OSX:
--with-universal-archs=[32-bit|64-bit|all]
When used with the --enable-universalsdk option this controls which
CPU architectures are includes in the framework. The default is 32-bit,
meaning i386 and ppc. The most useful alternative is 'all', which includes
all 4 CPU architectures supported by MacOS X (i386, ppc, x86_64 and ppc64).
This includes limited support for the Carbon bindings in 64-bit mode as well,
limited because (a) I haven't done extensive testing and (b) a large portion
of the Carbon API's aren't available in 64-bit mode anyway.
I've also duplicated a feature of Apple's build of python: setting the
environment variable 'ARCHFLAGS' controls the '-arch' flags used for building
extensions using distutils.
2008-06-05 12:58:24 +00:00
Mark Hammond
495cf99aaf
Issue #2513 : enable 64bit cross compilation on windows.
2008-04-07 01:53:39 +00:00
Guido van Rossum
8bc0965adf
Removed uses of dict.has_key() from distutils, and uses of
...
callable() from copy_reg.py, so the interpreter now starts up
without warnings when '-3' is given. More work like this needs to
be done in the rest of the stdlib.
2008-02-21 18:18:37 +00:00
Mark Hammond
e4f271f38d
[ 1761786 ] distutils.util.get_platform() return value on 64bit Windows
...
As discussed on distutils-sig: Allows the generated installer name on
64bit Windows platforms to be different than the name generated for
32bit Windows platforms.
2007-08-21 01:04:47 +00:00
Tim Peters
211219af4f
Whitespace normalization.
2006-05-23 21:54:23 +00:00
Ronald Oussoren
b02daf794b
Patch #1488098 .
...
This patchs makes it possible to create a universal build on OSX 10.4 and use
the result to build extensions on 10.3. It also makes it possible to override
the '-arch' and '-isysroot' compiler arguments for specific extensions.
2006-05-23 12:01:11 +00:00
Georg Brandl
0f45a078a3
Bug #1478326 : don't allow '/' in distutils.util.get_platform machine names
...
since this value is used to name the build directory.
2006-04-28 16:58:52 +00:00
Tim Peters
182b5aca27
Whitespace normalization, via reindent.py.
2004-07-18 06:16:08 +00:00
Martin v. Löwis
1c0f1f97fb
Defer compilation of regular expressions until first use.
2004-03-25 14:58:19 +00:00
Walter Dörwald
70a6b49821
Replace backticks with repr() or "%r"
...
From SF patch #852334 .
2004-02-12 17:35:32 +00:00
Andrew M. Kuchling
b8c7b9f0cc
Translate spaces in the machine name to underscores
...
(Power Macintosh -> Power_Macintosh)
2003-01-06 13:28:12 +00:00
Marc-André Lemburg
0375079e93
Adding Python <= 2.2 support back in.
2002-12-03 08:45:11 +00:00
Andrew M. Kuchling
a6483d2e9a
Remove 'created by' lines; people can use CVS for this, and the information is often out of date
2002-11-14 02:25:42 +00:00
Neal Norwitz
b0df6a1afa
SF bug #574235 , convert_path fails with empty pathname
2002-08-13 17:42:57 +00:00
Guido van Rossum
3b0a3293c3
Massive changes from SF 589982 (tempfile.py rewrite, by Zack
...
Weinberg). This changes all uses of deprecated tempfile functions to
the recommended ones.
2002-08-09 16:38:32 +00:00
Jeremy Hylton
cd8a1148e1
Make setup.py less chatty by default.
...
This is a conservative version of SF patch 504889. It uses the log
module instead of calling print in various places, and it ignores the
verbose argument passed to many functions and set as an attribute on
some objects. Instead, it uses the verbosity set on the logger via
the command line.
The log module is now preferred over announce() and warn() methods
that exist only for backwards compatibility.
XXX This checkin changes a lot of modules that have no test suite and
aren't exercised by the Python build process. It will need
substantial testing.
2002-06-04 20:14:43 +00:00
Andrew M. Kuchling
0b5c11252d
Prevent convert_path from crashing if the path is an empty string. Bugfix candidate.
2002-05-06 13:57:19 +00:00
Marc-André Lemburg
2544f51036
OS/2 patches by Andrew I MacIntyre for distutils.
...
Closes patch #435381 .
2002-01-31 18:56:00 +00:00
Fred Drake
b94b849d65
Whitespace normalization.
2001-12-06 20:51:35 +00:00
Andrew M. Kuchling
5a3e4cb0a2
Patch #429442 from Jason Tishler: Corrects sys.platform and
...
distutils.util.get_platform() problems caused by the cruft contained
in Cygwin's uname -s.
2001-07-20 19:29:04 +00:00
Andrew M. Kuchling
88b0884787
Change rfc822_escape() to ensure there's a consistent amount of whitespace
...
after each newline, instead of just blindly inserting a space at
the start of each line. (Improvement suggested by Thomas Wouters)
2001-03-23 17:30:26 +00:00
Andrew M. Kuchling
df66df0a28
Patch #407434 : add rfc822_escape utility function
2001-03-22 03:03:41 +00:00
Andrew M. Kuchling
83c158fdc9
Bug #229280 : remove '/' characters from the OS name (for BSD/OS :) )
2001-02-27 19:25:42 +00:00
Andrew M. Kuchling
9767e76808
Patch #404275 : generate a reasonable platform string for AIX
2001-02-27 18:48:00 +00:00
Jack Jansen
b4cd5c1a3a
Remove single "." components from pathnames, and return os.curdir if
...
the resulting path is empty.
2001-01-28 12:23:32 +00:00
Jeremy Hylton
5e2d0764cd
In subst_vars(), change the name of the argument from str to s to
...
prevent binding for str from masking use of builtin str in nested
function.
(This is the only case I found in the standard library where a local
shadows a global or builtin. There may be others, but the regression
test doesn't catch them.)
2001-01-25 20:10:32 +00:00
Andrew M. Kuchling
989835c9fc
Patch #103220 from Jason Tishler:
...
This patch adds support for Cygwin to util.get_platform(). A Cygwin
specific case is needed due to the format of Cygwin's uname command,
which contains '/' characters.
2001-01-19 16:26:12 +00:00
Greg Ward
047c3723d0
Removed debugging code at bottom.
2000-10-14 04:07:39 +00:00
Greg Ward
9216cfe7ba
Added a long-winded comment (and commented-out comment to go with out)
...
about how it would be nice to write absolute paths to the temporary
byte-compilation script, but this doesn't work because it screws up the
trailing-slash trickery done to 'prefix' in build_py's 'byte_compile()'
method.
Fixed to use 'execute()' instead of 'os.remove()' to remove the temporary
script: now it doesn't blow up in dry-run mode!
2000-10-03 03:31:05 +00:00
Greg Ward
04cc88df05
Remove the temporary byte-compilation script when we're done with it.
2000-10-02 02:09:55 +00:00
Greg Ward
f217e2124a
Tweaked 'byte_compile()' so it silently skips non-Python files, rather than
...
blowing up.
2000-10-01 23:49:30 +00:00
Greg Ward
1297b5ce67
Added 'byte_compile(): an all-singing, all-dancing wrapper around the
...
standard 'py_compile.compile()' function. Laundry list of features:
- handles standard Distutils 'force', 'verbose', 'dry_run' flags
- handles various levels of optimization: can compile directly in
this interpreter process, or write a temporary script that is
then executed by a new interpreter with the appropriate flags
- can rewrite the source filename by stripping an optional prefix
and preprending an optional base dir.
2000-09-30 20:37:56 +00:00
Greg Ward
4752769d08
Various docstring tweaks.
...
Fixed 'subst_vars()' so it actually blows up like the docstring claims
(and fixed the docstring not to claim it handles ${var}, which it
doesn't).
2000-09-30 18:49:14 +00:00
Greg Ward
b8b263b92f
Reformat docstrings.
2000-09-30 18:40:42 +00:00
Greg Ward
ec84c21ce2
In 'get_platform()', handle so-called POSIX systems that don't have
...
'uname()' -- specifically NeXTSTEP.
2000-09-30 17:09:39 +00:00
Greg Ward
be86bdea73
Standardize whitespace in function calls.
2000-09-26 01:56:15 +00:00
Greg Ward
817dc098ef
Added 'strtobool()' function: convert strings like "yes", "1",
...
"no", "0", etc. to true/false.
2000-09-25 01:25:06 +00:00
Greg Ward
7ec053544c
Fix 'convert_path()' so it returns immediately under Unix -- prevents blowing
...
up when the pathname starts with '/', which is needed when converting
installation directories in the "install" command.
2000-09-22 01:05:43 +00:00
Greg Ward
f5855746fe
Corran Webster: fix 'change_root()' to handle Mac OS paths.
2000-09-21 01:23:35 +00:00
Greg Ward
59399bb303
Revamped 'get_platform()' to try and do something reasonably smart on
...
POSIX platforms, ie. get a little more detail than 'sys.platform' gives.
2000-09-15 01:16:14 +00:00
Greg Ward
2b042ded19
Fix so 'split_quoted()' handles any whitespace delimiter (not just space).
2000-08-08 14:38:13 +00:00
Greg Ward
5a8aa1ba2e
Drop the 'extend()' function -- old 1.5.1 compatibility hack that
...
wasn't actually used anywhere.
Drop the "from xxx_util import*" backwards compability hacks.
2000-08-05 01:25:24 +00:00
Greg Ward
1c16ac360a
Added the 'execute()' function (moved here from cmd.py with minor tweakage).
2000-08-02 01:37:30 +00:00
Greg Ward
bb56190422
Ditched 'abspath()' -- don't need 1.5.1 compatability hacks anymore.
2000-08-02 00:37:32 +00:00
Greg Ward
612eb9f58f
Fixed a grab-bag of typos spotted by Rob Hooft.
2000-07-27 02:13:20 +00:00
Jeremy Hylton
a05e293a21
typos fixed by Rob Hooft
2000-06-28 14:48:01 +00:00
Greg Ward
6a2a3dbec5
Added 'split_quoted()' function to deal with strings that are quoted in
...
Unix shell-like syntax (eg. in Python's Makefile, for one thing -- now that
I have this function, I'll probably allow quoted strings in config files too.
2000-06-24 20:40:02 +00:00
Greg Ward
b75c485f0b
'get_platform()' now just returns 'sys.platform' on all platforms.
2000-06-18 15:45:55 +00:00