- 13 Jun, 2002 17 commits
-
-
Jeremy Hylton authored
This change is not backwards compatible. If a compiler subclass exists outside the distutils package, it may get called with the unexpected keyword arg. It's easy to extend that compiler by having it ignore the argument, and not much harder to do the right thing. If this ends up being burdensome, we can change it before 2.3 final to work harder at compatibility. Also add _setup_compile() and _get_cc_args() helper functions that factor out much of the boilerplate for each concrete compiler class.
-
Guido van Rossum authored
pyconfig.h.
-
Guido van Rossum authored
DNS, and we can't assume that.
-
Guido van Rossum authored
that retries the connect() call in timeout mode so it can be shared between connect() and connect_ex(), and needs only a single #ifdef. The test for this was doing funky stuff I don't approve of, so I removed it in favor of a simpler test. This allowed me to implement a simpler, "purer" form of the timeout retry code. Hopefully that's enough (if you want to be fancy, use non-blocking mode and decode the errors yourself, like before).
-
Jeremy Hylton authored
Remove __init__ that just called base class __init__ with same args. Fold long argument lists into fewer, shorter lines. Remove parens in tuple unpacks. Don't put multiple statements on one line with a semicolon. In find_library_file() compute the library_filename() upfront.
-
Guido van Rossum authored
-
Guido van Rossum authored
- setblocking(0) and settimeout(0) are now equivalent, and ditto for setblocking(1) and settimeout(None). - Don't raise an exception from internal_select(); let the final call report the error (this means you will get an EAGAIN error instead of an ETIMEDOUT error -- I don't care). - Move the select to inside the Py_{BEGIN,END}_ALLOW_THREADS brackets, so other theads can run (this was a bug in the original code). - Redid the retry logic in connect() and connect_ex() to avoid masking errors. This probably doesn't work for Windows yet; I'll fix that next. It may also fail on other platforms, depending on what retrying a connect does; I need help with this. - Get rid of the retry logic in accept(). I don't think it was needed at all. But I may be wrong.
-
Guido van Rossum authored
Add a sleep (yuck!) to _testRecvFrom() so the server can set up first.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
Making the world better a little bit at a time <wink>.
-
Guido van Rossum authored
-
Andrew MacIntyre authored
-
Andrew MacIntyre authored
-
Guido van Rossum authored
-
Fred Drake authored
constributed by David Abrahams. This closes SF patch #568081.
-
Guido van Rossum authored
string with a [::-1] slice.
-
Fred Drake authored
Closes SF patch #567867.
-
- 12 Jun, 2002 15 commits
-
-
Guido van Rossum authored
using "".join(). Fold a long line.
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Guido van Rossum authored
nonzero value is OK. Also fixed the error message for this and for testGetSockOpt().
-
Guido van Rossum authored
information on what went wrong.
-
Guido van Rossum authored
-
Jeremy Hylton authored
depends is a list of files that the target depends, but aren't direct sources of the target. think .h files.
-
Guido van Rossum authored
settimeout(), test settimeout(None), and the interaction between settimeout() and setblocking().
-
Guido van Rossum authored
Changed test_timeout.py to conform to the guidelines in Lib/test/README.
-
Guido van Rossum authored
['BINARY_FLOOR_DIVIDE', 'BINARY_TRUE_DIVIDE', 'INPLACE_FLOOR_DIVIDE', 'INPLACE_TRUE_DIVIDE', 'GET_ITER', 'YIELD_VALUE', 'FOR_ITER', 'CONTINUE_LOOP']
-
Guido van Rossum authored
of a new-style instance are detected by the garbage collector.
-
Guido van Rossum authored
This was a simple typo. Strange that the compiler didn't catch it! Instead of WHY_CONTINUE, two tests used CONTINUE_LOOP, which isn't a why_code at all, but an opcode; but even though 'why' is declared as an enum, comparing it to an int is apparently not even worth a warning -- not in gcc, and not in VC++. :-( Will fix in 2.2 too.
-
Kurt B. Kaiser authored
code is directed to the Shell.
-
- 11 Jun, 2002 8 commits
-
-
Guido van Rossum authored
-
Skip Montanaro authored
also call using_history() to properly initialize history variables
-
Neal Norwitz authored
since the URLopener base class does and **kwargs are used in urlopen.
-
Michael W. Hudson authored
slicelength. Include his test case.
-
Guido van Rossum authored
-
Michael W. Hudson authored
[ 400998 ] experimental support for extended slicing on lists somewhat spruced up and better tested than it was when I wrote it. Includes docs & tests. The whatsnew section needs expanding, and arrays should support extended slices -- later.
-
Martin v. Löwis authored
-
Steven M. Gava authored
slightly tweaked and modified for the idlefork config system
-