]> granicus.if.org Git - python/log
python
26 years agoPyErr_SetFromErrnoWithFilename(): New function which supports setting
Barry Warsaw [Thu, 23 Jul 1998 16:05:56 +0000 (16:05 +0000)]
PyErr_SetFromErrnoWithFilename(): New function which supports setting
an exception from errno, with a supplied filename (primarily used by
IOError and OSError).  If class exceptions are used then the exception
is instantiated with a 3-tuple: (errno, strerror, filename).  For
backwards compatibility reasons, if string exceptions are used,
filename is ignored.

PyErr_SetFromErrno(): Implement in terms of
PyErr_SetFromErrnoWithFilename().

26 years agoAdded support for including the filename in IOErrors and OSErrors that
Barry Warsaw [Thu, 23 Jul 1998 16:03:46 +0000 (16:03 +0000)]
Added support for including the filename in IOErrors and OSErrors that
involve a filesystem path.  To that end:

- Changed IOError to EnvironmentError and added a hack which checks
  for arg of len 3.  When constructed with a 3-tuple, the third item
  is the filename and this is squirreled away in the `filename'
  attribute.   However, for in-place unpacking backwards
  compatibility, self.args still only gets the first two items.  Added
  a __str__() which prints the filename if it is given.

- IOError now inherits from EnvironmentError

- New class OSError which also inherits from EnvironmentError and is
  used by the posix module.

26 years agoAdded support for two new standard errors: EnvironmentError and
Barry Warsaw [Thu, 23 Jul 1998 15:59:57 +0000 (15:59 +0000)]
Added support for two new standard errors: EnvironmentError and
OSError.  The EnvironmentError serves primarily as the (common
implementation) base class for IOError and OSError.  OSError is used
by posixmodule.c

Also added tuple definition of EnvironmentError when using string
based exceptions.

26 years agoNew global variables: PyExc_EnvironmentError and PyExc_OSError
Barry Warsaw [Thu, 23 Jul 1998 15:57:34 +0000 (15:57 +0000)]
New global variables: PyExc_EnvironmentError and PyExc_OSError

New function: PyErr_SetFromErrnoWithFilename(PyObject* char*)

26 years ago# Oops, correct Latex errors.
Guido van Rossum [Wed, 22 Jul 1998 21:51:41 +0000 (21:51 +0000)]
# Oops, correct Latex errors.

26 years agoDocument how to make a POST request with urlopen().
Guido van Rossum [Wed, 22 Jul 1998 21:34:21 +0000 (21:34 +0000)]
Document how to make a POST request with urlopen().

Change the argument name for quote() and quote_plus() to safe (which
matches the implementation).

Add doc for the *new* function urlencode().

26 years agoSpeed up the implementation of quote().
Guido van Rossum [Wed, 22 Jul 1998 21:33:23 +0000 (21:33 +0000)]
Speed up the implementation of quote().

Fix the implementation of quote_plus().  (It wouldn't treat '+' in the
original data right.)

Add urlencode(dict) which is handy to create the data for sending a
POST request with urlopen().

26 years ago- Added a function MoviesTask, which is the same as the method but
Jack Jansen [Wed, 22 Jul 1998 13:37:37 +0000 (13:37 +0000)]
- Added a function MoviesTask, which is the same as the method but
with a null movie (giving time to all active movies)
- Made the graphics world parameter to SetMovieGWorld optional.

26 years agoRemove the MOOV filetype from the StandardGetFile call, so we can also
Jack Jansen [Wed, 22 Jul 1998 13:35:31 +0000 (13:35 +0000)]
Remove the MOOV filetype from the StandardGetFile call, so we can also
open MPEG files, etc.

26 years agoFeature added by Harri Pasanen (at my suggestion): .py suffix on
Guido van Rossum [Wed, 22 Jul 1998 13:35:21 +0000 (13:35 +0000)]
Feature added by Harri Pasanen (at my suggestion): .py suffix on
filename may be omitted.

26 years ago(pause_doc): Sun CC complains about newline in string literal
Barry Warsaw [Tue, 21 Jul 1998 22:41:18 +0000 (22:41 +0000)]
(pause_doc): Sun CC complains about newline in string literal

26 years agoWhen comparing objects, always check that tp_compare is not NULL
Guido van Rossum [Tue, 21 Jul 1998 21:56:41 +0000 (21:56 +0000)]
When comparing objects, always check that tp_compare is not NULL
before calling it.  This check was there when the objects were of the
same type *before* coercion, but not if they initially differed but
became the same *after* coercion.

26 years agoDon't use calculations on values gotten from tell(). Also use a
Guido van Rossum [Tue, 21 Jul 1998 14:24:04 +0000 (14:24 +0000)]
Don't use calculations on values gotten from tell().  Also use a
slightly different way to test for the existence of unread.

26 years agoAdd new syntax for specifying filenames on break and clear commands.
Guido van Rossum [Mon, 20 Jul 1998 23:29:10 +0000 (23:29 +0000)]
Add new syntax for specifying filenames on break and clear commands.

26 years agoUntabified.
Guido van Rossum [Mon, 20 Jul 1998 23:22:51 +0000 (23:22 +0000)]
Untabified.

26 years agoUpdate the documentation. Get rid of the section "how it works"
Guido van Rossum [Mon, 20 Jul 1998 23:21:21 +0000 (23:21 +0000)]
Update the documentation.  Get rid of the section "how it works"
(which is not very relevant when you're in the debugger :-).

26 years agoAdded support for specifying a filename for a breakpoint, roughly
Guido van Rossum [Mon, 20 Jul 1998 23:13:54 +0000 (23:13 +0000)]
Added support for specifying a filename for a breakpoint, roughly
according to an idea by Harri Pasanen (but with different syntax).
This affects the 'break' and 'clear' commands and their help
functions.  Also added a helper method lookupmodule().

Also:

- Try to import readline (important when pdb is used from/as a script).
- Get rid of reference to ancient __privileged__ magic variable.
- Moved all import out of functions to the top.
- When used as a script, check that the script file exists.

26 years agoFix another bug in ESR's changes. In order to work properly,
Guido van Rossum [Mon, 20 Jul 1998 21:22:08 +0000 (21:22 +0000)]
Fix another bug in ESR's changes.  In order to work properly,
onecmd(line) must return the value returned by emptyline() or
default(line).

26 years agoComplete the addition of libthreading.tex. (Isn't it annoying that
Guido van Rossum [Mon, 20 Jul 1998 17:34:50 +0000 (17:34 +0000)]
Complete the addition of libthreading.tex.  (Isn't it annoying that
you need to edit four files in order to add one section to the manual?)

26 years agoAdd missing initializer for self._backupfilename. Due to Ralph Butler.
Guido van Rossum [Mon, 20 Jul 1998 15:49:28 +0000 (15:49 +0000)]
Add missing initializer for self._backupfilename.  Due to Ralph Butler.

26 years agoModest speed improvement to escape() by Piet van Oostrum.
Guido van Rossum [Mon, 20 Jul 1998 15:46:13 +0000 (15:46 +0000)]
Modest speed improvement to escape() by Piet van Oostrum.

26 years agoPatch by Piet van Oostrum to avoid calculating with the result of
Guido van Rossum [Mon, 20 Jul 1998 15:24:01 +0000 (15:24 +0000)]
Patch by Piet van Oostrum to avoid calculating with the result of
fp.tell() -- that won't work on Windows.

(A patch for rfc822 is still needed for one case where it finds a bad
header line and wants to back up.)

26 years agoAdd libthreading.tex to LIBFILES.
Fred Drake [Mon, 20 Jul 1998 14:01:20 +0000 (14:01 +0000)]
Add libthreading.tex to LIBFILES.

26 years agoAdded libthreading.tex ; this is mostly the contents of threading_api.py,
Andrew M. Kuchling [Mon, 20 Jul 1998 13:46:10 +0000 (13:46 +0000)]
Added libthreading.tex ; this is mostly the contents of threading_api.py,
 with LaTeX markup added, and some small rewrites to improve the prose.

26 years agoMeasure performance of sub(), split(), findall().
Guido van Rossum [Fri, 17 Jul 1998 21:10:42 +0000 (21:10 +0000)]
Measure performance of sub(), split(), findall().

26 years agoAdd test for failure of the getattr call in pcre_expand() -- it used
Guido van Rossum [Fri, 17 Jul 1998 20:19:48 +0000 (20:19 +0000)]
Add test for failure of the getattr call in pcre_expand() -- it used
to core dump if the first argument did not have a "group" attribute.

26 years agoGet a 3- to 4-fold speedup for sub()/subn(), split() and findall() by
Guido van Rossum [Fri, 17 Jul 1998 20:18:49 +0000 (20:18 +0000)]
Get a 3- to 4-fold speedup for sub()/subn(), split() and findall() by
not calling self.search(); instead, call self.code.match() directly
and interpret the list of registers it returns directly.  This saves
the overhead of instantiating a MatchObject for each hit, basically
inlining search() as well as group().  When a MatchObject is still
needed, one is allocated and reused for the duration of the scan.

26 years agoAdded tests for findall().
Guido van Rossum [Fri, 17 Jul 1998 20:05:02 +0000 (20:05 +0000)]
Added tests for findall().
Added test for m.groups() with default.
Added a few prints announcing various tests in verbose mode.

26 years agoEric Raymond documents two already-existing functions (bmp, png).
Guido van Rossum [Fri, 17 Jul 1998 19:01:29 +0000 (19:01 +0000)]
Eric Raymond documents two already-existing functions (bmp, png).

26 years agoI_getattr(),
Fred Drake [Fri, 17 Jul 1998 14:30:58 +0000 (14:30 +0000)]
I_getattr(),
O_getattr():  Added read-only access to the closed attribute, based on comment
from Michael Scharf <Michael.Scharf@Rhein-Neckar.de>.

26 years agoAdd tests for array self-assigns. (This one has no relevance to JPython.)
Guido van Rossum [Thu, 16 Jul 1998 15:31:43 +0000 (15:31 +0000)]
Add tests for array self-assigns.  (This one has no relevance to JPython.)

26 years agoAdd tests for list self-assigns. (Sorry, this should have been here
Guido van Rossum [Thu, 16 Jul 1998 15:29:06 +0000 (15:29 +0000)]
Add tests for list self-assigns.  (Sorry, this should have been here
before JPython 1.0 came out.)

26 years agoAvoid using calloc(). This triggered an obscure bug on multiprocessor
Guido van Rossum [Thu, 16 Jul 1998 15:06:13 +0000 (15:06 +0000)]
Avoid using calloc().  This triggered an obscure bug on multiprocessor
Sparc Solaris 2.6 (fully patched!) that I don't want to dig into, but
which I suspect is a bug in the multithreaded malloc library that only
shows up when run on a multiprocessor.  (The program wasn't using
threads, it was just using the multithreaded C library.)

26 years agoFrom: Nicolas CHAUVAT <nico@caesium.fr>
Guido van Rossum [Thu, 16 Jul 1998 13:43:05 +0000 (13:43 +0000)]
From: Nicolas CHAUVAT <nico@caesium.fr>

In the bbox method of Group (Canvas.py file), you should read

return self.canvas._getints(self._do('bbox'))

instead of

return self._getints(self._do('bbox'))

26 years agoShow how to do switchable panels.
Guido van Rossum [Wed, 15 Jul 1998 14:58:05 +0000 (14:58 +0000)]
Show how to do switchable panels.

26 years agoTk.__init__(): In computing baseName, add ".pyo" to list of dropped
Fred Drake [Wed, 15 Jul 1998 04:36:56 +0000 (04:36 +0000)]
Tk.__init__():  In computing baseName, add ".pyo" to list of dropped
extensions, and include the "." in ".pyc".  Still need to get
_tkinter.c:Tkapp_New() to use baseName....

26 years agoTemporarily get rid of the registration of Tcl_Finalize() as a
Guido van Rossum [Tue, 14 Jul 1998 18:02:13 +0000 (18:02 +0000)]
Temporarily get rid of the registration of Tcl_Finalize() as a
low-level Python exit handler.  This can attempt to call Python code
at a point that the interpreter and thread state have already been
destroyed, causing a Bus Error.  Given the intended use of
Py_AtExit(), I'm not convinced that it's a good idea to call it
earlier during Python's finalization sequence...  (Although this is
the only use for it in the entire distribution.)

26 years agoBetter RFC 821 compliance (MAIL and RCPT, and CRLF in data)
Guido van Rossum [Mon, 13 Jul 1998 15:18:49 +0000 (15:18 +0000)]
Better RFC 821 compliance (MAIL and RCPT, and CRLF in data)
by Carey Evans <c.evans@clear.net.nz>, for picky mail servers.

26 years agoAdded a delete() method to menu entries. Only the last entry of a menu
Jack Jansen [Mon, 13 Jul 1998 13:41:02 +0000 (13:41 +0000)]
Added a delete() method to menu entries. Only the last entry of a menu
can be deleted, but that's good enough for things like a "Windows"
menu with the dynamic list of open windows at the end of the menu.

26 years agoAdded prototypes for the code resource routines, and for Pstring
Jack Jansen [Mon, 13 Jul 1998 13:39:34 +0000 (13:39 +0000)]
Added prototypes for the code resource routines, and for Pstring
(which was missing, for some reason).

26 years agoIf the preference filename resource is empty don't try to open or
Jack Jansen [Mon, 13 Jul 1998 13:38:29 +0000 (13:38 +0000)]
If the preference filename resource is empty don't try to open or
create the preferences file. This is so that frozen programs don't
interfere with an existing Python installation, or leave turds in the
Preferences folder.

26 years agoAll import-related code has moved to macimport.c.
Jack Jansen [Mon, 13 Jul 1998 13:37:12 +0000 (13:37 +0000)]
All import-related code has moved to macimport.c.

There's also new support for importing code fragments: if a file on
sys.path contains a PYD resource with resourcename equal to the name
of the module to be imported this PYD resource should contain a
(pascal) string with the name of a code fragment to load. This allows
freezing Python programs without access to source or a development
environment.

26 years agoAdded macimport.c to various files
Jack Jansen [Mon, 13 Jul 1998 13:34:06 +0000 (13:34 +0000)]
Added macimport.c to various files

26 years agoAdd an empty PYTHONPREFSFILE STR resource, so frozen applications
Jack Jansen [Mon, 13 Jul 1998 13:33:09 +0000 (13:33 +0000)]
Add an empty PYTHONPREFSFILE STR resource, so frozen applications
don't try to open/create the preferences file.

26 years agoAdd special case to PySequence_List() so that list() of a list is
Guido van Rossum [Fri, 10 Jul 1998 18:03:50 +0000 (18:03 +0000)]
Add special case to PySequence_List() so that list() of a list is
faster (using PyList_GetSlice()).  Also added a test for a NULL
argument, as with PySequence_Tuple().  (Hmm...  Better names for these
two would be PyList_FromSequence() and PyTuple_FromSequence().  Oh well.)

26 years agoSmall changes to map() and filter():
Guido van Rossum [Fri, 10 Jul 1998 17:37:30 +0000 (17:37 +0000)]
Small changes to map() and filter():

(1) If a sequence S is shorter than len(S) indicated, don't fail --
just use the shorter size.  (I.e, len(S) is just a hint.)

(2) Implement the special case map(None, S) as list(S) -- it's faster.

26 years agoChanged PySequence_List() and PySequence_Tuple() to support
Guido van Rossum [Fri, 10 Jul 1998 16:22:44 +0000 (16:22 +0000)]
Changed PySequence_List() and PySequence_Tuple() to support
"indefinite length" sequences.  These should still have a length, but
the length is only used as a hint -- the actual length of the sequence
is determined by the item that raises IndexError, which may be either
smaller or larger than what len() returns.  (This is a novelty; map(),
filter() and reduce() only allow the actual length to be larger than
what len() returns, not shorter.  I'll fix that shortly.)

26 years agoAdded a function SetUserItemHandler: this takes a function(dialog,
Jack Jansen [Fri, 10 Jul 1998 15:47:48 +0000 (15:47 +0000)]
Added a function SetUserItemHandler: this takes a function(dialog,
item) as parameter and returns a handle suitable for passing to
SetDialogItem as a user-item redraw routine. Note that you can
only make one of these, for now.

26 years agoAdd macros for direct access to the members of CFunction objects.
Guido van Rossum [Fri, 10 Jul 1998 15:47:08 +0000 (15:47 +0000)]
Add macros for direct access to the members of CFunction objects.

26 years agoMove the definition of PyMethodObject to classobject.h, so it can define
Guido van Rossum [Fri, 10 Jul 1998 15:46:33 +0000 (15:46 +0000)]
Move the definition of PyMethodObject to classobject.h, so it can define
macros for more efficient access to the fields.

26 years agoMarc-Andre Lemburg's patch to move the typedef for PyCFunctionObject
Guido van Rossum [Fri, 10 Jul 1998 15:21:55 +0000 (15:21 +0000)]
Marc-Andre Lemburg's patch to move the typedef for PyCFunctionObject
to the .h file and add macros there for inlined access to the fields.

26 years ago(1) Added a sys.exc_info() emulation. (It returns None for the traceback.)
Guido van Rossum [Thu, 9 Jul 1998 13:52:38 +0000 (13:52 +0000)]
(1) Added a sys.exc_info() emulation.  (It returns None for the traceback.)

(2) Made the test script a bit fancier -- you can now use it to run
arbitrary scripts in restricted mode, and it will do the right thing.
(The interactive mode is still pretty lame; should integrate this with
code.interact().)

26 years agoAdded item about index item/subitem separation.
Fred Drake [Wed, 8 Jul 1998 21:42:41 +0000 (21:42 +0000)]
Added item about index item/subitem separation.

26 years agoFix suggested by Lorenzo M. Catucci <lorenzo@argon.roma2.infn.it> to keep the
Fred Drake [Wed, 8 Jul 1998 21:37:25 +0000 (21:37 +0000)]
Fix suggested by Lorenzo M. Catucci <lorenzo@argon.roma2.infn.it> to keep the
large letter at the top of each index section with at least the first entry
for that letter.

26 years ago# In case BINARY_SUBSCR, use proper PyList_GET* macros instead of inlining.
Guido van Rossum [Wed, 8 Jul 1998 15:02:37 +0000 (15:02 +0000)]
# In case BINARY_SUBSCR, use proper PyList_GET* macros instead of inlining.

26 years agoMarc-Andre Lemburg's patch to support instance methods with other
Guido van Rossum [Wed, 8 Jul 1998 14:58:16 +0000 (14:58 +0000)]
Marc-Andre Lemburg's patch to support instance methods with other
callable objects than regular Pythonm functions as their im_func.

26 years agoReindented some OS/2 and hpux code that looked ugly or at least
Guido van Rossum [Wed, 8 Jul 1998 13:47:12 +0000 (13:47 +0000)]
Reindented some OS/2 and hpux code that looked ugly or at least
inconsistent.

26 years agoRecompute the special getattr/setattr/delattr cache slots after
Guido van Rossum [Wed, 8 Jul 1998 13:34:48 +0000 (13:34 +0000)]
Recompute the special getattr/setattr/delattr cache slots after
changing __dict__ *or* __bases__.

26 years agoRewrite to support multiple suckers, each with their own thread.
Guido van Rossum [Wed, 8 Jul 1998 03:05:22 +0000 (03:05 +0000)]
Rewrite to support multiple suckers, each with their own thread.

26 years agoInstead of printint, use self.message() or self.note().
Guido van Rossum [Wed, 8 Jul 1998 03:04:39 +0000 (03:04 +0000)]
Instead of printint, use self.message() or self.note().

26 years agoNeeded.
Guido van Rossum [Wed, 8 Jul 1998 02:56:20 +0000 (02:56 +0000)]
Needed.

26 years agoMinor change for windows; set extensions_c later and set
Guido van Rossum [Tue, 7 Jul 1998 22:47:38 +0000 (22:47 +0000)]
Minor change for windows; set extensions_c later and set
frozendllmain_c at the right place.

26 years agoPut back the call to report_unbalanced() that was lost when
Guido van Rossum [Tue, 7 Jul 1998 22:46:11 +0000 (22:46 +0000)]
Put back the call to report_unbalanced() that was lost when
parse_endtag() was restructured in parse_endtag() and finish_endtag().

26 years ago# Bump version because of checkin to faqwiz.py. :-(
Guido van Rossum [Tue, 7 Jul 1998 22:39:47 +0000 (22:39 +0000)]
# Bump version because of checkin to faqwiz.py. :-(

26 years agoDon't add <...> around mail addresses; they may already be there.
Guido van Rossum [Tue, 7 Jul 1998 22:39:21 +0000 (22:39 +0000)]
Don't add <...> around mail addresses; they may already be there.

26 years agoAdded hints about building your own DLL.
Guido van Rossum [Tue, 7 Jul 1998 22:35:03 +0000 (22:35 +0000)]
Added hints about building your own DLL.

26 years agoTwo error messages still used the old name of the functio mkvalue() --
Guido van Rossum [Tue, 7 Jul 1998 22:32:19 +0000 (22:32 +0000)]
Two error messages still used the old name of the functio mkvalue() --
which is now Py_BuildValue().

26 years agoAdd a cast that a picky SGI compiler found was necessary.
Guido van Rossum [Tue, 7 Jul 1998 22:25:47 +0000 (22:25 +0000)]
Add a cast that a picky SGI compiler found was necessary.

26 years agoFix a benign problem found by a picky SGI compiler (unreachable break
Guido van Rossum [Tue, 7 Jul 1998 22:23:22 +0000 (22:23 +0000)]
Fix a benign problem found by a picky SGI compiler (unreachable break
after a return).

26 years agoFix benign problems found by a picky SGI compiler (unreachable break
Guido van Rossum [Tue, 7 Jul 1998 22:22:22 +0000 (22:22 +0000)]
Fix benign problems found by a picky SGI compiler (unreachable break
after a return or goto).

26 years agoFix benign problems found by a picky SGI compiler (unreachable break
Guido van Rossum [Tue, 7 Jul 1998 22:21:45 +0000 (22:21 +0000)]
Fix benign problems found by a picky SGI compiler (unreachable break
after a return).

26 years agoFix some problems that a picky SGI compiler reported. Two were benign
Guido van Rossum [Tue, 7 Jul 1998 22:19:27 +0000 (22:19 +0000)]
Fix some problems that a picky SGI compiler reported.  Two were benign
(unreachable break after a return) but one was a real bug:
ReadFrames() was getting a bogus framecount because of a missing '&'.

26 years agoSigh. The hack to enable special treatment for errno on SGI machines
Guido van Rossum [Tue, 7 Jul 1998 21:32:53 +0000 (21:32 +0000)]
Sigh.  The hack to enable special treatment for errno on SGI machines
must be enabled here, otherwise the errno we set on overflows is not
the errno that's being read by compile.c.  Wonder how many other files
that do their own "#include config.h" need this too :-(

(Because of the structure of autoconf, it's not so simple to get this
into config.h...)

26 years agoGuess what...
Guido van Rossum [Tue, 7 Jul 1998 21:11:02 +0000 (21:11 +0000)]
Guess what...

26 years agoFix two unrelated problems in the same area:
Guido van Rossum [Tue, 7 Jul 1998 21:05:09 +0000 (21:05 +0000)]
Fix two unrelated problems in the same area:

(1) reorder the tests for -Olimit 1500 and -OPT:Olimit=0 so that the
latter test is performed first, and if it works, the former test is
skipped.  This should get rid of the problem that the new SGI
compilers accept both but emit a warning about -Olimit 1500.

(2) The DGUX hack was somehow split in two by the Olimit tests,
probably as the result of a non-context diff.  Moved this back
together again, after the Olimit tests.

26 years agoAdded copious docstrings, plus two minor layout tweaks.
Guido van Rossum [Tue, 7 Jul 1998 20:45:43 +0000 (20:45 +0000)]
Added copious docstrings, plus two minor layout tweaks.

26 years agoIn the example iterating over sys.argv and opening each argument,
Guido van Rossum [Tue, 7 Jul 1998 20:18:06 +0000 (20:18 +0000)]
In the example iterating over sys.argv and opening each argument,
change it to iterate over sys.argv[1:].  Suggestion by Gerry Wiener.

26 years ago(py-beginning-of-def-or-class, py-end-of-def-or-class,
Barry Warsaw [Tue, 7 Jul 1998 17:45:38 +0000 (17:45 +0000)]
(py-beginning-of-def-or-class, py-end-of-def-or-class,
py-mark-def-or-class): Integrated Michael Ernst latest patches.
Primarily, it allows functions that search or mark defs/classes based
on programmatic specification, to take an 'either flag value which
allows searching for both classes and defs (stopping at the nearest
construct).

Also clean up some docstrings.

26 years ago(py-comment-indent-function): A replacement for
Barry Warsaw [Tue, 7 Jul 1998 15:11:24 +0000 (15:11 +0000)]
(py-comment-indent-function): A replacement for
comment-indent-function's default lambda value (in simple.el), this
version finally kills this nit: auto-filling a comment that starts in
column zero with filladapt turned off would cascade the #'s to the
right.

Now auto-filling seems to work with or without filladapt, and with the
comment starting in any column.

(python-mode): Set comment-indent-function.

26 years agoGet rid of some obsolete opcodes.
Guido van Rossum [Tue, 7 Jul 1998 14:58:39 +0000 (14:58 +0000)]
Get rid of some obsolete opcodes.

26 years agoRewritten a bit to address some criticism in the newsgroup.
Guido van Rossum [Mon, 6 Jul 1998 20:47:40 +0000 (20:47 +0000)]
Rewritten a bit to address some criticism in the newsgroup.

26 years agoAdded back the description of the exec statement. It appears that I
Guido van Rossum [Mon, 6 Jul 1998 13:18:39 +0000 (13:18 +0000)]
Added back the description of the exec statement.  It appears that I
accidentally cut it out when removing the access statement!  Added a
paragraph on __builtins__ and other possible manipulations of the key
space of the dictionaries.  Added some index entries.

26 years agoThe permissions ('mode' flag) should default to 0666.
Guido van Rossum [Fri, 3 Jul 1998 14:16:55 +0000 (14:16 +0000)]
The permissions ('mode' flag) should default to 0666.

26 years agoThe _fromlinepattern was a little too restrictive -- some sendmails
Guido van Rossum [Thu, 2 Jul 1998 23:05:32 +0000 (23:05 +0000)]
The _fromlinepattern was a little too restrictive -- some sendmails
don't put the seconds in the time!

26 years ago# The variable total is never used somehow. I think I had plans for
Guido van Rossum [Thu, 2 Jul 1998 22:17:28 +0000 (22:17 +0000)]
# The variable total is never used somehow.  I think I had plans for
# it but can't remember what.  Get rid of a comparison that breaks.

26 years agoAccording to Robin Dunn, at least one FTP server returns 200 instead
Guido van Rossum [Thu, 2 Jul 1998 20:41:20 +0000 (20:41 +0000)]
According to Robin Dunn, at least one FTP server returns 200 instead
of 250 on a successful delete.

26 years agoNormalize markup.
Fred Drake [Thu, 2 Jul 1998 19:36:50 +0000 (19:36 +0000)]
Normalize markup.

26 years agoNormalize the markup.
Fred Drake [Thu, 2 Jul 1998 19:35:12 +0000 (19:35 +0000)]
Normalize the markup.

26 years agoAdded index entry.
Fred Drake [Thu, 2 Jul 1998 19:33:43 +0000 (19:33 +0000)]
Added index entry.

26 years agoAdded \deprecated to exit_thread() function.
Fred Drake [Thu, 2 Jul 1998 19:33:12 +0000 (19:33 +0000)]
Added \deprecated to exit_thread() function.
Reflects Guido's revision.

26 years agoOn Windows, put the select file descriptor arrays on the heap.
Guido van Rossum [Thu, 2 Jul 1998 02:53:36 +0000 (02:53 +0000)]
On Windows, put the select file descriptor arrays on the heap.
This is because they are huge and the stack is limited on Windows.
Other platforms keep declaring it on the stack.

26 years agoGotta have an __init__() method -- pdb.py calls it!
Guido van Rossum [Wed, 1 Jul 1998 22:53:04 +0000 (22:53 +0000)]
Gotta have an __init__() method -- pdb.py calls it!

26 years agoSeveral changes:
Barry Warsaw [Wed, 1 Jul 1998 20:41:12 +0000 (20:41 +0000)]
Several changes:

1. Convert to using re module

2. Added two new exception classes

    a. MissingSectionHeaderError which signals an early parsing
       exception when options appear in the file before any section
       header.  Previously a bogus TypeError was thrown deeper down.

    b. ParsingError which collates any non-fatal parsing errors.
       ConfigParser.read() will raise this after the entire file was
       parsed if any errors occurred during parsing (client could just
       catch the exception and continue, because the ConfigParser
       instance would still be initialized with the valid data).

   (small note: Error.__msg => Error._msg)

3. ConfigParser.__read() now uses re which has the following minor
   semantic change: underscore is now allowed in section header and
   option name.  Also, because of the old regexps, theoretically.
   Fixed continuation line bug reported by F. Lundh.

4. It seemed that the old ConfigParser automatically added the option
   `name' to every section, which contained the name of the section.
   This seemed bogus to me so I took it out.

26 years agoFix two smal memory leaks discovered by Vadim Chugunov.
Guido van Rossum [Wed, 1 Jul 1998 17:36:26 +0000 (17:36 +0000)]
Fix two smal memory leaks discovered by Vadim Chugunov.

26 years agoDisable malloc debug in frozen programs.
Jack Jansen [Wed, 1 Jul 1998 15:49:56 +0000 (15:49 +0000)]
Disable malloc debug in frozen programs.

26 years agoThe init routine for MacOS had a non-standard name. Changed to
Jack Jansen [Wed, 1 Jul 1998 15:48:54 +0000 (15:48 +0000)]
The init routine for MacOS had a non-standard name. Changed to
initMacOS().

26 years agoConvert \n to \r in strings that are displayed in the dialogs.
Jack Jansen [Wed, 1 Jul 1998 15:47:44 +0000 (15:47 +0000)]
Convert \n to \r in strings that are displayed in the dialogs.

26 years agoFix the \kbd definition so it didn't leave the courier face on.
Fred Drake [Wed, 1 Jul 1998 14:49:25 +0000 (14:49 +0000)]
Fix the \kbd definition so it didn't leave the courier face on.

26 years agoMark the actual SMTP commands (HELO, etc.) the same way FTP & NNTP commands
Fred Drake [Wed, 1 Jul 1998 14:10:52 +0000 (14:10 +0000)]
Mark the actual SMTP commands (HELO, etc.) the same way FTP & NNTP commands
are in the appropriate sections.

Some minor nits.

26 years agoAdded a section to the chapter on modules, describing the package system.
Andrew M. Kuchling [Wed, 1 Jul 1998 13:58:55 +0000 (13:58 +0000)]
Added a section to the chapter on modules, describing the package system.
The text is almost completely from GvR's essay on packages; some
introductory paragraphs have been removed, and everything after the
'Details' section in the HTML has been dropped (seems too technical).  A
paragraph has been added after the sample package layout stating that there
must be a file called__init__.py in a directory to make it a package.