• Guido van Rossum's avatar
    A couple of changes to make this more conformant. MvL and Uche agree. · 9e1fe1ec
    Guido van Rossum yazdı
    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.)
    9e1fe1ec
Adı
Son kayıt (commit)
Son güncelleme
..
compiler Loading commit data...
curses Loading commit data...
distutils Loading commit data...
encodings Loading commit data...
idlelib Loading commit data...
lib-old Loading commit data...
lib-tk Loading commit data...
plat-aix3 Loading commit data...
plat-aix4 Loading commit data...
plat-beos5 Loading commit data...
plat-freebsd2 Loading commit data...
plat-freebsd3 Loading commit data...
plat-freebsd4 Loading commit data...
plat-freebsd5 Loading commit data...
plat-generic Loading commit data...
plat-irix5 Loading commit data...
plat-irix6 Loading commit data...
plat-linux1 Loading commit data...
plat-linux2 Loading commit data...
plat-netbsd1 Loading commit data...
plat-next3 Loading commit data...
plat-sunos4 Loading commit data...
plat-sunos5 Loading commit data...
site-packages Loading commit data...
test Loading commit data...
xml Loading commit data...
BaseHTTPServer.py Loading commit data...
Bastion.py Loading commit data...
CGIHTTPServer.py Loading commit data...
ConfigParser.py Loading commit data...
Cookie.py Loading commit data...
MimeWriter.py Loading commit data...
Queue.py Loading commit data...
SimpleHTTPServer.py Loading commit data...
SocketServer.py Loading commit data...
StringIO.py Loading commit data...
UserDict.py Loading commit data...
UserList.py Loading commit data...
UserString.py Loading commit data...
aifc.py Loading commit data...
anydbm.py Loading commit data...
asynchat.py Loading commit data...
asyncore.py Loading commit data...
atexit.py Loading commit data...
audiodev.py Loading commit data...
base64.py Loading commit data...
bdb.py Loading commit data...
binhex.py Loading commit data...
bisect.py Loading commit data...
builtin.py Loading commit data...
calendar.py Loading commit data...
cgi.py Loading commit data...
chunk.py Loading commit data...
cmd.py Loading commit data...
code.py Loading commit data...
codecs.py Loading commit data...
codeop.py Loading commit data...
colorsys.py Loading commit data...
commands.py Loading commit data...
compileall.py Loading commit data...
copy.py Loading commit data...
copy_reg.py Loading commit data...
dbhash.py Loading commit data...
dircache.py Loading commit data...
dis.py Loading commit data...
doctest.py Loading commit data...
dospath.py Loading commit data...
dumbdbm.py Loading commit data...
filecmp.py Loading commit data...
fileinput.py Loading commit data...
fnmatch.py Loading commit data...
formatter.py Loading commit data...
fpformat.py Loading commit data...
ftplib.py Loading commit data...
getopt.py Loading commit data...
getpass.py Loading commit data...
gettext.py Loading commit data...
glob.py Loading commit data...
gopherlib.py Loading commit data...
gzip.py Loading commit data...
htmlentitydefs.py Loading commit data...
htmllib.py Loading commit data...
httplib.py Loading commit data...
ihooks.py Loading commit data...
imaplib.py Loading commit data...
imghdr.py Loading commit data...
imputil.py Loading commit data...
keyword.py Loading commit data...
knee.py Loading commit data...
linecache.py Loading commit data...
locale.py Loading commit data...
macpath.py Loading commit data...
macstat.py Loading commit data...
macurl2path.py Loading commit data...
mailbox.py Loading commit data...
mailcap.py Loading commit data...
mhlib.py Loading commit data...
mimetools.py Loading commit data...
mimetypes.py Loading commit data...
mimify.py Loading commit data...
multifile.py Loading commit data...
mutex.py Loading commit data...
netrc.py Loading commit data...
nntplib.py Loading commit data...
ntpath.py Loading commit data...
nturl2path.py Loading commit data...
os.py Loading commit data...
pdb.doc Loading commit data...
pdb.py Loading commit data...
persist.py Loading commit data...
pickle.py Loading commit data...
pipes.py Loading commit data...
popen2.py Loading commit data...
poplib.py Loading commit data...
posixfile.py Loading commit data...
posixpath.py Loading commit data...
pprint.py Loading commit data...
pre.py Loading commit data...
profile.doc Loading commit data...
profile.py Loading commit data...
pstats.py Loading commit data...
pty.py Loading commit data...
py_compile.py Loading commit data...
pyclbr.py Loading commit data...
quopri.py Loading commit data...
random.py Loading commit data...
re.py Loading commit data...
reconvert.py Loading commit data...
regex_syntax.py Loading commit data...
regsub.py Loading commit data...
repr.py Loading commit data...
rexec.py Loading commit data...
rfc822.py Loading commit data...
rlcompleter.py Loading commit data...
robotparser.py Loading commit data...
sched.py Loading commit data...
sgmllib.py Loading commit data...
shelve.py Loading commit data...
shlex.py Loading commit data...
shutil.py Loading commit data...
site.py Loading commit data...
smtpd.py Loading commit data...
smtplib.py Loading commit data...
sndhdr.py Loading commit data...
socket.py Loading commit data...
sre.py Loading commit data...
sre_compile.py Loading commit data...
sre_constants.py Loading commit data...
sre_parse.py Loading commit data...
stat.py Loading commit data...
statcache.py Loading commit data...
statvfs.py Loading commit data...
string.py Loading commit data...
stringold.py Loading commit data...
sunau.py Loading commit data...
sunaudio.py Loading commit data...
symbol.py Loading commit data...
tabnanny.py Loading commit data...
telnetlib.py Loading commit data...
tempfile.py Loading commit data...
threading.py Loading commit data...
toaiff.py Loading commit data...
token.py Loading commit data...
tokenize.py Loading commit data...
traceback.py Loading commit data...
tty.py Loading commit data...
types.py Loading commit data...
tzparse.py Loading commit data...
urllib.py Loading commit data...
urllib2.py Loading commit data...
urlparse.py Loading commit data...
user.py Loading commit data...
uu.py Loading commit data...
warnings.py Loading commit data...
wave.py Loading commit data...
weakref.py Loading commit data...
webbrowser.py Loading commit data...
whichdb.py Loading commit data...
whrandom.py Loading commit data...
xdrlib.py Loading commit data...
xmllib.py Loading commit data...
zipfile.py Loading commit data...