- 11 Jan, 2005 9 commits
-
-
Raymond Hettinger authored
-
Raymond Hettinger authored
Clarified that the returned object is file-like rather than an actual file.
-
Andrew McNamara authored
when this limit is reached. Limit defaults to 128k, and is changed by module set_field_limit() method. Previously, an unmatched quote character could result in the entire file being read into the field buffer, potentially exhausting virtual memory.
-
Andrew McNamara authored
only contains instances of the dialect type, we can refer directly to the dialect instances rather than creating new ones. In other words, if the dialect comes from the registry, and we apply no further modifications, the reader/writer can use the dialect object directly.
-
Raymond Hettinger authored
-
Andrew McNamara authored
dialect type (which has a better idea of what is and isn't valid).
-
Andrew McNamara authored
was done because we were previously performing validation of the dialect from python, but this is now down within the C module. Also, the method we were using to detect classes did not work with new-style classes.
-
Andrew McNamara authored
record objects of internal dialect type, rather than instances of python objects.
-
Andrew McNamara authored
-
- 10 Jan, 2005 8 commits
-
-
Andrew McNamara authored
it for all failures, potentially masking other exceptions).
-
Tim Peters authored
-
Andrew McNamara authored
same as None.
-
Andrew McNamara authored
rather than using PyString_Check/PyUnicode_Check.
-
Walter Dörwald authored
-
Johannes Gijsbers authored
profile.help() point at the library reference instead of profile.doc.
-
Andrew McNamara authored
writer objects (other GC infrastructure already in place).
-
Andrew McNamara authored
left in stream).
-
- 09 Jan, 2005 5 commits
-
-
http://www.example.com?query=spamJohannes Gijsbers authored
a delimiter. Previously, the 'network location' (<authority> in RFC 2396) would become 'www.example.com?query=spam', while RFC 2396 does not allow a '?' in <authority>. See bug #548176 for further discussion.
-
Johannes Gijsbers authored
removing some duplication and gaining some flexibility in the process.
-
Johannes Gijsbers authored
there's no need to subclass OptionParser.
-
Johannes Gijsbers authored
* Document hasFeature(), createDocument(), CreateDocumentType(), hasAttribute(), hasAttributeNS(). * In the documentation for createDocument(), it is now stated that the Python DOM API allows implementations to forego creation of the document element child node, if no namespace and local name arguments are given. (This possibility is left open and unaddressed in the W3C spec). * Addition by me: use 'name' rather than 'attname', for consistency with the DOM specification and the Python DOM API implementation.
-
Johannes Gijsbers authored
-
- 08 Jan, 2005 11 commits
-
-
Skip Montanaro authored
-
Skip Montanaro authored
Python file/line when the current C execution frame is inside PyEval_EvalFrame. These are commented out by default because GDB sometimes crashes as a result (seems like a GDB bug). Add a pyframe command that displays the current Python stack frame. If the marked lines are uncommented, it will also cause Emacs/XEmacs to display the current file/line.
-
Johannes Gijsbers authored
properties, and custom descriptors. * removed special handling of properties * added special handling of data descriptors - All data descriptors are grouped together in a section. For each item, the attribute name and doc string, if present, is displayed. * disabled display of __slots__ attribute - since slots are descriptors, they are listed in the section described above Thanks to John Belmonte for the patch!
-
Johannes Gijsbers authored
still the same, so there should be no backwards-compatibility problems.
-
Johannes Gijsbers authored
modules, replacing with email. Thanks to Josh Hoyt for the patch!
-
Johannes Gijsbers authored
* replace deltree with shutil.rmtree() * replace mkdirs with os.makedirs() * fold touchfile into GlobTests.mktemp()
-
Johannes Gijsbers authored
`glob.glob()` currently calls itself recursively to build a list of matches of the dirname part of the pattern and then filters by the basename part. This is effectively BFS. ``glob.glob('*/*/*/*/*/foo')`` will build a huge list of all directories 5 levels deep even if only a handful of them contain a ``foo`` entry. A generator-based recusion would never have to store these list at once by implementing DFS. This patch converts the `glob` function to an `iglob` recursive generator . `glob()` now just returns ``list(iglob(pattern))``. I also cleaned up the code a bit (reduced duplicate `has_magic()` checks and created a second `glob0` helper func so that the main loop need not be duplicated). Thanks to Cherniavsky Beni for the patch!
-
Johannes Gijsbers authored
* Use os.makedirs() instead os.mkdir(). (bug #975763) * Use copystat() to copy directory bits (bug #1048878)
-
Tim Peters authored
test_threading.test_foreign_thread(): new test does a basic check that "foreign" threads can using the threading module, and that they create a _DummyThread instance in at least one use case. This isn't a very good test, since a thread created by thread.start_new_thread() isn't particularly "foreign".
-
Tim Peters authored
does what it's supposed to do.
-
Brett Cannon authored
_Thread.__init__) was never used. This is a waste since locks use OS primitives that are in limited supply. So the lock is deleted in _DummyThread.__init__ . Closes bug #1089632.
-
- 07 Jan, 2005 7 commits
-
-
Raymond Hettinger authored
-
Armin Rigo authored
bytecodes from the previously saved .pyc files. Fixed by disabling the static optimization of BINARY_DIVIDE between two constants.
-
Tim Peters authored
-
Andrew M. Kuchling authored
-
Jack Jansen authored
-
Jack Jansen authored
MacOSX: if we cannot use -undefined dynamic_lookup (such as on 10.2 or earlier) we link extension directly against the dynamic library in the framework in stead of against the framework. This will fix building extensions for 2.3 after 2.4 has been installed too.
-
Jack Jansen authored
-