]> granicus.if.org Git - python/log
python
22 years agoUpdated simple example. This should have been checked in the other
Jim Fulton [Mon, 12 May 2003 17:42:56 +0000 (17:42 +0000)]
Updated simple example. This should have been checked in the other
day, but I missfired in CVS.

22 years agoAdd a specific mention of the term "operator overloading" and add an
Fred Drake [Mon, 12 May 2003 13:50:11 +0000 (13:50 +0000)]
Add a specific mention of the term "operator overloading" and add an
index entry.  Suggested to python-docs.

22 years agoRemove assert that checked if a parameter was an instance of Request. Closes patch...
Brett Cannon [Mon, 12 May 2003 07:31:53 +0000 (07:31 +0000)]
Remove assert that checked if a parameter was an instance of Request.  Closes patch #639139.

22 years agoChange Request.add_header to call string.capitalize in order to normalize
Brett Cannon [Mon, 12 May 2003 07:29:42 +0000 (07:29 +0000)]
Change Request.add_header to call string.capitalize in order to normalize
headers and not have any dependency on case.  Closes patch #649742.

Also changed all instances of dict.items to dict.iteritems where appropriate.

22 years agoFix minor typos.
Raymond Hettinger [Mon, 12 May 2003 03:23:51 +0000 (03:23 +0000)]
Fix minor typos.

22 years agoUpdate for SF 71033 and changes to subprocess threading
Kurt B. Kaiser [Mon, 12 May 2003 03:04:59 +0000 (03:04 +0000)]
Update for SF 71033 and changes to subprocess threading

22 years ago1. RemoteDebugger now runs user code in subprocess MainThread
Kurt B. Kaiser [Mon, 12 May 2003 02:33:47 +0000 (02:33 +0000)]
1. RemoteDebugger now runs user code in subprocess MainThread
2. run.py: move exception printing to toplevel to allow access from main()
3. Clarification in PyShell.py: when the subprocess is restarted, the
   debugger GUI is reused with a fresh instance of the subprocess
   debugger.

M PyShell.py
M RemoteDebugger.py
M run.py

22 years agoPatch #735613: Pass install-purelib to idleinstall.
Martin v. Löwis [Sun, 11 May 2003 20:28:02 +0000 (20:28 +0000)]
Patch #735613: Pass install-purelib to idleinstall.

22 years agoPatch #718286: Support DESTDIR.
Martin v. Löwis [Sun, 11 May 2003 20:25:35 +0000 (20:25 +0000)]
Patch #718286: Support DESTDIR.

22 years agoBeefed up timezone support. UTC and GMT are now always recognized timezones
Brett Cannon [Sun, 11 May 2003 06:23:36 +0000 (06:23 +0000)]
Beefed up timezone support.  UTC and GMT are now always recognized timezones
with values of 0.  Also now check time.daylight to see if time.tzname[1]
should be used in timezone checking.

22 years agoUpdate patch #732284: Correct versions of OpenUNIX, UnixWare, add OpenServer.
Martin v. Löwis [Sun, 11 May 2003 05:53:41 +0000 (05:53 +0000)]
Update patch #732284: Correct versions of OpenUNIX, UnixWare, add OpenServer.

22 years ago- object is a class type, not a function
Fred Drake [Sat, 10 May 2003 19:46:39 +0000 (19:46 +0000)]
- object is a class type, not a function
- when marking a function, the trailing () should be included
  consistently

22 years agoMinor fixups.
Raymond Hettinger [Sat, 10 May 2003 09:04:37 +0000 (09:04 +0000)]
Minor fixups.

22 years agoFix unbalanced parethesis.
Raymond Hettinger [Sat, 10 May 2003 08:51:28 +0000 (08:51 +0000)]
Fix unbalanced parethesis.

22 years agoAdd table level validation and made minor fix-ups.
Raymond Hettinger [Sat, 10 May 2003 07:41:55 +0000 (07:41 +0000)]
Add table level validation and made minor fix-ups.

22 years agoMissing parenthesis found by texcheck.py
Raymond Hettinger [Sat, 10 May 2003 07:40:56 +0000 (07:40 +0000)]
Missing parenthesis found by texcheck.py

22 years agoPatch #734231: Update RiscOS support. In particular, correct
Martin v. Löwis [Sat, 10 May 2003 07:36:56 +0000 (07:36 +0000)]
Patch #734231: Update RiscOS support. In particular, correct
riscospath.extsep, and use os.extsep throughout.

22 years agoPatch #612627: Add encoding attribute to file objects, and determine
Martin v. Löwis [Sat, 10 May 2003 07:10:12 +0000 (07:10 +0000)]
Patch #612627: Add encoding attribute to file objects, and determine
the terminal encoding on Windows and Unix.

22 years agoAll two more modules with __all__.
Raymond Hettinger [Sat, 10 May 2003 05:37:13 +0000 (05:37 +0000)]
All two more modules with __all__.

22 years agoFix missing parenthesis.
Raymond Hettinger [Sat, 10 May 2003 04:21:08 +0000 (04:21 +0000)]
Fix missing parenthesis.

22 years agoFixed spacing and unbalanced brackets or parenthesis.
Raymond Hettinger [Sat, 10 May 2003 03:35:37 +0000 (03:35 +0000)]
Fixed spacing and unbalanced brackets or parenthesis.

22 years agoAdded a tool for making a rough check of LaTeX documents.
Raymond Hettinger [Sat, 10 May 2003 03:30:13 +0000 (03:30 +0000)]
Added a tool for making a rough check of LaTeX documents.
It checks for known commands, forward slashes, unbalanced or
mismatched delimters, and unbalanced or mismatched begin/end blocks.

22 years ago[ SF 710733 - Martin v. Loewis] Improving source encoding dialog
Kurt B. Kaiser [Sat, 10 May 2003 00:49:56 +0000 (00:49 +0000)]
[ SF 710733 - Martin v. Loewis] Improving source encoding dialog

M IOBinding.py
M config-main.def
M configDialog.py

22 years ago1. Update debugger to not trace RPC code even when calling Queue and
Kurt B. Kaiser [Sat, 10 May 2003 00:09:52 +0000 (00:09 +0000)]
1. Update debugger to not trace RPC code even when calling Queue and
   threading modules.  Can debug user code which imports these modules,
   though.
2. Re-enable debugger in PyShell.
3. Remove old code implementing previous approaches to this issue.

M Debugger.py
M PyShell.py
M rpc.py

22 years agoMake this format again.
Fred Drake [Fri, 9 May 2003 19:10:12 +0000 (19:10 +0000)]
Make this format again.

22 years agoadd a note about accessing user-defined functions with an import statement
Skip Montanaro [Fri, 9 May 2003 18:21:02 +0000 (18:21 +0000)]
add a note about accessing user-defined functions with an import statement
in the setup parameter

22 years agoMake this format again.
Fred Drake [Fri, 9 May 2003 18:18:46 +0000 (18:18 +0000)]
Make this format again.

22 years agoReplace line somehow deleted before last checkin.
Jeremy Hylton [Fri, 9 May 2003 16:55:28 +0000 (16:55 +0000)]
Replace line somehow deleted before last checkin.

22 years agohelp with MSVC 7 support in distutils
Jeremy Hylton [Fri, 9 May 2003 16:08:22 +0000 (16:08 +0000)]
help with MSVC 7 support in distutils

22 years agoVariant of SF patch 614770: MSVC 7 support
Jeremy Hylton [Fri, 9 May 2003 16:06:42 +0000 (16:06 +0000)]
Variant of SF patch 614770: MSVC 7 support

distutils now looks for the compiler version in sys.version, falling
back to MSVC 6 if the version isn't listed (Python 2.2 and lower).
Add helper routines for reading the registry.  Refactor many
module functions into methods of the compiler to avoid passing
lots of state as arguments.

22 years agoPydoc also needs its #! line massaged. Fixes #733199.
Jack Jansen [Fri, 9 May 2003 15:09:50 +0000 (15:09 +0000)]
Pydoc also needs its #! line massaged. Fixes #733199.

22 years agoPass DIRMODE and FILEMODE to Mac/OSX/Makefile on framework builds (and
Jack Jansen [Fri, 9 May 2003 15:08:39 +0000 (15:08 +0000)]
Pass DIRMODE and FILEMODE to Mac/OSX/Makefile on framework builds (and
honor them). Use this when building the MacOSX binary installer to
get group-writeable files.

Ths fix works for directories and executables, not for files just yet,
because of bug #735274.

22 years ago- remove bogus \end{description}
Fred Drake [Fri, 9 May 2003 15:04:56 +0000 (15:04 +0000)]
- remove bogus \end{description}
- fix two typos

22 years agoadded note about autoGIL
Just van Rossum [Fri, 9 May 2003 15:01:25 +0000 (15:01 +0000)]
added note about autoGIL

22 years agoDocumented the new autoGIL module.
Jack Jansen [Fri, 9 May 2003 14:45:04 +0000 (14:45 +0000)]
Documented the new autoGIL module.

22 years agoalso support cmd-. in the interactive window
Just van Rossum [Fri, 9 May 2003 11:47:23 +0000 (11:47 +0000)]
also support cmd-. in the interactive window

22 years agoSimple fix for
Michael W. Hudson [Fri, 9 May 2003 10:45:20 +0000 (10:45 +0000)]
Simple fix for

[ 733781 ] fcntl fails to build on old RH Linux

22 years agoSuppress wartning on macfs import.
Jack Jansen [Fri, 9 May 2003 10:15:18 +0000 (10:15 +0000)]
Suppress wartning on macfs import.

22 years agoOnly look for krb5.h if ssl.h was found.
Martin v. Löwis [Fri, 9 May 2003 09:05:19 +0000 (09:05 +0000)]
Only look for krb5.h if ssl.h was found.
Fixes bug reported in comment to #728322.

22 years agoDeclare encoding. Use unsigned long constants. Fixes #728277.
Martin v. Löwis [Fri, 9 May 2003 08:59:17 +0000 (08:59 +0000)]
Declare encoding. Use unsigned long constants. Fixes #728277.

22 years agoadd explicit support for cancelling a running script (CFM-based MacPython had this...
Just van Rossum [Fri, 9 May 2003 08:58:02 +0000 (08:58 +0000)]
add explicit support for cancelling a running script (CFM-based MacPython had this built-in)

22 years agomore dead code removal
Just van Rossum [Fri, 9 May 2003 08:33:58 +0000 (08:33 +0000)]
more dead code removal

22 years agodead code removal
Just van Rossum [Fri, 9 May 2003 08:27:33 +0000 (08:27 +0000)]
dead code removal

22 years agoPatch #734118: Add {get|set}busywaitinterval.
Martin v. Löwis [Fri, 9 May 2003 08:19:48 +0000 (08:19 +0000)]
Patch #734118: Add {get|set}busywaitinterval.

22 years agoYet another addition to [731644]: only use the lock if thread-support
Just van Rossum [Fri, 9 May 2003 08:12:00 +0000 (08:12 +0000)]
Yet another addition to [731644]: only use the lock if thread-support
is enabled.

22 years agoAddition to [731644]: also use the lock when using the getaddrinfo
Just van Rossum [Fri, 9 May 2003 08:03:44 +0000 (08:03 +0000)]
Addition to [731644]: also use the lock when using the getaddrinfo
emulation (ie. when HAVE_GETADDRINFO isn't defined).

22 years ago[ 731644] & [ 604210 ] Release the GIL around getaddrinfo(), yet protect
Just van Rossum [Fri, 9 May 2003 07:53:18 +0000 (07:53 +0000)]
[ 731644] & [ 604210 ] Release the GIL around getaddrinfo(), yet protect
access with lock on those platforms that getaddrinfo() isn't (known to be)
thread-safe. Thanks to MvL for mentoring this patch.

22 years ago1. Implement processing of user code in subprocess MainThread. Pass loop
Kurt B. Kaiser [Thu, 8 May 2003 20:26:55 +0000 (20:26 +0000)]
1. Implement processing of user code in subprocess MainThread.  Pass loop
   is now interruptable on Windows.
2. Tweak signal.signal() wait parameters as called by various methods
   to improve I/O response, especially on Windows.
3. Debugger is disabled at this check-in pending further development.

M NEWS.txt
M PyShell.py
M rpc.py
M run.py

22 years agoLeading "C:" no longer hardcoded in the default installation directory.
Tim Peters [Thu, 8 May 2003 18:13:59 +0000 (18:13 +0000)]
Leading "C:" no longer hardcoded in the default installation directory.
After removing that, two testers on machines where C: is not the system
drive reported that the installer suggested their system drive instead
of C:, and that's what they wanted it to do.

22 years agoFixed small typo Pointed out by Michael Hudson.
Jim Fulton [Thu, 8 May 2003 10:35:07 +0000 (10:35 +0000)]
Fixed small typo Pointed out by Michael Hudson.

22 years agoFixed a typo in an example dealloc routine that calls it's "self"
Jim Fulton [Thu, 8 May 2003 10:32:10 +0000 (10:32 +0000)]
Fixed a typo in an example dealloc routine that calls it's "self"
argument "obj" rather than "self".

22 years agoBump version number
Barry Warsaw [Thu, 8 May 2003 03:34:58 +0000 (03:34 +0000)]
Bump version number

22 years agoA couple of new parsedate test cases.
Barry Warsaw [Thu, 8 May 2003 03:34:01 +0000 (03:34 +0000)]
A couple of new parsedate test cases.

22 years agoparsedate_tz(): Be slightly more lenient when there's no day of the
Barry Warsaw [Thu, 8 May 2003 03:33:15 +0000 (03:33 +0000)]
parsedate_tz(): Be slightly more lenient when there's no day of the
week.  Patch given by Daniel Berlin in SF bug # 732761.  Also closes
SF bug # 727719.

Backport candidate.

22 years agoClarify the dedent() example a bit by indenting the input lines unevenly.
Greg Ward [Thu, 8 May 2003 02:12:35 +0000 (02:12 +0000)]
Clarify the dedent() example a bit by indenting the input lines unevenly.

22 years agoSF patch #598163 (Ville Vainio, vvainio@users.sourceforge.net):
Greg Ward [Thu, 8 May 2003 02:09:49 +0000 (02:09 +0000)]
SF patch #598163 (Ville Vainio, vvainio@users.sourceforge.net):
document dedent() function.

22 years agoMinor clarification of dedent().
Greg Ward [Thu, 8 May 2003 02:02:50 +0000 (02:02 +0000)]
Minor clarification of dedent().

22 years agoAdd DedentTestCase to test dedent() function.
Greg Ward [Thu, 8 May 2003 01:58:26 +0000 (01:58 +0000)]
Add DedentTestCase to test dedent() function.

22 years agoSF patch #598163 (Ville Vainio, vvainio@users.sourceforge.net):
Greg Ward [Thu, 8 May 2003 01:58:05 +0000 (01:58 +0000)]
SF patch #598163 (Ville Vainio, vvainio@users.sourceforge.net):
add dedent() function, to remove indentation from multiline strings
(eg. triple-quoted strings).  Differs from inspect.getdoc() by not
special-casing the first line (often a sensible approach for
non-docstring multiline strings).  This should make this function more
general (symmetric 'indent' also possible), and more fitting for the
textwrap module.

22 years agoUpdate to Optik 1.4.1+: adds __all__ (Optik SF bug #728563).
Greg Ward [Thu, 8 May 2003 01:38:52 +0000 (01:38 +0000)]
Update to Optik 1.4.1+: adds __all__ (Optik SF bug #728563).

22 years agoLibrary documentation for the 'test' package. Still needs to be checked by Fred.
Brett Cannon [Wed, 7 May 2003 22:02:17 +0000 (22:02 +0000)]
Library documentation for the 'test' package.  Still needs to be checked by Fred.

22 years agoRewrote the basic section of the chapter on defining new types.
Jim Fulton [Wed, 7 May 2003 19:48:13 +0000 (19:48 +0000)]
Rewrote the basic section of the chapter on defining new types.
Changed the example to show how to create types the new way:

- Use a class new method rather than a new function.

- Use self->ob_type->tp_free in deallocators

- Use attribute descriptors rather than set/getattr methods.

- Make the type usable as a base type.

I split the example into 3 parts:

1. The minimal new type

2. Adding attributes and methods.

3. Finer control over attributes.

It's much simpler to define builtin types. These updates hopefully
show this.

I also made minor wording changes in two other places.

I still need to update xxobject.c

22 years agoMore message updates and minor fixes.
Raymond Hettinger [Wed, 7 May 2003 17:49:36 +0000 (17:49 +0000)]
More message updates and minor fixes.

22 years agoUpdate traceback message
Raymond Hettinger [Wed, 7 May 2003 17:11:15 +0000 (17:11 +0000)]
Update traceback message

22 years agoAdd list.insert() change for negative positions
Andrew M. Kuchling [Wed, 7 May 2003 17:00:35 +0000 (17:00 +0000)]
Add list.insert() change for negative positions
Add ~ to MvL's last name
Fix use of all-caps for a name
Bump version number

22 years agoadd missing parens - verified w/ interpreter - sorry to dismiss your comment
Skip Montanaro [Wed, 7 May 2003 16:01:43 +0000 (16:01 +0000)]
add missing parens - verified w/ interpreter - sorry to dismiss your comment
Fred

22 years agoset platform properly for OSF/1
Skip Montanaro [Wed, 7 May 2003 15:38:47 +0000 (15:38 +0000)]
set platform properly for OSF/1

22 years agoreplace most uses of `...` by repr(...), noting that `...` is discouraged,
Skip Montanaro [Wed, 7 May 2003 15:29:12 +0000 (15:29 +0000)]
replace most uses of `...` by repr(...), noting that `...` is discouraged,
but convenient in interactive sessions.

22 years agoMerged 2.3b1 welcome message to the trunk.
Jack Jansen [Wed, 7 May 2003 09:41:56 +0000 (09:41 +0000)]
Merged 2.3b1 welcome message to the trunk.

22 years agoMerged 1.2.2.1 fixes:
Jack Jansen [Wed, 7 May 2003 08:58:11 +0000 (08:58 +0000)]
Merged 1.2.2.1 fixes:
- Don't generate README, but ask the user to provide it.
- Create destination dir, if needed.
- Updated for 2.3b1.

22 years agoSF bug #730296: Unexpected Changes in list Iterator
Raymond Hettinger [Wed, 7 May 2003 01:28:47 +0000 (01:28 +0000)]
SF bug #730296: Unexpected Changes in list Iterator

Reverted a Py2.3b1 change to iterator in subclasses of list and tuple.
They had been changed to use __getitem__ whenever it had been overriden
in the subclass.

This caused some usabilty and performance problems.  Also, it was
inconsistent with the rest of python where many container methods
access the underlying object directly without first checking for
an overridden getter.  Users needing a change in iterator behavior
should override it directly.

22 years agoSF #596434: tweak wordsep_re so the definition of an em-dash is
Greg Ward [Wed, 7 May 2003 01:20:58 +0000 (01:20 +0000)]
SF #596434: tweak wordsep_re so the definition of an em-dash is
stricter: specifically, "--" must be preceded by a limited set of
characters, not by any non-whitespace character.

22 years agoSF #596434: add test_funky_parens() to probe some more of the tricky
Greg Ward [Wed, 7 May 2003 01:19:22 +0000 (01:19 +0000)]
SF #596434: add test_funky_parens() to probe some more of the tricky
edge cases that David Goodger reported long ago (July 2002?).

22 years agoSF #726446: raise ValueError if width <= 0.
Greg Ward [Wed, 7 May 2003 00:55:35 +0000 (00:55 +0000)]
SF #726446: raise ValueError if width <= 0.

22 years agoSF #726446: ensure wrap() raises ValueError when width <= 0.
Greg Ward [Wed, 7 May 2003 00:54:42 +0000 (00:54 +0000)]
SF #726446: ensure wrap() raises ValueError when width <= 0.

22 years agoSF patch #729395: Dictionary tuning
Raymond Hettinger [Wed, 7 May 2003 00:49:40 +0000 (00:49 +0000)]
SF patch #729395: Dictionary tuning

Adjust resize argument for dict.update() and dict.copy().
Extends the previous change to dict.__setitem__().

22 years agop.strip(os.sep) can't have possibly worked. It would have stripped both
Skip Montanaro [Tue, 6 May 2003 20:59:57 +0000 (20:59 +0000)]
p.strip(os.sep) can't have possibly worked.  It would have stripped both
leading and trailing '/' characters on Unix systems.

22 years agobuild bsddb185 module in certain restricted circumstances
Skip Montanaro [Tue, 6 May 2003 20:43:34 +0000 (20:43 +0000)]
build bsddb185 module in certain restricted circumstances

22 years agoadd note about bsddb185 module
Skip Montanaro [Tue, 6 May 2003 20:42:37 +0000 (20:42 +0000)]
add note about bsddb185 module

22 years agodetect old version 2 hash files and return "bsddb185" as the appropriate
Skip Montanaro [Tue, 6 May 2003 20:42:10 +0000 (20:42 +0000)]
detect old version 2 hash files and return "bsddb185" as the appropriate
module to load them

22 years agoadd a note about the undocumented bsddb185 module
Skip Montanaro [Tue, 6 May 2003 20:40:17 +0000 (20:40 +0000)]
add a note about the undocumented bsddb185 module

22 years agoadd open function to bsddb185 module so the file format sniffing can be
Skip Montanaro [Tue, 6 May 2003 20:38:52 +0000 (20:38 +0000)]
add open function to bsddb185 module so the file format sniffing can be
restricted to the whichdb module

22 years agodon't need to worry about file endianness
Skip Montanaro [Tue, 6 May 2003 20:37:56 +0000 (20:37 +0000)]
don't need to worry about file endianness

22 years agoData file for bsddb185 test
Skip Montanaro [Tue, 6 May 2003 20:37:25 +0000 (20:37 +0000)]
Data file for bsddb185 test

22 years agotest case for bsddb185 module
Skip Montanaro [Tue, 6 May 2003 20:36:57 +0000 (20:36 +0000)]
test case for bsddb185 module

22 years agothe new bsddb185 module is an expected skip on most platforms (this may not
Skip Montanaro [Tue, 6 May 2003 20:36:24 +0000 (20:36 +0000)]
the new bsddb185 module is an expected skip on most platforms (this may not
be needed - just being anal)

22 years agoadd Guido's reasoning behind running all tests twice
Skip Montanaro [Tue, 6 May 2003 16:17:27 +0000 (16:17 +0000)]
add Guido's reasoning behind running all tests twice

22 years agoadd not-yet-supported Unicode test just so it doesn't get lost.
Skip Montanaro [Tue, 6 May 2003 15:56:05 +0000 (15:56 +0000)]
add not-yet-supported Unicode test just so it doesn't get lost.

22 years agoadd testall target - just adds -uall to the regrtest runs
Skip Montanaro [Tue, 6 May 2003 15:30:20 +0000 (15:30 +0000)]
add testall target - just adds -uall to the regrtest runs

22 years agoFix for #731643: allow "lookup in documentation" to also work if the
Jack Jansen [Tue, 6 May 2003 14:28:31 +0000 (14:28 +0000)]
Fix for #731643: allow "lookup in documentation" to also work if the
interactive window is frontmost.

22 years agoAllow for Version, Flavor and Download-URL not being set.
Jack Jansen [Tue, 6 May 2003 13:07:32 +0000 (13:07 +0000)]
Allow for Version, Flavor and Download-URL not being set.

22 years agoWhen doing a forced install of a package depending on a pseudo-package
Jack Jansen [Tue, 6 May 2003 12:44:00 +0000 (12:44 +0000)]
When doing a forced install of a package depending on a pseudo-package
you got a strange error message. Fixed.

22 years agoSF bug #692959: new.function ignores keyword arguments
Raymond Hettinger [Tue, 6 May 2003 09:01:41 +0000 (09:01 +0000)]
SF bug #692959:  new.function ignores keyword arguments

22 years agoPort test_uu.py to PyUnit. From SF patch #662807.
Walter Dörwald [Tue, 6 May 2003 08:57:41 +0000 (08:57 +0000)]
Port test_uu.py to PyUnit. From SF patch #662807.

22 years agoSF patch #729395: Dictionary tuning
Raymond Hettinger [Mon, 5 May 2003 22:22:10 +0000 (22:22 +0000)]
SF patch #729395: Dictionary tuning

* Increase dictionary growth rate resulting in more sparse dictionaries,
  fewer lookup collisions, increased memory use, and better cache
  performance.  For dicts with over 50k entries, keep the current
  growth rate in case an application is suffering from tight memory
  constraints.

* Set the most common case (no resize) to fall-through the test.

22 years agoPatch #732479: Fix typos.
Martin v. Löwis [Mon, 5 May 2003 22:00:11 +0000 (22:00 +0000)]
Patch #732479: Fix typos.

22 years agoAdd notes from python-dev about readonly dictionaries.
Raymond Hettinger [Mon, 5 May 2003 21:31:51 +0000 (21:31 +0000)]
Add notes from python-dev about readonly dictionaries.

22 years agoSF patch 730594: assert from longobject.c, line 1215.
Tim Peters [Mon, 5 May 2003 20:39:43 +0000 (20:39 +0000)]
SF patch 730594:  assert from longobject.c, line 1215.
Some version of gcc in the "RTEMS port running on the Coldfire (m5200)
processor" generates bad code for a loop in long_from_binary_base(),
comparing the wrong half of an int to a short.  The patch changes the
decl of the short temp to be an int temp instead.  This "simplifies"
the code enough that gcc no longer blows it.

22 years agoOn Mac OS X pwd.getpwall() might return the tuples
Walter Dörwald [Mon, 5 May 2003 20:37:33 +0000 (20:37 +0000)]
On Mac OS X pwd.getpwall() might return the tuples
('pgsql', '*', 252, []) and ('postgres', '*', 252, ['skip']),
but pwd.getgrgid(252) might return ('pgsql', '', 252, ['skip']).

Drop the test that tried to find a tuple similar to the one
returned from pwd.getgrgid() among those for the same gid returned
by pwd.getgrall(), as the only working definition of 'similar' seems
to be 'has the same gid'. This check can be done more directly.

This should fix SF bug #732783.

22 years agoRefer reader to platform library docs for specific semantics.
Jeremy Hylton [Mon, 5 May 2003 16:46:26 +0000 (16:46 +0000)]
Refer reader to platform library docs for specific semantics.

Resolves SF bugs 697989, 697988, 697986.