]>
granicus.if.org Git - python/log
Raymond Hettinger [Sat, 5 Jun 2004 14:53:22 +0000 (14:53 +0000)]
SF bug #964230: random.choice([]) should return more intelligible exception
Add a comment to make the traceback less mysterious.
Andrew M. Kuchling [Sat, 5 Jun 2004 14:11:59 +0000 (14:11 +0000)]
[Bug #954364] inspect.getframeinfo() sometimes produces incorrect traceback line #s; fix is to look at tb.tb_lineno, not tb.frame.f_lineno. Patch from Robin Becker and me.
Hye-Shik Chang [Sat, 5 Jun 2004 13:30:56 +0000 (13:30 +0000)]
Fix a bug that robotparser starves memory when the server responses
in HTTP/0.9 due to dissonance of httplib.LineAndFileWrapper and
urllib.addbase.
Andrew M. Kuchling [Sat, 5 Jun 2004 12:35:58 +0000 (12:35 +0000)]
[Bug #841757] Patch from /F to allow Unicode strings as struct keys
Andrew M. Kuchling [Sat, 5 Jun 2004 12:33:27 +0000 (12:33 +0000)]
[Bug #841757] Exercise handling of Unicode strings
Raymond Hettinger [Sat, 5 Jun 2004 06:16:22 +0000 (06:16 +0000)]
SF bug #963956: Bad error mesage when subclassing a module
Add a more informative message for the common user mistake of subclassing
from a module name rather than another class (i.e. random instead of
random.random).
Brett Cannon [Sat, 5 Jun 2004 01:12:51 +0000 (01:12 +0000)]
Refactored site.py into functions. Also moved over to using sets.
New regression test suite.
Martin v. Löwis [Fri, 4 Jun 2004 13:55:13 +0000 (13:55 +0000)]
Patch #926209: Patch to setup.py to run on x86_64 Linux.
Hye-Shik Chang [Fri, 4 Jun 2004 09:33:18 +0000 (09:33 +0000)]
SF #966375: Fix typo (Reported by Kristian Ovaska)
Raymond Hettinger [Fri, 4 Jun 2004 06:35:20 +0000 (06:35 +0000)]
Replaced arbitrary addend in tuple_hash with one that is known to generate
many more prime multipliers and that performs well on collision tests.
Raymond Hettinger [Fri, 4 Jun 2004 06:31:08 +0000 (06:31 +0000)]
SF patch #961387: Make IDLE's paragraph reformatting width configurable
Hye-Shik Chang [Fri, 4 Jun 2004 04:24:54 +0000 (04:24 +0000)]
Reuse width/iswide tests from strings_test. (Suggested by Walter Dörwald)
Hye-Shik Chang [Fri, 4 Jun 2004 04:23:29 +0000 (04:23 +0000)]
Add comments for unicode-only methods to give hints on AttributeError
tracebacks. (Suggested by Walter Dörwald)
Hye-Shik Chang [Fri, 4 Jun 2004 03:19:17 +0000 (03:19 +0000)]
Fix typo.
Hye-Shik Chang [Fri, 4 Jun 2004 03:18:12 +0000 (03:18 +0000)]
Add iswide() and width() method for UserString according as the
addition to unicode objects.
Jack Jansen [Thu, 3 Jun 2004 21:55:46 +0000 (21:55 +0000)]
Fix for #860242: use correct names in the "save preferences" dialog.
Jack Jansen [Thu, 3 Jun 2004 21:27:15 +0000 (21:27 +0000)]
- Fix for #862941: "run with commandline python" crashed. Fixed.
- Prefer to use pythonw (if it exists) for "run with commandline python".
Fred Drake [Thu, 3 Jun 2004 17:19:25 +0000 (17:19 +0000)]
if we must argue over the/they, we can just remove the unecessary word
Fred Drake [Thu, 3 Jun 2004 16:23:23 +0000 (16:23 +0000)]
avoid backticks in examples; use repr() instead
Jack Jansen [Thu, 3 Jun 2004 14:33:03 +0000 (14:33 +0000)]
Fix for #932977: MacOSX does not pass the whole pathname in argv[0] for
#!-scripts, only the filename part, and this can lead to incorrect
initialization of sys.path and sys.executable if there is another python
on $PATH before the one used in #!.
The fix was picked up from the darwinports crowd, thanks!
Jack Jansen [Thu, 3 Jun 2004 14:15:50 +0000 (14:15 +0000)]
On startup, attempt to set the working directory to $HOME.
Fixes #913581.
Raymond Hettinger [Thu, 3 Jun 2004 14:13:04 +0000 (14:13 +0000)]
Fix typo: the-->they
Guido van Rossum [Thu, 3 Jun 2004 13:56:05 +0000 (13:56 +0000)]
Fix typo.
Michael W. Hudson [Thu, 3 Jun 2004 13:36:42 +0000 (13:36 +0000)]
Small clarification.
Jack Jansen [Thu, 3 Jun 2004 13:31:51 +0000 (13:31 +0000)]
Very large scripts folders could crash the IDE, because it runs out
of Menu IDs (of which there are only 255 in Carbon). Fixed by stopping
examining the scripts folder when we allocate menu ID 200.
Fixes #959291. Need to backport.
Fred Drake [Thu, 3 Jun 2004 13:31:22 +0000 (13:31 +0000)]
- fix typo reported by John Belmonte
- wrap a long line
Martin v. Löwis [Thu, 3 Jun 2004 12:47:26 +0000 (12:47 +0000)]
Warn abou missing mutate flag to ioctl. Fixes #696535.
Jack Jansen [Thu, 3 Jun 2004 12:41:45 +0000 (12:41 +0000)]
Partial fix for #887242 (link extensions with dynamic_lookup in stead
of hard linking against the framework).
If $MACOSX_DEPLOYMENT_TARGET is set, and >= 10.3, during configure we
setup extensions to link with dynamic lookup. We also record the
value in the Makefile.
Distutils checks whether a value for MACOSX_DEPLOYMENT_TARGET was
recorded in the Makefile, and if it was insists that the current
value matches.
This is only a partial fix because it only applies to 2.4, and the
"two python problem" exists with Python 2.3 shipped with MacOSX 10.3,
which we have no influence over.
Hye-Shik Chang [Thu, 3 Jun 2004 11:10:58 +0000 (11:10 +0000)]
Fix the grammar a bit more. (Adjusted by Tony Meyer)
Martin v. Löwis [Thu, 3 Jun 2004 09:55:28 +0000 (09:55 +0000)]
Drop claims that Unicode always means UCS-2. Fixes #881861.
Martin v. Löwis [Thu, 3 Jun 2004 09:47:01 +0000 (09:47 +0000)]
Document string methods that are locale-dependent. Fixes #935749.
Will backport to 2.3.
Martin v. Löwis [Thu, 3 Jun 2004 09:24:42 +0000 (09:24 +0000)]
Patch #929192: Improvements to bluetooth support.
Added setbdaddr and makebdaddr.
Extended makesockaddr to understand Bluetooth addresses.
Changed getsockaddr to expect the Bluetooth addresses as a string,
not a six element tuple.
Reformatted some of the Bluetooth code to be more consistent with PEP 7.
Martin v. Löwis [Thu, 3 Jun 2004 09:18:35 +0000 (09:18 +0000)]
Patch #957240: Add count parameter to asyncore.loop.
Martin v. Löwis [Thu, 3 Jun 2004 04:03:30 +0000 (04:03 +0000)]
One more attempt to fix the grammar.
Greg Ward [Thu, 3 Jun 2004 01:59:41 +0000 (01:59 +0000)]
SF #965425: fix so hyphenated words surrounded by punctuation are
wrapped correctly.
Jack Jansen [Wed, 2 Jun 2004 20:06:38 +0000 (20:06 +0000)]
Do an actual test for xcodebuild, in stead of relying on the user to
uncomment the relevant section.
Thomas Heller [Wed, 2 Jun 2004 18:58:55 +0000 (18:58 +0000)]
Remove the pcre module.
Walter Dörwald [Wed, 2 Jun 2004 18:42:25 +0000 (18:42 +0000)]
Rename class attribute containing the class to be tested, so the name is the
same as for the string and sequence tests.
Andrew M. Kuchling [Wed, 2 Jun 2004 17:53:57 +0000 (17:53 +0000)]
Remove reference to pcre module
Andrew M. Kuchling [Wed, 2 Jun 2004 17:44:36 +0000 (17:44 +0000)]
Remove pcre module
Andrew M. Kuchling [Wed, 2 Jun 2004 17:42:56 +0000 (17:42 +0000)]
Don't build the pcre module any more
Andrew M. Kuchling [Wed, 2 Jun 2004 17:40:43 +0000 (17:40 +0000)]
Remove reference to pcre module
Andrew M. Kuchling [Wed, 2 Jun 2004 17:40:14 +0000 (17:40 +0000)]
Remove pre module
Hye-Shik Chang [Wed, 2 Jun 2004 16:52:49 +0000 (16:52 +0000)]
Fix grammar hopefully. :)
Hye-Shik Chang [Wed, 2 Jun 2004 16:49:17 +0000 (16:49 +0000)]
- SF #962502: Add two more methods for unicode type; width() and
iswide() for east asian width manipulation. (Inspired by David
Goodger, Reviewed by Martin v. Loewis)
- Move _PyUnicode_TypeRecord.flags to the end of the struct so that
no padding is added for UCS-4 builds. (Suggested by Martin v. Loewis)
Andrew M. Kuchling [Wed, 2 Jun 2004 15:37:04 +0000 (15:37 +0000)]
Add a name (old change sitting in my tree)
Andrew M. Kuchling [Wed, 2 Jun 2004 15:33:59 +0000 (15:33 +0000)]
Remove old reminder
Jack Jansen [Wed, 2 Jun 2004 13:44:05 +0000 (13:44 +0000)]
CGMainDisplayID() doesn't exist on 10.1, so don't try to call it when
building for that platform.
Thomas Heller [Wed, 2 Jun 2004 13:21:41 +0000 (13:21 +0000)]
Record Python 2.3.4 (final) build number.
Martin v. Löwis [Wed, 2 Jun 2004 12:59:59 +0000 (12:59 +0000)]
The expression list in inheritance is not optional. Fixes #960448.
Will backport to 2.3.
Martin v. Löwis [Wed, 2 Jun 2004 12:54:33 +0000 (12:54 +0000)]
Move grammar rule for lambda_form into section on lambdas. Fixes #964525.
Martin v. Löwis [Wed, 2 Jun 2004 12:48:20 +0000 (12:48 +0000)]
Fix typo reported in #964592. Will backport to 2.3.
Martin v. Löwis [Wed, 2 Jun 2004 12:45:27 +0000 (12:45 +0000)]
Document PyModule_AddIntConstant to take a long. Fixes #962471.
Will backport to 2.3.
Martin v. Löwis [Wed, 2 Jun 2004 12:35:29 +0000 (12:35 +0000)]
Patch #924294: Do not check for AF_INET6 if it is not defined.
Will backport to 2.3.
Vinay Sajip [Wed, 2 Jun 2004 10:51:05 +0000 (10:51 +0000)]
Copyright year changed
Martin v. Löwis [Wed, 2 Jun 2004 09:57:56 +0000 (09:57 +0000)]
Patch #954115: Fix os.stat handling of UNC roots.
Will backport to 2.3.
Piers Lauder [Wed, 2 Jun 2004 00:42:36 +0000 (00:42 +0000)]
Added IMAP4_stream to __all__
Tim Peters [Tue, 1 Jun 2004 18:58:04 +0000 (18:58 +0000)]
test_hash(): The test here is different enough from the one in the bug
report that the stats for expected # of collisions are a little higher.
Updated comments accordingly.
Martin v. Löwis [Tue, 1 Jun 2004 17:21:13 +0000 (17:21 +0000)]
Add genobject.c
Raymond Hettinger [Tue, 1 Jun 2004 16:29:57 +0000 (16:29 +0000)]
Add genobject.c to the MSVC++ 6.0 build.
Martin v. Löwis [Tue, 1 Jun 2004 15:22:42 +0000 (15:22 +0000)]
Patch #957398: Add public API for Generator Object/Type.
Andrew M. Kuchling [Tue, 1 Jun 2004 12:48:19 +0000 (12:48 +0000)]
[Bug #962631] Fix typo reported by Bryan Blackburn
Raymond Hettinger [Tue, 1 Jun 2004 06:36:24 +0000 (06:36 +0000)]
SF bug #942952: Weakness in tuple hash
(Basic approach and test concept by Tim Peters.)
* Improved the hash to reduce collisions.
* Added the torture test to the test suite.
Martin v. Löwis [Tue, 1 Jun 2004 04:36:51 +0000 (04:36 +0000)]
Silence noise in regrtest.
Raymond Hettinger [Mon, 31 May 2004 22:53:25 +0000 (22:53 +0000)]
Fixup spacing in an example.
Martin v. Löwis [Mon, 31 May 2004 19:40:57 +0000 (19:40 +0000)]
Copy from python-2.3.spec. Incorporate patch #961465:
Including changes from Ian Holsman to build under Red Hat 7.3.
Fixing some problems with the /usr/local path change.
Tim Peters [Mon, 31 May 2004 19:27:59 +0000 (19:27 +0000)]
SF patch 959726: sdist versus SVN
The disutils sdist command now ignores .svn directories.
Martin v. Löwis [Mon, 31 May 2004 19:01:00 +0000 (19:01 +0000)]
Patch #932930: suggest the use of rawstrings for backslashes.
Martin v. Löwis [Mon, 31 May 2004 18:22:40 +0000 (18:22 +0000)]
Patch #963318: Add support for client-side cookie management.
Walter Dörwald [Mon, 31 May 2004 16:29:04 +0000 (16:29 +0000)]
Port the dictionary tests from test_types.py to unittest. Collect as much
mapping tests as possible in mapping_test.py and reuse the tests in
test_dict.py, test_userdict.py, test_weakref.py, test_os.py and test_shelve.py.
From SF patch #736962.
Walter Dörwald [Mon, 31 May 2004 15:12:27 +0000 (15:12 +0000)]
Fix typo (from SF bug #962602)
Raymond Hettinger [Mon, 31 May 2004 03:15:02 +0000 (03:15 +0000)]
Add weakref support to sockets and re pattern objects.
Raymond Hettinger [Mon, 31 May 2004 03:09:25 +0000 (03:09 +0000)]
Add weakref support to sockets and re pattern objects.
Raymond Hettinger [Mon, 31 May 2004 00:35:52 +0000 (00:35 +0000)]
Add weakref support to array.array and file objects.
Raymond Hettinger [Sun, 30 May 2004 07:26:47 +0000 (07:26 +0000)]
Make sets and deques weak referencable.
Walter Dörwald [Fri, 28 May 2004 20:59:21 +0000 (20:59 +0000)]
Update docstring for dict.update() to match the new realities.
Fred Drake [Fri, 28 May 2004 20:21:36 +0000 (20:21 +0000)]
starting to add comments to explain what's here
Walter Dörwald [Thu, 27 May 2004 18:16:25 +0000 (18:16 +0000)]
The default argument in dict.setdefault() defaults to None.
Add this default to weakref.WeakValueDictionary.setdefault()
and weakref.WeakKeyDictionary.setdefault() too.
Walter Dörwald [Thu, 27 May 2004 09:41:04 +0000 (09:41 +0000)]
The default argument in dict.setdefault() defaults to None.
Add this default to UserDict.DictMixin.setdefault() too.
Michael W. Hudson [Wed, 26 May 2004 17:36:12 +0000 (17:36 +0000)]
Remove float_compare as per
[ 899109 ] 1==float('nan')
which can now finally be closed, I think.
Michael W. Hudson [Wed, 26 May 2004 17:06:31 +0000 (17:06 +0000)]
Band-aid type fix for
[ 728330 ] Don't define _SGAPI on IRIX
The Right Thing would be nice, for now this'll do. At least it isn't
going to break anything *other* than IRIX...
Raymond Hettinger [Wed, 26 May 2004 13:57:54 +0000 (13:57 +0000)]
Fill-in the introductory paragraph for the library tour.
Raymond Hettinger [Wed, 26 May 2004 13:52:59 +0000 (13:52 +0000)]
Add a further tour of the standard library.
Raymond Hettinger [Tue, 25 May 2004 16:08:28 +0000 (16:08 +0000)]
Follow official recommendation for domain names in examples.
Skip Montanaro [Mon, 24 May 2004 14:20:16 +0000 (14:20 +0000)]
stupid, stupid, stupid... raw_input() already supports readline() if the
readline module is loaded.
Skip Montanaro [Sun, 23 May 2004 19:06:41 +0000 (19:06 +0000)]
Add example that uses readline.readline().
Skip Montanaro [Sun, 23 May 2004 17:46:50 +0000 (17:46 +0000)]
Exposed readline() function from the readline module.
Raymond Hettinger [Sat, 22 May 2004 19:37:21 +0000 (19:37 +0000)]
Make sure sets are printed in sorted order
Raymond Hettinger [Sat, 22 May 2004 16:38:11 +0000 (16:38 +0000)]
Updated to reflect new types.
Raymond Hettinger [Fri, 21 May 2004 23:01:18 +0000 (23:01 +0000)]
* teach repr.repr() about collections.deque()
* rename a variable for clarity
Raymond Hettinger [Fri, 21 May 2004 10:00:15 +0000 (10:00 +0000)]
* Updated repr.py to handle set() and frozenset().
* Factored out common code to a single private function.
* Use str.join() instead of + concatenation
* Loop over elements directly instead of using indexing
* Use % operator for formatting
Raymond Hettinger [Thu, 20 May 2004 23:04:13 +0000 (23:04 +0000)]
Add a test to verify an early call to iter() on the outermost for
expression.
Raymond Hettinger [Thu, 20 May 2004 22:59:26 +0000 (22:59 +0000)]
Clarify when iter() is first called in generator expressions.
Piers Lauder [Thu, 20 May 2004 12:12:58 +0000 (12:12 +0000)]
Added description for authenticate and namespace
Piers Lauder [Thu, 20 May 2004 11:32:35 +0000 (11:32 +0000)]
Fixed IMAP4_SSL read bug introduced by patch 956394
Piers Lauder [Thu, 20 May 2004 01:16:14 +0000 (01:16 +0000)]
Fixed IMAP4_SSL read and readlines code per patch 956394
Raymond Hettinger [Wed, 19 May 2004 22:30:25 +0000 (22:30 +0000)]
Improved wording for generator expressions.
Raymond Hettinger [Wed, 19 May 2004 19:56:44 +0000 (19:56 +0000)]
SF bug #949329: sets.Set() --> set()
Raymond Hettinger [Wed, 19 May 2004 19:45:19 +0000 (19:45 +0000)]
Add more docs for generator expressions.
* Put in a brief, example driven tutorial entry.
* Use better examples in whatsnew24.tex.
Armin Rigo [Wed, 19 May 2004 19:10:18 +0000 (19:10 +0000)]
Applying SF patch #949329 on behalf of Raymond Hettinger.