]> granicus.if.org Git - python/log
python
22 years agoAdded methods AskFileForOpen(), AskFileForSave() and AskFolder(). These
Jack Jansen [Fri, 17 Jan 2003 16:04:39 +0000 (16:04 +0000)]
Added methods AskFileForOpen(), AskFileForSave() and AskFolder(). These
are going to replace StandardGetFile() and friends. Main differences are
that these allow you to ask for specific datatypes to be returned (FSSpec,
FSRef, string, unicode or subtypes thereof) and that they provide access
to underlying features of Navigation Services through keyword arguments.

22 years agobugfix: do not double-close DB cursor during deallocation when the
Gregory P. Smith [Fri, 17 Jan 2003 08:42:50 +0000 (08:42 +0000)]
bugfix: do not double-close DB cursor during deallocation when the
        underlying DB has already been closed (and thus all of its cursors).
        This fixes a potential segfault.
        SF pybsddb bug id 667343
bugfix: close the DB object when raising an exception due to an error
        during DB.open.  This prevents an exception when closing the
        environment about not all databases being closed.
        SF pybsddb bug id 667340

22 years agobugfix: allow the module to work with python compiled without thread support.
Gregory P. Smith [Fri, 17 Jan 2003 07:56:16 +0000 (07:56 +0000)]
bugfix: allow the module to work with python compiled without thread support.
closes sourceforge pybsddb bug id 669533.

22 years agobugfix: disallow use of DB_TXN after commit() or abort(), prevents a
Gregory P. Smith [Fri, 17 Jan 2003 07:52:59 +0000 (07:52 +0000)]
bugfix: disallow use of DB_TXN after commit() or abort(), prevents a
        coredump or segmentation violation.

Sourceforge patch ID 664896:
http://sourceforge.net/tracker/index.php?func=detail&aid=664896&group_id=13900&atid=313900

The bug was reported on the pybsddb-users mailing list.

22 years agoPatch 611069 (Christos Georgiou) IDLE TODO:left/right when selected text
Kurt B. Kaiser [Fri, 17 Jan 2003 04:04:06 +0000 (04:04 +0000)]
Patch 611069 (Christos Georgiou) IDLE TODO:left/right when selected text
M EditorWindow.py
M NEWS.txt
M TODO.txt

22 years agoSF Bug 667812: Some Linux distros have Alt and Meta reversed.
Kurt B. Kaiser [Thu, 16 Jan 2003 21:40:21 +0000 (21:40 +0000)]
SF Bug 667812: Some Linux distros have Alt and Meta reversed.

22 years agoA. Lloyd Flanagan pointed out a spelling error on c.l.py.
Michael W. Hudson [Thu, 16 Jan 2003 15:39:07 +0000 (15:39 +0000)]
A. Lloyd Flanagan pointed out a spelling error on c.l.py.

22 years agoLet test_random cover the endpoints.
Raymond Hettinger [Thu, 16 Jan 2003 14:00:15 +0000 (14:00 +0000)]
Let test_random cover the endpoints.
Strengthen slicing tests.
Improved variable names.

22 years agoTest optional slice arguments.
Raymond Hettinger [Thu, 16 Jan 2003 13:02:25 +0000 (13:02 +0000)]
Test optional slice arguments.
Add backwards compatibility test.

22 years agoAdded doctest for examples in the library reference.
Raymond Hettinger [Thu, 16 Jan 2003 12:31:36 +0000 (12:31 +0000)]
Added doctest for examples in the library reference.
Added random test from bisect to augment the finite precomputed checks.

22 years agoConvert to unittest format so that more tests can be added cleanly.
Raymond Hettinger [Thu, 16 Jan 2003 12:02:35 +0000 (12:02 +0000)]
Convert to unittest format so that more tests can be added cleanly.

22 years agoPatch #662454: import a.b as c is ok, fixes #660811.
Martin v. Löwis [Thu, 16 Jan 2003 11:30:08 +0000 (11:30 +0000)]
Patch #662454: import a.b as c is ok, fixes #660811.

22 years agoProperly find and install icons even if calling setup.py from the build dir.
Martin v. Löwis [Thu, 16 Jan 2003 11:03:33 +0000 (11:03 +0000)]
Properly find and install icons even if calling setup.py from the build dir.

22 years agoCatch IOErrors.
Martin v. Löwis [Thu, 16 Jan 2003 11:02:43 +0000 (11:02 +0000)]
Catch IOErrors.

22 years agoSupport copying booleans. Fixes #668925.
Martin v. Löwis [Thu, 16 Jan 2003 10:40:00 +0000 (10:40 +0000)]
Support copying booleans. Fixes #668925.

22 years agoThis test previously failed when run from the 'test' directory. In that
Mark Hammond [Thu, 16 Jan 2003 04:56:52 +0000 (04:56 +0000)]
This test previously failed when run from the 'test' directory.  In that
case, the test module created is actually a sub-package of 'test', thus
the module is named 'test.areallylongpackage...' - this caused failure.

Replace the hard-coded module names with __name__ attributes, which
correctly reflects any hierarchy.

22 years agoOn Mac OS X calling setlocale will raise locale.Error. This isn't fatal,
Jack Jansen [Wed, 15 Jan 2003 23:43:02 +0000 (23:43 +0000)]
On Mac OS X calling setlocale will raise locale.Error. This isn't fatal,
so just continue testing. Fixes #668787.

22 years agoCorrect docstring for SetValueEx()
Mark Hammond [Wed, 15 Jan 2003 23:38:15 +0000 (23:38 +0000)]
Correct docstring for SetValueEx()

22 years agoChecking in Brett Cannon's patch #662053, which fixes bug #661354.
Jack Jansen [Wed, 15 Jan 2003 22:59:39 +0000 (22:59 +0000)]
Checking in Brett Cannon's patch #662053, which fixes bug #661354.
_strptime can now handle getting two empty strings as the timezone information.

22 years agoAdded ismount().
Jack Jansen [Wed, 15 Jan 2003 22:45:48 +0000 (22:45 +0000)]
Added ismount().

Fixes #661762, bugfix candidate.

22 years agoImplemented FSCatalogInfo structure support, and used this to implement
Jack Jansen [Wed, 15 Jan 2003 22:36:16 +0000 (22:36 +0000)]
Implemented FSCatalogInfo structure support, and used this to implement
FSSpec.SetDates() and GetDates(). Closes #662836.

22 years agoreference the os module and the lock flags in the os.open() function.
Skip Montanaro [Wed, 15 Jan 2003 21:08:19 +0000 (21:08 +0000)]
reference the os module and the lock flags in the os.open() function.
(Someone please review what I wrote for accuracy.)

22 years ago* Add test for __cmp__()
Raymond Hettinger [Wed, 15 Jan 2003 16:15:38 +0000 (16:15 +0000)]
* Add test for __cmp__()
* Add doctest for example in the library reference manual

22 years agoRemove misleading advice. VERSION was not intended to be used that way.
Neil Schemenauer [Wed, 15 Jan 2003 16:04:43 +0000 (16:04 +0000)]
Remove misleading advice.  VERSION was not intended to be used that way.

22 years agoDocument that __cmp__() is not defined for sets.
Raymond Hettinger [Wed, 15 Jan 2003 15:46:05 +0000 (15:46 +0000)]
Document that __cmp__() is not defined for sets.
Note, that list.sort() is undefined for lists of sets.
Add the ... prompt to the example so it runs in doctest.

22 years agoGyro Func for patch #661719.
Martin v. Löwis [Wed, 15 Jan 2003 11:53:13 +0000 (11:53 +0000)]
Gyro Func for patch #661719.

22 years agoPatch #661719: Expose compilation errors as exceptions on request.
Martin v. Löwis [Wed, 15 Jan 2003 11:51:06 +0000 (11:51 +0000)]
Patch #661719: Expose compilation errors as exceptions on request.

22 years agoPatch #473586: Implement CGIXMLRPCRequestHandler.
Martin v. Löwis [Wed, 15 Jan 2003 11:37:23 +0000 (11:37 +0000)]
Patch #473586: Implement CGIXMLRPCRequestHandler.

22 years agoSF patch #664192 bug #661913: inconsistent error messages between string
Raymond Hettinger [Wed, 15 Jan 2003 05:32:57 +0000 (05:32 +0000)]
SF patch #664192 bug #661913: inconsistent error messages between string
                              and unicode

Patch by Christopher Blunck.

22 years agoFix [ 665014 ] files with long lines and an encoding crash.
Mark Hammond [Tue, 14 Jan 2003 23:15:22 +0000 (23:15 +0000)]
Fix [ 665014 ] files with long lines and an encoding crash.

Ensure that the 'size' arg is correctly passed to the encoding reader to
prevent buffer overflows.

22 years agoUpdated IDLE Help to reflect changes in Additional Help Source
Kurt B. Kaiser [Tue, 14 Jan 2003 22:06:11 +0000 (22:06 +0000)]
Updated IDLE Help to reflect changes in Additional Help Source
Configuration implementation.

22 years agoM Bindings.py
Kurt B. Kaiser [Tue, 14 Jan 2003 22:03:31 +0000 (22:03 +0000)]
M Bindings.py
M EditorWindow.py
M NEWS.txt
M config-main.def
M configDialog.py
M configHandler.py
M configHelpSourceEdit.py
M configSectionNameDialog.py

- Change default: IDLE now starts with Python Shell.

- Removed the File Path from the Additional Help Sources scrolled list.

- Add capability to access Additional Help Sources on the web if the
  Help File Path begins with //http or www.  (Otherwise local path is
  validated, as before.)

- Additional Help Sources were not being posted on the Help menu in the
  order entered.  Implement sorting the list by [HelpFiles] 'option'
  number.

- Add Browse button to New Help Source dialog.  Arrange to start in
  Python/Doc if platform is Windows, otherwise start in current directory.

- Put the Additional Help Sources directly on the Help menu instead of in
  an Extra Help cascade menu.  Rearrange the Help menu so the Additional
  Help Sources come last.  Update help.txt appropriately.

- Fix Tk root pop-ups in configSectionNameDialog.py  and configDialog.py

22 years agoExplicitly raise an exception in __cmp__ -- this clarifies that cmp()
Guido van Rossum [Tue, 14 Jan 2003 16:45:04 +0000 (16:45 +0000)]
Explicitly raise an exception in __cmp__ -- this clarifies that cmp()
is not supported on sets.  (Unfortunately, sorting a list of sets may
still return random results because it uses < exclusively, but for
sets that inly implements a partial ordering.  Oh well.)

22 years agoReplaced POP() with STACKADJ(-1) on lines where the result wasn't used.
Raymond Hettinger [Tue, 14 Jan 2003 12:43:10 +0000 (12:43 +0000)]
Replaced POP() with STACKADJ(-1) on lines where the result wasn't used.

The two are semantically equivalent, but the first triggered a compiler
warning about an unused variable.  Note, the preceding steps had already
accessed and decreffed the variable so the reference counts were fine.

22 years agoSF bug #661184: inspect.getsource bug
Raymond Hettinger [Tue, 14 Jan 2003 02:19:36 +0000 (02:19 +0000)]
SF bug #661184: inspect.getsource bug

inspect.getsource would crash with one line definitions like:
   def f(x): return x
or
   f = lambda x: x

22 years agomake sure Info.plist has a CFBundleIdentifier entry
Just van Rossum [Mon, 13 Jan 2003 23:30:04 +0000 (23:30 +0000)]
make sure Info.plist has a CFBundleIdentifier entry

22 years agoA new test here was failing on Windows, because the test before it never
Tim Peters [Mon, 13 Jan 2003 21:38:45 +0000 (21:38 +0000)]
A new test here was failing on Windows, because the test before it never
managed to delete the @test file it intended to delete.  Also, I don't
see a reason to create a 4MB file in the new test, so cut it back to 16K.

22 years agoDuh. cmdqueue should be an instance variable, not a class variable.
Guido van Rossum [Mon, 13 Jan 2003 21:18:54 +0000 (21:18 +0000)]
Duh.  cmdqueue should be an instance variable, not a class variable.
This was introduced in 1998 in rev. 1.13, where I imported extensive
patches that, I am sad to say, I didn't review as carefully as I
should have.

22 years agoDuh. The do_EOF() implementation was bogus. Make it more like
Guido van Rossum [Mon, 13 Jan 2003 21:13:55 +0000 (21:13 +0000)]
Duh.  The do_EOF() implementation was bogus.  Make it more like
do_quit() -- but print a blank line first.

22 years agoFix SF bug #667147, Segmentation fault printing str subclass
Neal Norwitz [Mon, 13 Jan 2003 20:13:12 +0000 (20:13 +0000)]
Fix SF bug #667147, Segmentation fault printing str subclass

Fix infinite recursion which occurred when printing an object
whose __str__() returned self.

Will backport

22 years agoMove the date/time section into the modules section; it was in the
Andrew M. Kuchling [Mon, 13 Jan 2003 19:09:03 +0000 (19:09 +0000)]
Move the date/time section into the modules section; it was in the
   C API section by mistake

22 years agoUpdate comment, QnewFlag will go away in 3.0, not 2.3
Neal Norwitz [Mon, 13 Jan 2003 16:08:56 +0000 (16:08 +0000)]
Update comment, QnewFlag will go away in 3.0, not 2.3

22 years agoFix NameError in getquotaroot(), sanctioned by Piers.
Guido van Rossum [Mon, 13 Jan 2003 15:04:26 +0000 (15:04 +0000)]
Fix NameError in getquotaroot(), sanctioned by Piers.

22 years agoLink to MRO article
Andrew M. Kuchling [Mon, 13 Jan 2003 13:59:22 +0000 (13:59 +0000)]
Link to MRO article
Mention deprecation of string exceptions

22 years agoSF patch 664183 and SF bug 664044: Note that both u'%s' % 'x' and
Raymond Hettinger [Mon, 13 Jan 2003 04:29:19 +0000 (04:29 +0000)]
SF patch 664183 and SF bug 664044:  Note that both  u'%s' % 'x'  and
'%s' % u'x'  return a unicode object.

22 years agoImplemented FSCatalogInfo.
Jack Jansen [Sun, 12 Jan 2003 23:01:46 +0000 (23:01 +0000)]
Implemented FSCatalogInfo.

22 years agoTry to make a sentance more readable.
Neal Norwitz [Sun, 12 Jan 2003 15:04:54 +0000 (15:04 +0000)]
Try to make a sentance more readable.

22 years agoSF #665570, curses causes interpreter crash
Neal Norwitz [Sun, 12 Jan 2003 14:56:19 +0000 (14:56 +0000)]
SF #665570, curses causes interpreter crash

The interpreter doesn't crash, but it does call exit() in libncurses.
Add a note to this effect.

Will backport

22 years agoMinor correction and clarification.
Fred Drake [Sat, 11 Jan 2003 23:15:47 +0000 (23:15 +0000)]
Minor correction and clarification.

22 years agoGot rid of the internal datetimetz type.
Tim Peters [Sat, 11 Jan 2003 03:39:11 +0000 (03:39 +0000)]
Got rid of the internal datetimetz type.

22 years agoMinor fiddling to make the next part easier. Introduced an internal
Tim Peters [Sat, 11 Jan 2003 00:15:54 +0000 (00:15 +0000)]
Minor fiddling to make the next part easier.  Introduced an internal
HASTZINFO() macro.

22 years agoSF #639945 was fixed in alpha 1
Neal Norwitz [Fri, 10 Jan 2003 23:29:48 +0000 (23:29 +0000)]
SF #639945 was fixed in alpha 1

22 years agoFix SF bug # 602259, 3rd parameter for Tkinter.scan_dragto
Neal Norwitz [Fri, 10 Jan 2003 23:24:32 +0000 (23:24 +0000)]
Fix SF bug # 602259, 3rd parameter for Tkinter.scan_dragto

Add the optional gain parameter and pass it to Tk.

22 years agoGet build working on Redhat 7.2 linux 2.4.7
Neal Norwitz [Fri, 10 Jan 2003 21:27:54 +0000 (21:27 +0000)]
Get build working on Redhat 7.2 linux 2.4.7

22 years agoUpdate documentation.
Kurt B. Kaiser [Fri, 10 Jan 2003 21:27:23 +0000 (21:27 +0000)]
Update documentation.

22 years agoSF bug #652933 (for IdleFork): Open Module "math" Fails (Hettinger)
Kurt B. Kaiser [Fri, 10 Jan 2003 21:25:20 +0000 (21:25 +0000)]
SF bug #652933 (for IdleFork): Open Module "math" Fails (Hettinger)

When a module doesn't have a __path__ attribute, trigger a dialog box
rather than dumping a traceback to the console.

Synch to Python IDLE.

22 years agoSF #665913, Fix mmap module core dump with unix
Neal Norwitz [Fri, 10 Jan 2003 20:57:54 +0000 (20:57 +0000)]
SF #665913, Fix mmap module core dump with unix

Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump.

22 years agoSF #665913, Fix mmap module core dump with unix
Neal Norwitz [Fri, 10 Jan 2003 20:52:16 +0000 (20:52 +0000)]
SF #665913, Fix mmap module core dump with unix

Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump.

Will backport.

22 years agoM configDialog.py
Kurt B. Kaiser [Fri, 10 Jan 2003 20:13:57 +0000 (20:13 +0000)]
M configDialog.py
M configHelpSourceEdit.py

1. Attach configHelpSourceEdit error dialogs to parent to avoid Tk root
   pop-ups.
2. Make configHelpSourceEdit OK button the default and bind <Return>.
3. Reformat configHelpSourceEdit.
4. ConfigDialog.SaveAllChangedConfig() had a bug which caused additional
   help sources to be deleted when other config items were changed.
4. Uniform capitalization in configDialog.
5. Update configDialog doc string.

22 years agoPython 2.1's string module doesn't have ascii_letters, so let's just
Barry Warsaw [Fri, 10 Jan 2003 19:28:15 +0000 (19:28 +0000)]
Python 2.1's string module doesn't have ascii_letters, so let's just
hard code it.  We want this module to work with Python 2.1 for now.

22 years agoCleanups, and conversion of assert to assertEqual()
Barry Warsaw [Fri, 10 Jan 2003 19:03:29 +0000 (19:03 +0000)]
Cleanups, and conversion of assert to assertEqual()

22 years agoAs discussed on python-dev, removed from DUP_TOPX support for the
Raymond Hettinger [Fri, 10 Jan 2003 16:45:17 +0000 (16:45 +0000)]
As discussed on python-dev, removed from DUP_TOPX support for the
parameter being either four or five.  Currently, compile.c does not
generate calls with a parameter higher than three.

May have to be reverted if the second alpha or beta shakes out some
other tool generating this op code with a parameter of four or five.

22 years agoAs discussed briefly on python-dev, add Pending Deprecation Warning
Neal Norwitz [Fri, 10 Jan 2003 15:31:15 +0000 (15:31 +0000)]
As discussed briefly on python-dev, add Pending Deprecation Warning
when a string exception is raised.  Note that raising string exceptions
is deprecated in an exception message.

22 years agoGet rid of compiler warnings
Neal Norwitz [Fri, 10 Jan 2003 15:29:16 +0000 (15:29 +0000)]
Get rid of compiler warnings

22 years agoRemove extra 'types'
Neal Norwitz [Fri, 10 Jan 2003 13:52:30 +0000 (13:52 +0000)]
Remove extra 'types'
Change a couple of list -> mylist

22 years agoSF bug #652888: bad documentation for the "type" builtin
Raymond Hettinger [Fri, 10 Jan 2003 09:33:08 +0000 (09:33 +0000)]
SF bug #652888: bad documentation for the "type" builtin

Clarified that not all types are included.  The OP was looking for a
StaticMethodType.

Also, added a note and example suggesting the use of int,str, etc.
instead of IntType, StrType, etc.

Renamed the crummy variable name in the example from "list" to "mylist".

22 years ago1. Make finding Python help docs more robust, including the installed
Kurt B. Kaiser [Fri, 10 Jan 2003 05:07:24 +0000 (05:07 +0000)]
1. Make finding Python help docs more robust, including the installed
   configuation.
2. Make sure that os.startfile() is used to open both Python help docs
   and Extra Help docs on the Windows platforms.

22 years agoGot rid of the timetz type entirely. This was a bit trickier than I
Tim Peters [Fri, 10 Jan 2003 03:49:02 +0000 (03:49 +0000)]
Got rid of the timetz type entirely.  This was a bit trickier than I
hoped it would be, but not too bad.  A test had to change:
time.__setstate__() can no longer add a non-None tzinfo member to a time
object that didn't already have one, since storage for a tzinfo member
doesn't exist in that case.

22 years agoDefault the OK key in the Save Before Run dialog.
Kurt B. Kaiser [Fri, 10 Jan 2003 03:06:30 +0000 (03:06 +0000)]
Default the OK key in the Save Before Run dialog.

22 years agoRemoved more now-pointless pickle code.
Tim Peters [Fri, 10 Jan 2003 02:05:14 +0000 (02:05 +0000)]
Removed more now-pointless pickle code.

22 years agoStarted on implementing support for FSCatalogInfo. Doesn't work yet, don't
Jack Jansen [Thu, 9 Jan 2003 23:37:37 +0000 (23:37 +0000)]
Started on implementing support for FSCatalogInfo. Doesn't work yet, don't
try it.

22 years agointerpret utf-8 file names on OSX
Just van Rossum [Thu, 9 Jan 2003 23:20:31 +0000 (23:20 +0000)]
interpret utf-8 file names on OSX

22 years agosupport unicode in menu items
Just van Rossum [Thu, 9 Jan 2003 23:18:39 +0000 (23:18 +0000)]
support unicode in menu items

22 years agoremoved silly & mask, avoiding FutureWarning
Just van Rossum [Thu, 9 Jan 2003 22:54:37 +0000 (22:54 +0000)]
removed silly & mask, avoiding FutureWarning

22 years agocleaned up Jack's Mac OS9 changes
Just van Rossum [Thu, 9 Jan 2003 22:27:10 +0000 (22:27 +0000)]
cleaned up Jack's Mac OS9 changes

22 years agoPurged reference to defunct datetimetz.
Tim Peters [Thu, 9 Jan 2003 19:52:17 +0000 (19:52 +0000)]
Purged reference to defunct datetimetz.

22 years agoSF patch #664320: Replace push/pop clusters in ceval.c
Raymond Hettinger [Thu, 9 Jan 2003 15:24:30 +0000 (15:24 +0000)]
SF patch #664320: Replace push/pop clusters in ceval.c

Replaced groups of pushes and pops with indexed access to the stack and
a single adjustment (if needed) to the stacklevel.

Avoids scores of unnecessary increments and decrements to the stackpointer.
Removes unnecessary sequential dependencies so that the compiler has more
freedom for optimizations.  Frees the processor for more parallel and
pipelined execution by using mostly read-only access and having few pointer
adjustments just prior to a read or write.

22 years agoVarious minor edits
Andrew M. Kuchling [Thu, 9 Jan 2003 13:46:30 +0000 (13:46 +0000)]
Various minor edits

22 years agoMarkup fix
Andrew M. Kuchling [Thu, 9 Jan 2003 12:51:50 +0000 (12:51 +0000)]
Markup fix

22 years agoMake the test scripts work again with narrow Python builds.
Walter Dörwald [Thu, 9 Jan 2003 11:38:50 +0000 (11:38 +0000)]
Make the test scripts work again with narrow Python builds.

22 years agoadd newline to source before compilation
Just van Rossum [Thu, 9 Jan 2003 10:47:20 +0000 (10:47 +0000)]
add newline to source before compilation

22 years agoMassive fiddling to reflect that datetimetz and timetz no longer exist.
Tim Peters [Thu, 9 Jan 2003 04:10:05 +0000 (04:10 +0000)]
Massive fiddling to reflect that datetimetz and timetz no longer exist.
WARNING:  It would be a minor miracle if the LaTeX stuff still worked.

s/field/member/ generally everywhere, to conform with most other usage in
the docs.

s/daylight savings time/daylight saving time/ generally everywhere,
because the latter spelling is anally correct.

22 years agoAdd a few test cases to increase code coverage:
Walter Dörwald [Wed, 8 Jan 2003 23:22:13 +0000 (23:22 +0000)]
Add a few test cases to increase code coverage:

From:
 69.73% of 294 source lines executed in file ./Modules/_codecsmodule.c
 79.47% of 487 source lines executed in file Python/codecs.c
 78.45% of 3643 source lines executed in file Objects/unicodeobject.c

To:
 70.41% of 294 source lines executed in file ./Modules/_codecsmodule.c
 82.75% of 487 source lines executed in file Python/codecs.c
 80.76% of 3638 source lines executed in file Objects/unicodeobject.c

This actually unearthed a bug in the handling of None
values in PyUnicode_EncodeCharmap.

22 years agoAdd a test that exercises the error handling part of
Walter Dörwald [Wed, 8 Jan 2003 23:02:34 +0000 (23:02 +0000)]
Add a test that exercises the error handling part of
PyUnicode_EncodeDecimal().

22 years agoFix charmapencode_lookup(), so that a None value in the mapping
Walter Dörwald [Wed, 8 Jan 2003 22:01:33 +0000 (22:01 +0000)]
Fix charmapencode_lookup(), so that a None value in the mapping
is treated as "character maps to <undefined>" and not as
"character mapping must return integer, None or str".

22 years agoSF patch 661583: Remove old code from lib\os.py
Tim Peters [Wed, 8 Jan 2003 21:20:57 +0000 (21:20 +0000)]
SF patch 661583: Remove old code from lib\os.py
A patch from Andrew Wilkinson to change some bizarre old exec statements
specific to NT and CE.

22 years agoDeleted pickle/unpickle code for the old datetime and time classes -- it's
Tim Peters [Wed, 8 Jan 2003 20:51:36 +0000 (20:51 +0000)]
Deleted pickle/unpickle code for the old datetime and time classes -- it's
unreachable now.

22 years agoUtterly minimal changes to collapse datetimetz into datetime, and timetz
Tim Peters [Wed, 8 Jan 2003 20:40:01 +0000 (20:40 +0000)]
Utterly minimal changes to collapse datetimetz into datetime, and timetz
into time.  This is little more than *exporting* the datetimetz object
under the name "datetime", and similarly for timetz.  A good implementation
of this change requires more work, but this is fully functional if you
don't stare too hard at the internals (e.g., right now a type named
"datetime" shows up as a base class of the type named "datetime").  The
docs also need extensive revision, not part of this checkin.

22 years agoRemove variable owned from PyUnicode_FromEncodedObject, which is unused
Walter Dörwald [Wed, 8 Jan 2003 20:38:39 +0000 (20:38 +0000)]
Remove variable owned from PyUnicode_FromEncodedObject, which is unused
(except for Py_DECREF calls) since the introduction of __unicode__.

22 years agoFix bug 427345 [related to IE's additional input on POST request].
Steve Holden [Wed, 8 Jan 2003 18:53:18 +0000 (18:53 +0000)]
Fix bug 427345 [related to IE's additional input on POST request].

22 years agoVarious tweaks to make the test work on the Mac.
Jack Jansen [Wed, 8 Jan 2003 16:37:03 +0000 (16:37 +0000)]
Various tweaks to make the test work on the Mac.

22 years agoAlways define getenv(), as suggested by Guido. This means that os.getenv() is also...
Jack Jansen [Wed, 8 Jan 2003 16:33:40 +0000 (16:33 +0000)]
Always define getenv(), as suggested by Guido. This means that os.getenv() is also defined for MacPython-OS9 (even though it doesn't actually do anything useful), and it shouldn't hurt on other platforms.

22 years agoTest that chmod() actually exists before calling it (it doesn't on MacOS9).
Jack Jansen [Wed, 8 Jan 2003 16:33:16 +0000 (16:33 +0000)]
Test that chmod() actually exists before calling it (it doesn't on MacOS9).

22 years agoRemoved the SetDates warning. The warning is in the readme, and the print statement...
Jack Jansen [Wed, 8 Jan 2003 16:32:29 +0000 (16:32 +0000)]
Removed the SetDates warning. The warning is in the readme, and the print statement was too obtrusive (it appeared during the installation process, and the user needed to close the resulting window manually).

22 years agoquashed another case of the 32-bit warning.
Jack Jansen [Wed, 8 Jan 2003 16:32:09 +0000 (16:32 +0000)]
quashed another case of the 32-bit warning.

22 years agoUpdated the list of expected skips for MacPython-OS9.
Jack Jansen [Wed, 8 Jan 2003 16:31:11 +0000 (16:31 +0000)]
Updated the list of expected skips for MacPython-OS9.

22 years agon the Mac the frozen import that should fail actually succeeds, and we know it, so...
Jack Jansen [Wed, 8 Jan 2003 16:30:54 +0000 (16:30 +0000)]
n the Mac the frozen import that should fail actually succeeds, and we know it, so skip the test in stead of confusing the end user.

22 years agoAdded the Mac to platforms that don't have user/group/other modes.
Jack Jansen [Wed, 8 Jan 2003 16:30:34 +0000 (16:30 +0000)]
Added the Mac to platforms that don't have user/group/other modes.
Set the limit for the number of open files to 32 if platform==mac.

22 years agoMade "ascii" the default encoding for MacPython, as suggested by MvL, and ripped...
Jack Jansen [Wed, 8 Jan 2003 16:29:17 +0000 (16:29 +0000)]
Made "ascii" the default encoding for MacPython, as suggested by MvL, and ripped out my previous changes to test_unicode. Doing this for 2.3a1 should give people enough time to complain, if they want to, and then we can see whether we want to do anything about it.

22 years agoAdded a couple of casts to make this compile with CodeWarrior.
Jack Jansen [Wed, 8 Jan 2003 16:28:45 +0000 (16:28 +0000)]
Added a couple of casts to make this compile with CodeWarrior.