]> granicus.if.org Git - python/log
python
20 years agoImproved the implementation of the internal "dialect" type. The new
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.

20 years agoSF patch 1094011: Docs for file() vs open().
Raymond Hettinger [Fri, 7 Jan 2005 04:33:44 +0000 (04:33 +0000)]
SF patch 1094011:  Docs for file() vs open().

20 years agoAdded example to os.stat()
Facundo Batista [Fri, 7 Jan 2005 02:50:22 +0000 (02:50 +0000)]
Added example to os.stat()

20 years agoSF bug #1091740: garbage collector still documented as optional
Raymond Hettinger [Fri, 7 Jan 2005 00:49:17 +0000 (00:49 +0000)]
SF bug #1091740: garbage collector still documented as optional

20 years agoDelete Reader_getiter and replace with PyObject_SelfIter.
Andrew McNamara [Thu, 6 Jan 2005 02:25:41 +0000 (02:25 +0000)]
Delete Reader_getiter and replace with PyObject_SelfIter.

20 years agoadd two missing items
Skip Montanaro [Wed, 5 Jan 2005 07:19:11 +0000 (07:19 +0000)]
add two missing items

20 years agoadd descriptions of exported data attributes
Skip Montanaro [Wed, 5 Jan 2005 07:13:32 +0000 (07:13 +0000)]
add descriptions of exported data attributes

20 years agodescribe reset()
Skip Montanaro [Wed, 5 Jan 2005 07:03:53 +0000 (07:03 +0000)]
describe reset()

20 years agoadd a couple missing items
Skip Montanaro [Wed, 5 Jan 2005 06:58:15 +0000 (06:58 +0000)]
add a couple missing items

20 years agoadd a couple missing docstrings
Skip Montanaro [Wed, 5 Jan 2005 06:54:58 +0000 (06:54 +0000)]
add a couple missing docstrings

20 years agoClarify that DictMixin is still useful. Only the UserDict class was supplanted.
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.

20 years agoFix typo.
Martin v. Löwis [Mon, 3 Jan 2005 23:42:01 +0000 (23:42 +0000)]
Fix typo.

20 years ago- Added an "installer" flavor, which uses the "open" command to install
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.

20 years agoRemoved unused line.
Raymond Hettinger [Mon, 3 Jan 2005 07:33:16 +0000 (07:33 +0000)]
Removed unused line.

20 years agoRemoved unused line.
Raymond Hettinger [Mon, 3 Jan 2005 07:14:12 +0000 (07:14 +0000)]
Removed unused line.

20 years agoSince it is a possibility that LDFLAGS or CPPFLAGS were set with options that
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.

20 years agoTeach the peephole optimizer to fold simple constant expressions.
Raymond Hettinger [Sun, 2 Jan 2005 06:17:33 +0000 (06:17 +0000)]
Teach the peephole optimizer to fold simple constant expressions.

20 years agoCreate the wrapper scripts for gcc/g++ too.
Jack Jansen [Sat, 1 Jan 2005 22:33:36 +0000 (22:33 +0000)]
Create the wrapper scripts for gcc/g++ too.

20 years agoOn UNIX, when the execution of the child fails, we must waitpid() to
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.

20 years agoNew subprocess utility function: check_call. Closes #1071764.
Peter Astrand [Sat, 1 Jan 2005 09:36:35 +0000 (09:36 +0000)]
New subprocess utility function: check_call. Closes #1071764.

20 years agoSF patch #1094007: Remove witty comment in pydoc.py
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.)

20 years agoSF patch #1051395: locale.getdefaultlocale does not return tuple in some OS
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.)

20 years agoSF Patch #1093896: miscellaneous doc typos
Raymond Hettinger [Sat, 1 Jan 2005 00:28:46 +0000 (00:28 +0000)]
SF Patch #1093896:  miscellaneous doc typos

20 years agoRemove some lambdas.
Raymond Hettinger [Fri, 31 Dec 2004 21:59:02 +0000 (21:59 +0000)]
Remove some lambdas.

20 years agoUse cStringIO where available.
Raymond Hettinger [Fri, 31 Dec 2004 19:15:26 +0000 (19:15 +0000)]
Use cStringIO where available.

20 years agocvsignore files generated by make_versioninfo.
Thomas Heller [Fri, 31 Dec 2004 16:37:32 +0000 (16:37 +0000)]
cvsignore files generated by make_versioninfo.

20 years agoStrip out double dashes and dashes for options not used during parsing of
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.

20 years agoSF bug #1090139: presentation typo in lib: 6.21.4.2 How callbacks are called
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

20 years agoAdd more test directories to testsuite. Will backport to 2.4.
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.

20 years agoUpdate to VC 7.1. 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.

20 years agoAdd a test that checks the basic functionality of every encoding.
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.

20 years agoFix wrong variable name.
Walter Dörwald [Wed, 29 Dec 2004 15:28:09 +0000 (15:28 +0000)]
Fix wrong variable name.

20 years agoUpdate example to VC 7.1. Will backport to 2.4.
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.

20 years agoFix wrong variable name.
Walter Dörwald [Wed, 29 Dec 2004 13:11:10 +0000 (13:11 +0000)]
Fix wrong variable name.

20 years agoTypo fix
Andrew M. Kuchling [Wed, 29 Dec 2004 12:34:21 +0000 (12:34 +0000)]
Typo fix

20 years ago- getDefaultDatabase wasn't listed in __all__.
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.

20 years agoJust passing -undefined dynamic_lookup isn't enough: we also need to set
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.

20 years ago[Bug #1083110] calling .flush() on decompress objects causes a segfault due to an...
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

20 years agoAdded quotes around the destroot arguments, so empty destroot works.
Jack Jansen [Mon, 27 Dec 2004 16:13:39 +0000 (16:13 +0000)]
Added quotes around the destroot arguments, so empty destroot works.

20 years agoUpdated version numbers.
Jack Jansen [Mon, 27 Dec 2004 15:53:20 +0000 (15:53 +0000)]
Updated version numbers.

20 years agoFix for #1091468: DESTROOTed frameworkinstalls fail. Added a --destroot
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.

20 years agoAfter discussion on the PythonMac-SIG it was decided that it is better
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.

20 years agoA script to fix Apple-installed Python 2.3 (and a test whether the user
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.

20 years agocorrect decorator example, tweak description slightly
Skip Montanaro [Sun, 26 Dec 2004 15:29:28 +0000 (15:29 +0000)]
correct decorator example, tweak description slightly

20 years agoUpdate VC references. Backported to 2.4.
Martin v. Löwis [Fri, 24 Dec 2004 08:28:28 +0000 (08:28 +0000)]
Update VC references. Backported to 2.4.

20 years agoUse = instead of == as operator to test
Matthias Klose [Fri, 24 Dec 2004 08:22:17 +0000 (08:22 +0000)]
Use = instead of == as operator to test

20 years agoFix sentence stating TextEdit only saves in RTF; can save in plaintext as well.
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.

20 years agoDima Dorfman's patch for coercion/comparison of C types (patch #995939), with
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.

20 years agodiscuss how the __builtin__ module is normally used, and try to clarify the
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)

20 years agofix weird capitalization of "built-in"
Fred Drake [Thu, 23 Dec 2004 16:22:45 +0000 (16:22 +0000)]
fix weird capitalization of "built-in"

20 years agoImprove error message if rpc'l localcall() fails with unexpected
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.

20 years agoThe GUI was hanging if the shell window was closed while a raw_input()
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

20 years agoRecompiled after source changes.
Thomas Heller [Wed, 22 Dec 2004 17:24:36 +0000 (17:24 +0000)]
Recompiled after source changes.

20 years agoClose stdout and stderr, which are redirected into a temp file, before
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.

20 years agoTwo small changes, SF bug #974757 and SF patch #1037974.
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.

20 years agoSF patch #1055159 via Titus Brown: Document redirect limitation.
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.

20 years agoPatch #1088716: build and incorporate libpython24.a. Backported to 2.4
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

20 years agoProperly quote IDLE shortcut. Will backport 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.

20 years agoAdd NEWS entry about bug #1076985.
Walter Dörwald [Wed, 22 Dec 2004 12:50:50 +0000 (12:50 +0000)]
Add NEWS entry about bug #1076985.

20 years agoRemove outdated comments about expanduser and expandvars for Macintosh that
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.

20 years agoadd __file__ to the globals available for tests loaded via DocFileSuite;
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

20 years agoThe changes to the stateful codecs in 2.4 resulted in StreamReader.readline()
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).

20 years agoThe remote procedure call module rpc.py can now access data attributes of
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

20 years agoAdd accidentally removed \end{description} back in.
Johannes Gijsbers [Tue, 21 Dec 2004 21:14:42 +0000 (21:14 +0000)]
Add accidentally removed \end{description} back in.

20 years agoChanging the idle wrapper to use Python and execvp() to pass arguments to
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.

20 years agoSF bug #951915: fix bug in StringIO.truncate - length not changed
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.)

20 years agoAny call to marshal.dumps() with the new optional argument 'version' just
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.

20 years agoBug #1088206: zlib decompressobj documentation typo
Raymond Hettinger [Mon, 20 Dec 2004 06:08:12 +0000 (06:08 +0000)]
Bug #1088206:  zlib decompressobj documentation typo

20 years agoBugs item #1069409 C:\Python24\Lib\compileall.py returns False
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

20 years agoBug #1079011: Incorrect error message (somewhat)
Raymond Hettinger [Sun, 19 Dec 2004 20:45:20 +0000 (20:45 +0000)]
Bug #1079011:  Incorrect error message (somewhat)

20 years agoBug #1066607: "Limitations" section of profiler docs is incorrect
Raymond Hettinger [Sun, 19 Dec 2004 20:31:46 +0000 (20:31 +0000)]
Bug #1066607:  "Limitations" section of profiler docs is incorrect

20 years agoBug #1087216: datetime module documentation missing critical detail
Raymond Hettinger [Sun, 19 Dec 2004 20:13:24 +0000 (20:13 +0000)]
Bug #1087216:  datetime module documentation missing critical detail

20 years agoSkip test_imp if threading is not available.
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.

20 years agoSwitch from getting LDFLAGS and CPPFLAGS from the environment to the Makefile.
Brett Cannon [Sat, 18 Dec 2004 20:48:09 +0000 (20:48 +0000)]
Switch from getting LDFLAGS and CPPFLAGS from the environment to the Makefile.
This is to avoid a problem that inconsistently comes up where the environment
variable is unset while the Makefile clearly has the values set and are used
during ``make``.

Closes bug #1081045.

20 years agoBug #1083645
Raymond Hettinger [Sat, 18 Dec 2004 19:07:19 +0000 (19:07 +0000)]
Bug #1083645

* The decimal module wouldn't load on builds without threads.

20 years agoSmall boost to PySequence_Fast(). Lists build faster than tuples for
Raymond Hettinger [Sat, 18 Dec 2004 19:00:59 +0000 (19:00 +0000)]
Small boost to PySequence_Fast().  Lists build faster than tuples for
unsized iterable inputs.

20 years agofix unterminated comment
Andrew MacIntyre [Sat, 18 Dec 2004 09:51:05 +0000 (09:51 +0000)]
fix unterminated comment

20 years agoRefactor:
Raymond Hettinger [Fri, 17 Dec 2004 13:52:20 +0000 (13:52 +0000)]
Refactor:
* Improve algorithm -- no more O(n) steps except sched.cancel().
* Improve thread safety of sched.run() and sched.empty()
  (other threads could alter the queue between the time the queue was
   first checked and when the lead event was deleted).
* Localize variable access in sched.run() to minimize overhead.

20 years agoSF bug #1086555: refcount problem in syslog
Raymond Hettinger [Thu, 16 Dec 2004 23:52:04 +0000 (23:52 +0000)]
SF bug #1086555:  refcount problem in syslog

20 years agoSF #1085304: Make array.array pickle-able
Raymond Hettinger [Thu, 16 Dec 2004 16:23:40 +0000 (16:23 +0000)]
SF #1085304:  Make array.array pickle-able

20 years agoAdd missing decref.
Raymond Hettinger [Thu, 16 Dec 2004 15:10:21 +0000 (15:10 +0000)]
Add missing decref.

20 years agoSF bug #1085744: Performance issues with PySequence_Tuple()
Raymond Hettinger [Thu, 16 Dec 2004 10:38:38 +0000 (10:38 +0000)]
SF bug #1085744:  Performance issues with PySequence_Tuple()

* Added missing error checks.
* Fixed O(n**2) growth pattern.  Modeled after lists to achieve linear
  amortized resizing.  Improves construction of "tuple(it)" when "it" is
  large and does not have a __len__ method.  Other cases are unaffected.

20 years agofixed compilation against BerkeleyDB 3.2.9 (sf bug # 1077040)
Gregory P. Smith [Thu, 16 Dec 2004 09:47:28 +0000 (09:47 +0000)]
fixed compilation against BerkeleyDB 3.2.9 (sf bug # 1077040)

20 years agoFix typo (from SF bug #1086127).
Walter Dörwald [Wed, 15 Dec 2004 23:44:18 +0000 (23:44 +0000)]
Fix typo (from SF bug #1086127).

20 years agoFix copy & paste error in comments.
Walter Dörwald [Tue, 14 Dec 2004 21:28:07 +0000 (21:28 +0000)]
Fix copy & paste error in comments.

20 years agoSF bug #1084457: ossaudiodev no longer undocumented
Raymond Hettinger [Tue, 14 Dec 2004 07:19:22 +0000 (07:19 +0000)]
SF bug #1084457:  ossaudiodev no longer undocumented

20 years agoCorrect mapping of Python codec name to C encoding name for UTF-8 (the C lib
Marc-André Lemburg [Mon, 13 Dec 2004 19:56:01 +0000 (19:56 +0000)]
Correct mapping of Python codec name to C encoding name for UTF-8 (the C lib
doesn't seem to like "UTF-8").

Removed the UTF-8 aliases since these should be available for all locales.

20 years agoCheck in missing png version of pyfav.gif.
Johannes Gijsbers [Mon, 13 Dec 2004 13:07:59 +0000 (13:07 +0000)]
Check in missing png version of pyfav.gif.

20 years agorewrote the bsddb module BerkeleyDB library and include file locating
Gregory P. Smith [Mon, 13 Dec 2004 12:01:24 +0000 (12:01 +0000)]
rewrote the bsddb module BerkeleyDB library and include file locating
code.  This version is much cleaner and makes a proper attempt at
pairing up the correct header file and library.

20 years agonote for amk
Anthony Baxter [Mon, 13 Dec 2004 11:39:33 +0000 (11:39 +0000)]
note for amk

20 years agothe bsddb module now also works with BerkeleyDB 4.3.
Gregory P. Smith [Mon, 13 Dec 2004 09:57:32 +0000 (09:57 +0000)]
the bsddb module now also works with BerkeleyDB 4.3.

20 years ago* Adds support for building against BerkeleyDB 4.3.21
Gregory P. Smith [Mon, 13 Dec 2004 09:51:23 +0000 (09:51 +0000)]
* Adds support for building against BerkeleyDB 4.3.21
* bumped the module version number up to 4.3.0

20 years agoPatch #1080684: typo repair. Thanks George Yoshida!
Johannes Gijsbers [Sun, 12 Dec 2004 16:52:40 +0000 (16:52 +0000)]
Patch #1080684: typo repair. Thanks George Yoshida!

- Doc/lib/libbase64.tex
s/algorith/algorithm

- Doc/lib/libpickle.tex
s/interchangable/interchangeable

- Doc/lib/libxmlrpclib.tex
s/{_cmp__}/{__cmp__}

leading underscore needs to be double, not single.

- Doc/ref/ref6.tex
0/1 => False/True

20 years agoPatch #1011890: fix inspect.getsource breaking with line-continuation &
Johannes Gijsbers [Sun, 12 Dec 2004 16:46:28 +0000 (16:46 +0000)]
Patch #1011890: fix inspect.getsource breaking with line-continuation &
more. Thanks to Simon Percivall!

The patch makes changes to inspect.py in two places:

* the pattern to match against functions at line 436 is
modified: lambdas should be matched even if not
preceded by whitespace, as long as "lambda" isn't part
of another word.

* the BlockFinder class is heavily modified. Changes are:
- checking for "def", "class" or "lambda" names
before setting self.started to True. Then checking the
same line for word characters after the colon (if the
colon is on that line). If so, and the line does not
end with a line continuation marker, raise EndOfBlock
immediately.
- adding self.passline to show that the line is to be
included and no more checking is necessary on that
line. Since a NEWLINE token is not generated when a
line continuation marker exists, this allows getsource
to continue with these functions even if the following
line would not be indented.

Also add a bunch of
'quite-unlikely-to-occur-in-real-life-but-working-anyway' tests.

20 years agoPatch #736962: port test_inspect to unittest. As part of this, move out
Johannes Gijsbers [Sun, 12 Dec 2004 16:20:22 +0000 (16:20 +0000)]
Patch #736962: port test_inspect to unittest. As part of this, move out
the fodder modules to separate files to get rid of the imp.load_source()
trickery.

20 years agoUse os.geteuid() for checking whether we are root, as suggested by
Johannes Gijsbers [Sun, 12 Dec 2004 15:52:57 +0000 (15:52 +0000)]
Use os.geteuid() for checking whether we are root, as suggested by
Michael Hudson.

20 years agoReplace VB with VC.
Martin v. Löwis [Sun, 12 Dec 2004 15:29:21 +0000 (15:29 +0000)]
Replace VB with VC.

20 years agoOS/2 specific fixes related to SF bug # 1003471.
Andrew MacIntyre [Sun, 12 Dec 2004 08:30:51 +0000 (08:30 +0000)]
OS/2 specific fixes related to SF bug # 1003471.

Also revise a related function to minimise file handle/pipe leakage
and improve reliability.

20 years agoOS/2 specific fixes related to SF bug # 1003471
Andrew MacIntyre [Sun, 12 Dec 2004 08:28:11 +0000 (08:28 +0000)]
OS/2 specific fixes related to SF bug # 1003471

20 years agoSetting textwrap.TextWrapper().expand_tabs to True calls expandtabs, not
Brett Cannon [Sat, 11 Dec 2004 09:53:52 +0000 (09:53 +0000)]
Setting textwrap.TextWrapper().expand_tabs to True calls expandtabs, not
expand_tabs, on the object being wrapped.