]> granicus.if.org Git - python/log
python
20 years agoReplace list of constants with tuples of constants.
Raymond Hettinger [Sun, 6 Feb 2005 06:57:08 +0000 (06:57 +0000)]
Replace list of constants with tuples of constants.

20 years agoCode simplification -- eliminate lookup when value is known in advance.
Raymond Hettinger [Sat, 5 Feb 2005 23:42:57 +0000 (23:42 +0000)]
Code simplification -- eliminate lookup when value is known in advance.

20 years agoSF patch #1028908
Raymond Hettinger [Sat, 5 Feb 2005 14:37:06 +0000 (14:37 +0000)]
SF patch #1028908
(John J Lee)

Minor code clarification and simplification.

20 years agoSF patch #1116583: NameError in cookielib domain check
Raymond Hettinger [Sat, 5 Feb 2005 01:31:19 +0000 (01:31 +0000)]
SF patch #1116583:  NameError in cookielib domain check

20 years agoAdd NEWS item about future parser bug.
Jeremy Hylton [Fri, 4 Feb 2005 18:44:06 +0000 (18:44 +0000)]
Add NEWS item about future parser bug.

20 years agoFix bug that allowed future statements virtually anywhere in a module.
Jeremy Hylton [Fri, 4 Feb 2005 18:38:43 +0000 (18:38 +0000)]
Fix bug that allowed future statements virtually anywhere in a module.

If we exit via the break here, we need to set ff_last_lineno or
FUTURE_POSSIBLE() will remain true.  The bug affected statements
containing a variety of expressions, but not all expressions.  It has
been present since Python 2.2.

20 years agoAdd a test for UTF-16 reading where the byte sequence doesn't start with
Walter Dörwald [Fri, 4 Feb 2005 14:15:34 +0000 (14:15 +0000)]
Add a test for UTF-16 reading where the byte sequence doesn't start with
a BOM.

20 years agoRecompiled after source changes.
Thomas Heller [Thu, 3 Feb 2005 20:48:26 +0000 (20:48 +0000)]
Recompiled after source changes.

20 years agoRunning a bdist_wininst installer, built with Python 2.3, installing
Thomas Heller [Thu, 3 Feb 2005 20:35:10 +0000 (20:35 +0000)]
Running a bdist_wininst installer, built with Python 2.3, installing
for Python 2.4 caused a segfault when post_install_script was used.

The reason was that the file handle passed to PyRun_SimpleFile() was
created with MSVCRT.DLL, but Python 2.4 uses MSVCR71.DLL.

So, I replaced PyRun_SimpleFile() with PyRun_SimpleString().  The
segfault is gone, but the output of the postinstall script doesn't
show up, because still freopen() from MSVCRT is used.

Already backported.

20 years agoSet PYTHONHOME before loading Python, so that sys.path will be set correctly.
Thomas Heller [Thu, 3 Feb 2005 20:11:28 +0000 (20:11 +0000)]
Set PYTHONHOME before loading Python, so that sys.path will be set correctly.

Already backported.

20 years agofix XMLFilterBase.resolveEntity() so the caller gets the result
Fred Drake [Thu, 3 Feb 2005 17:31:39 +0000 (17:31 +0000)]
fix XMLFilterBase.resolveEntity() so the caller gets the result
(PyXML bug #1112052)

20 years agoSecurity fix PSF-2005-001 for SimpleXMLRPCServer.py.
Guido van Rossum [Thu, 3 Feb 2005 15:01:24 +0000 (15:01 +0000)]
Security fix PSF-2005-001 for SimpleXMLRPCServer.py.

20 years agoAdd config-main.def option to make the 'history' feature non-cyclic.
Kurt B. Kaiser [Thu, 3 Feb 2005 01:37:14 +0000 (01:37 +0000)]
Add config-main.def option to make the 'history' feature non-cyclic.
Default remains cyclic.  Python Patch 914546 Noam Raphael.

M IdleHistory.py
M NEWS.txt
M config-main.def

20 years agoSimplify string comparison using startswith()
Steve Holden [Wed, 2 Feb 2005 18:47:18 +0000 (18:47 +0000)]
Simplify string comparison using startswith()

20 years agoMore bug #1077106 stuff, sorry -- modem induced impatiece!
Michael W. Hudson [Mon, 31 Jan 2005 17:09:25 +0000 (17:09 +0000)]
More bug #1077106 stuff, sorry -- modem induced impatiece!

This should go on whatever bugfix branches the other fetches up on.

20 years agoFix
Michael W. Hudson [Mon, 31 Jan 2005 17:01:59 +0000 (17:01 +0000)]
Fix

1077106 ] Negative numbers to os.read() cause segfault

Sorry for sitting on this for so long!  Is there a chance it could
make 2.3.5?

20 years agoRemoved ability to configure tabs indent from Options dialog. This 'feature'
Kurt B. Kaiser [Mon, 31 Jan 2005 03:34:26 +0000 (03:34 +0000)]
Removed ability to configure tabs indent from Options dialog.  This 'feature'
has never worked and no one has complained.  It is still possible to set a
default tabs (v. spaces) indent 'manually' via config-main.def (or to turn on
tabs for the current EditorWindow via the Format menu) but IDLE will encourage
indentation via spaces.

Enable setting the indentation width using the Options dialog.
Bug # 783877

Remove some commented out old code from configDialog.py (related to old
methods for invoking the HelpBrowser).

M EditorWindow.py
M NEWS.txt
M configHandler.py

20 years agoBug #1108490: fix broken link.
Johannes Gijsbers [Sat, 29 Jan 2005 19:49:34 +0000 (19:49 +0000)]
Bug #1108490: fix broken link.

20 years agoRevert os.py 1.75, and directly implement update.
Martin v. Löwis [Sat, 29 Jan 2005 13:29:23 +0000 (13:29 +0000)]
Revert os.py 1.75, and directly implement update.
Fixes #1110478 and #1100235.

20 years agoAdd keybindings for del-word-left and del-word-right.
Kurt B. Kaiser [Fri, 28 Jan 2005 00:16:16 +0000 (00:16 +0000)]
Add keybindings for del-word-left and del-word-right.

M EditorWindow.py
M NEWS.txt
M config-keys.def
M configHandler.py

20 years agoFixed typo in verbose output.
Brett Cannon [Thu, 27 Jan 2005 22:48:30 +0000 (22:48 +0000)]
Fixed typo in verbose output.

Closes bug #1110998.  Thanks Matthew Bogosian.

20 years agoPartially revert #1074011; don't try to fflush stdin.
Martin v. Löwis [Thu, 27 Jan 2005 18:56:16 +0000 (18:56 +0000)]
Partially revert #1074011; don't try to fflush stdin.
Backported to 2.3 and 2.4.

20 years agoSF bug #1108303: fix .split() maxsplit doc
Raymond Hettinger [Wed, 26 Jan 2005 22:40:08 +0000 (22:40 +0000)]
SF bug #1108303:  fix .split() maxsplit doc

Docs incorrectly stated that maxsplit=0 would cause unlimited splitting.

20 years agoDo not fold a constant if a large sequence will result.
Raymond Hettinger [Wed, 26 Jan 2005 12:50:05 +0000 (12:50 +0000)]
Do not fold a constant if a large sequence will result.
Saves space in the presence of code like: (None,)*10000

20 years agohappy new year! (on the trunk)
Anthony Baxter [Tue, 25 Jan 2005 12:40:01 +0000 (12:40 +0000)]
happy new year! (on the trunk)

20 years agoSF bug #1105286: Undocumented implicit strip() in split(None) string method
Raymond Hettinger [Tue, 25 Jan 2005 10:21:19 +0000 (10:21 +0000)]
SF bug #1105286:  Undocumented implicit strip() in split(None) string method

Clarify the behavior when a string begins or ends with whitespace.

20 years agoPut docstring for getspall into same #ifdef block as function definition
Neal Norwitz [Mon, 24 Jan 2005 23:33:50 +0000 (23:33 +0000)]
Put docstring for getspall into same #ifdef block as function definition
Remove C++ (C99) style comments

20 years agoinclude each row in the package table, even if there are no packages for
Fred Drake [Sun, 23 Jan 2005 22:14:16 +0000 (22:14 +0000)]
include each row in the package table, even if there are no packages for
that row; the row is commented out in that case
(this makes it easier to modify the table after generation)

20 years agoadd missing word
Fred Drake [Sun, 23 Jan 2005 15:16:08 +0000 (15:16 +0000)]
add missing word

20 years agoshutil.copytree: move copystat call for the directory after the loop
Johannes Gijsbers [Sun, 23 Jan 2005 12:20:15 +0000 (12:20 +0000)]
shutil.copytree: move copystat call for the directory after the loop
copying files inside the directory, as that loop changes the atime and
mtime.

20 years agoFlush std{in,out,err} before closing it. Fixes #1074011.
Martin v. Löwis [Sun, 23 Jan 2005 09:41:49 +0000 (09:41 +0000)]
Flush std{in,out,err} before closing it. Fixes #1074011.
Will backport to 2.4 and 2.3.

20 years agoPatch #579435: Shadow Password Support Module
Martin v. Löwis [Sun, 23 Jan 2005 09:27:24 +0000 (09:27 +0000)]
Patch #579435: Shadow Password Support Module

20 years agoTruncate st_?time before comparing it with ST_?TIME in the tests.
Martin v. Löwis [Sun, 23 Jan 2005 09:19:22 +0000 (09:19 +0000)]
Truncate st_?time before comparing it with ST_?TIME in the tests.

20 years agoAdd a slice test with high < low.
Walter Dörwald [Fri, 21 Jan 2005 21:16:51 +0000 (21:16 +0000)]
Add a slice test with high < low.

20 years agodistutils/command/install.py change.
Thomas Heller [Thu, 20 Jan 2005 19:20:16 +0000 (19:20 +0000)]
distutils/command/install.py change.

20 years agoFix [ 1103844 ] fix distutils.install.dump_dirs() with negated options.
Thomas Heller [Thu, 20 Jan 2005 19:14:17 +0000 (19:14 +0000)]
Fix [ 1103844 ] fix distutils.install.dump_dirs() with negated options.

Will backport myself.

20 years agofix typeset of vertical bar for PDF format
Fred Drake [Wed, 19 Jan 2005 07:24:34 +0000 (07:24 +0000)]
fix typeset of vertical bar for PDF format
(closes SF bug #1008998)

20 years agoinstall distutils.tests on Unix (contributed patch)
Fred Drake [Wed, 19 Jan 2005 06:24:58 +0000 (06:24 +0000)]
install distutils.tests on Unix (contributed patch)
(closes SF bug #1093173)

20 years agodocumentation for the zipimport module using contributed patch
Fred Drake [Wed, 19 Jan 2005 05:42:50 +0000 (05:42 +0000)]
documentation for the zipimport module using contributed patch
(closes SF bug #853800; markup adjusted)

20 years agoDescription of args to IMAP4.store() in imaplib
Fred Drake [Wed, 19 Jan 2005 04:44:07 +0000 (04:44 +0000)]
Description of args to IMAP4.store() in imaplib
(closes SF patch #1084092; modified per comments in SF)

20 years agoClean up discussion of new C thread idiom
Fred Drake [Wed, 19 Jan 2005 04:18:39 +0000 (04:18 +0000)]
Clean up discussion of new C thread idiom
(closes SF patch #1031233; modified)

20 years agofix a bunch of spelling errors
Fred Drake [Wed, 19 Jan 2005 03:39:17 +0000 (03:39 +0000)]
fix a bunch of spelling errors
(closes SF patch #1104868)

20 years agoremove spurious line from widget variables example
Fred Drake [Wed, 19 Jan 2005 03:23:57 +0000 (03:23 +0000)]
remove spurious line from widget variables example
(closes SF patch #1094815)

20 years ago1. Polish tabbing code.
Kurt B. Kaiser [Wed, 19 Jan 2005 00:22:59 +0000 (00:22 +0000)]
1. Polish tabbing code.
2. Restore use of set_indentation_params(), was dead code since
   Autoindent.py was merged into EditorWindow.py.
3. Make usetabs, indentwidth, tabwidth, context_use_ps1 instance vars
   and set in EditorWindow.__init__()
4. In PyShell.__init__() set usetabs, indentwidth and context_use_ps1
   explicitly (config() is eliminated).
5. Add Tabnanny check when Module is Run/F5, not just when Checked.
6. Discourage using an indent width other than 8 when using tabs to
   indent Python code.

M EditorWindow.py
M NEWS.txt
M PyShell.py
M ScriptBinding.py

20 years agoChange the name of the macro used by --with-tsc builds to the less
Michael W. Hudson [Tue, 18 Jan 2005 15:56:11 +0000 (15:56 +0000)]
Change the name of the macro used by --with-tsc builds to the less
inscrutable READ_TIMESTAMP.

20 years agotweaks, small updates
Michael W. Hudson [Tue, 18 Jan 2005 15:53:59 +0000 (15:53 +0000)]
tweaks, small updates

20 years ago-X died some time ago; remove a tiny bit of associated cruft.
Michael W. Hudson [Tue, 18 Jan 2005 15:26:11 +0000 (15:26 +0000)]
-X died some time ago; remove a tiny bit of associated cruft.

20 years agoIf an extension can't be loaded, print warning and skip it instead of
Kurt B. Kaiser [Tue, 18 Jan 2005 00:54:58 +0000 (00:54 +0000)]
If an extension can't be loaded, print warning and skip it instead of
erroring out.

20 years agomake thread stack size compile-time tunable on OS/2, increase main stack
Andrew MacIntyre [Mon, 17 Jan 2005 12:18:12 +0000 (12:18 +0000)]
make thread stack size compile-time tunable on OS/2, increase main stack

20 years agomake thread stack size compile-time tunable on OS/2
Andrew MacIntyre [Mon, 17 Jan 2005 12:16:36 +0000 (12:16 +0000)]
make thread stack size compile-time tunable on OS/2

20 years agoDocument the reconvert module.
Skip Montanaro [Sun, 16 Jan 2005 20:48:27 +0000 (20:48 +0000)]
Document the reconvert module.

20 years agoallow triple-quoted string output from reconvert.quote()
Skip Montanaro [Sun, 16 Jan 2005 19:31:40 +0000 (19:31 +0000)]
allow triple-quoted string output from reconvert.quote()

20 years agoPatch #1100140: improved smtp connect debugging
Johannes Gijsbers [Sun, 16 Jan 2005 13:04:30 +0000 (13:04 +0000)]
Patch #1100140: improved smtp connect debugging

Don't print the same (host, port) tuple thrice when debugging, but first print
(host, port), then (ip, port) and then the error message.

20 years agoDefault stat_float_times to true.
Martin v. Löwis [Sun, 16 Jan 2005 08:57:39 +0000 (08:57 +0000)]
Default stat_float_times to true.

20 years agoAdded SEEK_* constants. Fixes #711830.
Martin v. Löwis [Sun, 16 Jan 2005 08:40:58 +0000 (08:40 +0000)]
Added SEEK_* constants. Fixes #711830.

20 years agoUse descriptors.
Guido van Rossum [Sun, 16 Jan 2005 00:25:31 +0000 (00:25 +0000)]
Use descriptors.

20 years agoUse decorators.
Guido van Rossum [Sun, 16 Jan 2005 00:21:28 +0000 (00:21 +0000)]
Use decorators.

20 years agoUse decorators.
Guido van Rossum [Sun, 16 Jan 2005 00:16:11 +0000 (00:16 +0000)]
Use decorators.

20 years agoGave the new datetime.strptime() a versionadded blurb.
Tim Peters [Thu, 13 Jan 2005 21:06:25 +0000 (21:06 +0000)]
Gave the new datetime.strptime() a versionadded blurb.

20 years agoWhitespace normalization.
Tim Peters [Thu, 13 Jan 2005 17:37:38 +0000 (17:37 +0000)]
Whitespace normalization.

20 years agoMoved reader \r and \n processing from the iterator to the state machine -
Andrew McNamara [Thu, 13 Jan 2005 11:30:54 +0000 (11:30 +0000)]
Moved reader \r and \n processing from the iterator to the state machine -
this allows for better handling of newline characters in quoted fields (and
hopefully resolves Bug 967934).

20 years agoImproved SysLogHandler error recovery (patch by Erik Forsberg)
Vinay Sajip [Thu, 13 Jan 2005 08:23:56 +0000 (08:23 +0000)]
Improved SysLogHandler error recovery (patch by Erik Forsberg)

20 years agoAdd strptime() constructor to datetime class. Thanks to Josh Spoerri for
Skip Montanaro [Thu, 13 Jan 2005 04:12:31 +0000 (04:12 +0000)]
Add strptime() constructor to datetime class.  Thanks to Josh Spoerri for
the changes.

20 years agofix typo
Fred Drake [Wed, 12 Jan 2005 19:11:45 +0000 (19:11 +0000)]
fix typo

20 years agoremove unused variable
Fred Drake [Wed, 12 Jan 2005 16:00:55 +0000 (16:00 +0000)]
remove unused variable

20 years agoMany updates to csv module doco.
Andrew McNamara [Wed, 12 Jan 2005 11:47:57 +0000 (11:47 +0000)]
Many updates to csv module doco.

20 years agoImprove wording of parser error message.
Andrew McNamara [Wed, 12 Jan 2005 11:39:50 +0000 (11:39 +0000)]
Improve wording of parser error message.

20 years agoAdd counting of source iterator lines to the reader object - handy for
Andrew McNamara [Wed, 12 Jan 2005 11:17:16 +0000 (11:17 +0000)]
Add counting of source iterator lines to the reader object - handy for
user error messages (otherwise difficult to do without instrumenting
the source).

20 years agoWhen quoting=QUOTE_NONNUMERIC, the reader now casts unquoted fields
Andrew McNamara [Wed, 12 Jan 2005 09:45:18 +0000 (09:45 +0000)]
When quoting=QUOTE_NONNUMERIC, the reader now casts unquoted fields
to floats.

20 years agoFix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test.
Andrew McNamara [Wed, 12 Jan 2005 08:16:17 +0000 (08:16 +0000)]
Fix logic problem in quoting=csv.QUOTE_ALL, quotechar=None check, add test.

20 years agoWhen using QUOTE_NONNUMERIC, we now test for "numericness" with
Andrew McNamara [Wed, 12 Jan 2005 07:44:42 +0000 (07:44 +0000)]
When using QUOTE_NONNUMERIC, we now test for "numericness" with
PyNumber_Check, rather than trying to convert to a float.  Reimplemented
writer - now raises exceptions when it sees a quotechar but neither
doublequote or escapechar are set. Doublequote results are now more
consistent (eg, single quote should generate """", rather than "",
which is ambiguous).

20 years agoRename csv.set_field_limit to csv.field_size_limit (since it both sets and
Andrew McNamara [Wed, 12 Jan 2005 03:45:10 +0000 (03:45 +0000)]
Rename csv.set_field_limit to csv.field_size_limit (since it both sets and
gets).

20 years agoAdd news about csv module updates.
Andrew McNamara [Wed, 12 Jan 2005 03:25:27 +0000 (03:25 +0000)]
Add news about csv module updates.

20 years agoImprove test coverage fractionally.
Andrew McNamara [Wed, 12 Jan 2005 01:55:21 +0000 (01:55 +0000)]
Improve test coverage fractionally.

20 years agoAdd belt and braces check of PyString_AsString return.
Andrew McNamara [Wed, 12 Jan 2005 01:16:35 +0000 (01:16 +0000)]
Add belt and braces check of PyString_AsString return.

20 years agoImprove error handling when .idlerc can't be created.
Kurt B. Kaiser [Tue, 11 Jan 2005 19:29:39 +0000 (19:29 +0000)]
Improve error handling when .idlerc can't be created.

20 years agoAdd duck-typing to the glossary.
Raymond Hettinger [Tue, 11 Jan 2005 16:11:13 +0000 (16:11 +0000)]
Add duck-typing to the glossary.

20 years agoSF bug #1099516: tempfile files not types.FileType
Raymond Hettinger [Tue, 11 Jan 2005 15:33:03 +0000 (15:33 +0000)]
SF bug #1099516:  tempfile files not types.FileType

Clarified that the returned object is file-like rather than an actual file.

20 years agoSet an upper limit on the size of the field buffer, raise an exception
Andrew McNamara [Tue, 11 Jan 2005 07:32:02 +0000 (07:32 +0000)]
Set an upper limit on the size of the field buffer, raise an exception
when this limit is reached. Limit defaults to 128k, and is changed
by module set_field_limit() method. Previously, an unmatched quote
character could result in the entire file being read into the field
buffer, potentially exhausting virtual memory.

20 years agoNow that internal dialect type is immutable, and the dialect registry
Andrew McNamara [Tue, 11 Jan 2005 04:49:53 +0000 (04:49 +0000)]
Now that internal dialect type is immutable, and the dialect registry
only contains instances of the dialect type, we can refer directly to the
dialect instances rather than creating new ones. In other words, if the
dialect comes from the registry, and we apply no further modifications,
the reader/writer can use the dialect object directly.

20 years agoSF 1098985: set objects cannot be marshalled
Raymond Hettinger [Tue, 11 Jan 2005 03:03:27 +0000 (03:03 +0000)]
SF 1098985:  set objects cannot be marshalled

20 years agoReplace python-coded validation of csv dialect with a call to the C
Andrew McNamara [Tue, 11 Jan 2005 02:22:47 +0000 (02:22 +0000)]
Replace python-coded validation of csv dialect with a call to the C
dialect type (which has a better idea of what is and isn't valid).

20 years agoNo longer attempt to instantiate python classes describing dialects. This
Andrew McNamara [Tue, 11 Jan 2005 02:18:36 +0000 (02:18 +0000)]
No longer attempt to instantiate python classes describing dialects. This
was done because we were previously performing validation of the dialect
from python, but this is now down within the C module. Also, the method
we were using to detect classes did not work with new-style classes.

20 years agoAllow dialect-describing keywords to be supplied to register_dialect,
Andrew McNamara [Tue, 11 Jan 2005 01:28:33 +0000 (01:28 +0000)]
Allow dialect-describing keywords to be supplied to register_dialect,
record objects of internal dialect type, rather than instances of
python objects.

20 years agoFactor out the code for making a dialect instance.
Andrew McNamara [Tue, 11 Jan 2005 01:07:23 +0000 (01:07 +0000)]
Factor out the code for making a dialect instance.

20 years agoOnly set error string when dict lookup found no matching key (was setting
Andrew McNamara [Mon, 10 Jan 2005 23:17:35 +0000 (23:17 +0000)]
Only set error string when dict lookup found no matching key (was setting
it for all failures, potentially masking other exceptions).

20 years agoWhitespace normalization.
Tim Peters [Mon, 10 Jan 2005 16:48:37 +0000 (16:48 +0000)]
Whitespace normalization.

20 years agoWhen parsing args that return a single character, treat null string the
Andrew McNamara [Mon, 10 Jan 2005 12:25:11 +0000 (12:25 +0000)]
When parsing args that return a single character, treat null string the
same as None.

20 years agoWhere a string is desired, test for PyBaseString_Type derived type,
Andrew McNamara [Mon, 10 Jan 2005 12:22:48 +0000 (12:22 +0000)]
Where a string is desired, test for PyBaseString_Type derived type,
rather than using PyString_Check/PyUnicode_Check.

20 years agoFix and test for SF bug #1098990: codec readline() splits lines apart.
Walter Dörwald [Mon, 10 Jan 2005 12:01:39 +0000 (12:01 +0000)]
Fix and test for SF bug #1098990: codec readline() splits lines apart.

20 years agoBug #489256: remove out of date and out of place profile.doc, and let
Johannes Gijsbers [Mon, 10 Jan 2005 09:07:22 +0000 (09:07 +0000)]
Bug #489256: remove out of date and out of place profile.doc, and let
profile.help() point at the library reference instead of profile.doc.

20 years agoAdd missing PyObject_GC_Track and PyObject_GC_UnTrack calls to csv reader and
Andrew McNamara [Mon, 10 Jan 2005 02:09:41 +0000 (02:09 +0000)]
Add missing PyObject_GC_Track and PyObject_GC_UnTrack calls to csv reader and
writer objects (other GC infrastructure already in place).

20 years agoFix parsing of csv files with escapes (escape character previously would be
Andrew McNamara [Mon, 10 Jan 2005 01:04:40 +0000 (01:04 +0000)]
Fix parsing of csv files with escapes (escape character previously would be
left in stream).

20 years agoPatch #712317: In URLs such as http://www.example.com?query=spam, treat '?' as
Johannes Gijsbers [Sun, 9 Jan 2005 15:29:10 +0000 (15:29 +0000)]
Patch #712317: In URLs such as http://www.example.com?query=spam, treat '?' as
a delimiter. Previously, the 'network location' (<authority> in RFC 2396) would
become 'www.example.com?query=spam', while RFC 2396 does not allow a '?' in
<authority>. See bug #548176 for further discussion.

20 years agoPatch #1095362: replace hardcoded test for POST/GET with call to get_method,
Johannes Gijsbers [Sun, 9 Jan 2005 05:51:49 +0000 (05:51 +0000)]
Patch #1095362: replace hardcoded test for POST/GET with call to get_method,
removing some duplication and gaining some flexibility in the process.

20 years agoMove code in __name__ == '__main__' block into main() function, rewrite code so
Johannes Gijsbers [Sun, 9 Jan 2005 01:58:02 +0000 (01:58 +0000)]
Move code in __name__ == '__main__' block into main() function, rewrite code so
there's no need to subclass OptionParser.

20 years agoPatch #1051321 (fixes bugs 1010196, 1013525), by Mike Brown:
Johannes Gijsbers [Sun, 9 Jan 2005 00:36:53 +0000 (00:36 +0000)]
Patch #1051321 (fixes bugs 10101961013525), by Mike Brown:

* Document hasFeature(), createDocument(), CreateDocumentType(),
  hasAttribute(), hasAttributeNS().

* In the documentation for createDocument(), it is now stated that the Python
  DOM API allows implementations to forego creation of the document element
  child node, if no namespace and local name arguments are given. (This
  possibility is left open and unaddressed in the W3C spec).

* Addition by me: use 'name' rather than 'attname', for consistency with the
  DOM specification and the Python DOM API implementation.

20 years agoBug #1098497: various small typo's, grammar and markup nits.
Johannes Gijsbers [Sun, 9 Jan 2005 00:12:48 +0000 (00:12 +0000)]
Bug #1098497: various small typo's, grammar and markup nits.

20 years agocomment tweak
Skip Montanaro [Sat, 8 Jan 2005 21:58:58 +0000 (21:58 +0000)]
comment tweak

20 years agoAdd definitions for "up" and "down" commands that print/display the current
Skip Montanaro [Sat, 8 Jan 2005 21:56:43 +0000 (21:56 +0000)]
Add definitions for "up" and "down" commands that print/display the current
Python file/line when the current C execution frame is inside
PyEval_EvalFrame.  These are commented out by default because GDB sometimes
crashes as a result (seems like a GDB bug).

Add a pyframe command that displays the current Python stack frame.  If the
marked lines are uncommented, it will also cause Emacs/XEmacs to display the
current file/line.