Tim Peters
c2fe618575
Fix bad bug in structseq slicing (NULL pointers in result). Reported by
...
Jack Jansen on python-dev.
Add simple test case.
Move vereq() from test_descr to test_support (it's handy!).
2001-10-30 23:20:46 +00:00
Jack Jansen
5ded1bf5c7
Mod by Donovan Preston to allow MacPython to live in a Python.app bundle and understand the __main__.py convention used there for applets. This gives us applets that work on both OS9 and OSX! (Although "applet" may not be the correct word for something that is going to be multimegabyte:-).
...
But: the code is currently disabled, as it requires CodeWarrior 7 and I'm still using 6.
2001-10-30 22:48:36 +00:00
Jack Jansen
e4df3fd90d
Files used for MacPython 2.2b1 distribution.
2001-10-30 22:42:45 +00:00
Andrew M. Kuchling
72a7fb78cb
Fix grammar error
2001-10-30 22:18:21 +00:00
Andrew M. Kuchling
433b5c4d34
Rewrites and additions resulting from today's feedback
2001-10-30 21:36:04 +00:00
Tim Peters
5b40f1c212
SF bug #474077 2.2b1: Error compiling extns with BCC
...
Removed "#undef HAVE_HYPOT" line from Borland config, as suggested.
Whether this will break some other Borland usage is a good question I
can't answer.
2001-10-30 21:09:55 +00:00
Fred Drake
345b8df2c4
Always use --dvips-safe when generating HTML for the standard documentation
...
since we do not have anything that causes dvips to be run except when
PostScript is specifically requested, which is a separate target.
2001-10-30 16:28:46 +00:00
Fred Drake
3ce28e4bd0
Add a new option, --dvips-safe, which sets the $DVIPS_SAFE option in
...
LaTeX2HTML. This is not safe to do in general (for the reasons LaTeX2HTML
protects against dvips to begin with), but is safe if we do not actually
need to run dvips. Note that we also assume it is safe if the user
specifically requests PostScript generation. See the comments for further
explanation.
2001-10-30 16:09:51 +00:00
Andrew M. Kuchling
7aa63c245f
Various minor rewrites
...
Bump version number
2001-10-30 14:35:03 +00:00
Andrew M. Kuchling
7cc13de554
Corrections noted by Michael McLay
2001-10-30 14:22:11 +00:00
Jeremy Hylton
f24339f6f7
/F observes that we need an else: in connect()
2001-10-30 14:16:17 +00:00
Jack Jansen
fc6a89270e
Don't override asplit_pat in Scanner_UH3. No reason to do so, and it broke
...
generating Waste.
2001-10-30 13:11:24 +00:00
Jack Jansen
550fdae2f5
On the macintosh don't take a quick exit in find_module() for frozen submodule imports: the frozen import goes through a different mechanism.
2001-10-30 13:08:39 +00:00
Fred Drake
99de218cfc
Promote file objects out of the "Other Objects" category, so they become
...
visible in the table of contents.
2001-10-30 06:23:14 +00:00
Fred Drake
b4ea9d0502
Promote built-in functions to come before built-in types.
2001-10-30 06:22:02 +00:00
Tim Peters
1633a2e345
Whitespace normalization.
2001-10-30 05:56:40 +00:00
Tim Peters
003047a5f2
Mention the new file() builtin in the section on file objects.
2001-10-30 05:54:04 +00:00
Tim Peters
9e6a399b14
To cover a recent checkin, added a test to ensure dir(None) == dir(Ellipsis).
2001-10-30 05:45:26 +00:00
Tim Peters
fe677e2012
Just changed some continued-line indentation to read better, due to
...
the earlier s/dictionary/dict/ change.
2001-10-30 05:41:07 +00:00
Guido van Rossum
fa699126b5
Fix SF bug #456386 : test_commands regression failure (Andrew Dalke)
...
test_commands does not work on IRIX
It assumes the output of "ls /bin/ls" is a line
that starts with a '-'. On IRIX that file is
a symbolic link, so the first character is an l.
This causes test_getstatus to fail.
2001-10-30 03:17:30 +00:00
Guido van Rossum
692adf19cb
News and attribution for SF bug #473009 .
2001-10-30 03:03:03 +00:00
Guido van Rossum
355bc0c88e
Change the limit on the input size for b2a_base64 to what will fit in
...
memory, rather than the standard's 57.
This fixes SF bug #473009 .
2001-10-30 03:00:52 +00:00
Guido van Rossum
d82fb78b5c
Add values to tp_getattro and tp_flags so that dir(Ellipsis) will
...
return the same as dir(None).
2001-10-30 02:40:52 +00:00
Guido van Rossum
ed87ad876b
Minimal test for __del__ hook.
2001-10-30 02:33:02 +00:00
Tim Peters
c32410ae8f
PySocketSock_connect_ex(): On Windows, return the correct Windows exit
...
code. The patch is from Jeremy, and allows test_asynchat to run again.
Bugfix candidate.
2001-10-30 01:26:49 +00:00
Fredrik Lundh
4ecd71376c
directory chooser (requires a recent version of Tk)
2001-10-29 22:58:55 +00:00
Tim Peters
a427a2b8d0
Rename "dictionary" (type and constructor) to "dict".
2001-10-29 22:25:45 +00:00
Guido van Rossum
7ad2d1eb8e
Add __del__ callbacks. They are too useful to leave out.
...
XXX Remaining problems:
- The GC module doesn't know about these; I think it has its reasons
to disallow calling __del__, but for now, __del__ on new-style
objects is called when the GC module discards an object, for better
or for worse.
- The code to call a __del__ handler is really ridiculously
complicated, due to all the different debug #ifdefs. I've copied
this from the similar code in classobject.c, so I'm pretty sure I
did it right, but it's not pretty. :-(
- No tests yet.
2001-10-29 22:11:00 +00:00
Tim Peters
c57a285cb4
SF bug #476138 : tempfile behavior across platforms
...
Ensure that a tempfile can be closed any number of times without error.
This wasn't true on Windows.
2001-10-29 21:46:08 +00:00
Fred Drake
e59feb5edc
Revise the PDF support in the LaTeX style sheet. This still isn't quite
...
right, but the tests for whether we are generating PDF are a bit more
readable, and some unnecessary indirection has been removed.
2001-10-29 21:02:28 +00:00
Fred Drake
8e26b52a5c
Update to reflect changes to the low-level logreader: share the info
...
dictionary instead of building a new one, and provide an overridable method
to allow subclasses to catch ADD_INFO records that are not part of the
initial block of ADD_INFO records created by the profiler itself.
2001-10-29 20:57:23 +00:00
Fred Drake
f3c54d6fc7
Add a test for the insertion of user-provided ADD_INFO records.
2001-10-29 20:54:01 +00:00
Fred Drake
165b2cc2bd
Allow user code to call the addinfo() method on the profiler object.
2001-10-29 20:48:09 +00:00
Fred Drake
4c2e1af890
Make the low-level log-reader object export a dictionary mapping keys
...
to lists of values, giving the contents of all the ADD_INFO records
seen so far. This is initialized agressively when the log file is
opened, so that whoever is looking at the log reader can always see
the initial data loaded into the data stream. ADD_INFO events later
in the log file continue to be reported to the application layer as
before.
Add a new method, addinfo(), to the profiler. This can be used to
insert additional ADD_INFO records into the profiler log.
Fix the tp_flags and tp_name slots on the type objects.
2001-10-29 20:45:57 +00:00
Andrew M. Kuchling
1117d930fa
dictionary -> dict
2001-10-29 20:37:47 +00:00
Andrew M. Kuchling
4f9e220e7f
Fix two typos noted by Jens Quade
...
Bump version number
2001-10-29 18:09:42 +00:00
Fred Drake
589abb7212
Add additional information on exceptions from time.mktime() and related to
...
improper time tuples passed to various functions. Based on comments from
Andreas Jung.
2001-10-29 18:01:24 +00:00
Fred Drake
1b58bff8a0
More refcount information.
2001-10-29 17:43:14 +00:00
Fred Drake
b0109ffb3b
Ignore all *.tex files in the typesetting output directories since there are
...
a bunch of them now.
2001-10-29 17:42:17 +00:00
Fred Drake
520b0093db
Make sure we generate versions of each file in the Python/C API manual with
...
reference-count annotations; this is needed for the typeset forms of the
manuals.
2001-10-29 17:40:40 +00:00
Jeremy Hylton
e16e54f7f1
Use connect_ex() instead of connect().
...
Removes old XXX comment and possible source of long-delays.
2001-10-29 16:44:37 +00:00
Jeremy Hylton
fbd5797eb7
Fix for SF bug 453099 -- select not defensive
...
And SF patch 473223 -- infinite getattr loop
Wrap select() and poll() calls with try/except for EINTR. If EINTR is
raised, treat as a response where no fd is ready.
In dispatcher constructor, make sure self.socket is always
initialized.
2001-10-29 16:32:19 +00:00
Andrew M. Kuchling
2836907bbb
Fix some markup errors noted by MH
...
Use attribute assignment to illustrate __slots__ raising an error
2001-10-29 15:47:33 +00:00
Guido van Rossum
afe7a94089
When overriding __str__ or __repr__, set the tp_print slot to NULL.
2001-10-29 14:33:44 +00:00
Steven M. Gava
7c01786188
more loading from cfg files
2001-10-29 11:19:46 +00:00
Steven M. Gava
41a8532f66
more of config dialog reading from files
2001-10-29 08:05:34 +00:00
Guido van Rossum
9bd1401bbb
Use sendall() in the stream test instead of send().
2001-10-29 07:18:02 +00:00
Guido van Rossum
cb65688218
Test sendall().
2001-10-29 07:14:10 +00:00
Guido van Rossum
b2c763fed2
Add 'sendall' to list of socket methods.
2001-10-29 07:13:53 +00:00
Fredrik Lundh
b7747e2a2d
added finditer sanity check
2001-10-28 20:15:40 +00:00