]> granicus.if.org Git - python/log
python
24 years agoProperly set LINKFORSHARED on Reliant UNIX. Problem and required linker
Fred Drake [Mon, 25 Sep 2000 15:08:46 +0000 (15:08 +0000)]
Properly set LINKFORSHARED on Reliant UNIX.  Problem and required linker
flags reported by Daniel Dittmar <daniel.dittmar@sap.com>.

24 years agoAddrlistClass.getdomainliteral(): rfc822 requires that the domain
Barry Warsaw [Mon, 25 Sep 2000 15:08:27 +0000 (15:08 +0000)]
AddrlistClass.getdomainliteral(): rfc822 requires that the domain
literal be wrapped in square brackets.  This fix replaces the square
brackets that were previously being stripped off.  Closes SF bug
#110621.

24 years agoCredit where credit is due. Also fixed an unalphabetic sequence.
Guido van Rossum [Mon, 25 Sep 2000 14:46:26 +0000 (14:46 +0000)]
Credit where credit is due.  Also fixed an unalphabetic sequence.

24 years agoWhen reading the file, option names were not passed through
Guido van Rossum [Mon, 25 Sep 2000 14:42:33 +0000 (14:42 +0000)]
When reading the file, option names were not passed through
self.optionxform(), which (in the default case) caused options spelled
with opper case letters in their name to be inaccessible.  Reported by
"Todd R. Palmer" <t2palmer@bellsouth.net> on
activepython@listserv1.ActiveState.com.

24 years agoUpdate URL for Python 2.0
Andrew M. Kuchling [Mon, 25 Sep 2000 14:40:15 +0000 (14:40 +0000)]
Update URL for Python 2.0

24 years agoMinor cleanups, wrap long lines.
Fred Drake [Mon, 25 Sep 2000 14:14:30 +0000 (14:14 +0000)]
Minor cleanups, wrap long lines.

24 years agoAdd missing prototypes for the benefit of SunOS 4.1.4 */
Guido van Rossum [Mon, 25 Sep 2000 13:22:00 +0000 (13:22 +0000)]
Add missing prototypes for the benefit of SunOS 4.1.4 */

24 years agoFor the benefit of SunOS 4.1.4, define MS_SYNC as 0 when it's
Guido van Rossum [Mon, 25 Sep 2000 13:16:15 +0000 (13:16 +0000)]
For the benefit of SunOS 4.1.4, define MS_SYNC as 0 when it's
undefined.  ccording to MvL, this is safe: the MS_SYNC flag means that
msync() returns when all I/O operations are scheduled; without it, it
waits until they are complete, which is acceptable behavior.

24 years agounicode database compression, step 2:
Fredrik Lundh [Mon, 25 Sep 2000 08:07:06 +0000 (08:07 +0000)]
unicode database compression, step 2:

- fixed attributions
- moved decomposition data to a separate table, in preparation
  for step 3 (which won't happen before 2.0 final, promise!)
- use relative paths in the generator script

I have a lot more stuff in the works for 2.1, but let's leave
that for another day...

24 years agoFiddled w/ /F's cool new splitbins function: documented it, generalized it
Tim Peters [Mon, 25 Sep 2000 07:13:41 +0000 (07:13 +0000)]
Fiddled w/ /F's cool new splitbins function:  documented it, generalized it
a bit, sped it a lot primarily by removing the unused assumption that None was
a legit bin entry (the function doesn't really need to assume that there's
anything special about 0), added an optional "trace" argument, and in __debug__
mode added exhaustive verification that the decomposition is both correct and
doesn't overstep any array bounds (which wasn't obvious to me from staring at the
generated C code -- now I feel safe!).  Did not commit a new unicodedata_db.h, as
the one produced by this version is identical to the one already checked in.

24 years agoAdded 'translate_longopt()' function.
Greg Ward [Mon, 25 Sep 2000 01:58:31 +0000 (01:58 +0000)]
Added 'translate_longopt()' function.

24 years agoChange to use the new 'translate_longopt()' function from fancy_getopt, rather
Greg Ward [Mon, 25 Sep 2000 01:58:07 +0000 (01:58 +0000)]
Change to use the new 'translate_longopt()' function from fancy_getopt, rather
than rolling our own with fancy_getopt's 'longopt_xlate' global.

24 years agoAdded a bunch of missing "=" signs in the option table.
Greg Ward [Mon, 25 Sep 2000 01:53:01 +0000 (01:53 +0000)]
Added a bunch of missing "=" signs in the option table.
Removed script options -- don't think they ever worked, weren't
  very well thought through, etc.

24 years agoRenamed '--keep-tree' option to '--keep-temp', for consistency
Greg Ward [Mon, 25 Sep 2000 01:51:01 +0000 (01:51 +0000)]
Renamed '--keep-tree' option to '--keep-temp', for consistency
with the bdist_* commands.

24 years agoAdded 'boolean_options' list to support config file parsing.
Greg Ward [Mon, 25 Sep 2000 01:41:15 +0000 (01:41 +0000)]
Added 'boolean_options' list to support config file parsing.

24 years agoAdded 'strtobool()' function: convert strings like "yes", "1",
Greg Ward [Mon, 25 Sep 2000 01:25:06 +0000 (01:25 +0000)]
Added 'strtobool()' function: convert strings like "yes", "1",
"no", "0", etc. to true/false.

24 years agoFixed some bugs and mis-features in handling config files:
Greg Ward [Mon, 25 Sep 2000 01:23:52 +0000 (01:23 +0000)]
Fixed some bugs and mis-features in handling config files:
  * options can now be spelled "foo-bar" or "foo_bar" (handled in
    'parse_config_files()', just after we parse a file)
  * added a "[global]" section so there's a place to set global
    options like verbose/quiet and dry-run
  * respect the "negative alias" dictionary so (eg.) "quiet=1" is
    the same as "verbose=0" (this had to be done twice: once in
    'parse_config_file()' for global options, and once in
    '_set_command_options()' for per-command options)
  * the other half of handling boolean options correctly: allow
    commands to list their boolean options in a 'boolean_options'
    class attribute, and use it to translate strings (like "yes", "1",
    "no", "0", etc) to true or false

24 years agoFix inconsistent use of space/tabs.
Thomas Wouters [Mon, 25 Sep 2000 00:11:37 +0000 (00:11 +0000)]
Fix inconsistent use of space/tabs.

24 years agounicode database compression, step 1:
Fredrik Lundh [Sun, 24 Sep 2000 23:18:31 +0000 (23:18 +0000)]
unicode database compression, step 1:

- use unidb compression for the unicodedata module.  on Windows,
  the new unidatabase module is 120k, down from nearly 600k.

24 years agoRepaired damaged string.
Tim Peters [Sun, 24 Sep 2000 22:12:45 +0000 (22:12 +0000)]
Repaired damaged string.

24 years agoxmlparse_ExternalEntityParserCreate(): Add required cast to return to
Fred Drake [Sun, 24 Sep 2000 22:07:59 +0000 (22:07 +0000)]
xmlparse_ExternalEntityParserCreate():  Add required cast to return to
        avoid compiler warnings.

24 years agoReadme and relnotes for intermediate 2.0b1+ release.
Jack Jansen [Sun, 24 Sep 2000 22:01:53 +0000 (22:01 +0000)]
Readme and relnotes for intermediate 2.0b1+ release.

24 years agoHandle the ****/**** appleevent wildcard when called as a main program, so that it...
Jack Jansen [Sun, 24 Sep 2000 22:00:11 +0000 (22:00 +0000)]
Handle the ****/**** appleevent wildcard when called as a main program, so that it becomes a handy debugging tool (BuildApplet, copy aete resource, apply applescript to it).

24 years agoAdded a workaround for shortcomings in the OSA support: there can be class/property...
Jack Jansen [Sun, 24 Sep 2000 21:56:43 +0000 (21:56 +0000)]
Added a workaround for shortcomings in the OSA support: there can be class/property conflicts and passing classes as arguments doesn't work. The package now seems to work.

24 years agoUse SAX2 namespace support.
Martin v. Löwis [Sun, 24 Sep 2000 21:54:14 +0000 (21:54 +0000)]
Use SAX2 namespace support.

24 years agounicode database compression, step 1:
Fredrik Lundh [Sun, 24 Sep 2000 21:45:34 +0000 (21:45 +0000)]
unicode database compression, step 1:

- use unidb compression for the unicodedata module.  on Windows,
  the new unidatabase module is 120k, down from nearly 600k.

24 years ago[Patch 101634]
Martin v. Löwis [Sun, 24 Sep 2000 21:31:06 +0000 (21:31 +0000)]
[Patch 101634]
xml.sax: Fix parse and parseString not to rely on ExpatParser
         Greatly simplify import logic by using __import__
saxutils: Support Unicode strings and files as parameters to
          prepare_input_source

24 years agounicode database compression, step 1:
Fredrik Lundh [Sun, 24 Sep 2000 21:28:28 +0000 (21:28 +0000)]
unicode database compression, step 1:

- use unidb compression for the unicodedata module.  on Windows,
  the new unidatabase module is 120k, down from nearly 600k.

24 years agoFind feature names in handler.
Martin v. Löwis [Sun, 24 Sep 2000 21:17:39 +0000 (21:17 +0000)]
Find feature names in handler.

24 years agoEnabled EntityResolver test again now that pyexpat.c has been fixed.
Lars Gustäbel [Sun, 24 Sep 2000 20:57:04 +0000 (20:57 +0000)]
Enabled EntityResolver test again now that pyexpat.c has been fixed.

24 years agoFixed another bug.
Lars Gustäbel [Sun, 24 Sep 2000 20:55:01 +0000 (20:55 +0000)]
Fixed another bug.

24 years agoAdded ExternalEntityParserCreate method (patch 101635).
Lars Gustäbel [Sun, 24 Sep 2000 20:50:52 +0000 (20:50 +0000)]
Added ExternalEntityParserCreate method (patch 101635).

24 years agoImprovements to doco strings.
Lars Gustäbel [Sun, 24 Sep 2000 20:38:18 +0000 (20:38 +0000)]
Improvements to doco strings.
Tiny bug fix to expatreader.py (endDocument was only called after errors).

24 years agoUse findfile to locate input and output files.
Martin v. Löwis [Sun, 24 Sep 2000 20:30:24 +0000 (20:30 +0000)]
Use findfile to locate input and output files.

24 years agoAdded EntityResolver and DTDHandler (patch 101631) with test cases.
Lars Gustäbel [Sun, 24 Sep 2000 20:19:45 +0000 (20:19 +0000)]
Added EntityResolver and DTDHandler (patch 101631) with test cases.

24 years agoInstall xml/parsers, not xml/parser.
Martin v. Löwis [Sun, 24 Sep 2000 19:57:18 +0000 (19:57 +0000)]
Install xml/parsers, not xml/parser.

24 years agoIf dbopen is not in libc, checking whether it is in libdb will fail if
Martin v. Löwis [Sun, 24 Sep 2000 19:40:25 +0000 (19:40 +0000)]
If dbopen is not in libc, checking whether it is in libdb will fail if
db_185.h has renamed that function to __db185_open, which it does in DB 3.1.
So don't check whether the function is in -ldb.

24 years agoAdded necessary test input file for test_sax.py
Lars Gustäbel [Sun, 24 Sep 2000 18:57:26 +0000 (18:57 +0000)]
Added necessary test input file for test_sax.py

24 years agoAdded back the InputSource class (patch 101630).
Lars Gustäbel [Sun, 24 Sep 2000 18:54:49 +0000 (18:54 +0000)]
Added back the InputSource class (patch 101630).

24 years agoAdded test cases for the InputSource class.
Lars Gustäbel [Sun, 24 Sep 2000 18:53:56 +0000 (18:53 +0000)]
Added test cases for the InputSource class.

24 years ago- Improved handling of win32 proxy settings (addresses bug #114256).
Fredrik Lundh [Sun, 24 Sep 2000 18:51:25 +0000 (18:51 +0000)]
- Improved handling of win32 proxy settings (addresses bug #114256).

The earlier code assumed "protocol=host;protocol=host;..." or "host",
but Windows may also use "protocol=host" (just one entry), as well as
"protocol://host".  This code needs some more work, so I'll leave the
bug open for now.

24 years agoAdded test cases for the Attributes interface.
Lars Gustäbel [Sun, 24 Sep 2000 18:40:52 +0000 (18:40 +0000)]
Added test cases for the Attributes interface.

24 years agoUpdated to final Attributes interface (patch 101632).
Lars Gustäbel [Sun, 24 Sep 2000 18:39:23 +0000 (18:39 +0000)]
Updated to final Attributes interface (patch 101632).

24 years agoUpdated to new SAX method signatures (*NS, patch 101573).
Lars Gustäbel [Sun, 24 Sep 2000 18:31:37 +0000 (18:31 +0000)]
Updated to new SAX method signatures (*NS, patch 101573).

24 years agoUpdated to new *NS signatures (patch 101573).
Lars Gustäbel [Sun, 24 Sep 2000 18:29:24 +0000 (18:29 +0000)]
Updated to new *NS signatures (patch 101573).

24 years agoStupid typo in the pthread_t test
Guido van Rossum [Sun, 24 Sep 2000 16:47:19 +0000 (16:47 +0000)]
Stupid typo in the pthread_t test

24 years ago- don't hang if group id is followed by whitespace (closes bug #114660)
Fredrik Lundh [Sun, 24 Sep 2000 14:46:23 +0000 (14:46 +0000)]
- don't hang if group id is followed by whitespace (closes bug #114660)

24 years agoAdded first start on SAX 2.0 tests.
Lars Gustäbel [Sun, 24 Sep 2000 12:24:24 +0000 (12:24 +0000)]
Added first start on SAX 2.0 tests.

24 years agoAdded back missing argument to ignorableWhitespace signature.
Lars Gustäbel [Sun, 24 Sep 2000 11:06:27 +0000 (11:06 +0000)]
Added back missing argument to ignorableWhitespace signature.

24 years agoBug fix to namespace handling in XMLGenerator (now adds declarations).
Lars Gustäbel [Sun, 24 Sep 2000 10:53:31 +0000 (10:53 +0000)]
Bug fix to namespace handling in XMLGenerator (now adds declarations).
Bug fixes to XMLFilterBase (wrong ignorableWhitespace signature and
did not inherit set*Handler methods from XMLReader.)

24 years agoFixes for Python 1.6 compatibility - socket bind and connect get a
Nicholas Riley [Sun, 24 Sep 2000 06:29:50 +0000 (06:29 +0000)]
Fixes for Python 1.6 compatibility - socket bind and connect get a
tuple instead two arguments.

24 years agoChange for Python 1.6 compatibility - UNIX's 'os' module defines
Nicholas Riley [Sun, 24 Sep 2000 06:28:47 +0000 (06:28 +0000)]
Change for Python 1.6 compatibility - UNIX's 'os' module defines
'spawnv' now, so we check for 'fork' first.

24 years agoConform to the Python style guide.
Fred Drake [Sun, 24 Sep 2000 05:21:58 +0000 (05:21 +0000)]
Conform to the Python style guide.

24 years agoConform more closely with the Python style guide.
Fred Drake [Sat, 23 Sep 2000 05:32:26 +0000 (05:32 +0000)]
Conform more closely with the Python style guide.

24 years agoAdded explanation of the use of the first program argument passed to the
Fred Drake [Sat, 23 Sep 2000 05:22:07 +0000 (05:22 +0000)]
Added explanation of the use of the first program argument passed to the
exec*() family of functions.

24 years agoChange the name of the exception from "pyexpat.error" to
Fred Drake [Sat, 23 Sep 2000 04:55:48 +0000 (04:55 +0000)]
Change the name of the exception from "pyexpat.error" to
"xml.parsers.expat.error", so it will reflect the public name of the
exception rather than the internal name.

Also change some of the initialization to use the new PyModule_Add*()
convenience functions.

24 years agoUse the public name for the Expat parser; "pyexpat" is deprecated.
Fred Drake [Sat, 23 Sep 2000 04:49:30 +0000 (04:49 +0000)]
Use the public name for the Expat parser; "pyexpat" is deprecated.

24 years agoRename the public interface from "pyexpat" to "xml.parsers.expat".
Fred Drake [Sat, 23 Sep 2000 04:47:56 +0000 (04:47 +0000)]
Rename the public interface from "pyexpat" to "xml.parsers.expat".

24 years agoAdd a wrapper around the pyexpat module, making the "public" name of
Fred Drake [Sat, 23 Sep 2000 04:44:43 +0000 (04:44 +0000)]
Add a wrapper around the pyexpat module, making the "public" name of
the module "xml.parsers.expat".

24 years agoAdded warnings about platform vagaries to the strptime() documentation.
Fred Drake [Sat, 23 Sep 2000 04:36:14 +0000 (04:36 +0000)]
Added warnings about platform vagaries to the strptime() documentation.
This closes SourceForge bug #115146.

24 years agoFix for SF bug 110624: float literals behave inconsistently.
Tim Peters [Sat, 23 Sep 2000 03:39:17 +0000 (03:39 +0000)]
Fix for SF bug 110624:  float literals behave inconsistently.
I fixed the specific complaint but left the (many) large issues untouched.
See the (very long) bug report discussion for why:
    http://sourceforge.net/bugs/?func=detailbug&group_id=5470&bug_id=110624
Note that while I left the interface to the undocumented public API function
PyFloat_FromString alone, its 2nd argument is useless.  From a comment block
in the code:

RED_FLAG 22-Sep-2000 tim
PyFloat_FromString's pend argument is braindead.  Prior to this RED_FLAG,

1.  If v was a regular string, *pend was set to point to its terminating
    null byte.  That's useless (the caller can find that without any
    help from this function!).

2.  If v was a Unicode string, or an object convertible to a character
    buffer, *pend was set to point into stack trash (the auto temp
    vector holding the character buffer).  That was downright dangerous.

Since we can't change the interface of a public API function, pend is
still supported but now *officially* useless:  if pend is not NULL,
*pend is set to NULL.

24 years agoAdded documentation for the new PyModule_*() convenience functions.
Fred Drake [Sat, 23 Sep 2000 03:25:42 +0000 (03:25 +0000)]
Added documentation for the new PyModule_*() convenience functions.

This closes SourceForge patch #101233.

24 years agoAndrew Kuchling <akuchlin@mems-exchange.org>:
Fred Drake [Sat, 23 Sep 2000 03:24:27 +0000 (03:24 +0000)]
Andrew Kuchling <akuchlin@mems-exchange.org>:
Add three new convenience functions to the PyModule_*() family:
PyModule_AddObject(), PyModule_AddIntConstant(), PyModule_AddStringConstant().

This closes SourceForge patch #101233.

24 years agoSplit 'run()' up into 'build()', 'install()', and 'bytecompile()' (for
Greg Ward [Sat, 23 Sep 2000 01:20:19 +0000 (01:20 +0000)]
Split 'run()' up into 'build()', 'install()', and 'bytecompile()' (for
easier extensibility).

24 years agoWhitespace tweaks.
Greg Ward [Sat, 23 Sep 2000 01:10:10 +0000 (01:10 +0000)]
Whitespace tweaks.

24 years agoReformat docstrings.
Greg Ward [Sat, 23 Sep 2000 00:59:34 +0000 (00:59 +0000)]
Reformat docstrings.
Standardize use of whitespace on function calls.

24 years agomkcwproject now works, but for one thing: the import of the XML document as a projec...
Jack Jansen [Fri, 22 Sep 2000 23:54:07 +0000 (23:54 +0000)]
mkcwproject now works,  but for one thing: the import of the XML document as a project through AppleEvents.

24 years agoTest files for mkcwproject
Jack Jansen [Fri, 22 Sep 2000 23:28:40 +0000 (23:28 +0000)]
Test files for mkcwproject

24 years agoMore bits and pieces of project generation.
Jack Jansen [Fri, 22 Sep 2000 23:26:55 +0000 (23:26 +0000)]
More bits and pieces of project generation.

24 years agoFix some long/"l" int/"i" mismatches. Fixes bug #113779.
Neil Schemenauer [Fri, 22 Sep 2000 22:35:36 +0000 (22:35 +0000)]
Fix some long/"l" int/"i" mismatches.  Fixes bug #113779.

24 years agoKeepconsole is now a 4-way option: never/errorexit/unseen output/always. Default...
Jack Jansen [Fri, 22 Sep 2000 21:50:11 +0000 (21:50 +0000)]
Keepconsole is now a 4-way option: never/errorexit/unseen output/always. Default is "unseen output". Upped the Popt version number.

24 years agoPoke-and-hope attempt to fix Bugs #115006 and #114324: fix the test
Guido van Rossum [Fri, 22 Sep 2000 19:41:56 +0000 (19:41 +0000)]
Poke-and-hope attempt to fix Bugs #115006 and #114324: fix the test
for pthread_t (to calculate its size) to work even if pthread_t is a
struct.

24 years agoMaildir.__init__(): Use the correct filter for filenames, so that this
Fred Drake [Fri, 22 Sep 2000 18:41:50 +0000 (18:41 +0000)]
Maildir.__init__():  Use the correct filter for filenames, so that this
                     class conforms to the maildir specification.

24 years agoAdded refcount information for the *_InPlace*() API series.
Fred Drake [Fri, 22 Sep 2000 18:19:37 +0000 (18:19 +0000)]
Added refcount information for the *_InPlace*() API series.
This closes SourceForge bug #114287.

24 years agoPyNumber_Coerce() returns an int, not a PyObject *.
Fred Drake [Fri, 22 Sep 2000 18:17:49 +0000 (18:17 +0000)]
PyNumber_Coerce() returns an int, not a PyObject *.

24 years agoFix the way we found relevant cfuncdesc lines; PREFIX was not a regular
Fred Drake [Fri, 22 Sep 2000 17:55:32 +0000 (17:55 +0000)]
Fix the way we found relevant cfuncdesc lines; PREFIX was not a regular
expression!

24 years agoIt's better to test for __hpux rather than __hppa, and hpux or hppa is
Guido van Rossum [Fri, 22 Sep 2000 17:26:14 +0000 (17:26 +0000)]
It's better to test for __hpux rather than __hppa, and hpux or hppa is
unnecessary.  Sez edg@SF

24 years agouse_sans_serif(),
Fred Drake [Fri, 22 Sep 2000 17:05:04 +0000 (17:05 +0000)]
use_sans_serif(),
use_italics():  Remove both functions, inlining use_italics() at its
                only call site.

init_myformat():  Uncomment line so that some internal markup does not
                  get generated, since it is not properly removed later.
                  (Fix on aspect of SourceForge bug #114749.)

Modified call to process_commands_wrap_deferred(), removing \code from
the list since it had a bad interaction with other changes in some contexts.

24 years agoUpdate versioning for the next Python release.
Fred Drake [Fri, 22 Sep 2000 16:20:23 +0000 (16:20 +0000)]
Update versioning for the next Python release.

24 years agoUpdate RELEASE for the next Python release.
Fred Drake [Fri, 22 Sep 2000 16:18:19 +0000 (16:18 +0000)]
Update RELEASE for the next Python release.

24 years agoChange HP=UX compiler options from -Aa to -Ae, which implies
Guido van Rossum [Fri, 22 Sep 2000 16:15:54 +0000 (16:15 +0000)]
Change HP=UX compiler options from -Aa to -Ae, which implies
-D_HPUX_SOURCE and also turns on long long support.

Suggestion by stnor@sweden.hp.com (Stefan Norberg).

Please test this if you have access to HP-UX!!!

24 years agoHopefully fix the problem with undeclared fdatasync() on HP-UX that
Guido van Rossum [Fri, 22 Sep 2000 16:01:05 +0000 (16:01 +0000)]
Hopefully fix the problem with undeclared fdatasync() on HP-UX that
was reported twice so far.

Someone with access to HP-UX, please test this!  (Is '__hppa' or
'hppa' really the correct symbol to test for?)

24 years agoFix some minor nits about the use of \optional in parameter lists.
Fred Drake [Fri, 22 Sep 2000 15:46:35 +0000 (15:46 +0000)]
Fix some minor nits about the use of \optional in parameter lists.

24 years agoAddress Bug #115057: add a --with-suffix option to set the EXE
Guido van Rossum [Fri, 22 Sep 2000 15:38:21 +0000 (15:38 +0000)]
Address Bug #115057: add a --with-suffix option to set the EXE
variable in the Makefiles from the configure script.  Usefil for
Cygwin and Mac OS X builds.

24 years ago- plug a memory leak due to circular lists
Neil Schemenauer [Fri, 22 Sep 2000 15:30:16 +0000 (15:30 +0000)]
- plug a memory leak due to circular lists

24 years ago- Replace debugleak flag with findleaks flag. The new SAVEALL GC option is
Neil Schemenauer [Fri, 22 Sep 2000 15:29:28 +0000 (15:29 +0000)]
- Replace debugleak flag with findleaks flag.  The new SAVEALL GC option is
  used to find cyclic garbage produced by tests.

24 years ago- Add test for new SAVEALL debugging flag
Neil Schemenauer [Fri, 22 Sep 2000 15:26:20 +0000 (15:26 +0000)]
- Add test for new SAVEALL debugging flag
- Use exceptions rather than asserts for failing tests.
- Reorganize tests and produce some output if verbose option is set.

24 years ago- Add DEBUG_SAVEALL option. When enabled all garbage objects found by the
Neil Schemenauer [Fri, 22 Sep 2000 15:22:38 +0000 (15:22 +0000)]
- Add DEBUG_SAVEALL option.  When enabled all garbage objects found by the
  collector will be saved in gc.garbage.  This is useful for debugging a
  program that creates reference cycles.

- Fix else statements in gcmodule.c to conform to Python coding standards.

24 years agoWhen PyInt_FromLong() returns NULL, you do not need to check
Fred Drake [Fri, 22 Sep 2000 15:21:31 +0000 (15:21 +0000)]
When PyInt_FromLong() returns NULL, you do not need to check
PyErr_Occurred().  Removed the extra test and setting of a
bogus exception.

24 years agoContributed modules by Riccardo Trocca. Extended pixmap wrapper, NumPy visualiser...
Jack Jansen [Fri, 22 Sep 2000 12:46:19 +0000 (12:46 +0000)]
Contributed modules by Riccardo Trocca. Extended pixmap wrapper, NumPy visualiser and QuickTime to images.

24 years agoAllow lists of files/fsspecs as the source for copy() and move(). By
Jack Jansen [Fri, 22 Sep 2000 12:17:14 +0000 (12:17 +0000)]
Allow lists of files/fsspecs as the source for copy() and move(). By
Bill Bedford, slightly edited by me.

24 years agoImplemented new os.startfile function, unique to Windows, exposing a
Tim Peters [Fri, 22 Sep 2000 10:05:54 +0000 (10:05 +0000)]
Implemented new os.startfile function, unique to Windows, exposing a
subset of Win32 ShellExecute's functionality.  Guido wants this because
IDLE's Help -> Docs function currently crashes his machine because of a
conflict between his version of Norton AntiVirus (6.10.20) and MS's
_popen.  Docs for startfile are being mailed to Fred (or just read the
docstring -- it tells the whole story).
Changed webbrowser.py to use os.startfile instead of os.popen on Windows.
Changed IDLE's EditorWindow.py to pass an absolute path for the docs
(hardcoding ShellExecute's "directory" arg to "." as used to be done let
IDLE work, but made the startfile command exceedingly obscure for other
uses -- the MS docs are terrible, of course, & still not sure I
understand it).
Note that Windows Python must link with shell32.lib now!  That's where
ShellExecute lives.

24 years agoMore whitespace cleanup, to satisfy tabnanny.py. Don't trust -tt!
Guido van Rossum [Fri, 22 Sep 2000 09:30:29 +0000 (09:30 +0000)]
More whitespace cleanup, to satisfy tabnanny.py.  Don't trust -tt!

24 years agoGet rid of the one tab in the file.
Guido van Rossum [Fri, 22 Sep 2000 09:23:08 +0000 (09:23 +0000)]
Get rid of the one tab in the file.
Closes Bug #115054.

24 years agoFix for SF bug 115051: Dodgy use of PyTuple_SET_ITEM in pyexpat.c
Tim Peters [Fri, 22 Sep 2000 06:01:11 +0000 (06:01 +0000)]
Fix for SF bug 115051:  Dodgy use of PyTuple_SET_ITEM in pyexpat.c

24 years agoWhite space cleanup, including one item that was an error under -tt.
Fred Drake [Fri, 22 Sep 2000 05:07:56 +0000 (05:07 +0000)]
White space cleanup, including one item that was an error under -tt.

24 years agoRemove debugging print. ;(
Fred Drake [Fri, 22 Sep 2000 04:49:50 +0000 (04:49 +0000)]
Remove debugging print.  ;(

24 years agoCorrect some bitrot; some things have become inaccurate in the tutorial.
Fred Drake [Fri, 22 Sep 2000 04:12:27 +0000 (04:12 +0000)]
Correct some bitrot; some things have become inaccurate in the tutorial.

<file>.readlines() does not call <file>.readline() internally anymore,
and the sizehint parameter should be mentioned briefly.

Some displays of floating point numbers needed to be updated due to the
change in the repr() of floats (from 1.6).

Both issues were noted by Aahz <aahz@panix.com>.

24 years agoTweak what happens when run on non-Windows platforms: set install prefix
Greg Ward [Fri, 22 Sep 2000 01:32:34 +0000 (01:32 +0000)]
Tweak what happens when run on non-Windows platforms: set install prefix
as well as scheme, and don't convert all installation paths (that's now
done by the "install" command for us).

24 years agoChanged all paths in the INSTALL_SCHEMES dict to Unix syntax, and added
Greg Ward [Fri, 22 Sep 2000 01:31:08 +0000 (01:31 +0000)]
Changed all paths in the INSTALL_SCHEMES dict to Unix syntax, and added
'convert_paths()' method to convert them all to the local syntax (backslash
or colon or whatever) at the appropriate time.

Added SCHEME_KEYS to get rid of one hard-coded list of attributes (in
'select_scheme()').

Default 'install_path_file' to true, and never set it false (it's just
there in case some outsider somewhere wants to disable installation of the
.pth file for whatever reason).

Toned down the warning emitted when 'install_path_file' is false, since we
no longer know why it might be false.

Added 'warn_dir' flag to suppress warning when installing to a directory
not in sys.path (again, we never set this false -- it's there for outsiders
to use, specifically the "bdist_*" commands).

Pulled the loop of 'change_root()' calls out to new method 'change_roots()'.

Comment updates/deletions/additions.