Jack Jansen
94fab762de
Generate pythonw.sh on the fly.
...
Use the build python for as many things as possible.
2002-09-02 12:29:11 +00:00
Jack Jansen
e3d9f405e9
Pass -x badsyntax to compileall.
...
Tweaks to make builds work for non-standard dstroot.
2002-09-02 12:16:00 +00:00
Barry Warsaw
a4ce1cf34c
_structure(): Use .get_content_type()
2002-09-01 21:04:43 +00:00
Guido van Rossum
674deb2eea
SF bug 601775 - some int results that should be bool.
2002-09-01 15:06:28 +00:00
Raymond Hettinger
29a6d449ef
Added comparison functions to dict proxies.
...
Now all non-mutating dict methods are in the proxy also.
Inspired by SF bug #602232 ,
2002-08-31 15:51:04 +00:00
Guido van Rossum
f689492070
Because MWH changed the bytecode again, moved the magic number *back*
...
to 62011. This should get the snake-farm to throw away its old .pyc
files, amongst others.
2002-08-31 15:16:14 +00:00
Jack Jansen
b2d2bc9a55
Implemented the Help menu. The Python manual can be viewed (if installed)
...
and the selection can be looked up, and so can the Carbon manual. From the
help menu you can also get to the online documentation, the Python website
and the MacPython page.
Untested in MacPython-OS9.
2002-08-31 01:25:17 +00:00
Jack Jansen
6be89564cc
If there's an environment variable PYTHONIDEPATH it points to the IDE
...
folder. This allows running the IDE from the source tree on OSX.
2002-08-31 01:22:37 +00:00
Jack Jansen
f94cadf456
MenuID's are signed.
2002-08-31 01:20:53 +00:00
Jack Jansen
fe9acdea8a
Typecode for AHTOCType was wrong. Fixed.
2002-08-30 23:02:09 +00:00
Jack Jansen
4e39949d87
Initialize self._helpmenu earlier, so we can use gethelpmenu() while
...
building the user menus.
2002-08-30 23:01:28 +00:00
Jack Jansen
bdbff73feb
Fix for Jaguar: use ln for installing symlinks, install no longer works.
...
Fix for sh: use : in stead of an empty then clause in an if.
2002-08-30 15:14:02 +00:00
Michael W. Hudson
53d58bb369
Further SET_LINENO reomval fixes. See comments in patch #587933 .
...
Use a slightly different strategy to determine when not to call the line
trace function. This removes the need for the RETURN_NONE opcode, so
that's gone again. Update docs and comments to match.
Thanks to Neal and Armin!
Also add a test suite. This should have come with the original patch...
2002-08-30 13:09:51 +00:00
Jack Jansen
b05e056e9f
On Jaguar the default mode for files in the installed product is 444 (or 555)
...
in stead of 644 (755). This makes a subsequent install fail. Changed
the INSTALL_MODE_FLAG to fix this.
2002-08-30 12:56:08 +00:00
Jack Jansen
f21b7063d3
Added support for the help menu. Application.gethelpmenu() will return
...
it.
Also fixed menu IDs to be signed in do_menudispatch. this is an incompatible
change, but I don't think it'll hurt anyone.
2002-08-29 22:04:15 +00:00
Jack Jansen
983258ed7e
Revived the Carbon.Help module, but implementing the MacHelp API in stead
...
of the defunct Balloons API. Help tags are TBD, but at least this gives
us access to the help menu.
2002-08-29 21:09:00 +00:00
Neal Norwitz
d94c28e467
SF #561244 : micro optimizations, builtins cannot be NULL, so use Py_INCREF
2002-08-29 20:25:46 +00:00
Jack Jansen
afb76320ab
Don't copy the documentation when using Python.app as an applet template.
2002-08-29 20:20:24 +00:00
Barry Warsaw
35816e6745
Many hopefully benign style clean ups. Still passes the test suite of
...
course.
2002-08-29 16:24:50 +00:00
Barry Warsaw
2bdb61479d
strptime(): The code that was adding 12 to PM hours was incorrect
...
because it added it to 12 PM too. 12 PM should be hour 12 not hour
24.
Also cleaned up a minor style nit. There are more style problems in
this file that I'll clean up next (but I didn't want them to overwhelm
the substance of this fix).
2002-08-29 15:29:49 +00:00
Barry Warsaw
375e0eeacc
The test I saw failing this morning just happened to be run at 8am
...
localtime, which in -0400 is 12 noon GMT. The bug boiled down to
broken conversion of 12 PM to hour 12 for the '%I %p' format string.
Added a test for this specific condition: Strptime12AMPMTests. Fix to
_strptime.py coming momentarily.
2002-08-29 15:25:04 +00:00
Raymond Hettinger
1a8d193121
Sped _update().
...
Uses the fast update() method when a dictionary is available.
2002-08-29 15:13:50 +00:00
Guido van Rossum
fc26c0730c
Undo Barry's change. This file is not imported, it's fed as input to
...
the tokenize module by test_tokenize.py. The FutureWarnings only
appeared during installation, and I've figured out a way to suppress
those in a different way.
2002-08-29 15:10:30 +00:00
Guido van Rossum
a29eafa614
Suppress warnings when byte-compiling the installed library modules.
...
This seems the sanest thing to do.
2002-08-29 15:04:37 +00:00
Guido van Rossum
f0253f2bc5
Restore the hex/oct constant tests that Barry commented out for fear
...
of FutureWarnings. Added a comment explaining the situation.
2002-08-29 14:57:26 +00:00
Raymond Hettinger
604cd6ae79
complex() was the only numeric constructor that created a new instance
...
when given its own type as an argument.
2002-08-29 14:22:51 +00:00
Barry Warsaw
18bd11205d
Fixed three exceptions in the Plain integers test, although I'm not
...
sure these are the best fixes.
- Test maxint-1 against the negative octal constant -020000000000
- Comment out the tests for oct -1 and hex -1, since 037777777777 and
0xffffffff raise FutureWarnings now and in Python 2.4 those
constants will produce positive values, not negative values. So the
existing test seems to test something that won't be true in 2.4.
2002-08-29 13:09:47 +00:00
Barry Warsaw
c6f80fd995
The test_tokenize output has changed slightly, by the addition of some
...
trailing `L's.
2002-08-29 12:56:59 +00:00
Jack Jansen
278a3a22d7
Distutils-based script by Bill Fancher to download the Python documentation
...
HTML tarball and use it to create a documentation tree readable and
searchable with Apple Help Viewer. The documentation also shows up in
Project Builder (if you add Python.framework to your project).
2002-08-28 22:22:10 +00:00
Jack Jansen
4684a09fc5
- Install a symlink to the documentation (which lives in the framework)
...
in Python.app, and refer to it in Info.plist. This makes Apple Help
Viewer recognize the Python documentation.
- Changed the externally visible name of Python.app to "Python" (was PythonW).
2002-08-28 21:27:02 +00:00
Jack Jansen
c58eafbe3e
Distutils-based script by Bill Fancher to download the Python documentation
...
HTML tarball and use it to create a documentation tree readable and
searchable with Apple Help Viewer. The documentation also shows up in
Project Builder (if you add Python.framework to your project).
2002-08-28 21:23:53 +00:00
Jack Jansen
f90367c6d4
This file never made it to the repository, somehow.
2002-08-28 21:19:26 +00:00
Jack Jansen
5472376f0d
These were regenerated some time ago (with ascii chars only and
...
fully qualified imports) but somehow not checked in yet.
2002-08-28 21:18:37 +00:00
Jack Jansen
4f2d89f1f8
Interface to Apple Help Viewer.
2002-08-28 21:16:53 +00:00
Barry Warsaw
266e6b1f4b
Quite down some FutureWarnings.
2002-08-28 16:36:11 +00:00
Skip Montanaro
ee113f08f8
add warning about exception messages
2002-08-28 01:14:57 +00:00
Raymond Hettinger
9240be2a35
Note change in behavior from 1.5.2. The new argument to NameError is
...
an error message and not just the missing name.
Closes SF Bug 599869.
2002-08-27 23:53:23 +00:00
Barry Warsaw
1a1607546c
Whitespace normalization.
2002-08-27 22:38:50 +00:00
Barry Warsaw
48b0d36b4d
Typo
2002-08-27 22:34:44 +00:00
Peter Schneider-Kamp
4c0134248c
execfile should call PyErr_SetFromErrnoWithFilename instead of
...
simply PyErr_SetFromErrno
This closes bug 599163.
2002-08-27 16:58:00 +00:00
Fred Drake
80a04a4894
Add strong security warning about the rexec module.
...
Closes SF patch #600861 .
Minor markup changes.
2002-08-27 16:46:06 +00:00
Fred Drake
246beb2526
Don't use tempfile.mktemp(), since it produces annoying warnings, and
...
usually isn't what we want anyway.
2002-08-27 16:34:54 +00:00
Fred Drake
e20131efc3
Fix a couple of whitespace consistency nits.
2002-08-26 21:20:30 +00:00
Fred Drake
6049cb8918
Simplify, and avoid PyModule_GetDict() while we're at it.
2002-08-26 21:15:11 +00:00
Barry Warsaw
da5628f286
Fix an inaccuracy in the comment
2002-08-26 16:44:56 +00:00
Tim Peters
454602f0f7
Gave intersection_update a speed boost.
2002-08-26 00:44:07 +00:00
Tim Peters
cd06eeb20c
Gave issubet() and issuperset() major speed boosts. That's it for now!
...
Someone else may want to tackle the mutating operations similarly.
2002-08-25 20:12:19 +00:00
Tim Peters
b8940393e9
Gave __sub__/difference a factor of 2-5 speed boost.
2002-08-25 19:50:43 +00:00
Tim Peters
334b4a5c39
Gave __xor__/symmetric_difference a factor of 2-5 speed boost.
2002-08-25 19:47:54 +00:00
Tim Peters
37faed2532
Sped union by a factor of 3-4.
2002-08-25 19:21:27 +00:00