summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* An icon for .pyw files. Yes, it's lousy, I know....Jack Jansen2002-08-021-0/+0
|
* Augment credits.Guido van Rossum2002-08-021-1/+1
|
* Hmm! I thought I checked this in before! Oh well.Tim Peters2002-08-022-10/+48
| | | | | | | | | | | | 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).
* Build the IDE last, as it may fail because of waste missing.Jack Jansen2002-08-021-1/+1
|
* Added a lot more information on framework builds, the various .app's,Jack Jansen2002-08-021-2/+87
| | | | etc. Still not enough, probably, but better than what we had.
* Updated for the new path to Python.app.Jack Jansen2002-08-021-1/+1
|
* When building the IDE check that waste is available, to forestallJack Jansen2002-08-021-0/+5
| | | | surprises later (the IDE won't work without waste).
* Add a PEP-263-style encoding turd^H^H^H^Hdeclaration, because there'sGuido van Rossum2002-08-021-0/+2
| | | | a c-cedilla in one of the docstrings.
* Fix ref(), proxy() docstrings, based on comments from David Abrahams.Fred Drake2002-08-021-3/+4
|
* heappop(): Added comments; simplified and sped the code.Tim Peters2002-08-021-21/+19
|
* Minor markup changes.Fred Drake2002-08-021-3/+4
|
* heappop(): Use "while True" instead of "while 1".Tim Peters2002-08-021-1/+1
|
* check_invariant(): Use the same child->parent "formula" used by heapq.py.Tim Peters2002-08-021-2/+2
|
* Don't use true division where int division was intended. For that matter,Tim Peters2002-08-022-2/+2
| | | | don't use division at all.
* Add a comment showing how one of the macros should be used.Fred Drake2002-08-021-0/+1
|
* Adding the heap queue algorithm, per discussion in python-dev lastGuido van Rossum2002-08-021-0/+48
| | | | week.
* Add heapq module docs to the dependency information.Fred Drake2002-08-021-0/+1
|
* Adding the heap queue algorithm, per discussion in python-dev lastGuido van Rossum2002-08-021-0/+4
| | | | week.
* Add docs for heapq.py.Guido van Rossum2002-08-022-0/+165
|
* indicate that 'b' is added to the mode flag if not givenSkip Montanaro2002-08-021-2/+2
|
* add #include branch for compilation with Berkeley DBSkip Montanaro2002-08-021-0/+3
|
* catch the situation where Berkeley DB is used to emulate dbm(3) librarySkip Montanaro2002-08-021-3/+24
| | | | | functions. In this case, calling dbm.open("foo", "c") actually creates a file named "foo.db".
* regression test for the whichdb moduleSkip Montanaro2002-08-021-0/+63
|
* Add Kevin O'Connor, author of the heapq code.Guido van Rossum2002-08-022-0/+3
|
* Adding the heap queue algorithm, per discussion in python-dev lastGuido van Rossum2002-08-021-0/+176
| | | | week.
* testGetServByName shouldn't check for getservbyname - the socket moduleSkip Montanaro2002-08-021-18/+17
| | | | should always have it.
* Also create BuildApplet. It's useful enough as a standalone application.Jack Jansen2002-08-021-1/+6
|
* Hmm, in some cases we don't seem to get our scriptname in argv[0].Jack Jansen2002-08-021-2/+13
| | | | Cater for that by working from sys.executable.
* Final step in making applets first-class citizens: if the applet wantsJack Jansen2002-08-022-0/+56
| | | | | | | | | 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.
* Oops, the -psn stuff is in argv[1], of course.Jack Jansen2002-08-021-2/+2
|
* Added one call to Py_Main(), for OSX framework builds only, that will get theJack Jansen2002-08-025-45/+132
| | | | | | | | | | | | | 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.
* Got rid of a couple of OS9-isms.Jack Jansen2002-08-021-3/+8
|
* - Slightly better error message in case of syntax errors in the script.Jack Jansen2002-08-021-3/+5
| | | | | - The applet .rsrc file should be called python.rsrc, it is not based on the applet name.
* Fix forMichael W. Hudson2002-08-021-4/+5
| | | | [ 589427 ] standard include paths on command line
* - Remove -psn-xxxx argument added by the Finder.Jack Jansen2002-08-021-1/+4
| | | | - "Open Document" appleevent is "odoc", not "open".
* Replaced python.app target with osxapps (it builds more thanJack Jansen2002-08-021-3/+3
| | | | one .app nowadays) and fixed it to work.
* Construct a sys.argv from the initial AppleEvent sent by the finderJack Jansen2002-08-021-0/+111
| | | | | | 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.
* Slightly better error message in case of missing resources.Jack Jansen2002-08-021-5/+5
|
* New test %sort. This takes a sorted list, picks 1% of the list positionsTim Peters2002-08-021-1/+7
| | | | | | | | | | | | | | | | at random, and replaces the elements at those positions with new random values. I was pleasantly surprised by how fast this goes! It's hard to conceive of an algorithm that could special-case for this effectively. Plus it's exactly what happens if a burst of gamma rays corrupts your sorted database on disk <wink>. i 2**i *sort ... %sort 15 32768 0.18 ... 0.03 16 65536 0.24 ... 0.04 17 131072 0.53 ... 0.08 18 262144 1.17 ... 0.16 19 524288 2.56 ... 0.35 20 1048576 5.54 ... 0.77
* Excise DL_EXPORT/DL_IMPORT from Modules/*. Required adding a prototypeMark Hammond2002-08-0253-61/+71
| | | | | | for Py_Main(). Thanks to Kalle Svensson and Skip Montanaro for the patches.
* modify testGetServByName so it tries a few different protocols. In this daySkip Montanaro2002-08-021-5/+17
| | | | | | and age of rampant computer breakins I imagine there are plenty of systems with telnet disabled. Successful check of at least one getservbyname() call is required for success
* - Get _environ through the NSEnviron call in a MacOSX framework. This allowsJack Jansen2002-08-014-53/+39
| | | | | | | | | us to completely decouple the framework from the executable, so we can use a two-level namespace. - Do framework builds with a twolevel namespace. - Reorganized the code that creates the minimal framework in the build directory, to make it more robust against incomplete frameworks (from earlier aborted builds, or builds of previous Python versions).
* Python.app is now a hidden application, deep in the framework. It willJack Jansen2002-08-012-32/+31
| | | | | | | be invoked by PythonLauncher when needed. Also changed the names of various variables in the Makefile to match what the main Makefile has.
* Python.app no longer advertises that it can handle .py and .pyc files,Jack Jansen2002-08-013-32/+0
| | | | PythonLauncher.app has taken that responsibility over.
* Fix for SF bug 570678 (can't flush read-only file on Mac OS X).Guido van Rossum2002-08-011-1/+0
|
* Tim found that once test_longexp has run, test_sort takes very muchGuido van Rossum2002-08-011-5/+3
| | | | | | | | | | | | longer to run than normal. A profiler run showed that this was due to PyFrame_New() taking up an unreasonable amount of time. A little thinking showed that this was due to the while loop clearing the space available for the stack. The solution is to only clear the local variables (and cells and free variables), not the space available for the stack, since anything beyond the stack top is considered to be garbage anyway. Also, use memset() instead of a while loop counting backwards. This should be a time savings for normal code too! (By a probably unmeasurable amount. :-)
* Only show the UI for selecting options if the ALT key was depressed whileJack Jansen2002-08-011-18/+7
| | | | dragging or double-clicking the script.
* SF patch 588728 (Nathan Srebro).Guido van Rossum2002-08-013-4/+30
| | | | | | | | The __delete__ method wrapper for descriptors was not supported (I added a test, too.) 2.2 bugfix candidate.
* Added new footnote about list.sort() stability. Repaired footnote aboutTim Peters2002-08-011-4/+12
| | | | | | | | | | using sort() with comparison functions (it made reference to the non- existent "builtin-in function sort()"). BTW, I changed list.sort's docstring to contain the word "stable" -- the easiest way to tell whether a particular Python version's sort *is* stable is to look for "stable" in the docstring. I'm not sure whether to advertise this <wink>.
* A blurb about the sort implementation.Tim Peters2002-08-011-4/+16
|