Commit Graph

1442 Commits

Author SHA1 Message Date
Andrew M. Kuchling d683504b85 Use new name for GetoptError, and pass it two arguments
Use re module instead of regex
2003-02-06 19:55:35 +00:00
Skip Montanaro da72d9376b try to avoid gross incompatibilities with older versions of Python 2003-02-03 15:29:34 +00:00
Skip Montanaro 7c1274d8ab try to avoid gross incompatibilities with earlier versions of Python 2003-02-03 15:28:23 +00:00
Skip Montanaro 9445ce57f1 note db2pickle.py and pickle2db.py 2003-02-03 15:09:32 +00:00
Skip Montanaro d96832914a dump database files to pickle format 2003-02-03 15:09:03 +00:00
Skip Montanaro 9db49c849c convert pickles generated by db2pickle.py back to database files 2003-02-03 15:08:42 +00:00
Skip Montanaro c064a1d7e3 add missing "summary" from long options list 2003-02-03 06:34:22 +00:00
Walter Dörwald 771bc377f8 Fix comment typo. 2003-02-02 23:39:45 +00:00
Jack Jansen c9713874ba Updated the doc strings to refer to PyArg_Parse and Py_BuildValue in stead
of getargs() and mkvalue().
2003-01-24 09:23:13 +00:00
Raymond Hettinger 96bf0d75e2 Kurt pointed out another method affected by the changes to pyclbr.py. 2003-01-22 13:29:00 +00:00
Jack Jansen 2cf08ab4c2 Sigh, due to sloppiness on my part bgen has become pretty mixed up wrt. tabs
and spaces. Detabbed the lot.
2003-01-19 21:53:57 +00:00
Raymond Hettinger 18acea7c8e SF bug #668906: class browser raises AttributeError
The Py2.3 updates to the pyclbr module return both Class and Function
objects.  The IDLE ClassBrowser module only knew about Class and could
not handle objects which did not define "super".

Fixed by adding a guard.
2003-01-18 22:53:36 +00:00
Martin v. Löwis 2206cd17ce Properly find and install icons even if calling setup.py from the build dir. 2003-01-16 11:03:33 +00:00
Guido van Rossum 8b7b345328 Use regular expressions for branch matching, to avoid including
changes on a sub-branch into output for a given branch.
2003-01-07 16:46:24 +00:00
Raymond Hettinger a9cfa5501f SF bug #652933 (for IdleFork): Open Module "math" Fails
When a module doesn't have a __path__ attribute, trigger a dialog box
rather than dumping a traceback to the console.
2003-01-07 09:55:03 +00:00
Guido van Rossum bf1b1fdb9e Add byext.py 2003-01-02 02:24:22 +00:00
Guido van Rossum 6a8f7b741c Silly little script to print statistics (files, lines, words) by
extension.  Could use some work, but already very useful.
2003-01-01 14:41:25 +00:00
Just van Rossum 41c554fbec moving modulefinder.py to the standard library 2002-12-31 16:27:33 +00:00
Jack Jansen 15721c5c45 Oops, old-style types don't have a tp_free slot. Call PyObject_Free
directly in that case.
2002-12-23 22:33:49 +00:00
Jack Jansen 77e8ad4684 Always use self->ob_type->tp_free when freeing an object. 2002-12-19 23:34:40 +00:00
Jack Jansen 5bb2f6497f Always output an inheritance-aware version of the xxxx_Check() macro. Also
fixed that macro to actually work:-)
2002-12-19 20:37:32 +00:00
Jack Jansen ff38505f1a Added an optional longname argument to Module, which gives the full,
externally visible name of the module. This is so that type names can be
shown as "Carbon.File.FSSpec" even though the real name of the module is
"_File".
2002-12-17 22:08:48 +00:00
Jeremy Hylton 6bf45c6752 Correct buggy module docstring.
Replace use of homebrew boolean with True/False.

Reflow lots more long lines.
2002-12-11 21:43:13 +00:00
Jeremy Hylton 89f1d6c04e Fix one bug and reformat lots of code.
The bug is a reference to co_first_lineno that should be
co_firstlineno.  The only other substantial change is to speed up
localtrace_count() by avoiding *costly* calls to inspect module.
It's trivial to get the filename and lineno directly from the frame.

Otherwise, delete commented out debug code and reflow very long lines.
2002-12-11 21:28:32 +00:00
Jack Jansen dd888a6cff Fixed typo. 2002-12-05 23:20:12 +00:00
Skip Montanaro 7bc2e1dad7 add logmerge.py (pydoc is already installed) 2002-12-05 21:12:34 +00:00
Skip Montanaro da760c488f simple setup.py to install some interesting scripts in $(prefix)/bin. 2002-12-05 02:58:36 +00:00
Skip Montanaro a5f8c42268 * when given, port should be converted to int
* when connecting, if the port is non-standard, display it as well
2002-12-05 02:43:14 +00:00
Skip Montanaro 7dfb02d09a allow optional port specified as part of the hostname, e.g.,
"www.zope.org:8021".
2002-12-05 02:37:23 +00:00
Jack Jansen 99899b92b8 Added PEP253 support. 2002-12-03 23:35:22 +00:00
Guido van Rossum a1962d6efd Get rid of 1.5.2 compatibility hack. :-) 2002-12-03 09:28:36 +00:00
Jack Jansen 27a4450239 Fixed two silly bugs in the PEP252 support code, added an assert
that basechain isn't set, and made the output a bit prettier.
2002-11-28 23:23:14 +00:00
Just van Rossum 5d0bd1ebdf refactor universal line endings detection 2002-11-26 09:53:16 +00:00
Thomas Heller 318b7b920d Polish some bits to silence pychecker. 2002-11-26 08:06:50 +00:00
Thomas Heller 8af41ceece Don't look for modules in the registry any longer.
Mark writes in private email:

  "Modules listed in the registry was a dumb idea.  This whole scheme
  can die.  AFAIK, no one in the world uses it (including win32all
  since the last build)."

(See also SF #643711)
2002-11-26 08:05:09 +00:00
Thomas Heller 919000e9ec Add a note that this file should be kept compatible with Python 1.5.2,
per PEP 291 (although there are currently string methods used).

This patch makes it compatible with 2.2, at least, by detecting
universal newline support.
2002-11-25 20:21:59 +00:00
Jack Jansen 3d654d6dff Added a class PEP252Mixin. By adding this to your ObjectDefinition you
get PEP-252 style objects in stead of old-fashioned objects.
In stead of defining a GetattrHook you declare a class variable getsetlist,
which contains tuples (name, getcode, setcode, docstring).
Only lightly tested: the code still works if you don't inherit PEP252Mixin
and the code works if you inherit it but don't define any getters
or setters. Also, this will not work together with the "poor mans inheritance"
offered by method chains, so the CF module will remain with old-style
objects until PEP253 is supported too.
2002-11-25 16:36:49 +00:00
Martin v. Löwis b5c980b802 Add unidata_version. Bump generator version number. 2002-11-25 09:13:37 +00:00
Martin v. Löwis 97225da29a Sort names independent of the Python version. Fix hex constant warning.
Include all First/Last blocks.
2002-11-24 23:05:09 +00:00
Martin v. Löwis 677bde2dd1 Patch #626485: Support Unicode normalization. 2002-11-23 22:08:15 +00:00
Martin v. Löwis dab3bc05f3 Expand negative hexadecimal constants. 2002-11-23 12:08:10 +00:00
Martin v. Löwis 6f00a7ad84 Patch #542562, file 25252: Remove changelog. 2002-11-22 09:10:33 +00:00
Martin v. Löwis 0d1fdea8ef Patch #494845: Support string concatenation, detect non-string data,
add globbing support, find modules by name instead of by file.
2002-11-22 08:36:54 +00:00
Thomas Heller c7aaf953fa Enhancement for ModuleFinder, it can now handle _xmlplus aka PyXML.
Fixes SF # 637835.
2002-11-14 18:45:11 +00:00
Guido van Rossum affa6b7bf1 Tim wins a bet. Don't use re. 2002-11-13 21:04:31 +00:00
Neal Norwitz 74416af9dc Fix SF # 464405, freeze doesn't like DOS files on Linux
Use universal newline support when opening a file for freezing.
2002-11-12 23:21:15 +00:00
Neal Norwitz 82c7231071 SF # 627900, Bytecode copy bug in freeze
Pass co_freevars and co_cellvars to new.code().
Will backport.
2002-11-12 23:09:12 +00:00
Fred Drake 0b9e3f750c Handle the Content-Type header a little more appropriately: if it
contains options, drop them to get the major/minor content type.
Modified from the supplied patch to support more whitespace variation.
Closes SF patch #613605.
2002-11-12 22:19:34 +00:00
Raymond Hettinger 1644986758 Clarify the meaning of "requires Python 1.5.2". 2002-11-08 05:49:47 +00:00
Martin v. Löwis dc46175dc3 Add --check-tkinter to setup.py. Install IDLE. Fixes #634078. 2002-11-06 21:59:33 +00:00
Guido van Rossum eb58f5d6cd Use column= rather than col=; with Tk 8.4 col= no longer works.
[SF patch 634250 -- that was an IDLEFORK patch.]
2002-11-06 19:00:30 +00:00
Martin v. Löwis 40b11b890c Support sdist. 2002-11-05 23:01:50 +00:00
Guido van Rossum 15941e6a63 Oops, committed this in the wrong place. 2002-10-28 01:07:02 +00:00
Guido van Rossum 38749b64c4 Beginnings of a spreadsheet I used as an example on Linux Lunacy II. 2002-10-27 22:48:56 +00:00
Barry Warsaw 5c458052f0 FILETYPES: Newer XFree86 rgb.txt files use the key Xorg instead of
XConsortium.  Now we can recognize these files!
2002-10-21 14:25:24 +00:00
Barry Warsaw d9e0e1f422 Some fixes based on feedback from Hans Petter Langtangen.
build(): Fix the logic here for calculating fallbacks if the dbfile
isn't parseable.

main(): Fix the semantics for -d/--database; this should override any
database value found in the .pynche file.

Update some comments, and author contact info.

Bump to v1.4

Whitespace normalization.
2002-10-21 14:23:48 +00:00
Barry Warsaw 531e3932bf Fix a typo, update (only one) style improvement, whitespace
normalization.
2002-10-21 14:20:37 +00:00
Martin v. Löwis 99ac3283e7 Verify that lower-higher case delta are 16-bit. 2002-10-18 17:34:18 +00:00
Martin v. Löwis 9def6a3a77 Update to Unicode 3.2 database. 2002-10-18 16:11:54 +00:00
Guido van Rossum bc01c3248d Added -b tag option to limit output to a specific branch only.
Use -b HEAD to limit output to the trunk (skip all branch revisions).
2002-09-29 04:37:36 +00:00
Neal Norwitz a39a445c9b Remove unnecessary imports 2002-09-12 20:36:01 +00:00
Neal Norwitz 089061f7f0 Remove unused local variables 2002-09-12 20:34:41 +00:00
Neal Norwitz a59ab05fda Remove unnecessary imports 2002-09-12 20:29:56 +00:00
Walter Dörwald ed44dbd959 Remove another mention of "import string".
The file itself still mentions Python 1.5.1,
so it might need further updates.
2002-09-12 14:40:44 +00:00
Walter Dörwald aaab30e00c Apply diff2.txt from SF patch http://www.python.org/sf/572113
(with one small bugfix in bgen/bgen/scantools.py)

This replaces string module functions with string methods
for the stuff in the Tools directory. Several uses of
string.letters etc. are still remaining.
2002-09-11 20:36:02 +00:00
Raymond Hettinger b2c729fe27 Extended IDLE's open module menu item to handle hierarchical module names.
Will look at doing something similar in import.c so that the effort won't
have to be repeated elsewhere.

Closes SF patch 600152.
2002-09-08 03:42:01 +00:00
Tim Peters 280488b9a3 Whitespace normalization. 2002-08-23 18:19:30 +00:00
Jack Jansen f34a8bced2 Moved CoreFoundation type support to bgen/macsupport. 2002-08-22 23:30:49 +00:00
Jack Jansen 44b99e0a1f iUse PyDoc_STR() around docstrings. 2002-08-16 09:07:42 +00:00
Michael W. Hudson dd32a91cc0 This is my patch
[ 587993 ] SET_LINENO killer

Remove SET_LINENO.  Tracing is now supported by inspecting co_lnotab.

Many sundry changes to document and adapt to this change.
2002-08-15 14:59:02 +00:00
Martin v. Löwis 75ea1e11dc Convert characters from the locale's encoding on output.
Reject characters outside the locale's encoding on input.
2002-08-10 12:22:12 +00:00
Guido van Rossum 7ec34b556c A tool to transform gprof(1) output into HTML, so you can click on a
function name and go to the corresponding entry.
2002-08-09 20:07:34 +00:00
Guido van Rossum 3b0a3293c3 Massive changes from SF 589982 (tempfile.py rewrite, by Zack
Weinberg).  This changes all uses of deprecated tempfile functions to
the recommended ones.
2002-08-09 16:38:32 +00:00
Jack Jansen 11845e00b2 Be a lot less verbose by default. 2002-08-05 21:15:22 +00:00
Jeremy Hylton 53d527ad18 Initial prototype of framer: a tool to build the frame for extension modules. 2002-08-05 18:29:45 +00:00
Jack Jansen ac7cb05415 Fixed to run better in unix-Python, and to cater for bgenlocations
possibly being missing.
2002-08-05 15:32:30 +00:00
Jack Jansen 6573f31874 Moved bgenlocations to the Mac/Lib directory. Not perfect, but better than
where it was: it is really a configuration file, not a normal module.

By moving it into Mac/Lib we can now also store the location of bgen
itself in there, which is needed because bgen isn't installed.
2002-08-05 14:56:04 +00:00
Martin v. Löwis eade4a1580 Patch #590913: PEP 263 support. 2002-08-05 14:55:21 +00:00
Martin v. Löwis 5428fff111 Use ascii_letters to avoid UnicodeErrors. 2002-08-05 14:53:52 +00:00
Jack Jansen 7ea8143fe5 Specify pathnames in a way that works on both OS9 and OSX.
You'll still have to manually edit it, though...
2002-08-04 21:56:12 +00:00
Jack Jansen bae7734eef Use universal newline input when scanning header files. 2002-08-04 21:55:25 +00:00
Skip Montanaro 3a48ed9481 * runctx - fix a couple typos
* globaltrace_lt - handle case where inspect.getmodulename doesn't return
  anything useful
* localtrace_trace - handle case where inspect.getframeinfo doesn't return
  any context info

I think both of the last two are caused by exec'd or eval'd code
2002-07-25 16:09:35 +00:00
Guido van Rossum f8c8cf8a9d Get rid of _expand() altogether - the match object supports m.expand(). 2002-07-24 19:13:08 +00:00
Guido van Rossum 77f6ccd1f7 The test for re.engine was misfiring because re.engine is no longer
defined and the default was "pre" instead of "sre".  Give up on 1.5.2
compatibility, hardcode the sre solution.  However, this XXX comment
still applies, AFAIK:
        # XXX This code depends on internals of the regular expression
        # engine!  There's no standard API to do a substitution when you
        # have already found the match.  One should be added.
2002-07-24 01:49:16 +00:00
Jeremy Hylton 938ace69a0 staticforward bites the dust.
The staticforward define was needed to support certain broken C
compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the
static keyword when it was used with a forward declaration of a static
initialized structure.  Standard C allows the forward declaration with
static, and we've decided to stop catering to broken C compilers.  (In
fact, we expect that the compilers are all fixed eight years later.)

I'm leaving staticforward and statichere defined in object.h as
static.  This is only for backwards compatibility with C extensions
that might still use it.

XXX I haven't updated the documentation.
2002-07-17 16:30:39 +00:00
Barry Warsaw 0756a5e97a Added the "weird" ccTLDs ac, gg, im, and je. These are not recognized
by ISO 3166 as country codes, but the are reserved by IANA
nonetheless.  The commonly used uk ccTLD is part of this group, near
as I can tell.
2002-07-15 19:53:28 +00:00
Mark Hammond 60ae701b3a Update freeze to use zlib 1.1.4.
From patch: [ 574532 ] Update freeze to use zlib 1.1.4
2002-07-03 02:40:25 +00:00
Mark Hammond 0d3b2fe094 Patch 574531/Bug 574570 - allow freeze on windows to use the _winreg
extension.
2002-06-28 01:13:02 +00:00
Fred Drake ae39ddd628 Mechanically translated string method calls to string methods.
Instead of splitting a string and looping over it to call s.split(),
use list comprehensions for readability.
2002-06-18 15:37:05 +00:00
Fred Drake ef5864ed71 SF patch #552837, submitted by Robert Pyron:
1. BUGFIX: In function makefile(), strip blanks from the nodename.
   This is necesary to match the behavior of parser.makeref() and
   parser.do_node().
2. BUGFIX fixed KeyError in end_ifset (well, I may have just made
   it go away, rather than fix it)
3. BUGFIX allow @menu and menu items inside @ifset or @ifclear
4. Support added for:
      @uref        URL reference
      @image       image file reference (see note below)
      @multitable  output an HTML table
      @vtable
5. Partial support for accents, to match MAKEINFO output
6. I added a new command-line option, '-H basename', to specify
   HTML Help output. This will cause three files to be created
   in the current directory:
      `basename`.hhp  HTML Help Workshop project file
      `basename`.hhc  Contents file for the project
      `basename`.hhk  Index file for the project
   When fed into HTML Help Workshop, the resulting file will be
   named `basename`.chm.
7. A new class, HTMLHelp, to accomplish item 6.
8. Various calls to HTMLHelp functions.
A NOTE ON IMAGES: Just as 'outputdirectory' must exist before
running this program, all referenced images must already exist
in outputdirectory.

FLD: wrapped some long lines.
2002-06-18 15:21:21 +00:00
Martin v. Löwis f90ae20354 Patch #488073: AtheOS port. 2002-06-11 06:22:31 +00:00
Thomas Heller 4f7829e185 Remove the only use of a string method.
Fixes SF 564840.
2002-06-10 20:05:48 +00:00
Guido van Rossum 2ca7862e97 Add primitive printing support for Unix and Windows. 2002-06-10 18:52:02 +00:00
Just van Rossum ec5d6b908c escape 8-bit chars when generating .py files. fixes bug #566302 2002-06-09 09:08:53 +00:00
Barry Warsaw aef8371acb Added the 7 new top level domains, and reworded the nameorgs output.
Not sure this is better in all cases.

parse(): Fixed a bug in the output; the dict is referred to in the
code as `countries' not `country'.  Also added no-case-fold for the
string "U.S." since the Virgin Islands name no longer wraps those in
parentheses.

main(): Fixed the argument parsing to agree with the docstring, i.e.
--outputdict instead of --output.

In the module docstring:

- updated my email address
- we don't need to explain about Python 1.5 regexps <wink>

We also don't need to wrap the import of re with a try/except.

Other style fixes:

- untabification
- revert back to <> style everywhere (and consistently)
2002-06-07 15:48:52 +00:00
Walter Dörwald a4c2b2470f Apply diff2.txt from SF patch http://www.python.org/sf/565471
This patch replaces string module functions with string
methods in the Tools/world/world scripts.

It also updates two outdated URLs and the countrycodes
dictionary.

It fixes a bug where result of string.find() was checked
for truth instead of compared with -1.

It also replaces <> with != in two spots.
2002-06-07 14:47:20 +00:00
Walter Dörwald 88a20baa77 Apply diff.txt from SF patch http://www.python.org/sf/561478
This uses cgi.parse_header() in Checker.checkforhtml(), so that
webchecker recognises the mime type text/html even if options
are specified.
2002-06-06 17:01:21 +00:00
Guido van Rossum 24989727b9 Use self.__class__ to instantiate a TreeNode item recursively, to
allow subclassing.
2002-05-27 13:35:05 +00:00
Raymond Hettinger 7f7d5bf438 Patch 543222. Disable script bindings in shell window. 2002-05-21 17:00:20 +00:00
Raymond Hettinger 8eaa3ad22c Patches 558535. The standard Windows binding for Edit Select All
is Control-A rather than Alt-A.
2002-05-21 12:26:59 +00:00