summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Various tweaks to forestall compiler warnings.Jack Jansen2002-12-232-16/+30
|
* Oops, old-style types don't have a tp_free slot. Call PyObject_FreeJack Jansen2002-12-231-2/+6
| | | | directly in that case.
* Brought the strftime explanation into synch with the plain-text sandboxTim Peters2002-12-231-45/+56
| | | | | docs, and moved its section to the end (before the "C API" section, which latter doesn't really belong in the Library manual).
* Squashed compiler warnings by adding casts, making sure prototypes are inJack Jansen2002-12-234-3/+7
| | | | scope and looking at types.
* Add in the datetime docs now that they pass LaTeX. Still ugly, but that canFred Drake2002-12-232-0/+3
| | | | be fixed.
* Lots of markup changes. This is still pretty sad, but passes LaTeXFred Drake2002-12-231-483/+558
| | | | and is mostly readable.
* Move the examples of concrete tzinfo classes to a separate file, so theFred Drake2002-12-231-0/+51
| | | | verbatim environment does not bollux page breaking.
* Make this script execute using pythonwTony Lownds2002-12-231-0/+1
|
* Revert to revision 1.3; Mac OS X has a platform specific startup script, ↵Tony Lownds2002-12-231-15/+2
| | | | macosx_main.py
* Move boolcheck to PyShellTony Lownds2002-12-232-7/+4
|
* Added docs for (draft) pkgutil module.Fred Drake2002-12-233-0/+52
|
* Oops. Roll back that last change. It wasn't ready for release. :-(Guido van Rossum2002-12-232-100/+30
|
* Don't rebind True and False.Tim Peters2002-12-231-5/+5
|
* Add warning for assignment to None, True and False. This is patchGuido van Rossum2002-12-232-30/+100
| | | | 549213 by Jeremy (checking in for him since he's away and busy).
* Last week we discussed adding this module to the standard library.Guido van Rossum2002-12-231-0/+78
| | | | | | Here's a draft. I have no immediate use for it, but I'd like this to be available for experimentation. I may withdraw it or change it radically up to and including the release of Python 2.3b1.
* call_utc_tzinfo_method(): Got rid of the label and the gotos.Tim Peters2002-12-231-7/+2
|
* Bump version numberAndrew M. Kuchling2002-12-231-1/+1
|
* Got rid of Mac/Relnotes, and started on mac-specific release notes in NEWS.Jack Jansen2002-12-232-77/+53
|
* Alt-H was conflicting with the Help menu on Windows.Kurt B. Kaiser2002-12-231-1/+1
| | | | Let's try Alt-2....
* M MANIFEST.inKurt B. Kaiser2002-12-234-52/+45
| | | | | | | | | | | | | | | M PyShell.py M idlever.py M setup.py 1. Update MANIFEST.in to include all non-pure Python files 2. PyShell and idlever reflect Rev 0.9a0 3. setup.py modified to install IDLE as a collection of modules with a .pth file living at the idlelib level in site-packages. This was done to make it easier to run from the source directory prior to installing IDLE. This approach may change back to the package technique depending on what happens with the Mac installation development.
* I give up: unless I write my own strftime by hand, datetime just can'tTim Peters2002-12-222-0/+31
| | | | | | be trusted with years before 1900, so now we raise ValueError if a date or datetime or datetimetz .strftime() method is called with a year before 1900.
* Python's strftime implementation does strange things with the year,Tim Peters2002-12-221-1/+5
| | | | | | | | | | such that the datetime tests failed if the envar PYTHON2K was set. This is an utter mess, and the datetime module's strftime functions inherit it. I suspect that, regardless of the PYTHON2K setting, and regardless of platform limitations, the datetime strftime wrappers will end up delivering nonsense results (or bogus exceptions) for any year before 1900. I should probably just refuse to accept years earlier than that -- else we'll have to implement strftime() by hand.
* classify_object(): Renamed more meaningfully, to classify_utcoffset().Tim Peters2002-12-221-20/+17
| | | | | Also changed logic so that instances of user-defined subclasses of date, time, and datetime are called OFFSET_NAIVE instead of OFFSET_UNKNOWN.
* Implemented a Wiki suggestion:Tim Peters2002-12-222-147/+241
| | | | | | | | | | | | {timetz,datetimetz}.{utcoffset,dst}() now return a timedelta (or None) instead of an int (or None). tzinfo.{utcoffset,dst)() can now return a timedelta (or an int, or None). Curiously, this was much easier to do in the C implementation than in the Python implementation (which lives in the Zope3 code tree) -- the C code already had lots of hair to extract C ints from offset objects, and used C ints internally.
* Add configuration for packaging.Kurt B. Kaiser2002-12-222-0/+7
|
* When IDLE is installed and run from a startup script, the script'sKurt B. Kaiser2002-12-211-0/+5
| | | | | | | | directory becomes sys.path[0]. What is wanted is the directory from which IDLE was called. Insert the current working directory in the path if it isn't there already.
* M PyShell.pyKurt B. Kaiser2002-12-213-23/+24
| | | | | | | | | | | | | M idle M setup.py To be able to run from the source directory or from an installed version of IDLE, and also to allow the subprocess to find run(), Python needs to have the idlelib package on its path. 1. Modify setup.py to supply a .pth file living at same level as idlelib 2. Move boolcheck to PyShell.py 3. Remove boolcheck and path setting code from the "idle" script
* Use wcscoll for _locale.strcoll if available.Martin v. Löwis2002-12-215-8/+92
|
* Added test to ensure that non-string result from dst() raises TypeError.Tim Peters2002-12-211-0/+6
|
* Changes sufficient so that pickles written by the Python implementationTim Peters2002-12-211-9/+15
| | | | can be read by the C implementation. I don't really understand this.
* Update the setup file:Kurt B. Kaiser2002-12-201-34/+42
| | | | | | | | | 1. Make it easier to change the package and script installation names. 2. Update the text files transferred to include the .def and new .txt files. 3. Update the description and long description, change email to python-dev, update the url to point at sourceforge. 4. Rename the build and install classes for clarity.
* Fix an error message in the _winreg module. The error message referredThomas Heller2002-12-201-1/+1
| | | | | | | to a constant in the 'win32con' module, but this constant is also defined in the _winreg module itself. Bugfix candidate.
* Remove debugging statement checked in by accident, ah, carelessness.Kurt B. Kaiser2002-12-201-1/+0
|
* "'foo' in str" not implemented in Python 2.2, only single character lookupKurt B. Kaiser2002-12-201-1/+2
|
* Fixed longstanding bug in the description of strftime's %W code.Tim Peters2002-12-201-1/+1
|
* *** empty log message ***Tony Lownds2002-12-201-1/+1
|
* Update way a subprocess is launched for Mac OS X.Tony Lownds2002-12-205-16/+107
| | | | | | | | | | Another applet mechanism has been developed for Python on Mac OS X and trying to use the -c "__import__('run').main()" trick is just not working. macosx_main.py is a new file which should be used as the startup file for Mac OS X applet bundles. This startup file understands a -p option, which when seen will start run.main(). When running as an applet, this seems like the best approach.
* Fix what I believe is a bug: when removing all previous handlers,Guido van Rossum2002-12-201-2/+2
| | | | should copy the handlers list because it's being modified by the loop.
* format_utcoffset(): The natural type of the buflen arg is size_t, soTim Peters2002-12-202-19/+24
| | | | | | | | | | used that. wrap_strftime(): Removed the most irritating uses of buf. TestDate.test_ordinal_conversions(): The C implementation is fast enough that we can afford to check the endpoints of every year. Also added tm_yday tests at the endpoints.
* Panel Bar on the Bottom is Probably More CommonKurt B. Kaiser2002-12-201-2/+4
|
* Updated.Kurt B. Kaiser2002-12-201-11/+24
|
* Always use self->ob_type->tp_free when freeing an object.Jack Jansen2002-12-191-1/+1
|
* The extension module macfs has been replaced by a pure Python version.Jack Jansen2002-12-192-1198/+0
|
* Added the last missing bits of functionality, and fixed a nasty bug where weJack Jansen2002-12-192-129/+385
| | | | could overwrite memory.
* A replacement for the macfs extension module, implemented with normalJack Jansen2002-12-191-20/+26
| | | | | | (generated) Carbon module functionality. Not 100% complete yet, but at least the IDE doesn't crash on startup.
* Gone: the constants have been moved to macfs.py (which, upon import, alsoJack Jansen2002-12-191-106/+0
| | | | poses as MACFS for backward compatibility).
* Regenerated with inheritance-aware xxxx_Check() macros.Jack Jansen2002-12-1922-50/+50
|
* Always output an inheritance-aware version of the xxxx_Check() macro. AlsoJack Jansen2002-12-191-5/+1
| | | | fixed that macro to actually work:-)
* Fix if-then-else-fi structure.Martin v. Löwis2002-12-192-3/+5
|
* Fix bug introduced by SF patch #643835, Set Next Statement for Python debuggersNeal Norwitz2002-12-191-4/+12
| | | | | | blockstack_top could be 0 when blockstack[blockstack_top-1] was referenced (ie blockstack[-1]) which crashed on hpux. Patch & fix by Richie Hindle