- 14 Jul, 2004 2 commits
-
-
Guido van Rossum authored
the documented behavior: the function passed to the onerror() handler can now also be os.listdir. [I could've sworn I checked this in, but apparently I didn't, or it got lost???]
-
Brett Cannon authored
put everything in the tuple in caps to use str.upper() instead of str.lower().
-
- 13 Jul, 2004 6 commits
-
-
Fred Drake authored
they are used
-
Tim Peters authored
expected to write their own. A NULL "object" must not be passed to the visit callback. A non-zero return from a visit proc isn't necessarily an error return (and it doesn't matter to the tp_traverse code *what* it might signify, their only job is to return it).
-
Fred Drake authored
-
Andrew M. Kuchling authored
-
Brett Cannon authored
module that is removed for testing "import" lines. Originally deleted the entry from sys.modules and then just let other code that needed it to import it again. Problem with this solution is that it lead to code that had already imported the module in question to have their own reference to a new copy of the module in question that new code couldn't reach. This lead to a failure in test_strptime since it monkey-patched the 'time' module it had a reference to while _strptime had its own reference to another copy of 'time' from being imported by test___all__ that it was using for a calculation. Also moved the testing code out of the PthFile class and into the actual test class. This was to stop using 'assert' which is useless with a -O execution.
-
Brett Cannon authored
URLs will seemingly succeed to read a URL that points to a file whose permissions you do not have to read. Backport candidate once everyone agrees with the wording.
-
- 12 Jul, 2004 17 commits
-
-
Nicholas Bastin authored
collate, so setting it back to the function name
-
Barry Warsaw authored
-
Brett Cannon authored
output more telling details when there is a failure.
-
Vinay Sajip authored
-
Nicholas Bastin authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Michael W. Hudson authored
[ 988698 ] compiler.transformer fix for (a, b) = 1, 2 fixing bug [ 988613 ] compiler.transformer and tuple unpacking
-
Raymond Hettinger authored
-
Andrew MacIntyre authored
a non-standard protocol and on a lower port than the tcp/udp entries, which breaks the assumption that there will only be one service by a given name on a given port when no protocol is specified. Previous versions of this code have had other problems as a result of different service definitions amongst common platforms. As this platform has an extra, unexpected, service entry, I've special cased the platform rather than re-order the list of services checked to highlight the pitfall.
-
Anthony Baxter authored
-
Anthony Baxter authored
-
Vinay Sajip authored
Removed debugging print statements from TimedRotatingFileHandler, and sorted list returned by glob.glob() (SF #987166)
-
Anthony Baxter authored
-
Tim Peters authored
-
Tim Peters authored
I don't agree it had a bug (see the report), so this is *not* a candidate for backporting, but the docs were confusing and the Queue implementation was old enough to vote. Rewrote put/put_nowait/get/get_nowait from scratch, to use a pair of Conditions (not_full and not_empty), sharing a common mutex. The code is 1/4 the size now, and 6.25x easier to understand. For blocking with timeout, we also get to reuse (indirectly) the tedious timeout code from threading.Condition. The Full and Empty exceptions raised by non-blocking calls are now easy (instead of nearly impossible) to explain truthfully: Full is raised if and only if the Queue truly is full when the non-blocking put call checks the queue size, and similarly for Empty versus non-blocking get. What I don't know is whether the new implementation is slower (or faster) than the old one. I don't really care. Anyone who cares a lot is encouraged to check that.
-
- 11 Jul, 2004 10 commits
-
-
Tim Peters authored
Anthony Tuininga. This is a derived patch, taking the opportunity to add some organization to the now-large pile of datetime-related macros, and to factor out tedious repeated text. Also improved some clumsy wording in NEWS.
-
Brett Cannon authored
-
Kurt B. Kaiser authored
Modified Files: urllib2.py test/test_urllib2.py
-
Kurt B. Kaiser authored
-
Fred Drake authored
Closes SF bug #450803.
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Kurt B. Kaiser authored
-
Kurt B. Kaiser authored
Patch by John J Lee Reviewed by Jeff Epler / KBK Doc built OK. urlopen() may return None if no handler handles the request. Also clarify what install_opener does. M liburllib2.tex
-
- 10 Jul, 2004 5 commits
-
-
Brett Cannon authored
that behaves as if both lists has an empty string in each of them. Closes bug #979794 (and duplicate bug #980117).
-
Andrew M. Kuchling authored
-
Brett Cannon authored
Closes bug #980938.
-
Brett Cannon authored
-
Brett Cannon authored
the loop starts. Closes bug #930024. Thanks AM Kuchling.
-