summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Changes submitted by Peter Funk (some fixes/additions by B.Warsaw) toBarry Warsaw2000-02-261-40/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | make pygettext more compatible with GNU xgettext, specifically: Added -E/--escape for allowing pass-thru of iso8859-1 characters above 7 bits. Added -o/--output option for renaming the output file from messages.pot (there's overlap with -d/--default-domain, but GNU xgettext has them both). Added -p/--output-dir for specifying the output directory for messages.pot. Added -V/--version for printing the version number. Added -w/--width for specifying the output page width (this is because now pygettext, like GNU xgettext will put several locations on the same line to cut down on vertical space). Added -x/--exclude-file for specifying a list of strings that are not to be extracted from the input files. Bumped version number to 1.0 Try to import fintl and use fintl.gettext as _ if available. Fall back is to use identity definition of _(). Moved the escape creation to a function make_escapes() so that its behavior can be controlled by the -E option. __openseen(): Support the -x option. write(): Support -w option and vertical space preserving feature. main(): Support new options.
* The "Distributing Python Modules" manual; currently empty (I'll get to itGreg Ward2000-02-261-0/+12
| | | | Real Soon Now(TM).
* Try to deal with pre-1.5.2 IOError exception objects.Greg Ward2000-02-261-2/+6
|
* Unfinished, untested implementation of the lovely baroque installation schemeGreg Ward2000-02-264-183/+118
| | | | | cooked up by Fred Drake and me. Only saved for posterity (whoever posterity is), as it is about to be ditched in favour of GvR's much simpler design.
* Better fix for mpzmodule problem reported by Peter Funk: just useAndrew M. Kuchling2000-02-251-6/+2
| | | | mp_bits_per_limb with GMP 2.0
* Changes inspired by Randall Hooper to allow callbacks when anBarry Warsaw2000-02-251-4/+15
| | | | | | | | | | | | | | | OptionMenu is modified. Somewhat rewritten and elaborated by myself. class _setit: The constructor now takes an optional argument `callback' and stashes this in a private variable. If set, the __call__() method will invoke this callback after the variable's value has changed. It will pass the callback the value, followed by any args passed to __call__(). class OptionMenu: The constructor now takes keyword arguments, the only one that's legally recognized is `command', which can be set to a callback. This callback is invoked when the OptionMenu value is set. Any other keyword argument throws a TclError.
* Pat Knight:Guido van Rossum2000-02-252-61/+61
| | | | | | | | | | | | | | | | | | | | | | | | Solaris 2 has stub implementations of the POSIX thread functions such as pthread_detach in libc. This means that configure tries to use them without -lpthread, then the test of pthread_create fails and the configuration falls back to the Solaris thread library. This patch moves the test for pthread_create in -lpthread ahead of the test for pthread_detach in libc. The patch also ensures that -lpthread is at the start of the library list when linking, to pick up POSIX thread semantics for fork (see below). Justification. Use of POSIX threads on Solaris ensures that the fork() call only runs the thread that called fork() in the child. This is desirable to prevent (for example) parent server or database threads running in the child. Sun's -lthread library uses a traditional fork() which replicates all the parent's threads in the child. I find this undesirable. Digression. The configure.in seems to always test for -lthread even if a POSIX library is found. I'm not enough of a configure.in wizard to decide whether this is desirable or how to fix it. It is also irrelevant to this patch - I just spotted it while testing. End of Digression.
* Test case for fork1() behavior.Guido van Rossum2000-02-252-0/+55
| | | | Only the main thread should survive in the child after a fork().
* Delete references to _SC_AIO_LIST_MAX; it appears that that symbol wasGuido van Rossum2000-02-251-3/+0
| | | | | just a typo in some Linux header; the real symbol is _SC_AIO_LISTIO_MAX.
* Gerrit forgot to remove the "import string".Guido van Rossum2000-02-251-2/+0
|
* Gerrit Holl's patch to move attribution from the docstring to aFred Drake2000-02-251-4/+4
| | | | comment. <gerrit@nl.linux.org>
* Fix a couple broken append() calls, spotted by Tim.Guido van Rossum2000-02-251-4/+4
|
* Fix a couple dozen broken ci.append(x, y, z) calls, spotted by Tim.Guido van Rossum2000-02-251-25/+25
|
* Fix a broken r.append(name, value) call, spotted by Tim.Guido van Rossum2000-02-251-1/+1
|
* OKOK, Greg's right, I should've used the :name option in the argumentGuido van Rossum2000-02-241-9/+9
| | | | format strings.
* Peter Funk:Guido van Rossum2000-02-241-0/+5
| | | | | | | This patch allows building the Python 'mpzmodule' under SuSE Linux without having to install the source package of the GMP-libary. The gmp-mparam.h seems to be an internal header file. The patch shouldn't hurt any other platforms.
* Made all list methods use PyArg_ParseTuple(), for more accurateGuido van Rossum2000-02-241-30/+29
| | | | | | | | diagnostics. *** INCOMPATIBLE CHANGE: This changes append(), remove(), index(), and *** count() to require exactly one argument -- previously, multiple *** arguments were silently assumed to be a tuple.
* Moshe Zadka:Guido van Rossum2000-02-241-4/+77
| | | | Added docstrings to tkSimpleDialog.py
* Fix from est@hyperreal.org: missing initialize in 'find_defaults()'.Greg Ward2000-02-241-0/+1
|
* Mark Favas discovered this: getatime() accidentally returned the MTIME!Guido van Rossum2000-02-241-1/+1
| | | | This fixes PR#211.
* Piers Lauder:Guido van Rossum2000-02-241-5/+5
| | | | | | | A change in my last patch could, under certain circumstances, cause a loop if the connection to the server dropped while waiting for a command completion. I've changed the code to re-raise the error after possible debugging output.
* Add tests to exercise sequence operations (multiplication, indexing,Andrew M. Kuchling2000-02-231-0/+25
| | | | slicing) using long integers
* Allow using long integers as arguments to PyObject_GetItem(), _SetItem(),Andrew M. Kuchling2000-02-231-1/+19
| | | | | | and _DelItem(). In sequence multiplication by a long, only call PyErr_Occurred() when the value returned is -1.
* Allow using long integers as slice indexesAndrew M. Kuchling2000-02-231-2/+34
|
* dict_has_key(): Accept only one parameter. PR#210 reported byFred Drake2000-02-231-4/+4
| | | | Andreas Jung <ajung@sz-sb.de>.
* Added entry for libtabnanny.tex.Fred Drake2000-02-231-0/+1
|
* Added dependency on libtabnanny.tex.Fred Drake2000-02-231-0/+1
|
* Initial version from Peter Funk <pf@artcom-gmbh.de>, with minorFred Drake2000-02-231-0/+62
| | | | consistency changes and a note that the API may change in the future.
* Deleting tabpolice.py; it was superceded by tabnanny.py long ago.Guido van Rossum2000-02-231-104/+0
|
* Moved tabnanny.py to standard library status.Guido van Rossum2000-02-231-368/+0
|
* Added tabnanny.py, by Tim Peters, formerly from Tools/scripts, to theGuido van Rossum2000-02-232-0/+8
| | | | | | | | standard library. Added some comments: # XXX Note: this is now a standard library module. # XXX The API needs to undergo changes however; the current code is too # XXX script-like. This will be addressed later.
* This branch is for 1.6 & forward.Fred Drake2000-02-221-2/+2
|
* Added a new command: Check module (Alt-F5) It does a full syntax checkGuido van Rossum2000-02-221-9/+82
| | | | | | | | of the current module. It also runs the tabnanny to catch any inconsistent tabs. Also did a little bit of refactoring: added an errorbox() method to simplify the display of error dialogs.
* satisfy the tabnanny (thanks to MH for noticing the problem)Jeremy Hylton2000-02-214-196/+196
|
* What used to be tp_xxx4 is now tp_flags; set it to Py_TPFLAGS_DEFAULT.Fred Drake2000-02-211-2/+1
|
* Remove comment that Guido agree's doesn't make sense:Fred Drake2000-02-211-2/+0
| | | | | PyEval_EvalCode() is *not* a "backward compatible interface", it's the one to use!
* Script to help locate markup that LaTeX2HTML has a problem with.Fred Drake2000-02-211-0/+26
|
* Mark pointed out a buglet in his patch: i < _sys_nerr isn't strongGuido van Rossum2000-02-211-1/+1
| | | | | enough, it could be negative. Add i > 0 test. (Not i >= 0; zero isn't a valid error number.)
* Added FreeMem, MaxBlock and CompactMem calls. The values returned by these ↵Jack Jansen2000-02-211-0/+43
| | | | are lower bounds in the Python case (as malloc doesn't return memory to the heap) but they can be used to decide when to give low-memory warnings.
* add TODO sectionGreg Stein2000-02-191-0/+100
|
* Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr>Andrew M. Kuchling2000-02-181-6/+6
| | | | | | | The same problem (mixed mallocs) exists for the pcre stack. The buffers md->... are allocated via PyMem_RESIZE in grow_stack(), while in free_stack() they are released with free() instead of PyMem_DEL().
* Patch from Vladimir Marangozov <marangoz@python.inrialpes.fr>:Andrew M. Kuchling2000-02-181-4/+2
| | | | | | The buffers self->regex and self->regex_extra are allocated in pcre_compile() and pcre_study() via pcre_malloc, but are released via free() instead of pcre_free.
* reduce fsimp coupling: provide fs_imp param to ImportManager constructor,Greg Stein2000-02-181-48/+45
| | | | | | | add clsFilesystemImporter class attribute, alter handling of suffix list convert suffix importers to funcs rather than instances remove backwards compat code: Importer.install and 2-tuple get_code() result values
* shift demo importers to importers.py (destined for Demo/ ?)Greg Stein2000-02-181-227/+16
| | | | | | | | switch to isinstance() rather than direct type comparisons removing chaining concept update ImportManager.install() to take an optional namespace to install itself in. this will be useful for setting up rexec environments. minor comment nits
* Changed all references to command methods 'set_default_options()' andGreg Ward2000-02-181-23/+23
| | | | 'set_final_options()' to 'initialize_options()' and 'finalize_options()'.
* Renamed 'set_default_options()' to 'initialize_options()', andGreg Ward2000-02-1810-28/+28
| | | | 'set_final_options()' to 'finalize_options()'.
* Changed references to the command class 'options' attribute to 'user_options'.Greg Ward2000-02-181-26/+27
| | | | | Related docstring changes. Unrelated comment changes.
* Renamed all 'options' class attributes to 'user_options'.Greg Ward2000-02-1810-105/+115
|
* Command classes are now named identically to their commands, so reflect thisGreg Ward2000-02-181-2/+1
| | | | in 'find_command_class()' method.
* Renamed all command classes so they're exactly the same as the name of theGreg Ward2000-02-1810-10/+10
| | | | | command itself: no more of this "FooBar class for foo_bar command" silliness.