- 03 Aug, 2002 2 commits
-
-
Tim Peters authored
-
Tim Peters authored
in the test file. I have docs for heapq.heapify ready to check in, but Jack appears to have left behind a stale lock in the Doc/lib directory.
-
- 02 Aug, 2002 38 commits
-
-
Jack Jansen authored
-
Jack Jansen authored
-
Guido van Rossum authored
-
Tim Peters authored
Added new heapify() function, which transforms an arbitrary list into a heap in linear time; that's a fundamental tool for using heaps in real life <wink>. Added heapyify() test. Added a "less naive" N-best algorithm to the test suite, and noted that this could actually go much faster (building on heapify()) if we had max-heaps instead of min-heaps (the iterative method is appropriate when all the data isn't known in advance, but when it is known in advance the tradeoffs get murkier).
-
Jack Jansen authored
-
Jack Jansen authored
etc. Still not enough, probably, but better than what we had.
-
Jack Jansen authored
-
Jack Jansen authored
surprises later (the IDE won't work without waste).
-
Guido van Rossum authored
a c-cedilla in one of the docstrings.
-
Fred Drake authored
-
Tim Peters authored
-
Fred Drake authored
-
Tim Peters authored
-
Tim Peters authored
-
Tim Peters authored
don't use division at all.
-
Fred Drake authored
-
Guido van Rossum authored
week.
-
Fred Drake authored
-
Guido van Rossum authored
week.
-
Guido van Rossum authored
-
Skip Montanaro authored
-
Skip Montanaro authored
-
Skip Montanaro authored
functions. In this case, calling dbm.open("foo", "c") actually creates a file named "foo.db".
-
Skip Montanaro authored
-
Guido van Rossum authored
-
Guido van Rossum authored
week.
-
Skip Montanaro authored
should always have it.
-
Jack Jansen authored
-
Jack Jansen authored
Cater for that by working from sys.executable.
-
Jack Jansen authored
argv emulation (i.e. if the end user drops files and folders on the applets these will show up in sys.argv) BuildApplet will add the required code to the applet bundle, in __rawmain__.pyc. This code is compiled from appletrawmain.py, it creates sys.argv, cleans up most of the mess and executes either __main__.py or __main__.pyc.
-
Jack Jansen authored
-
Jack Jansen authored
actual script to run in case we are running from an applet. If we are indeed running an applet we skip the normal option processing leaving it all to the applet code. This allows us to get use the normal python binary in the Python.app bundle, giving us all the normal command line options through PythonLauncher while still allowing Python.app to be used as the template for building applets. Consequently, pythonforbundle is gone, and Mac/Python/macmain.c isn't used on OSX anymore.
-
Jack Jansen authored
-
Jack Jansen authored
- The applet .rsrc file should be called python.rsrc, it is not based on the applet name.
-
Michael W. Hudson authored
[ 589427 ] standard include paths on command line
-
Jack Jansen authored
- "Open Document" appleevent is "odoc", not "open".
-
Jack Jansen authored
one .app nowadays) and fixed it to work.
-
Jack Jansen authored
during startup of a program. This module will replace the C code in macgetargv.c so we can get rid of the special macmain.c for OSX Python.app.
-