summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add toprettyxml method into minidom, closes patch #103471.Martin v. Löwis2001-02-061-14/+24
|
* A couple of changes to make this more conformant. MvL and Uche agree.Guido van Rossum2001-02-051-13/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will make it incompatible with the version found in Python 2.0. Does this need to be done to PyXML too? Changes that might break existing code are marked with (!) below. - Formatting nit: no spaces inside parentheses: foo( a ) -> foo(a). - Break long lines. - (!) Fix getAttribute() and getAttributeNS() to return "" instead of raising KeyError when the attribute is not found. - (!) Fix getAttributeNodeNS() to return None instead of raising KeyError. (Curiously, getAttributeNode() already did this.) - Added hasAttributes(), which returns true iff the node has any attributes. )This is DOM level 3.) - (!) In createDocument(), if the qualified name is not empty, actually create and insert the first element with that name (this will become doc.documentElement). MvL believes that it should be an error to specify an empty qualified name; I'm not going there today, since it would require making a matching change to pulldom. Maybe MvL will do this. - In Document.writexml(), insert an xml declaration at the top. (This doesn't include the encoding since there's no way to specify the encoding. If that's preferred, all writexml() methods should be fixed to support an optional encoding argument that they pass to each other -- and they should use it to encode all text they write, too. Later.)
* Don't get fooled by an empty prefix with a valid namespaceURI -- inGuido van Rossum2001-02-051-2/+10
| | | | | this case, the code used to generate invalid tags and attribute names with a leading colon, e.g. <:tag> or <tag :attr="foo">.
* Patch #103587: Fix typo that broke the install_data command; caught byAndrew M. Kuchling2001-02-051-1/+1
| | | | Uche Ogbuji
* Fixed UnboundLocalError for nested scopesJeremy Hylton2001-02-051-0/+1
|
* Fix test 9 (caught by ?!ng)Jeremy Hylton2001-02-052-1/+31
| | | | Add tests for unbound locals (Nick Mathewson)
* SF patch 103596 by Nick Mathewson: rause UnboundLocalError forJeremy Hylton2001-02-051-0/+16
| | | | uninitialized free variables
* Also recognize DragRef as a method-argument.Jack Jansen2001-02-052-275/+221
|
* Wrote section on nested scopes, and moved it to the frontAndrew M. Kuchling2001-02-051-153/+242
| | | | | | | Began a section on weak references Various rewrites and paragraph refills Added: non-recursive makefiles, repr() of strings now uses \n, raw socket I/O Bumped version number
* Fix binfmt_register documentation to always register the right magic.Martin v. Löwis2001-02-041-1/+4
|
* Improve diagnostic output when an external command returns a non-zero exitFred Drake2001-02-041-0/+19
| | | | | | code, showing the transcript for that command. This closes SF bug #129740.
* Another _testXXX -> _testcapiXXX renaming.Tim Peters2001-02-041-1/+1
|
* Renamed _testXXX to _testcapiXXX. Jack is my hero -- good call!Tim Peters2001-02-048-33/+50
|
* Superseded by $(srcdir)/Makefile.pre.in.Neil Schemenauer2001-02-0310-1308/+0
|
* Tweak clean targets yet again.Neil Schemenauer2001-02-031-15/+12
|
* Clarify the news item about "from M import X" if "M is not a realGuido van Rossum2001-02-031-3/+3
| | | | module" after a complaint from Tim.
* Fix markup typo in a {verbatim} environment (there should not be any!);Fred Drake2001-02-031-1/+1
| | | | caught by Eric Raymond.
* Document Node.isSameNode().Fred Drake2001-02-031-0/+7
|
* Move the whrandom section back to the documented modules section; thisFred Drake2001-02-031-1/+1
| | | | gives people a chance to see the depracation notice.
* Revise the deprecation note for the whrandom module to be correct and aFred Drake2001-02-031-2/+6
| | | | little more formal.
* Remove an now-false statement about there being only one type flagFred Drake2001-02-031-3/+1
| | | | defined.
* Accept Dialogs and Windows where Grafports are expected (such as in SetPort) ↵Jack Jansen2001-02-022-4/+16
| | | | and do a MacOSX compatible cast. Bit of a hack, but good enough for now.
* On MacOSX StackSpace() may lie because it doesn't know about the stack ↵Jack Jansen2001-02-021-2/+19
| | | | rlimit. For now we set a hard limit of 256K (default rlimit is 512K).
* This commit was manufactured by cvs2svn to create tag 'r21a2'.v2.1a2cvs2svn2001-02-021-0/+1
|
* Teach Windows build and installer about new _symtable module/DLL.Tim Peters2001-02-025-4/+130
|
* Repair legit compiler warning.Tim Peters2001-02-021-1/+1
|
* bump the magic number; the compiler has changed since 2.1a1Jeremy Hylton2001-02-021-1/+1
|
* bump to 2.1a2Jeremy Hylton2001-02-021-3/+3
|
* the usualJeremy Hylton2001-02-021-2/+2
|
* move "from Tkinter import *" to module levelJeremy Hylton2001-02-022-2/+2
|
* Fix spelling errors.Jeremy Hylton2001-02-021-7/+12
| | | | | | Add note about _symtable. Add note that 'from ... import *' restriction may go away -- and move the whole entry closer to the top, because it might bite people.
* Fix symbol table pass to generation SyntaxError exceptions thatJeremy Hylton2001-02-022-32/+47
| | | | include the filename and line number.
* fix a couple last-minute bugs in the raw socket supportJeremy Hylton2001-02-021-24/+24
|
* add compile.h and symtable.h to list of header filesJeremy Hylton2001-02-021-0/+2
|
* Added Node.isSameNode() support.Fred Drake2001-02-021-0/+7
|
* Ouch! I need a better test suite for this. ;-(Fred Drake2001-02-021-1/+0
|
* Steve Majewski's patch #103495, MatchFilename() and find_module()Barry Warsaw2001-02-021-0/+53
| | | | | patch for case-preserving HFS+ suport. Untested except to verify that it builds and doesn't break anything on Linux RH6.1.
* Add minimal interface to symtable: _symtable module.Jeremy Hylton2001-02-024-0/+82
|
* Move a bunch of definitions that were internal to compile.c toJeremy Hylton2001-02-024-116/+210
| | | | | | | | | | | | | | | | | | symtable.h, so that they can be used by external module. Improve error handling in symtable_enter_scope(), which return an error code that went unchecked by most callers. XXX The error handling in symtable code is sloppy in general. Modify symtable to record the line number that begins each scope. This can help to identify which code block is being referred to when multiple blocks are bound to the same name. Add st_scopes dict that is used to preserve scope info when PyNode_CompileSymtable() is called. Otherwise, this information is tossed as soon as it is no longer needed. Add Py_SymtableString() to pythonrun; analogous to Py_CompileString().
* Use a type flag to determine the applicability of the tp_weaklistoffsetFred Drake2001-02-022-1/+10
| | | | | field. This should avoid binary incompatibility problems with older modules that have not been recompiled.
* Undo recent exclusion of test_fork1 and test_zlib. These tests don'tJeremy Hylton2001-02-021-1/+1
| | | | | | trigger my arbitrary exlusion rule, which is: takes more than 10 seconds of wall clock time on my machine. If these tests are going to be skipped, then a boatload of slower tests should be skipped, too.
* Do not pass names of individual files to shutil.rmtree(); use os.unlink()Fred Drake2001-02-021-2/+3
| | | | for that.
* WeakDictionary.items(): Do not allow (key,ref) pairs to leak out forFred Drake2001-02-021-3/+3
| | | | dead references.
* Whitespace correction...Marc-André Lemburg2001-02-021-1/+1
|
* Added new Python C API _test module to the build mechanism on Unix.Marc-André Lemburg2001-02-022-0/+3
|
* Teach the Windows installer about the _test module.Tim Peters2001-02-021-0/+10
|
* Patch derived from Trent's 101162: a Python/C API testing framework.Tim Peters2001-02-027-2/+210
| | | | STILL NEEDS UNIX BUILD CHANGES.
* Adjustments to the text of the UnixMailbox description. AddedFred Drake2001-02-021-21/+31
| | | | | PortableUnixMailbox as a separate class as well (this also generates the right index entry).
* add info about Grant Edwards' raw packet supportJeremy Hylton2001-02-022-0/+4
|
* SF patch 101137 from Grant EdwardsJeremy Hylton2001-02-021-3/+93
| | | | | | | | Adds support for raw packets (AF_PACKET) under Linux. I haven't tested this code thoroughly; it compiles and the basic calls all work without crashing. Not sure what to actually do with raw sockets though. Not sure what other platforms this might be useful for.