]> granicus.if.org Git - python/log
python
19 years agoComment on the set_swap_bodies() helper function.
Raymond Hettinger [Sun, 31 Jul 2005 01:33:10 +0000 (01:33 +0000)]
Comment on the set_swap_bodies() helper function.

19 years agoRevised the set() and frozenset() implementaion to use its own internal
Raymond Hettinger [Sun, 31 Jul 2005 01:16:36 +0000 (01:16 +0000)]
Revised the set() and frozenset() implementaion to use its own internal
data structure instead of using dictionaries.  Reduces memory consumption
by 1/3 and provides modest speed-ups for most set operations.

19 years agouse a test for PDF support that is more portable across teTeX major versions
Fred Drake [Fri, 29 Jul 2005 17:17:19 +0000 (17:17 +0000)]
use a test for PDF support that is more portable across teTeX major versions
(closes SF bug #1238210)

19 years agoadd support for svn: and svn+ssh: URL schemes to urlparse
Fred Drake [Fri, 29 Jul 2005 15:56:32 +0000 (15:56 +0000)]
add support for svn: and svn+ssh: URL schemes to urlparse

19 years agoDocumentation added about changes in 2.4 to basicConfig(), including documentation...
Vinay Sajip [Fri, 29 Jul 2005 11:52:19 +0000 (11:52 +0000)]
Documentation added about changes in 2.4 to basicConfig(), including documentation of the keyword arguments. A version change note was also added to the basic example.

19 years agoDisable encoding/decoding test, if unicode is disabled.
Walter Dörwald [Thu, 28 Jul 2005 16:49:15 +0000 (16:49 +0000)]
Disable encoding/decoding test, if unicode is disabled.

19 years agoFix a typo. (found by Jong-uk Kim)
Hye-Shik Chang [Thu, 28 Jul 2005 05:57:19 +0000 (05:57 +0000)]
Fix a typo. (found by Jong-uk Kim)

19 years agoThis is barry-scott's patch:
Michael W. Hudson [Wed, 27 Jul 2005 20:24:40 +0000 (20:24 +0000)]
This is barry-scott's patch:

1231069 ] ioctl has problem with -ive request codes

by using the 'I' not the 'i' format code to PyArg_ParseTuple().

Backport candidate?  Maybe...

19 years agoUpdate permissions for Johannes Gijsbers.
Raymond Hettinger [Wed, 27 Jul 2005 17:59:02 +0000 (17:59 +0000)]
Update permissions for Johannes Gijsbers.

19 years agoOuch, move that comment to the right place.
Guido van Rossum [Wed, 27 Jul 2005 00:00:44 +0000 (00:00 +0000)]
Ouch, move that comment to the right place.

19 years agoFix a problem in Tkinter introduced by SF patch #869468 (checked in as
Guido van Rossum [Tue, 26 Jul 2005 23:57:46 +0000 (23:57 +0000)]
Fix a problem in Tkinter introduced by SF patch #869468 (checked in as
1.179): delete bogus __hasattr__ and __delattr__ methods on class Tk
that were breaking Tkdnd.

19 years agoUpgrade Windows build to zlib 1.2.3 (a security fix)
Trent Mick [Tue, 26 Jul 2005 02:29:21 +0000 (02:29 +0000)]
Upgrade Windows build to zlib 1.2.3 (a security fix)

19 years agoThat was one too much.
Georg Brandl [Fri, 22 Jul 2005 21:52:25 +0000 (21:52 +0000)]
That was one too much.

19 years agoFix all wrong instances of "it's".
Georg Brandl [Fri, 22 Jul 2005 21:49:32 +0000 (21:49 +0000)]
Fix all wrong instances of "it's".

19 years ago[ 1243081 ] repair typos
Georg Brandl [Fri, 22 Jul 2005 18:39:19 +0000 (18:39 +0000)]
1243081 ] repair typos

19 years agoMake attributes and local variables in the StreamReader str objects instead
Walter Dörwald [Wed, 20 Jul 2005 22:15:39 +0000 (22:15 +0000)]
Make attributes and local variables in the StreamReader str objects instead
of unicode objects, so that codecs that do a str->str decoding won't promote
the result to unicode. This fixes SF bug #1241507.

19 years agoadd information about alternate implementations, noting that documentation
Fred Drake [Wed, 20 Jul 2005 04:33:01 +0000 (04:33 +0000)]
add information about alternate implementations, noting that documentation
for the implementation should be consulted
(thanks to Evelyn Mitchell for suggesting this)

19 years agofix markup nits
Fred Drake [Wed, 20 Jul 2005 03:49:42 +0000 (03:49 +0000)]
fix markup nits

19 years agoFix cleanup DECREF logic in builtin_filter function.
Georg Brandl [Tue, 19 Jul 2005 22:20:20 +0000 (22:20 +0000)]
Fix cleanup DECREF logic in builtin_filter function.

19 years agoadded news entry for previous checkin
Georg Brandl [Mon, 18 Jul 2005 08:53:17 +0000 (08:53 +0000)]
added news entry for previous checkin

19 years ago[ 755617 ] os module: Need a better description of "mode"
Georg Brandl [Mon, 18 Jul 2005 08:16:33 +0000 (08:16 +0000)]
[ 755617 ] os module: Need a better description of "mode"

19 years agobug [ 850238 ] unclear documentation/missing command?
Georg Brandl [Mon, 18 Jul 2005 08:04:17 +0000 (08:04 +0000)]
bug [ 850238 ] unclear documentation/missing command?

19 years agobug [ 957505 ] SocketServer module documentation misleading
Georg Brandl [Mon, 18 Jul 2005 07:38:44 +0000 (07:38 +0000)]
bug [ 957505 ] SocketServer module documentation misleading

19 years agoSF bug #1238681: freed pointer is used in longobject.c:long_pow().
Tim Peters [Sun, 17 Jul 2005 23:45:23 +0000 (23:45 +0000)]
SF bug #1238681:  freed pointer is used in longobject.c:long_pow().

In addition, long_pow() skipped a necessary (albeit extremely unlikely
to trigger) error check when converting an int modulus to long.

Alas, I was unable to write a test case that crashed due to either
cause.

Bugfix candidate.

19 years agoWhitespace normalization.
Tim Peters [Sun, 17 Jul 2005 23:16:17 +0000 (23:16 +0000)]
Whitespace normalization.

19 years agobug [ 1021621 ] use first_name, not first, in code samples
Georg Brandl [Sun, 17 Jul 2005 21:18:25 +0000 (21:18 +0000)]
bug [ 1021621 ] use first_name, not first, in code samples

19 years agobug [ 872769 ] os.access() documentation should stress race conditions
Georg Brandl [Sun, 17 Jul 2005 21:10:11 +0000 (21:10 +0000)]
bug [ 872769 ] os.access() documentation should stress race conditions

19 years ago[ 912943 ] 7.5.6 Thread Objects is too vague
Georg Brandl [Sun, 17 Jul 2005 21:00:26 +0000 (21:00 +0000)]
[ 912943 ] 7.5.6 Thread Objects is too vague

19 years ago- Bug #1015140: disambiguated the term "article id" in nntplib docs and
Georg Brandl [Sun, 17 Jul 2005 20:27:41 +0000 (20:27 +0000)]
- Bug #1015140: disambiguated the term "article id" in nntplib docs and
  docstrings to either "article number" or "message id".

19 years agobug [ 1061920 ] "k" specifier in PyArg_ParseTuple incomplete documentated
Georg Brandl [Sun, 17 Jul 2005 20:05:25 +0000 (20:05 +0000)]
bug [ 1061920 ] "k" specifier in PyArg_ParseTuple incomplete documentated

19 years agouse macro
Skip Montanaro [Sun, 17 Jul 2005 15:34:58 +0000 (15:34 +0000)]
use macro

19 years agoNote that usegmt is new in 2.4. Closes #1239681.
Skip Montanaro [Sun, 17 Jul 2005 11:47:46 +0000 (11:47 +0000)]
Note that usegmt is new in 2.4.  Closes #1239681.

19 years agoAdd support for FreeBSD 7.
Hye-Shik Chang [Sun, 17 Jul 2005 02:36:59 +0000 (02:36 +0000)]
Add support for FreeBSD 7.

19 years agoAdded an option to the scanner to generated marked-up HTML from the input
Jack Jansen [Sun, 17 Jul 2005 00:15:46 +0000 (00:15 +0000)]
Added an option to the scanner to generated marked-up HTML from the input
file. This should make it a lot easier (I hope) to get the regular
expressions right.

19 years agobug [ 1238170 ] threading.Thread uses {} as default argument
Georg Brandl [Fri, 15 Jul 2005 09:13:21 +0000 (09:13 +0000)]
bug [ 1238170 ] threading.Thread uses {} as default argument

19 years agotextwrap now processes text chucks at O(n) speed instead of O(n**2).
Raymond Hettinger [Fri, 15 Jul 2005 06:53:35 +0000 (06:53 +0000)]
textwrap now processes text chucks at O(n) speed instead of O(n**2).
Patch #1209527 (Contributed by Connelly).

19 years agoBrett requests that Flovis's permissions be dropped.
Raymond Hettinger [Thu, 14 Jul 2005 17:34:00 +0000 (17:34 +0000)]
Brett requests that Flovis's permissions be dropped.

19 years agoRFE [ 1216944 ] Add Error Code Dictionary to urllib2
Georg Brandl [Thu, 14 Jul 2005 06:40:47 +0000 (06:40 +0000)]
RFE [ 1216944 ] Add Error Code Dictionary to urllib2

19 years agoApply SF patch #1101726: Fix buffer overrun in tokenizer.c when a source file
Walter Dörwald [Tue, 12 Jul 2005 21:53:43 +0000 (21:53 +0000)]
Apply SF patch #1101726: Fix buffer overrun in tokenizer.c when a source file
with a PEP 263 encoding declaration results in long decoded line.

19 years agoFix for #1236090: FSSpec.as_pathname() crashes.
Jack Jansen [Tue, 12 Jul 2005 21:25:05 +0000 (21:25 +0000)]
Fix for #1236090: FSSpec.as_pathname() crashes.

Turns out patch #1035255 was incomplete, it only patched _Filemodule.c
and not filesupport.py. So regenerating caused as_pathname() to go into
an infinite loop.

19 years agoOops.
Georg Brandl [Tue, 12 Jul 2005 13:20:49 +0000 (13:20 +0000)]
Oops.

19 years agobug [ 1232768 ] Mistakes in online docs under "5.3 Pure Embedding"
Georg Brandl [Tue, 12 Jul 2005 13:17:59 +0000 (13:17 +0000)]
bug [ 1232768 ] Mistakes in online docs under "5.3 Pure Embedding"

19 years agoFix:
Michael W. Hudson [Tue, 12 Jul 2005 10:21:19 +0000 (10:21 +0000)]
Fix:

1229429 ] missing Py_DECREF in PyObject_CallMethod

Add a test in test_enumerate, which is a bit random, but suffices
(reversed_new calls PyObject_CallMethod under some circumstances).

19 years agobug [ 1235266 ] debug info file descriptor of tarfile is inconsistent
Georg Brandl [Tue, 12 Jul 2005 07:28:20 +0000 (07:28 +0000)]
bug [ 1235266 ] debug info file descriptor of tarfile is inconsistent

19 years agoSF bug 1185883: PyObject_Realloc can't safely take over a block currently
Tim Peters [Sun, 10 Jul 2005 22:30:55 +0000 (22:30 +0000)]
SF bug 1185883:  PyObject_Realloc can't safely take over a block currently
managed by C, because it's possible for the block to be smaller than the
new requested size, and at the end of allocated VM.  Trying to copy over
nbytes bytes to a Python small-object block can segfault then, and there's
no portable way to avoid this (we would have to know how many bytes
starting at p are addressable, and std C has no means to determine that).

Bugfix candidate.  Should be backported to 2.4, but I'm out of time.

19 years agoWhitespace normalization.
Tim Peters [Sun, 10 Jul 2005 20:37:51 +0000 (20:37 +0000)]
Whitespace normalization.

19 years agobug 1234979 addition
Georg Brandl [Sat, 9 Jul 2005 15:26:33 +0000 (15:26 +0000)]
bug 1234979 addition

19 years agobug [ 1234979 ] Lock.acquire treats only 1 as True
Georg Brandl [Fri, 8 Jul 2005 22:26:13 +0000 (22:26 +0000)]
bug [ 1234979 ] Lock.acquire treats only 1 as True

19 years agobug [ 969757 ] function and method objects confounded in Tutorial
Georg Brandl [Fri, 8 Jul 2005 21:36:36 +0000 (21:36 +0000)]
bug [ 969757 ] function and method objects confounded in Tutorial

19 years agoHandle argref so it can be overridden more easily in a subclass.
Jack Jansen [Fri, 8 Jul 2005 15:03:37 +0000 (15:03 +0000)]
Handle argref so it can be overridden more easily in a subclass.

19 years agoNote Floris's last name.
Raymond Hettinger [Fri, 8 Jul 2005 14:47:38 +0000 (14:47 +0000)]
Note Floris's last name.

19 years agoAdd permissions for the Summer of Code project.
Raymond Hettinger [Fri, 8 Jul 2005 14:37:56 +0000 (14:37 +0000)]
Add permissions for the Summer of Code project.

19 years agoFix "upload" command garbling and truncating files on Windows. If it's a
Phillip J. Eby [Thu, 7 Jul 2005 15:36:20 +0000 (15:36 +0000)]
Fix "upload" command garbling and truncating files on Windows.  If it's a
binary file, use 'rb'!

19 years agoLink to #1233049 for building against openssl 0.9.8.
Martin v. Löwis [Wed, 6 Jul 2005 19:34:10 +0000 (19:34 +0000)]
Link to #1233049 for building against openssl 0.9.8.

19 years agoFix bug
Michael W. Hudson [Tue, 5 Jul 2005 15:21:58 +0000 (15:21 +0000)]
Fix bug

1232517 ] OverflowError in time.utime() causes strange traceback

A needed error check was missing.

(Actually, this error check may only have become necessary in fairly
recent Python, not sure).

Backport candidate.

19 years agoAllow for (optional) const declaration.
Jack Jansen [Tue, 5 Jul 2005 10:00:57 +0000 (10:00 +0000)]
Allow for (optional) const declaration.

19 years agoAdd test for hash commutativity.
Raymond Hettinger [Tue, 5 Jul 2005 05:34:43 +0000 (05:34 +0000)]
Add test for hash commutativity.

19 years agofixed tag generation to avoid null tags
Piers Lauder [Tue, 5 Jul 2005 04:20:07 +0000 (04:20 +0000)]
fixed tag generation to avoid null tags

19 years agobug #1177468: don't cache /dev/urandom file descriptor in os.urandom
Georg Brandl [Mon, 4 Jul 2005 17:16:07 +0000 (17:16 +0000)]
bug #1177468: don't cache /dev/urandom file descriptor in os.urandom

19 years agoRevert patch for 1162912.
Georg Brandl [Mon, 4 Jul 2005 14:17:47 +0000 (14:17 +0000)]
Revert patch for 1162912.

19 years agoUpdated (and regenerated) for name change in tp_init method arguments:
Jack Jansen [Sun, 3 Jul 2005 20:59:44 +0000 (20:59 +0000)]
Updated (and regenerated) for name change in tp_init method arguments:
they are now _self, _args and _kwds.

19 years agoFactored out the code that creates argument lists and formats for PyArg_Parse
Jack Jansen [Sun, 3 Jul 2005 20:58:08 +0000 (20:58 +0000)]
Factored out the code that creates argument lists and formats for PyArg_Parse
and Py_BuildValue.

19 years agoSigh, changed the argument names in the tp_init function: to make them be
Jack Jansen [Sun, 3 Jul 2005 20:57:26 +0000 (20:57 +0000)]
Sigh, changed the argument names in the tp_init function: to make them be
more in line with other methods "self" and "args" had to be renamed "_self"
and "_args". Did "_kwds" too, for consistency.

19 years agobug [ 1162912 ] typesseq-mutable lacks note on combined key/cmp usage
Georg Brandl [Sun, 3 Jul 2005 20:21:40 +0000 (20:21 +0000)]
bug [ 1162912 ] typesseq-mutable lacks note on combined key/cmp usage

19 years agoAdd doctest for examples in libweakref.tex to test_weakref.
Georg Brandl [Sat, 2 Jul 2005 19:07:30 +0000 (19:07 +0000)]
Add doctest for examples in libweakref.tex to test_weakref.

19 years agopatch [ 1231538 ] Typo fix in compiler/transformer.py (WalkerEror)
Georg Brandl [Sat, 2 Jul 2005 18:37:41 +0000 (18:37 +0000)]
patch [ 1231538 ] Typo fix in compiler/transformer.py (WalkerEror)

19 years agobug [ 1228904 ] weakref example broken
Georg Brandl [Sat, 2 Jul 2005 10:44:32 +0000 (10:44 +0000)]
bug [ 1228904 ] weakref example broken

19 years agoPatch [ 1230615 ] Patch for (Doc) #1168746
Georg Brandl [Sat, 2 Jul 2005 10:27:31 +0000 (10:27 +0000)]
Patch [ 1230615 ] Patch for (Doc) #1168746
Bug [ 1204734 ] incorrect description of __getattribute__

19 years agoCross reference the set built-ins with the sets module.
Raymond Hettinger [Fri, 1 Jul 2005 23:18:36 +0000 (23:18 +0000)]
Cross reference the set built-ins with the sets module.

19 years agoProvide a comparison to the builtin set types.
Raymond Hettinger [Fri, 1 Jul 2005 23:00:13 +0000 (23:00 +0000)]
Provide a comparison to the builtin set types.

19 years agoTeach texcheck about \textbar
Raymond Hettinger [Fri, 1 Jul 2005 22:55:43 +0000 (22:55 +0000)]
Teach texcheck about \textbar

19 years agoAdded methods mkvaluePreCheck and getargsPreCheck, which are called (for
Jack Jansen [Fri, 1 Jul 2005 20:23:27 +0000 (20:23 +0000)]
Added methods mkvaluePreCheck and getargsPreCheck, which are called (for
each variable) before calling Py_BuildValue and PyArg_Parse.

19 years agoMore info on rounding modes. Add sections for floating point notes.
Raymond Hettinger [Fri, 1 Jul 2005 16:54:12 +0000 (16:54 +0000)]
More info on rounding modes.  Add sections for floating point notes.

19 years agoMore factorization: added a method getrvforcallit(). This allows a C++
Jack Jansen [Thu, 30 Jun 2005 15:00:13 +0000 (15:00 +0000)]
More factorization: added a method getrvforcallit(). This allows a C++
bridge to combine declaration and assignment to the return value
temporary, allowing us to handle functions returning const values.

19 years agoApparently some compiler gives a warning on
Michael W. Hudson [Thu, 30 Jun 2005 00:02:26 +0000 (00:02 +0000)]
Apparently some compiler gives a warning on

float y = x;

when x is a double.  Go figure.

19 years agoSF bug #1224347: int/long unification and hex()
Raymond Hettinger [Wed, 29 Jun 2005 23:29:56 +0000 (23:29 +0000)]
SF bug #1224347:  int/long unification and hex()

Hex longs now print with lowercase letters like their int counterparts.

19 years agoAdded optional suppport for storage modifiers (virtual/static/inline/etc)
Jack Jansen [Wed, 29 Jun 2005 14:17:05 +0000 (14:17 +0000)]
Added optional suppport for storage modifiers (virtual/static/inline/etc)
and conditional generation of objects and methods.

19 years agoMore factorization to help C++ support.
Jack Jansen [Tue, 28 Jun 2005 15:14:35 +0000 (15:14 +0000)]
More factorization to help C++ support.

19 years agoNote that files are iterable.
Raymond Hettinger [Tue, 28 Jun 2005 00:16:08 +0000 (00:16 +0000)]
Note that files are iterable.

19 years ago* Show the keyword argument form of dict().
Raymond Hettinger [Mon, 27 Jun 2005 23:36:47 +0000 (23:36 +0000)]
* Show the keyword argument form of dict().
* Note that dict works with the "in" keyword.

19 years agoadd note that os.EX_* constants are subject to availability on the host
Fred Drake [Mon, 27 Jun 2005 23:23:43 +0000 (23:23 +0000)]
add note that os.EX_* constants are subject to availability on the host
platform

19 years agoAdapt output file to new Cookie JS output.
Georg Brandl [Mon, 27 Jun 2005 05:51:07 +0000 (05:51 +0000)]
Adapt output file to new Cookie JS output.

19 years agoFix test cases for doctest.
Georg Brandl [Sun, 26 Jun 2005 23:09:51 +0000 (23:09 +0000)]
Fix test cases for doctest.

19 years ago- Bug #839151: Fix an attempt to access sys.argv in the warnings module
Georg Brandl [Sun, 26 Jun 2005 22:54:58 +0000 (22:54 +0000)]
- Bug #839151: Fix an attempt to access sys.argv in the warnings module
  though this can be missing in embedded interpreters

19 years agobug [ 839151 ] attempt to access sys.argv when it doesn't exist
Georg Brandl [Sun, 26 Jun 2005 22:53:29 +0000 (22:53 +0000)]
bug [ 839151 ] attempt to access sys.argv when it doesn't exist

19 years agobug [ 1172785 ] doctest.script_from_examples() result sometimes un-exec-able
Georg Brandl [Sun, 26 Jun 2005 22:22:31 +0000 (22:22 +0000)]
bug [ 1172785 ] doctest.script_from_examples() result sometimes un-exec-able

19 years ago- Bug #1155638: Fix a bug which affected HTTP 0.9 responses in httplib.
Georg Brandl [Sun, 26 Jun 2005 22:09:06 +0000 (22:09 +0000)]
- Bug #1155638: Fix a bug which affected HTTP 0.9 responses in httplib.

19 years agobug [ 1155638 ] self.length shield exception in httplib
Georg Brandl [Sun, 26 Jun 2005 22:06:54 +0000 (22:06 +0000)]
bug [ 1155638 ] self.length shield exception in httplib

19 years agobug [ 1175848 ] poorly named variable in urllib2.py
Georg Brandl [Sun, 26 Jun 2005 22:01:35 +0000 (22:01 +0000)]
bug [ 1175848 ] poorly named variable in urllib2.py

19 years agoPrevent creating a HTML link to file://?/
Georg Brandl [Sun, 26 Jun 2005 21:57:55 +0000 (21:57 +0000)]
Prevent creating a HTML link to file://?/

19 years ago- Bug #1100201: Cross-site scripting was possible on BaseHTTPServer via
Georg Brandl [Sun, 26 Jun 2005 21:36:25 +0000 (21:36 +0000)]
- Bug #1100201: Cross-site scripting was possible on BaseHTTPServer via
  error messages.

19 years agobug [ 1100201 ] Cross-site scripting on BaseHTTPServer
Georg Brandl [Sun, 26 Jun 2005 21:33:14 +0000 (21:33 +0000)]
bug [ 1100201 ] Cross-site scripting on BaseHTTPServer

19 years agoAdd NEWS entries for bugs closed at Bug Day.
Georg Brandl [Sun, 26 Jun 2005 21:09:38 +0000 (21:09 +0000)]
Add NEWS entries for bugs closed at Bug Day.

19 years agobug [ 1108948 ] Cookie.py produces invalid code
Georg Brandl [Sun, 26 Jun 2005 21:02:49 +0000 (21:02 +0000)]
bug [ 1108948 ] Cookie.py produces invalid code

19 years agobug [ 1072853 ] thisid not intialized in pindent.py script
Georg Brandl [Sun, 26 Jun 2005 20:20:48 +0000 (20:20 +0000)]
bug [ 1072853 ] thisid not intialized in pindent.py script

19 years agoSMTP.help() was returning a tuple instead of the promised text.
Kurt B. Kaiser [Sun, 26 Jun 2005 18:27:36 +0000 (18:27 +0000)]
SMTP.help() was returning a tuple instead of the promised text.

19 years agoNEWS entry for last bugfix
Georg Brandl [Sat, 25 Jun 2005 21:08:46 +0000 (21:08 +0000)]
NEWS entry for last bugfix

19 years agobug [ 1166582 ] IterableUserDict not in docs
Georg Brandl [Sat, 25 Jun 2005 21:03:52 +0000 (21:03 +0000)]
bug [ 1166582 ] IterableUserDict not in docs

19 years agobug [ 1186072 ] tempnam doc doesn't include link to tmpfile
Georg Brandl [Sat, 25 Jun 2005 20:44:10 +0000 (20:44 +0000)]
bug [ 1186072 ] tempnam doc doesn't include link to tmpfile

19 years agobug [ 1175022 ] property example code error
Georg Brandl [Sat, 25 Jun 2005 20:07:36 +0000 (20:07 +0000)]
bug [ 1175022 ] property example code error