- 07 Oct, 2000 6 commits
-
-
Mark Hammond authored
Prevent possible buffer overflow exploits under Windows. As per (the very quick) patch Patch #101801.
-
Fredrik Lundh authored
character class. Fix provided by Andrew Kuchling. Closes bug #116251.
-
Marc-André Lemburg authored
[ Bug #116174 ] using %% in cstrings sometimes fails with unicode paramsFix for the bug reported in Bug #116174: "%% %s" % u"abc" failed due to the way string formatting delegated work to the Unicode formatting function.
-
Marc-André Lemburg authored
-
Tim Peters authored
tokenize.py has always used naive regexps for matching string literals, and that appears to trigger the sre recursion limit on Skip's platform (he has very long single-line string literals). Replaced all of tokenize.py's string regexps with the "unrolled" forms used in IDLE, where they're known to handle even absurd (multi-megabyte!) string literals without trouble. See Friedl's book for explanation (at heart, the naive regexps create a backtracking choice point for each character in the literal, while the unrolled forms create none).
-
Tim Peters authored
-
- 06 Oct, 2000 34 commits
-
-
Tim Peters authored
parsing functions in support of auto-indent weren't expecting Unicode strings, but text.get() can now return them (although it remains muddy as to exactly when or why that can happen). Fixed that with a Big Hammer.
-
Martin v. Löwis authored
-
Martin v. Löwis authored
correct order of constructor args in createAttributeNS pulldom: use symbolic names for uri and localnames correct usage of createAttribute and setAttributeNode signatures.
-
Martin v. Löwis authored
for incomplete input.
-
Martin v. Löwis authored
-
Martin v. Löwis authored
the InputSource.
-
Martin v. Löwis authored
-
Martin v. Löwis authored
callers of feed will get a SAXException. In close, feed the last chunk first before calling endDocument, so that the parser may report errors before the end of the document. Don't do anything in a nested parser. Don't call endDocument in parse; that will be called in close. Use self._source for finding the SystemID; XML_GetBase will be cleared in case of an error.
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
Fix large file support for BeOS. This closes SourceForge patch #101773. Refer to the patch discussion for information on possible alternate fixes.
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
This closes SourceForge bug #115928.
-
Fred Drake authored
not added then, and note what the change was (ncurses, change to a package).
-
Fred Drake authored
Revised the first paragraph so it doesn't sound like it was written when 7-bit strings were assumed; note that Unicode strings can be used.
-
Jeremy Hylton authored
read the header from the .au file and do a sanity check pass only the data to the audio device call flush() so that program does not exit until playback is complete call all the other methods to verify that they work minimally call setparameters with a bunch of bugs arguments linuxaudiodev.c: use explicit O_WRONLY and O_RDONLY instead of 1 and 0 add a string name to each of the entries in audio_types[] add AFMT_A_LAW to the list of known formats add x_mode attribute to lad object, stores imode from open call test ioctl return value as == -1, not < 0 in read() method, resize string before return add getptr() method, that calls does ioctl on GETIPTR or GETOPTR depending on x_mode in setparameters() method, do better error checking and raise ValueErrors; also use ioctl calls recommended by Open Sound System Programmer's Guido (www.opensound.com) use PyModule_AddXXX to define names in module
-
Fred Drake authored
"disciplines" for the __*__() methods, so they should be referred to as "methods" or "special methods", as appropriate in context.
-
Fred Drake authored
as a parameter; this was the only use of the base constructor or surgical alteration of another object's data attribute. This change simplifies the constructor requirements for subclasses. This relates to SourceForge bug #115928.
-
Jim Fulton authored
operations are defined. This will, hopefully clarify some of the logic. Added close test to raise proper error when operations are performed on closed StringIOs. Added a position argument to the truncate method. Added a size argument to readline. Added PyArg_Parse calls for methods that don't take arguments to make sure they don't take arguments.
-
Jim Fulton authored
Added missing clode to make the clode test test a close. ;)
-
Tim Peters authored
-
Martin v. Löwis authored
ImportError, and a missing driver.
-
Guido van Rossum authored
regexdemo.py is obsolete with the regex module.
-
Guido van Rossum authored
somewhat useful to learn regular expressions, and this way it'll be installed on Windows. This closes bug report 115609.
-
Guido van Rossum authored
http://sourceforge.net/bugs/?func=detailbug&bug_id=113803&group_id=5470 Add Unicode support and error handling to AsString(). Both AsString() and Merge() now return NULL and set a proper Python exception condition when an error happens; Merge() and other callers of AsString() check for errors from AsString(). Also fixed cleanup in Merge() and Tkapp_Call() return cleanup code; the fv array was not necessarily completely initialized, causing calls to ckfree() with garbage arguments! (Also reindented some lines that were longer than 80 chars and reformatted some code that used an alien coding standard.)
-
Fred Drake authored
collection.
-
Fred Drake authored
-
Fred Drake authored
New README for BeOS R5. This closes SourceForge patch #101779.
-
Fred Drake authored
Script to regenerate platform-specific modules of constants. [I moved common paths to variables for easier reading by humans. -- FLD] This closes SourceForge patch #101781.
-
Fred Drake authored
Added definition of VERSION so this works as expected.
-
Fred Drake authored
Do not assume that all platforms using a MetroWorks compiler can use POSIX threads; the assumption breaks on BeOS. This fix only helps for BeOS. This closes SourceForge patch #101772.
-
Fred Drake authored
tcp.h is not available on CygWin, so do not try to include it there. This closes SourceForge patch #101802.
-
Fred Drake authored
code, in case someone wants to use it as a keyword paramter. ZIP_DEFLATED description: Do not reveal the specific value of the constant, since code should only use the symbolic name.
-