summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Lots of changes:Tim Peters2002-03-301-127/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | + A new scheme for determining whether an address belongs to a pymalloc arena. This should be 100% reliable. The poolp->pooladdr and poolp->magic members are gone. A new poolp->arenaindex member takes their place. Note that the pool header overhead doesn't actually shrink, though, since the header is padded to a multiple of 8 bytes. + _PyMalloc_Free and _PyMalloc_Realloc should now be safe to call for any legit address, whether obtained from a _PyMalloc function or from the system malloc/realloc. It should even be safe to call _PyMalloc_Free when *not* holding the GIL, provided that the passed-in address was obtained from system malloc/realloc. Since this is accomplished without any locks, you better believe the code is subtle. I hope it's sufficiently commented. + The above implies we don't need the new PyMalloc_{New, NewVar, Del} API anymore, and could switch back to PyObject_XXX without breaking existing code mixing PyObject_XXX with PyMem_{Del, DEL, Free, FREE}. Nothing is done here about that yet, and I'd like to see this new code exercised more first. + The small object threshhold is boosted to 256 (the max). We should play with that some more, but the old 64 was way too small for 2.3. + Getting a new arena is now done via new function new_arena(). + Removed some unused macros, and squashed out some macros that were used only once to define other macros. + Arenas are no longer linked together. A new vector of arena base addresses had to be created anyway to make address classification bulletproof. + A lot of the patch size is an illusion: given the way address classification works now, it was more convenient to switch the sense of the prime "if" tests in the realloc and free functions, so the "if" and "else" blocks got swapped. + Assorted minor code, comment and whitespace cleanup. Back to the Windows installer <wink>.
* Auxiliary files used by BuildApplet for MachoPython.Jack Jansen2002-03-293-0/+52
|
* Auxiliary files for building the IDE applet. Running the IDE throughJack Jansen2002-03-292-0/+57
| | | | BuildApplet for MachoPython now seems to do the right thing, yeah!
* Handle .icns and .plist files for applets.Jack Jansen2002-03-291-5/+23
| | | | | Also, for now (until we learn to parse .plist files) we make a special case for the IDE, setting the creator to "Pide".
* Missed one version number.Jack Jansen2002-03-291-1/+1
|
* Use the right types for a couple of fields of the type structure.Fred Drake2002-03-291-2/+2
|
* Started updating information about defining attributes on types.Fred Drake2002-03-291-7/+171
| | | | | There's still a long way to go, but we're starting to see some real content in the docs.
* First stab at an icon for the IDE.Jack Jansen2002-03-291-0/+0
|
* repair damage: canceling the "save options" dialog now works again.Just van Rossum2002-03-291-4/+3
|
* repair damage: now works again as a CFM app.Just van Rossum2002-03-291-1/+1
|
* Completely revamped newline handling. PyEdit is now newline-preservingJack Jansen2002-03-291-20/+55
| | | | | | | | | (if a single newline convention is used in the sourcefile), and the "save options" has a newline style radio button. The creator radio button also has the new choices PythonW and None. Just: just shout (and revert) if you don't agree.
* Allow file without filetype as long as they end in ".py".Jack Jansen2002-03-291-1/+11
| | | | | | Added a -D flag (can really only be specified on OSX commandline) to not revector sys.stderr, for debugging the IDE itself. Not sure whether this should stay.
* Implemented buildtools for MachoPython .app bundles. The API is compatibleJack Jansen2002-03-291-2/+150
| | | | enough that IDE and BuildApplet can create applets, yeah!
* Don't attempt to create a dummy fsspec if the user cancelled out, justJack Jansen2002-03-291-3/+6
| | | | | | | return None. For now, if the user asks for TEXT files files without type are also accepted. But it is time to phase out StandardGetFile and friends, really.
* Re-raise the Res.Error if the file doesn't exist.Jack Jansen2002-03-291-0/+2
|
* Added -Wno-long-doubleJack Jansen2002-03-291-1/+2
|
* Changed visible name (in dock, menubar) of the interpreter to PythonW.Jack Jansen2002-03-292-11/+11
| | | | Changed version numbers and copyright.
* Add missing typecast.Neil Schemenauer2002-03-291-1/+2
|
* [Patch #536769] Add -Xcompiler flag for adding arguments and switches forAndrew M. Kuchling2002-03-292-0/+3
| | | | the compiler
* Patch #527027: Allow building python as shared library.Martin v. Löwis2002-03-296-481/+599
|
* As part of fixing bug #536241, add a test case for string.zfill() with UnicodeAndrew M. Kuchling2002-03-291-1/+4
|
* [Bug #536241] string.zfill() produces mangled output for a Unicode string.Andrew M. Kuchling2002-03-291-8/+8
| | | | | | | | | | | | | | | Walter Doerwald provided a patch, which I've modified in two ways: 1) (Uncontroversial) Removed code to make module work in earlier versions of Python without the unicode() built-in 2) (Poss. controversial) Instead of making string.zfill take the repr() of non-string objects, take the str(). Should a warning be added to this branch of the code so that the automatic str() can be deprecated? 2.2.2 bugfix candidate, assuming the repr()->str() change is deemed OK.
* Add two tests for string.zfillAndrew M. Kuchling2002-03-291-0/+3
|
* Allow .pyc files as applets as well as .py files. .py files haveJack Jansen2002-03-291-4/+9
| | | | priority, for safety reasons.
* If the file has no resource fork first check to see whether it's aJack Jansen2002-03-291-5/+12
| | | | datafork-based resource file before trying to decode it as AppleSingle.
* Removed debug.Jack Jansen2002-03-291-1/+0
|
* In MachoPython print "Pythonw" in banner to distinguish from command-lineJack Jansen2002-03-291-7/+6
| | | | | python. Removed debug output.
* Added target "installunixprograms" which installs python and pythonw inJack Jansen2002-03-291-2/+22
| | | | | | /usr/local/bin (referring to the framework-based interpreter and Python.app). Added target symlinkmacsubtree to aid in debugging.
* Shell script that invokes Python.app from the command line. Called pythonwJack Jansen2002-03-291-0/+2
| | | | because of similarity to the same program on Windows.
* Remove the CACHE_HASH and INTERN_STRINGS preprocessor symbols.Tim Peters2002-03-296-102/+19
|
* Call PyObject_GC_UnTrack before putting an object on the list of trash.Neil Schemenauer2002-03-291-2/+2
|
* If the GC is enabled then don't use the ob_type pointer to create a listNeil Schemenauer2002-03-291-1/+12
| | | | of trash objects. Use the gc_prev pointer instead.
* Make _PyObject_GC_UnTrack do nothing if WITH_CYCLE_GC is not defined.Neil Schemenauer2002-03-291-0/+2
|
* News for SF #535905.Guido van Rossum2002-03-291-0/+6
|
* Mark a couple of types that had not been marked.Fred Drake2002-03-281-5/+5
|
* Added comments for more entries of the type structure in the exampleFred Drake2002-03-281-19/+19
| | | | type implementation.
* The new files included by \verbatiminput in newtypes.tex.Fred Drake2002-03-282-0/+134
|
* Move some of the longer example code to external fragments, andFred Drake2002-03-281-148/+31
| | | | | | | | | | | | | | include them using \verbatiminput. This has the advantage that pages can still break at reasonable places, and examples that go longer than a page won't get cut off. Make a few small markup adjustments for consistency. Explain that PyObject_New() is not a C function but a polymorphic beast that returns a pointer to the type that's passed as the first arg. Explain why type objects use the PyObject_VAR_HEAD.
* Fix getcomments() so that it doesn't fail with TypeErrors.Jeremy Hylton2002-03-281-3/+8
| | | | | | | | | It appears that getcomments() can get called for classes defined in C. Since these don't have source code, it can't do anything useful. A function buried many levels deep was raising a TypeError that was not caught. Who knows why this broke...
* Added index entries.Fred Drake2002-03-281-0/+4
|
* Extend \verbatiminput so that the typeset version provides the same appearanceFred Drake2002-03-281-0/+14
| | | | as a verbatim environment. (The HTML version is already fine.)
* new script - helps track down symbols exported by modules but notSkip Montanaro2002-03-281-0/+128
| | | | mentioned in the library reference manual
* test_trashcan: reword obscure code.Tim Peters2002-03-281-1/+1
| | | | Bugfix candidate.
* New test_traschcan() test in test_gc, which reliably provokes segfaultsTim Peters2002-03-281-0/+29
| | | | | | under 2.0, 2.1 and 2.2. Bugfix candidate.
* Minor wording change.Fred Drake2002-03-281-1/+1
|
* Add _Py_AS_GC macro. It will be used by the trashcan code on object.c.Neil Schemenauer2002-03-281-2/+4
|
* Add missing "void" to function.Neil Schemenauer2002-03-281-1/+1
|
* Add type cast.Neil Schemenauer2002-03-281-1/+2
|
* add comment reminding people about class hierarchy in Doc/lib/libexcs.texSkip Montanaro2002-03-281-0/+5
|
* add exception class hierarchy. This should probably be done differently,Skip Montanaro2002-03-281-0/+44
| | | | but at least the content is there.