0
0
mirror of https://github.com/python/cpython.git synced 2024-12-01 03:01:36 +01:00
Commit Graph

29946 Commits

Author SHA1 Message Date
Andrew M. Kuchling
ba8b6bc86f [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. 2004-06-05 14:11:59 +00:00
Hye-Shik Chang
39aef79821 Fix a bug that robotparser starves memory when the server responses
in HTTP/0.9 due to dissonance of httplib.LineAndFileWrapper and
urllib.addbase.
2004-06-05 13:30:56 +00:00
Andrew M. Kuchling
5962f457b4 [Bug #841757] Patch from /F to allow Unicode strings as struct keys 2004-06-05 12:35:58 +00:00
Andrew M. Kuchling
b12d97c275 [Bug #841757] Exercise handling of Unicode strings 2004-06-05 12:33:27 +00:00
Raymond Hettinger
f2c0830585 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).
2004-06-05 06:16:22 +00:00
Brett Cannon
0096e262ff Refactored site.py into functions. Also moved over to using sets.
New regression test suite.
2004-06-05 01:12:51 +00:00
Martin v. Löwis
642c8a11fd Patch #926209: Patch to setup.py to run on x86_64 Linux. 2004-06-04 13:55:13 +00:00
Hye-Shik Chang
2d6783b4bc SF #966375: Fix typo (Reported by Kristian Ovaska) 2004-06-04 09:33:18 +00:00
Raymond Hettinger
4ec44e851d Replaced arbitrary addend in tuple_hash with one that is known to generate
many more prime multipliers and that performs well on collision tests.
2004-06-04 06:35:20 +00:00
Raymond Hettinger
4e49b836db SF patch #961387: Make IDLE's paragraph reformatting width configurable 2004-06-04 06:31:08 +00:00
Hye-Shik Chang
3c145449da Reuse width/iswide tests from strings_test. (Suggested by Walter Dörwald) 2004-06-04 04:24:54 +00:00
Hye-Shik Chang
6838c557fa Add comments for unicode-only methods to give hints on AttributeError
tracebacks. (Suggested by Walter Dörwald)
2004-06-04 04:23:29 +00:00
Hye-Shik Chang
7bd860655f Fix typo. 2004-06-04 03:19:17 +00:00
Hye-Shik Chang
5f5125997b Add iswide() and width() method for UserString according as the
addition to unicode objects.
2004-06-04 03:18:12 +00:00
Jack Jansen
0701bd64aa Fix for #860242: use correct names in the "save preferences" dialog. 2004-06-03 21:55:46 +00:00
Jack Jansen
30184f3611 - Fix for #862941: "run with commandline python" crashed. Fixed.
- Prefer to use pythonw (if it exists) for "run with commandline python".
2004-06-03 21:27:15 +00:00
Fred Drake
22ec5c3639 if we must argue over the/they, we can just remove the unecessary word 2004-06-03 17:19:25 +00:00
Fred Drake
175d18840a avoid backticks in examples; use repr() instead 2004-06-03 16:23:23 +00:00
Jack Jansen
1afd4807d9 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!
2004-06-03 14:33:03 +00:00
Jack Jansen
76375745d5 On startup, attempt to set the working directory to $HOME.
Fixes #913581.
2004-06-03 14:15:50 +00:00
Raymond Hettinger
2d1a2aa117 Fix typo: the-->they 2004-06-03 14:13:04 +00:00
Guido van Rossum
6dfed6c41f Fix typo. 2004-06-03 13:56:05 +00:00
Michael W. Hudson
3151e18505 Small clarification. 2004-06-03 13:36:42 +00:00
Jack Jansen
8d562e6b4f 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.
2004-06-03 13:31:51 +00:00
Fred Drake
d6d35d954b - fix typo reported by John Belmonte
- wrap a long line
2004-06-03 13:31:22 +00:00
Martin v. Löwis
77ca6c4c84 Warn abou missing mutate flag to ioctl. Fixes #696535. 2004-06-03 12:47:26 +00:00
Jack Jansen
6b08a40442 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.
2004-06-03 12:41:45 +00:00
Hye-Shik Chang
bc555e386b Fix the grammar a bit more. (Adjusted by Tony Meyer) 2004-06-03 11:10:58 +00:00
Martin v. Löwis
9bc4f2def3 Drop claims that Unicode always means UCS-2. Fixes #881861. 2004-06-03 09:55:28 +00:00
Martin v. Löwis
4a9b8069e0 Document string methods that are locale-dependent. Fixes #935749.
Will backport to 2.3.
2004-06-03 09:47:01 +00:00
Martin v. Löwis
558d9bf528 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.
2004-06-03 09:24:42 +00:00
Martin v. Löwis
eac324b90b Patch #957240: Add count parameter to asyncore.loop. 2004-06-03 09:18:35 +00:00
Martin v. Löwis
3e501dcfc7 One more attempt to fix the grammar. 2004-06-03 04:03:30 +00:00
Greg Ward
6186410db0 SF #965425: fix so hyphenated words surrounded by punctuation are
wrapped correctly.
2004-06-03 01:59:41 +00:00
Jack Jansen
29eb8c315d Do an actual test for xcodebuild, in stead of relying on the user to
uncomment the relevant section.
2004-06-02 20:06:38 +00:00
Thomas Heller
9f5f056d75 Remove the pcre module. 2004-06-02 18:58:55 +00:00
Walter Dörwald
118f931d07 Rename class attribute containing the class to be tested, so the name is the
same as for the string and sequence tests.
2004-06-02 18:42:25 +00:00
Andrew M. Kuchling
b4541c2653 Remove reference to pcre module 2004-06-02 17:53:57 +00:00
Andrew M. Kuchling
5ededdd685 Remove pcre module 2004-06-02 17:44:36 +00:00
Andrew M. Kuchling
f7e836e6dd Don't build the pcre module any more 2004-06-02 17:42:56 +00:00
Andrew M. Kuchling
acf261862d Remove reference to pcre module 2004-06-02 17:40:43 +00:00
Andrew M. Kuchling
4ad9723ed8 Remove pre module 2004-06-02 17:40:14 +00:00
Hye-Shik Chang
5629d0e616 Fix grammar hopefully. :) 2004-06-02 16:52:49 +00:00
Hye-Shik Chang
974ed7cfa5 - 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)
2004-06-02 16:49:17 +00:00
Andrew M. Kuchling
b6568b91fd Add a name (old change sitting in my tree) 2004-06-02 15:37:04 +00:00
Andrew M. Kuchling
d783694dea Remove old reminder 2004-06-02 15:33:59 +00:00
Jack Jansen
43285d4d3d CGMainDisplayID() doesn't exist on 10.1, so don't try to call it when
building for that platform.
2004-06-02 13:44:05 +00:00
Thomas Heller
aa2e498251 Record Python 2.3.4 (final) build number. 2004-06-02 13:21:41 +00:00
Martin v. Löwis
9c322fbe36 The expression list in inheritance is not optional. Fixes #960448.
Will backport to 2.3.
2004-06-02 12:59:59 +00:00
Martin v. Löwis
477c85631a Move grammar rule for lambda_form into section on lambdas. Fixes #964525. 2004-06-02 12:54:33 +00:00