summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* FSRef and EasyDialogs pathname support was pretty much broken in ↵Jack Jansen2003-01-263-14/+68
| | | | MacPython-OS9. Fixed.
* Get rid of compiler warnings on RedhatNeal Norwitz2003-01-261-2/+2
|
* amk pointed out that syslog may use UDP or TCP sockets.Neal Norwitz2003-01-261-1/+7
| | | | Update to try UDP, if that fails, try TCP.
* Define XML_STATIC.Martin v. Löwis2003-01-261-2/+2
|
* Add _iconv_codec to Setup.dist. Use PyModule_ functions.Martin v. Löwis2003-01-262-8/+6
|
* Test that True can be copied.Martin v. Löwis2003-01-261-0/+4
|
* Patch #670715: Universal Unicode Codec for POSIX iconv.Martin v. Löwis2003-01-266-0/+690
|
* Require PyXML 0.8.2.Martin v. Löwis2003-01-261-1/+1
|
* Merge with PyXML 1.3:Martin v. Löwis2003-01-261-0/+23
| | | | | | | Add support for the DOM Level 3 (draft) DOMImplementationSource interface to the xml.dom and xml.dom.minidom modules. Note API issue: the draft spec says to return null when there is no suitable implementation, while the Python getDOMImplementation() function raises ImportError (minor).
* Merge with PyXML 1.34: Correct typo. Fixes #674700.Martin v. Löwis2003-01-261-1/+1
|
* Merge with PyXML 1.82:Martin v. Löwis2003-01-261-8/+12
| | | | | Correct various typos. Fixes #674700. Set newly created attribute via setNamedItem.
* Undo inclusion of Python.h. Remove HAVE_MEMCPY section.Martin v. Löwis2003-01-262-14/+2
| | | | Update Windows command line.
* M ScriptBinding.pyKurt B. Kaiser2003-01-263-55/+65
| | | | | | | | M config-extensions.def M help.txt 1. Run Script --> Run Module 2. Update IDLE Help file and do more work on format.
* Part 3 of Py2.3 updateRaymond Hettinger2003-01-261-49/+93
|
* SF #642974, logging SysLogHandler proto type wrongNeal Norwitz2003-01-261-0/+3
| | | | Syslog uses UDP (SOCK_DGRAM)
* SF #642974, logging SysLogHandler proto type wrongNeal Norwitz2003-01-261-1/+1
| | | | Syslog uses UDP (SOCK_DGRAM)
* Uncomment usage of expat_config.hMartin v. Löwis2003-01-251-0/+2
|
* Patch #636005: Filter unicode into unicode.Martin v. Löwis2003-01-253-0/+70
|
* Incorporate Expat 1.95.6.Martin v. Löwis2003-01-2511-3945/+5447
|
* Part II of Python2.3 updateRaymond Hettinger2003-01-251-12/+24
|
* Synchronize with PyXML's 1.33: Import missing modules.Martin v. Löwis2003-01-251-3/+6
|
* Fix minor typos.Raymond Hettinger2003-01-251-6/+6
|
* Merge PyXML 1.11-1.26:Martin v. Löwis2003-01-251-24/+732
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Re-arrange the imports into "Python normal form." Add test of the getUserData() / setUserData() methods, including the NODE_CLONED callback. Added support for renameNode() and getInterface(). Changed Node.unlink() so an unlinked node is not rendered completely unusable by setting childNodes to None. Element.removeAttributeNode() is slightly less destructive. Added test for the wholeText attribute. Added a test for Text.replaceWholeText(). Fixed to properly create Element in test of user data Rename a local variable so it makes sense when viewed as a sequence. Unlink a few documents when we're done with them. Added tests to define the behavior of the cloneNode() and importNode() mehods, especially in the "difficult" cases of document and document-type nodes. Filled in a few more of the other cloneNode() tests. NodeList.item() does not exist before Python 2.2, since it requires being able to create subtypes of list. Use the subscript syntax instead. Added a test that minidom documents can be pickled and unpickled. Closes SF bug #609641. Fill in an empty test, making sure we get the whitespace right for the data attribute of a processing instruction. Added checks for a few more invariants for processing instructions. testProcessingInstruction(): The length attribute of the NodeList interface is not implemented for Python 2.0, 2.1, so only use len() to test the length. testSchemaType(): New test, testing just the minimum of schemaType support; this is different from the test_xmlbuilder version of the test since it doesn't rely on using a specific builder, and the builders support different levels of DTD support. Add tests for the removeNamedItem() and removeNamedItemNS() methods of the NamedNodeMap instances found on Element nodes. These do not pass; the fix will be committed shortly. Added support for the DOM Level 3 (draft) Element.setIdAttribute*() methods. Do more to avoid creating new Attr nodes, so that attributes do not lose their ID-ness when set using setIdAttribute*().
* M PyShell.pyKurt B. Kaiser2003-01-253-40/+45
| | | | | | | | | | | | | | | | | | | | | | | M RemoteDebugger.py M rpc.py Fix the incorrect shell exception tracebacks generated when running under debugger control: 1. Use rpc.SocketIO.asynccall() instead of remotecall() to handle the IdbProxy.run() command. 2. Add a 'shell' attribute to RemoteDebugger.IdbProxy to allow setting of ModifiedInterpreter's active_seq attribute from RemoteDebugger code. 3. Cleanup PyShell.ModifiedInterpreter.runcode() and remove ambiguity regarding use of begin/endexecuting(). 4. In runcode() and cleanup_traceback() use 'console' instead of 'file' to denote the entity to which the exception traceback is printed. 5. Enhance cleanup_traceback() so if the traceback is pruned entirely away (the error is in IDLE internals) it will be displayed in its entirety instead. 6. ModifiedInterpreter.runcode() now prints ERROR RPC returns to both console and __stderr__. 7. Make a small tweak to the rpc.py debug messages.
* SF #638299, LaTeX documentation for logging packageNeal Norwitz2003-01-251-884/+846
| | | | | | Replace existing doc with new version from Vinay. Fixed markup and wrapped long lines from patch. Needs review.
* Part I of an update for Python 2.3.Raymond Hettinger2003-01-251-60/+67
|
* Fix markupNeal Norwitz2003-01-251-1/+1
|
* Import UserDataHandler from PyXML.Martin v. Löwis2003-01-251-0/+9
|
* Import NodeFilter from DOM2 Traversal/Range.Martin v. Löwis2003-01-251-0/+27
|
* Merge with PyXML 1.28:Martin v. Löwis2003-01-251-22/+71
| | | | | | | | | | | | | | | | | Wrap a lot of long lines. Clean up a handler for expat.error. If a lexical handler is set, make sure we call the startDTD() and endDTD(). If the lexical handler is unset (by setting it to None), remove the handlers from the underlying pyexpat parser object. Closes SF bug #485584. In namespaces mode, make sure we set up the qnames dictionary correctly for the AttributesNSImpl instance passed to the start-element-handler. Closes SF bug #563399. Support skippedEntity. Fixes #665486.
* Import from PyXML 1.10.Martin v. Löwis2003-01-251-0/+388
|
* Merge with PyXML 1.80:Martin v. Löwis2003-01-251-327/+1287
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Basic minidom changes to support the new higher-performance builder, as described: http://mail.python.org/pipermail/xml-sig/2002-February/007217.html Use True/False where appropriate. isSupported(): Implemented from DOM Level 2. Support a variety of things from the DOM Level 3 draft, integrate with the xml.dom.xmlbuilder module for the new Document and DOMImplementation methods. Support the NODE_CLONED callback for the UserDataHandler set using setUserData(). Add Entity and Notation nodes to minidom. Add __getitem__() to ReadOnlySequentialNamedNodeMap to match NamedNodeMap. TupleType was used without being defined; rename to _TupleType and define. Add magic so that instances of the NamedNodeMap (and its read-only cousin) take a bit less memory in the new-style world of Python 2.2/2.3. Now, the assignments to __slots__ actually work. ;-) Add support for the Text.wholeText attribute. Document.createCDATASection(): Do not pass unsupported arg to CDATASection constructor. Implemented Text.replaceWholeText(). Updated minidom interfaces to work better with current 4Suite XPath and Xslt. * Added childNodes to class Attr * Added localName and prefix to all Nodes * Added specified on class Attr * Changed DOMImplementation.createDocument to all creating a document with no document element and a Null doctype * Changed CharacterData__setattr__ to keep nodeValue and data in synch * fixed typo of ownerDoc in createDocumentFragment * Changed Comment to inherit from CharacterData * Allowed mutation of name on PIs * Added importNode and rewrote cloneNode so both use same code base * Changed EmptyNodeList to be a list not a tuple Use a table-driven DOMImplementation.hasFeature(). Shorten lines longer than 80 characters. Rename CloneNode to _clone_node (better naming consistency within the module). When defining localName as a property, the defproperty() call is needed for each class that defined _get_localName(), otherwise only the first version is used for Python 2.2 and newer. Node.insertBefore(): When the reference node is not found, raise the exception defined by the DOM specification. Attr._set_value(): Added setter that does the right thing. Childless.removeChild(): Raise the exception defined by the specification, even though it seem less than intuitive. _clone_node(): Access nodeType constants so we actually find them. Add support for document fragments. Node.removeChild(), .replaceChild(): Fix exception raised when a reference node is not found. CharacterData._set_data(): Update the nodeValue attribute as well as the data attribute. Entity.attributes, .childNodes: Added these attributes. Document.removeChild(): Raise the right exception when the node being removed is not a child of this node. Element.removeAttributeNode(): Raise the right exception when the node isn't present on this element. Don't unlink the node unless it is present. Added support for the following methods and accessors: Node._get_childNodes(), Attr._get_specified(), Attr._set_prefix(), NamedNodeMap.has_key(), .getNamedItem(), .getNamedItemNS(), .removeNamedItem(), .removeNamedItemNS(), ProcessingInstruction._get_data(), ._get_target(), ._set_data(), ._set_target(), CharacterData.__len__(), Document.getElementById(). Add many more of the _get_*() accessors. Convert internal helpers to use a more consistent naming convention. Remove unused definition of _nssplit(); there can be only one! Move the Identified mixin up so it can be used by one more class. Remove comment about NamedNodeMap.__getitem__(); the API won't be changing now! Way too late for that. Preliminary support for getElementById() for DOMs built with xml.dom.expatbuilder. Not necessarily very efficient, but it works, and is still fast for Document instances that do not have the ID information. DOMImplementation.createDocument(): Don't forget to add the DocumentType node to the tree. This appearantly was lost in the previous release. DocumentType.writexml(): New function. Implement the final determination on the behaviors of importNode() and cloneNode() with regard to Document and DocumentType nodes. When cloning and importing, call the UserDataHandler with the right operation, not just blindly use NODE_CLONED. parse(), parseString(): When called with parser=None, use xml.dom.expatbuilder instead of xml.dom.pulldom, to get a performance boost (the main point of expatbuilder). Fix for calling parse / parseString with a given parser instance; the else-paths were ignored when refactoring the function signatures; pychecker found that error instantly, BTW (hint, hint) Added pickle support for NamedNodeMap, ReadOnlySequentialNamedNodeMap, and ElementInfo. Closes SF bug #609641. In _clone_node for elements, fixed arguments for getAttributeNodeNS At least make sure the DOM API won't allow you to modify the child node list of an entity node (since entity ndoes are supposed to be readonly). Add support for the DOM Level 3 (draft) DOMImplementationSource interface to the xml.dom and xml.dom.minidom modules. Note API issue: the draft spec says to return null when there is no suitable implementation, while the Python getDOMImplementation() function raises ImportError (minor). Implement the DOM Level 3 Attr.isId property. Refactor the lookup of the ElementInfo objects. Implement the schemaType attribute for Element and Attr nodes. Defined by the (draft) DOM Level 3 specification. getElementById(): Support caching of IDs found. This implementation is sufficient for DOM Level 2 compliance, but additional changes will be needed to support the setIdAttribute() and setIdAttributeNS() methods in DOM Level 3. Add support for Text.isWhitespaceInElementContent (draft Level 3). NamedNodeMap.removeNamedItem(), .removeNamedItemNS(): Pass the new tests: Return the removed node, or raise NotFoundErr if there was no matching node. When changing attributes via a NamedNodeMap, update the ID-cache appropriately. Added support for the DOM Level 3 (draft) Element.setIdAttribute*() methods. setAttributeNode(): Be more careful about not calling removeAttributeNode() twice for a single node. Do more to avoid creating new Attr nodes, so that attributes do not lose their ID-ness when set using setIdAttribute*(). Work harder to avoid calls to Attr.__setattr__() and CharacterData.__setattr__(). Attr.unlink(): Implement everything directly instead of calling to the base class, which does several things that aren't needed for Attr nodes. Change some remaining assignments that caused __setattr__() to be called when it can be avoided. expatbuilder can now perform DOM construction without __setattr__() interferance in common cases. Remove unused _make_parent_nodes logic.
* Import expatbuilder, minicompat from PyXML.Martin v. Löwis2003-01-252-0/+1167
|
* Include version annotation for PyObject_Call().Fred Drake2003-01-251-0/+1
|
* Fix typo reported to python-docs.Fred Drake2003-01-251-1/+1
|
* 1. Eliminate putrequest(): only used in asynccall(), merge it there.Kurt B. Kaiser2003-01-251-19/+36
| | | | | | 2. Add additional debugging statements and enhance others. 3. Clarify comments. 4. Move SocketIO.nextseq class attribute to beginning of class.
* date and datetime comparison: when we don't know how toTim Peters2003-01-244-1/+75
| | | | | | | | | | | | | | | | | | | | | | | | compare against "the other" argument, we raise TypeError, in order to prevent comparison from falling back to the default (and worse than useless, in this case) comparison by object address. That's fine so far as it goes, but leaves no way for another date/datetime object to make itself comparable to our objects. For example, it leaves Marc-Andre no way to teach mxDateTime dates how to compare against Python dates. Discussion on Python-Dev raised a number of impractical ideas, and the simple one implemented here: when we don't know how to compare against "the other" argument, we raise TypeError *unless* the other object has a timetuple attr. In that case, we return NotImplemented instead, and Python will give the other object a shot at handling the comparison then. Note that comparisons of time and timedelta objects still suffer the original problem, though.
* Add news about getargs change.Neil Schemenauer2003-01-241-1/+4
|
* Raise a TypeError if a float is passed when an integer is specified.Neil Schemenauer2003-01-241-6/+24
| | | | | Calling PyInt_AsLong() on a float truncates it which is almost never the desired behavior. This closes SF bug #660144.
* Raise PicklingError when __reduce__() fails, andJeremy Hylton2003-01-241-32/+30
| | | | | | | | | | | add memoize() helper function to update the memo. The first element of the tuple returned by __reduce__() must be a callable. If it isn't the Unpickler will raise an error. Catch this error in the pickler and raise the error there. The memoize() helper also has a comment explaining how the memo works. So methods can't use memoize() because the write funny codes.
* rmtree(): Make implementation agree with documentation (both latex andBarry Warsaw2003-01-241-13/+13
| | | | | docstring). Even if ignore_errors was true, an exception would occur if path didn't exist.
* A very minimal start to a test of the shutil module.Barry Warsaw2003-01-241-0/+28
|
* Fred drives and fixes a formatting nit.Barry Warsaw2003-01-241-2/+2
|
* MacPython-OS9 has had an abort() function for quite a while now, so there's ↵Jack Jansen2003-01-241-3/+0
| | | | no reason to stall in an endless loop, just call abort() on a fatal error.
* MacPython-OS9 specific fix: If there are non-string items on sys.path don't ↵Jack Jansen2003-01-241-15/+18
| | | | try to intern them. This has the theoretical problem that resource filenames on sys.path cannot be unicode objects, but in practice that shouldn't matter.
* Bump the Windows build to use Sleepycat's 4.1.25.NC release (theTim Peters2003-01-244-65/+54
| | | | latest bsddb release without strong cryptography).
* Change the mode of scripts in the build/scripts* directory toGuido van Rossum2003-01-241-0/+12
| | | | executable.
* Updated the doc strings to refer to PyArg_Parse and Py_BuildValue in steadJack Jansen2003-01-241-4/+7
| | | | of getargs() and mkvalue().
* Updated the astimezone() proof to recover from all the last week'sTim Peters2003-01-241-77/+94
| | | | changes (and there were a lot of relevant changes!).
* Fix typoNeal Norwitz2003-01-231-1/+1
|