Johannes Gijsbers [Sun, 9 Jan 2005 15:29:10 +0000 (15:29 +0000)]
Patch #712317: In URLs such as http://www.example.com?query=spam, treat '?' as
a delimiter. Previously, the 'network location' (<authority> in RFC 2396) would
become 'www.example.com?query=spam', while RFC 2396 does not allow a '?' in
<authority>. See bug #548176 for further discussion.
Johannes Gijsbers [Sun, 9 Jan 2005 05:51:49 +0000 (05:51 +0000)]
Patch #
1095362: replace hardcoded test for POST/GET with call to get_method,
removing some duplication and gaining some flexibility in the process.
Johannes Gijsbers [Sun, 9 Jan 2005 01:58:02 +0000 (01:58 +0000)]
Move code in __name__ == '__main__' block into main() function, rewrite code so
there's no need to subclass OptionParser.
Johannes Gijsbers [Sun, 9 Jan 2005 00:36:53 +0000 (00:36 +0000)]
Patch #
1051321 (fixes bugs
1010196,
1013525), by Mike Brown:
* Document hasFeature(), createDocument(), CreateDocumentType(),
hasAttribute(), hasAttributeNS().
* In the documentation for createDocument(), it is now stated that the Python
DOM API allows implementations to forego creation of the document element
child node, if no namespace and local name arguments are given. (This
possibility is left open and unaddressed in the W3C spec).
* Addition by me: use 'name' rather than 'attname', for consistency with the
DOM specification and the Python DOM API implementation.
Johannes Gijsbers [Sun, 9 Jan 2005 00:12:48 +0000 (00:12 +0000)]
Bug #
1098497: various small typo's, grammar and markup nits.
Skip Montanaro [Sat, 8 Jan 2005 21:58:58 +0000 (21:58 +0000)]
comment tweak
Skip Montanaro [Sat, 8 Jan 2005 21:56:43 +0000 (21:56 +0000)]
Add definitions for "up" and "down" commands that print/display the current
Python file/line when the current C execution frame is inside
PyEval_EvalFrame. These are commented out by default because GDB sometimes
crashes as a result (seems like a GDB bug).
Add a pyframe command that displays the current Python stack frame. If the
marked lines are uncommented, it will also cause Emacs/XEmacs to display the
current file/line.
Johannes Gijsbers [Sat, 8 Jan 2005 20:16:43 +0000 (20:16 +0000)]
Patch #936774: unify the display of data descriptors, including slots,
properties, and custom descriptors.
* removed special handling of properties
* added special handling of data descriptors - All data descriptors are grouped
together in a section. For each item, the attribute name and doc string, if
present, is displayed.
* disabled display of __slots__ attribute - since slots are descriptors, they
are listed in the section described above
Thanks to John Belmonte for the patch!
Johannes Gijsbers [Sat, 8 Jan 2005 14:12:27 +0000 (14:12 +0000)]
Replace rfc822.parseaddr with email.Utils.parseaddr. The implementation is
still the same, so there should be no backwards-compatibility problems.
Johannes Gijsbers [Sat, 8 Jan 2005 13:56:36 +0000 (13:56 +0000)]
Patch #
1079734: remove dependencies on (deprecated) rfc822 and mimetools
modules, replacing with email. Thanks to Josh Hoyt for the patch!
Johannes Gijsbers [Sat, 8 Jan 2005 13:28:54 +0000 (13:28 +0000)]
Clean up tests by reusing functions from other modules:
* replace deltree with shutil.rmtree()
* replace mkdirs with os.makedirs()
* fold touchfile into GlobTests.mktemp()
Johannes Gijsbers [Sat, 8 Jan 2005 13:13:19 +0000 (13:13 +0000)]
Patch #943206:
`glob.glob()` currently calls itself recursively to build a list of matches of
the dirname part of the pattern and then filters by the basename part. This is
effectively BFS. ``glob.glob('*/*/*/*/*/foo')`` will build a huge list of all
directories 5 levels deep even if only a handful of them contain a ``foo``
entry. A generator-based recusion would never have to store these list at once
by implementing DFS. This patch converts the `glob` function to an `iglob`
recursive generator . `glob()` now just returns ``list(iglob(pattern))``.
I also cleaned up the code a bit (reduced duplicate `has_magic()` checks and
created a second `glob0` helper func so that the main loop need not be
duplicated).
Thanks to Cherniavsky Beni for the patch!
Johannes Gijsbers [Sat, 8 Jan 2005 12:31:29 +0000 (12:31 +0000)]
Patch #
1094015:
* Use os.makedirs() instead os.mkdir(). (bug #975763)
* Use copystat() to copy directory bits (bug #
1048878)
Tim Peters [Sat, 8 Jan 2005 07:30:42 +0000 (07:30 +0000)]
threading._DummyThread.__init__(): document obscure new code.
test_threading.test_foreign_thread(): new test does a basic check that
"foreign" threads can using the threading module, and that they create
a _DummyThread instance in at least one use case. This isn't a very
good test, since a thread created by thread.start_new_thread() isn't
particularly "foreign".
Tim Peters [Sat, 8 Jan 2005 06:03:17 +0000 (06:03 +0000)]
Converted to a unittest. Added checks that the bounded semaphore actually
does what it's supposed to do.
Brett Cannon [Sat, 8 Jan 2005 02:43:53 +0000 (02:43 +0000)]
In _DummyThread objects the lock stored in __block (allocated thanks to
_Thread.__init__) was never used. This is a waste since locks use OS
primitives that are in limited supply. So the lock is deleted in
_DummyThread.__init__ .
Closes bug #
1089632.
Raymond Hettinger [Fri, 7 Jan 2005 18:34:56 +0000 (18:34 +0000)]
Remove test for BINARY_DIVIDE.
Armin Rigo [Fri, 7 Jan 2005 18:10:51 +0000 (18:10 +0000)]
Re-running python with/without the -Qnew flag uses incorrectly optimized
bytecodes from the previously saved .pyc files. Fixed by disabling the static
optimization of BINARY_DIVIDE between two constants.
Tim Peters [Fri, 7 Jan 2005 16:01:32 +0000 (16:01 +0000)]
Whitespace normalization.
Andrew M. Kuchling [Fri, 7 Jan 2005 14:34:41 +0000 (14:34 +0000)]
[Bug
1083177] Describe signal() change; add a link
Jack Jansen [Fri, 7 Jan 2005 13:43:31 +0000 (13:43 +0000)]
Allow relative URLs for included databases and packages.
Jack Jansen [Fri, 7 Jan 2005 13:08:22 +0000 (13:08 +0000)]
Patch #
1097739 by Bob Ippolito:
MacOSX: if we cannot use -undefined dynamic_lookup (such as on 10.2 or earlier)
we link extension directly against the dynamic library in the framework in
stead of against the framework. This will fix building extensions for 2.3
after 2.4 has been installed too.
Jack Jansen [Fri, 7 Jan 2005 12:56:21 +0000 (12:56 +0000)]
Oops, there was a tab in there.
Jack Jansen [Fri, 7 Jan 2005 12:50:12 +0000 (12:50 +0000)]
Workaround for the fact that urllib2 doesn't default to "file:" urls.
Jack Jansen [Fri, 7 Jan 2005 10:49:32 +0000 (10:49 +0000)]
Always set CONFIGURE_MACOSX_DEPLOYMENT_TARGET otherwise it may be set
to an empty value and distutils will get confused lateron.
Raymond Hettinger [Fri, 7 Jan 2005 08:15:41 +0000 (08:15 +0000)]
SF #75103: imghdr -- identify JPEGs in EXIF format
Andrew McNamara [Fri, 7 Jan 2005 06:46:50 +0000 (06:46 +0000)]
Fix to use PEP7 brace style.
Andrew McNamara [Fri, 7 Jan 2005 04:42:45 +0000 (04:42 +0000)]
Improved the implementation of the internal "dialect" type. The new
implementation features better error reporting, and better compliance
with the PEP.
Raymond Hettinger [Fri, 7 Jan 2005 04:33:44 +0000 (04:33 +0000)]
SF patch
1094011: Docs for file() vs open().
Facundo Batista [Fri, 7 Jan 2005 02:50:22 +0000 (02:50 +0000)]
Added example to os.stat()
Raymond Hettinger [Fri, 7 Jan 2005 00:49:17 +0000 (00:49 +0000)]
SF bug #
1091740: garbage collector still documented as optional
Andrew McNamara [Thu, 6 Jan 2005 02:25:41 +0000 (02:25 +0000)]
Delete Reader_getiter and replace with PyObject_SelfIter.
Skip Montanaro [Wed, 5 Jan 2005 07:19:11 +0000 (07:19 +0000)]
add two missing items
Skip Montanaro [Wed, 5 Jan 2005 07:13:32 +0000 (07:13 +0000)]
add descriptions of exported data attributes
Skip Montanaro [Wed, 5 Jan 2005 07:03:53 +0000 (07:03 +0000)]
describe reset()
Skip Montanaro [Wed, 5 Jan 2005 06:58:15 +0000 (06:58 +0000)]
add a couple missing items
Skip Montanaro [Wed, 5 Jan 2005 06:54:58 +0000 (06:54 +0000)]
add a couple missing docstrings
Raymond Hettinger [Tue, 4 Jan 2005 21:25:00 +0000 (21:25 +0000)]
Clarify that DictMixin is still useful. Only the UserDict class was supplanted.
Martin v. Löwis [Mon, 3 Jan 2005 23:42:01 +0000 (23:42 +0000)]
Fix typo.
Jack Jansen [Mon, 3 Jan 2005 15:44:18 +0000 (15:44 +0000)]
- Added an "installer" flavor, which uses the "open" command to install
something (overridable through Install-command entry)
- Hidden status is now determined by flavor == hidden, not by
missing Download-URL. Hidden packages behave like installer packages.
- Made some error messages a bit more understandable.
Because there's new functionality the version has been upped to 0.5.
Raymond Hettinger [Mon, 3 Jan 2005 07:33:16 +0000 (07:33 +0000)]
Removed unused line.
Raymond Hettinger [Mon, 3 Jan 2005 07:14:12 +0000 (07:14 +0000)]
Removed unused line.
Brett Cannon [Sun, 2 Jan 2005 21:54:07 +0000 (21:54 +0000)]
Since it is a possibility that LDFLAGS or CPPFLAGS were set with options that
in no way affect library or include directories the code must take that into
account and not assume some options were found.
Raymond Hettinger [Sun, 2 Jan 2005 06:17:33 +0000 (06:17 +0000)]
Teach the peephole optimizer to fold simple constant expressions.
Jack Jansen [Sat, 1 Jan 2005 22:33:36 +0000 (22:33 +0000)]
Create the wrapper scripts for gcc/g++ too.
Peter Astrand [Sat, 1 Jan 2005 09:38:57 +0000 (09:38 +0000)]
On UNIX, when the execution of the child fails, we must waitpid() to
prevent leaving zombies.
Peter Astrand [Sat, 1 Jan 2005 09:36:35 +0000 (09:36 +0000)]
New subprocess utility function: check_call. Closes #
1071764.
Raymond Hettinger [Sat, 1 Jan 2005 07:51:01 +0000 (07:51 +0000)]
SF patch #
1094007: Remove witty comment in pydoc.py
(Removed at Ping's request.)
Raymond Hettinger [Sat, 1 Jan 2005 06:10:26 +0000 (06:10 +0000)]
SF patch #
1051395: locale.getdefaultlocale does not return tuple in some OS
(Contributed by Jiwon Seo.)
Raymond Hettinger [Sat, 1 Jan 2005 00:28:46 +0000 (00:28 +0000)]
SF Patch #
1093896: miscellaneous doc typos
Raymond Hettinger [Fri, 31 Dec 2004 21:59:02 +0000 (21:59 +0000)]
Remove some lambdas.
Raymond Hettinger [Fri, 31 Dec 2004 19:15:26 +0000 (19:15 +0000)]
Use cStringIO where available.
Thomas Heller [Fri, 31 Dec 2004 16:37:32 +0000 (16:37 +0000)]
cvsignore files generated by make_versioninfo.
Brett Cannon [Fri, 31 Dec 2004 08:11:21 +0000 (08:11 +0000)]
Strip out double dashes and dashes for options not used during parsing of
LDFLAGS and CPPFLAGS for library and include directories, respectively. Solves
issue of either env var containing other options that do not pertain to the
directories being searched for.
Raymond Hettinger [Fri, 31 Dec 2004 01:07:27 +0000 (01:07 +0000)]
SF bug #
1090139: presentation typo in lib: 6.21.4.2 How callbacks are called
Martin v. Löwis [Thu, 30 Dec 2004 14:08:18 +0000 (14:08 +0000)]
Add more test directories to testsuite. Will backport to 2.4.
Martin v. Löwis [Thu, 30 Dec 2004 10:44:32 +0000 (10:44 +0000)]
Update to VC 7.1. Will backport to 2.4.
Walter Dörwald [Wed, 29 Dec 2004 16:04:38 +0000 (16:04 +0000)]
Add a test that checks the basic functionality of every encoding.
Walter Dörwald [Wed, 29 Dec 2004 15:28:09 +0000 (15:28 +0000)]
Fix wrong variable name.
Martin v. Löwis [Wed, 29 Dec 2004 14:15:58 +0000 (14:15 +0000)]
Update example to VC 7.1. Will backport to 2.4.
Walter Dörwald [Wed, 29 Dec 2004 13:11:10 +0000 (13:11 +0000)]
Fix wrong variable name.
Andrew M. Kuchling [Wed, 29 Dec 2004 12:34:21 +0000 (12:34 +0000)]
Typo fix
Jack Jansen [Tue, 28 Dec 2004 21:33:27 +0000 (21:33 +0000)]
- getDefaultDatabase wasn't listed in __all__.
- using a different database for non-final releases should only be done
for X.Y.0. Non-final micro releases can use the default database just fine,
as they are required to be backward compatible.
Jack Jansen [Tue, 28 Dec 2004 21:30:35 +0000 (21:30 +0000)]
Just passing -undefined dynamic_lookup isn't enough: we also need to set
the MACOSX_DEPLOYMENT_TARGET environment variable to 10.3 when calling the
loader. And we do this with "env" because distutils apparently doesn't
understand environment variable assignments before command names.
Andrew M. Kuchling [Tue, 28 Dec 2004 20:10:48 +0000 (20:10 +0000)]
[Bug #
1083110] calling .flush() on decompress objects causes a segfault due to an uninitialized pointer: fixes the problem and adds a test case
Jack Jansen [Mon, 27 Dec 2004 16:13:39 +0000 (16:13 +0000)]
Added quotes around the destroot arguments, so empty destroot works.
Jack Jansen [Mon, 27 Dec 2004 15:53:20 +0000 (15:53 +0000)]
Updated version numbers.
Jack Jansen [Mon, 27 Dec 2004 15:51:03 +0000 (15:51 +0000)]
Fix for #
1091468: DESTROOTed frameworkinstalls fail. Added a --destroot
option to various tools, and do the right thing when we're doing a destroot
install.
Will backport to 2.4 and 2.3.
Jack Jansen [Sun, 26 Dec 2004 23:07:48 +0000 (23:07 +0000)]
After discussion on the PythonMac-SIG it was decided that it is better
to make using "-undefined dynamic_lookup" for linking extensions more
automatic on 10.3 and later. So if we're on that platform and
MACOSX_DEPLOYMENT_TARGET is not set we now set it to the current OSX
version during configure. Additionally, distutils will pick up the
configure-time value by default.
Will backport.
Jack Jansen [Sun, 26 Dec 2004 23:02:05 +0000 (23:02 +0000)]
A script to fix Apple-installed Python 2.3 (and a test whether the user
needs to run it in the Makefile).
After installing a newer framework Python the apple-installed Python can
no longer build extension modules, because they will inadvertantly be linked
against the newer framework. This script modifies lib/config/Makefile so
it will link extensions with "-undefined dynamic_lookup", which forestalls
this problem.
Will backport to 2.4 and 2.3.
Skip Montanaro [Sun, 26 Dec 2004 15:29:28 +0000 (15:29 +0000)]
correct decorator example, tweak description slightly
Martin v. Löwis [Fri, 24 Dec 2004 08:28:28 +0000 (08:28 +0000)]
Update VC references. Backported to 2.4.
Matthias Klose [Fri, 24 Dec 2004 08:22:17 +0000 (08:22 +0000)]
Use = instead of == as operator to test
Brett Cannon [Fri, 24 Dec 2004 02:40:59 +0000 (02:40 +0000)]
Fix sentence stating TextEdit only saves in RTF; can save in plaintext as well.
Closes bug #
1085300. Thanks unclewalrus.
Armin Rigo [Thu, 23 Dec 2004 22:13:13 +0000 (22:13 +0000)]
Dima Dorfman's patch for coercion/comparison of C types (patch #995939), with
a minor change after the coercion, to accept two objects not necessarily of
the same type but with the same tp_compare.
Fred Drake [Thu, 23 Dec 2004 16:50:36 +0000 (16:50 +0000)]
discuss how the __builtin__ module is normally used, and try to clarify the
difference between __builtins__ and __builtin__ (based on an email comment)
Fred Drake [Thu, 23 Dec 2004 16:22:45 +0000 (16:22 +0000)]
fix weird capitalization of "built-in"
Kurt B. Kaiser [Thu, 23 Dec 2004 04:39:55 +0000 (04:39 +0000)]
Improve error message if rpc'l localcall() fails with unexpected
exception.
Kurt B. Kaiser [Thu, 23 Dec 2004 04:20:59 +0000 (04:20 +0000)]
The GUI was hanging if the shell window was closed while a raw_input()
was pending. Restored the quit() of the readline() mainloop().
http://mail.python.org/pipermail/idle-dev/2004-December/002307.html
M NEWS.txt
M PyShell.py
Thomas Heller [Wed, 22 Dec 2004 17:24:36 +0000 (17:24 +0000)]
Recompiled after source changes.
Thomas Heller [Wed, 22 Dec 2004 17:24:14 +0000 (17:24 +0000)]
Close stdout and stderr, which are redirected into a temp file, before
trying to remove this file - the file was never removed before.
Fixes [
1067732 ] wininst --install-script leaves residual files
Already backported.
Jeremy Hylton [Wed, 22 Dec 2004 14:27:19 +0000 (14:27 +0000)]
Two small changes, SF bug #974757 and SF patch #
1037974.
Pass the full URL to find_user_password(), in particular so that hosts
with port numbers can be looked up.
Also specify the digest algorithm, even if it's MD5. Titus Brown
verified that this fixes a problem with LiveJournal.
Jeremy Hylton [Wed, 22 Dec 2004 14:19:09 +0000 (14:19 +0000)]
SF patch #
1055159 via Titus Brown: Document redirect limitation.
Bug fix candidate.
Martin v. Löwis [Wed, 22 Dec 2004 13:41:49 +0000 (13:41 +0000)]
Patch #
1088716: build and incorporate libpython24.a. Backported to 2.4
Martin v. Löwis [Wed, 22 Dec 2004 12:55:44 +0000 (12:55 +0000)]
Properly quote IDLE shortcut. Will backport to 2.4.
Walter Dörwald [Wed, 22 Dec 2004 12:50:50 +0000 (12:50 +0000)]
Add NEWS entry about bug #
1076985.
Brett Cannon [Wed, 22 Dec 2004 05:40:45 +0000 (05:40 +0000)]
Remove outdated comments about expanduser and expandvars for Macintosh that
referred to OS 9 semantics.
Fred Drake [Tue, 21 Dec 2004 23:46:34 +0000 (23:46 +0000)]
add __file__ to the globals available for tests loaded via DocFileSuite;
this is useful for locating supporting data files, just as it is in Python
modules
Walter Dörwald [Tue, 21 Dec 2004 22:24:00 +0000 (22:24 +0000)]
The changes to the stateful codecs in 2.4 resulted in StreamReader.readline()
trying to return a complete line even if a size parameter was given (see
http://www.python.org/sf/
1076985). This leads to buffer overflows with long
source lines under Windows if e.g. cp1252 is used as the source encoding.
This patch reverts the behaviour of readline() to something that behaves more
like Python 2.3: If a size parameter is given, read() is called only once.
As a side effect of this, readline() now supports all types of linebreaks
supported by unicode.splitlines().
Note that the tokenizer is still broken and it's possible to provoke segfaults
(see http://www.python.org/sf/
1089395).
Kurt B. Kaiser [Tue, 21 Dec 2004 22:10:32 +0000 (22:10 +0000)]
The remote procedure call module rpc.py can now access data attributes of
remote registered objects. Changes to these attributes are local, however.
M EditorWindow.py
M NEWS.txt
M PyShell.py
M idlever.py
M rpc.py
M run.py
Johannes Gijsbers [Tue, 21 Dec 2004 21:14:42 +0000 (21:14 +0000)]
Add accidentally removed \end{description} back in.
Sean Reifschneider [Tue, 21 Dec 2004 02:22:29 +0000 (02:22 +0000)]
Changing the idle wrapper to use Python and execvp() to pass arguments to
idle.
Raymond Hettinger [Mon, 20 Dec 2004 23:51:53 +0000 (23:51 +0000)]
SF bug #951915: fix bug in StringIO.truncate - length not changed
(Patch by Armin Rigo.)
Armin Rigo [Mon, 20 Dec 2004 12:25:57 +0000 (12:25 +0000)]
Any call to marshal.dumps() with the new optional argument 'version' just
immediately segfaults, due to a typo! This was obviously never tested...
Added a test for it, and also fixed the documentation.
Raymond Hettinger [Mon, 20 Dec 2004 06:08:12 +0000 (06:08 +0000)]
Bug #
1088206: zlib decompressobj documentation typo
Raymond Hettinger [Mon, 20 Dec 2004 00:29:29 +0000 (00:29 +0000)]
Bugs item #
1069409 C:\Python24\Lib\compileall.py returns False
* return an integer rather than a boolean
Raymond Hettinger [Sun, 19 Dec 2004 20:45:20 +0000 (20:45 +0000)]
Bug #
1079011: Incorrect error message (somewhat)
Raymond Hettinger [Sun, 19 Dec 2004 20:31:46 +0000 (20:31 +0000)]
Bug #
1066607: "Limitations" section of profiler docs is incorrect
Raymond Hettinger [Sun, 19 Dec 2004 20:13:24 +0000 (20:13 +0000)]
Bug #
1087216: datetime module documentation missing critical detail
Brett Cannon [Sat, 18 Dec 2004 21:06:55 +0000 (21:06 +0000)]
Skip test_imp if threading is not available.
Closes bug #
1083645. Thanks Detlef Vollmann.