summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bug #1688274: add documentation for C-level class objects.Collin Winter2007-03-301-0/+29
|
* Added the posibility to pass the timeout to FTP.connect, not only whenFacundo Batista2007-03-303-7/+40
| | | | instantiating the class. Docs and tests are updated.
* Added timout parameter to telnetlib.Telnet. Also createdFacundo Batista2007-03-294-20/+95
| | | | | test_telnetlib.py with a basic test and timeout ones. Docs are also updated.
* In Windows' time.clock(), when QueryPerformanceFrequency() fails,Georg Brandl2007-03-291-1/+2
| | | | | the C lib's clock() is used, but it must be divided by CLOCKS_PER_SEC as for the POSIX implementation (thanks to #pypy).
* These are actually methods.Georg Brandl2007-03-291-6/+6
|
* Make test_zipfile clean up its temporary files properly.Collin Winter2007-03-291-7/+12
|
* Consolidate patches #1690164, 1683397, and 1690169, all of which refactor ↵Collin Winter2007-03-285-2820/+2232
| | | | | | XML-related test suites. The patches are applied together because they use a common output/xmltests file. Thanks to Jerry Seutter for all three patches.
* Added timeout to smtplib (to SMTP and SMTP_SSL). Also createdFacundo Batista2007-03-283-27/+89
| | | | | the test_smtplib.py file, with a basic test and the timeout ones. Docs are updated too.
* Bug 1688393. Adds a control of negative values inFacundo Batista2007-03-282-2/+15
| | | | socket.recvfrom, which caused an ugly crash.
* The basic test cases of poplib.py.Facundo Batista2007-03-271-0/+71
|
* Added an optional timeout to poplib.POP3. Also created aFacundo Batista2007-03-272-17/+6
| | | | | test_poplib.py file with a basic test and the timeout ones. Docs are also updated.
* Forgot to add the file before the previous commit, here goFacundo Batista2007-03-262-25/+91
| | | | the ftplib tests.
* Some nits.Georg Brandl2007-03-263-10/+10
|
* Added an optional timeout to FTP class. Also I started a test_ftplib.pyFacundo Batista2007-03-261-1/+4
| | | | | file to test the ftp lib (right now I included a basic test, the timeout one, and nothing else).
* Markup fix.Georg Brandl2007-03-251-4/+4
|
* Markup fix.Georg Brandl2007-03-251-2/+2
|
* Closing the HTTP connection after each test, and listening more.Facundo Batista2007-03-251-1/+4
|
* Redone the tests, using the infrastructure already presentFacundo Batista2007-03-251-53/+65
| | | | for threading and socket serving.
* Change the docs to no longer claim that unittest is preferred over doctest forBrett Cannon2007-03-251-7/+7
| | | | regression tests.
* Revert accidental change.Georg Brandl2007-03-241-1/+1
|
* Remove typo accent.Georg Brandl2007-03-241-2/+2
|
* Patch #1489771: update syntax rules in Python Reference Manual.Žiga Seilnacht2007-03-245-42/+193
| | | | | | | | Python 2.5 added support for explicit relative import statements and yield expressions, which were missing in the manual. Also fix grammar productions that used the names from the Grammar file, markup that broke the generated grammar.txt, and wrap some lines that broke the pdf output. Will backport.
* Make test_relpath() pass on Windows.Collin Winter2007-03-231-9/+13
|
* Surrounded with try/finally to socket's default timeout settingFacundo Batista2007-03-232-16/+20
| | | | | | changes in the tests, so failing one test won't produce strange results in others. Also relaxed the timeout settings in the test (where actually the value didn't mean anything).
* Prevent creation (followed by a segfault) of array types when the sizeThomas Heller2007-03-231-3/+20
| | | | | | | overflows the valid Py_ssize_t range. Check return values of PyMem_Malloc. Will backport to release25-maint.
* Add note about type.__init__().Guido van Rossum2007-03-231-1/+2
|
* Added a 'create_connect()' function to socket.py, which creates aFacundo Batista2007-03-237-25/+181
| | | | | connection with an optional timeout, and modified httplib.py to use this function in HTTPConnection. Applies patch 1676823.
* Add a type.__init__() method that enforces the same signature asGuido van Rossum2007-03-232-4/+35
| | | | | | | | | type.__new__(), and then calls object.__init__(cls), just to be anal. This allows us to restore the code in string.py's _TemplateMetaclass that called super(...).__init__(name, bases, dct), which I commented out yesterday since it broke due to the stricter argument checking added to object.__init__().
* Bug #978833: Revert r50844, as it broke _socketobject.dup.Martin v. Löwis2007-03-233-5/+4
| | | | Will backport.
* Patch #1686451: Fix return type for PySequence_{Count,Index,Fast_GET_SIZE}.Martin v. Löwis2007-03-232-3/+6
| | | | Will backport.
* Add Mark Dickinson for SF # 1675423.Neal Norwitz2007-03-231-0/+1
|
* - Bug #1683368: The object.__init__() and object.__new__() methods areGuido van Rossum2007-03-233-14/+99
| | | | | | | | | | | | | now stricter in rejecting excess arguments. The only time when either allows excess arguments is when it is not overridden and the other one is. For backwards compatibility, when both are overridden, it is a deprecation warning (for now; maybe a Py3k warning later). When merging this into 3.0, the warnings should become errors. Note: without the change to string.py, lots of spurious warnings happen. What's going on there?
* Explain the purpose of the b_needsfree flag (forward ported from ↵Thomas Heller2007-03-221-0/+6
| | | | release25-maint).
* Back out "Patch #1643874: memory leak in ctypes fixed."Thomas Heller2007-03-222-23/+8
| | | | | The code in this patch leaves no way to give up the ownership of a BSTR instance.
* Bug #1685704: use -m switch in timeit docs.Georg Brandl2007-03-221-1/+1
|
* Add test and fix for fromkeys() optional argument.Raymond Hettinger2007-03-212-2/+5
|
* Bug #1675967: re patterns pickled with older Python versions canŽiga Seilnacht2007-03-213-1/+13
| | | | now be unpickled. Will backport.
* Minor clarification, saying that blocking means no timeout (from bug #882297)Facundo Batista2007-03-211-1/+1
|
* Put code examples at left margin instead of indenting themAndrew M. Kuchling2007-03-211-19/+19
|
* Fix sentence, and fix typo in exampleAndrew M. Kuchling2007-03-211-2/+3
|
* Add comments on maintenance of this fileAndrew M. Kuchling2007-03-211-0/+40
|
* Fix #1684254: split BROWSER contents with shlex to avoid displaying 'URL'.Georg Brandl2007-03-211-1/+6
|
* Patch #1684834: document some utility C API functions.Georg Brandl2007-03-211-0/+91
|
* New test for rev. 54407 which only uses directories under TESTFN.Georg Brandl2007-03-214-32/+70
|
* Patch #1682205: a TypeError while unpacking an iterable is no longerGeorg Brandl2007-03-213-6/+7
| | | | masked by a generic one with the message "unpack non-sequence".
* Remove unused file spotted by Paul HankinNeal Norwitz2007-03-212-27/+2
|
* Fix for glob.py if filesystem encoding is None.Georg Brandl2007-03-201-1/+2
|
* Extend work on rev 52962 and 53829 eliminating redundant PyObject_Hash() ↵Raymond Hettinger2007-03-204-3/+42
| | | | calls and fixing set/dict interoperability.
* Try to get test_urllib to pass on Windows by closing the file.Neal Norwitz2007-03-201-2/+4
| | | | | | | | | I'm guessing that's the problem. h.getfile() must be called *after* h.getreply() and the fp can be None. I'm not entirely convinced this is the best fix (or even correct). The buildbots will tell us if things improve or not. I don't know if this needs to be backported (assuming it actually works).
* Try to be a little more resilient to errors. This might help the testNeal Norwitz2007-03-201-2/+2
| | | | | | pass, but my guess is that it won't. I'm guessing that some other test is leaving this file open which means it can't be removed under Windows AFAIK.