summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix for VS 2008Christian Heimes2007-11-151-0/+6
| | | | Although WS2_32.dll doesn't have inet_pton the definition conflicts with ws2tcpip.h.
* Correction for issue1134: all source files with a coding spec, except latin-1Amaury Forgeot d'Arc2007-11-152-15/+50
| | | | | and utf-8, crashed when parsing a multiline string, or a line longer that 512 columns.
* add the certificate for the Python SVN repository for testing SSLBill Janssen2007-11-151-0/+31
|
* get SSL support to work againBill Janssen2007-11-153-570/+536
|
* Attempt to manually add _ssl to the PCBuild8 solution file.Amaury Forgeot d'Arc2007-11-151-0/+21
| | | | Seems to start compiling.
* Found another memory leak in longrangeiter. And redo the previous correctionAmaury Forgeot d'Arc2007-11-152-4/+2
| | | | | | | | | | | | | | | | without calling PyType_Ready(). Question 1: Should the interpreter register all types with PyType_Ready()? Many types seem to avoid it. Question 2: To reproduce the problem, run the following code: def f(): while True: for a in iter(range(0,1,10**20)): pass f() And watch the memory used by the process. How do we test this in a unittest?
* Replace PyObject_Unicode with PyObject_Str everywhere, and remove theThomas Heller2007-11-1513-26/+25
| | | | #define for PyObject_Unicode in object.h.
* Fix two compiler warnings on Win64.Thomas Heller2007-11-152-2/+2
|
* In anticipation of the upcoming ssl patch I've added _ssl to PCbuild8. It's ↵Christian Heimes2007-11-153-0/+844
| | | | based on a copy of _socket.vcproj. My German version of VS 2005 alters almost every line of pcbuild.sln. Could somebody else please add _ssl.vcproj to the solution?
* Patch 1144 by David Binger, fix for parser module. With unittest.Guido van Rossum2007-11-152-12/+13
| | | | (I also cleared out all trailing whitespace in the C file.)
* Correct a memory leak: the range() object was not properly freed.Amaury Forgeot d'Arc2007-11-152-0/+4
|
* On Win64, linking the python dll currently fails with 'unresolvedThomas Heller2007-11-151-0/+2
| | | | | | | | | | external symbol PyObject_Unicode'. Building _ssl than hangs the build server because starting python.exe displayes a message box that 'Python30.dll' cannot be found. Temporary (?) solution: Look for existance of python30.dll and fail the _ssl build when it is missing.
* Added some additional checks for sys.std?? is None, see #1440Christian Heimes2007-11-157-12/+17
|
* The peeping and bawling of the builtin speaker is giving my poor cat the creeps.Christian Heimes2007-11-151-0/+1
|
* Patch 1439 by Bill Janssen. I think this will work.Guido van Rossum2007-11-141-85/+21
| | | | | | | Tested on Windows by Christian Heimes. I changed the code slightly, renaming decref_socketios() to _decref_socketios(), and moving it closer to the close() method that it calls. Hopefully Bill can now submit his SSL port to 3.0.
* Fix for bug #1442 pythonstartup addition of minor error checkingChristian Heimes2007-11-141-0/+10
| | | | Python failed to report an error when it wasn't able to open the PYTHONSTARTUP file.
* Moved the initalization of the exception before the initialization of sys.Christian Heimes2007-11-141-3/+3
| | | | On Windows _PySys_Init() could raise an uninitialized exception which leads to a seg fault.
* Paths and file names from the fs should always be decoded with ↵Christian Heimes2007-11-141-3/+4
| | | | PyUnicode_DecodeFSDefault and not PyUnicode_FromString
* Another #1415 fix for Windows GUI appsChristian Heimes2007-11-131-2/+6
| | | | print() mustn't raise an exception when sys.stdout is None.
* Fixed space -> tabChristian Heimes2007-11-131-3/+3
|
* Fix for #1415 pythonw.exe fails because std streams a missingChristian Heimes2007-11-134-13/+63
| | | | | | After a long discussion about the problem with Windows GUI apps Guido decided that sys.stdin, stdout and stderr should be None when the C runtime library returns invalid file descriptors for the standard streams. So far the only known cases are Windows GUI apps and scripts started with pythonw on Windows. The OS restrictions are tight enough to catch the problem on other OSes.
* Correction for issue1265 (pdb bug with "with" statement).Amaury Forgeot d'Arc2007-11-132-9/+59
| | | | | | | | | | | | | | | | | | | | When an unfinished generator-iterator is garbage collected, PyEval_EvalFrameEx is called with a GeneratorExit exception set. This leads to funny results if the sys.settrace function itself makes use of generators. A visible effect is that the settrace function is reset to None. Another is that the eventual "finally" block of the generator is not called. It is necessary to save/restore the exception around the call to the trace function. This happens a lot with py3k: isinstance() of an ABCMeta instance runs def __instancecheck__(cls, instance): """Override for isinstance(instance, cls).""" return any(cls.__subclasscheck__(c) for c in {instance.__class__, type(instance)}) which lets an opened generator expression each time it returns True. Seems a backport candidate, even if the case is less frequent in 2.5.
* Add -i option. Don't exit when the command fails. Redirect stderr to stdout.Guido van Rossum2007-11-121-12/+34
|
* Another fix for #1414Christian Heimes2007-11-122-2/+5
|
* Fix for refleak tests through regrtest.py -R:: bug #1414Christian Heimes2007-11-123-38/+42
| | | | The pre-commit hook doesn't allow a trailing newline
* Patch 1420 by Ron Adam.Guido van Rossum2007-11-124-49/+58
| | | | | This adds support for bytes literals (b'...') to tokenize.py, and removes support for unicode literals (u'...').
* Let's do as Guido says and return None instead of -1Christian Heimes2007-11-121-3/+2
|
* Stop Python code from instantiating a new stdprinter with sys.stderr.__class__()Christian Heimes2007-11-121-11/+90
| | | | Added some more methods and attributes to stdprinter to ease up debugging #1415 on Windows. It also makes the object more file like. Now it can be used as a working replacement for an io instance.
* Merged revisions 58939-58946 via svnmerge fromChristian Heimes2007-11-124-38/+46
| | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r58940 | martin.v.loewis | 2007-11-12 05:53:02 +0100 (Mon, 12 Nov 2007) | 3 lines Only set rl_completion_display_matches_hook if there is a Python hook function. Fixes #1425. ........ r58941 | martin.v.loewis | 2007-11-12 06:14:05 +0100 (Mon, 12 Nov 2007) | 2 lines Patch #1418: Make the AC_REPLACE_FUNCS object files actually work. ........ r58942 | walter.doerwald | 2007-11-12 11:01:33 +0100 (Mon, 12 Nov 2007) | 2 lines Fix TextCalendar.prweek(). This closes issue #1427. ........
* Merged revisions 58930-58938 via svnmerge fromChristian Heimes2007-11-124-16/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r58931 | vinay.sajip | 2007-11-11 15:27:30 +0100 (Sun, 11 Nov 2007) | 1 line Fixed a bug reported (in private email, by Robert Crida) in logging configuration whereby child loggers of a logger named in a configuration file, which are not themselves named in the configuration, are disabled when the configuration is applied. ........ r58932 | georg.brandl | 2007-11-11 16:16:16 +0100 (Sun, 11 Nov 2007) | 2 lines Remove duplication of "this". ........ r58935 | christian.heimes | 2007-11-12 02:15:40 +0100 (Mon, 12 Nov 2007) | 2 lines Added new decorator syntax to property.__doc__ Guido prefers _x over __x. ........ r58936 | christian.heimes | 2007-11-12 02:20:56 +0100 (Mon, 12 Nov 2007) | 2 lines Fix for #1427: Error in standard module calendar the prweek() method is still broken and I can't figure out how it suppose to work. ........ r58938 | andrew.kuchling | 2007-11-12 02:25:21 +0100 (Mon, 12 Nov 2007) | 1 line Re-word sentence ........
* Minimal change that disables (AFAICT) the interpolation of \u and \U insideGuido van Rossum2007-11-122-8/+160
| | | | | | raw string literals. I added a whole bunch of tests but am still not sure I am testing all paths through the code. I really think the code could be simplified quite a bit.
* Fixed some of the bugs in the readline module. #1425 is still open and ↵Christian Heimes2007-11-111-14/+19
| | | | several methods don't do enough error checks.
* Merged revisions 58886-58929 via svnmerge fromGuido van Rossum2007-11-1016-39/+349
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r58892 | guido.van.rossum | 2007-11-06 15:32:56 -0800 (Tue, 06 Nov 2007) | 2 lines Add missing "return NULL" in overflow check in PyObject_Repr(). ........ r58893 | raymond.hettinger | 2007-11-06 17:13:09 -0800 (Tue, 06 Nov 2007) | 1 line Fix marshal's incorrect handling of subclasses of builtin types (backport candidate). ........ r58895 | raymond.hettinger | 2007-11-06 18:26:17 -0800 (Tue, 06 Nov 2007) | 1 line Optimize dict.fromkeys() with dict inputs. Useful for resetting bag/muliset counts for example. ........ r58896 | raymond.hettinger | 2007-11-06 18:45:46 -0800 (Tue, 06 Nov 2007) | 1 line Add build option for faster loop execution. ........ r58900 | nick.coghlan | 2007-11-07 03:57:51 -0800 (Wed, 07 Nov 2007) | 1 line Add missing NEWS entry ........ r58905 | christian.heimes | 2007-11-07 09:50:54 -0800 (Wed, 07 Nov 2007) | 1 line Backported fix for bug #1392 from py3k branch r58903. ........ r58906 | christian.heimes | 2007-11-07 10:30:22 -0800 (Wed, 07 Nov 2007) | 1 line Backport of Guido's review of my patch. ........ r58908 | raymond.hettinger | 2007-11-07 18:52:43 -0800 (Wed, 07 Nov 2007) | 1 line Add set.isdisjoint() ........ r58915 | raymond.hettinger | 2007-11-08 10:47:51 -0800 (Thu, 08 Nov 2007) | 1 line Reposition the decref (spotted by eagle-eye norwitz). ........ r58920 | georg.brandl | 2007-11-09 04:31:43 -0800 (Fri, 09 Nov 2007) | 2 lines Fix seealso link to sets docs. Do not merge to Py3k. ........ r58921 | georg.brandl | 2007-11-09 05:08:48 -0800 (Fri, 09 Nov 2007) | 2 lines Fix misleading example. ........ r58923 | georg.brandl | 2007-11-09 09:33:23 -0800 (Fri, 09 Nov 2007) | 3 lines Correct a comment about testing methods - nowadays most tests don't run directly on import. ........ r58924 | martin.v.loewis | 2007-11-09 14:56:30 -0800 (Fri, 09 Nov 2007) | 2 lines Add Amaury Forgeot d'Arc. ........ r58925 | raymond.hettinger | 2007-11-09 15:14:44 -0800 (Fri, 09 Nov 2007) | 1 line Optimize common case for dict.fromkeys(). ........ r58927 | raymond.hettinger | 2007-11-09 17:54:03 -0800 (Fri, 09 Nov 2007) | 1 line Use a freelist to speed-up block allocation and deallocation in collections.deque(). ........ r58929 | guido.van.rossum | 2007-11-10 14:12:24 -0800 (Sat, 10 Nov 2007) | 3 lines Issue 1416. Add getter, setter, deleter methods to properties that can be used as decorators to create fully-populated properties. ........
* No need to include windows.h twiceAmaury Forgeot d'Arc2007-11-101-5/+1
|
* Bug #1415Christian Heimes2007-11-101-2/+2
| | | | | | On Windows fileno(stdout) and fileno(stderr) can return an invalid file descriptor number (-2 on my machine). It happens only for pythonw.exe but not for python.exe. Catch the problem ASAP in PyFile_NewStdPrinter(). I've also removed the call to PyErr_BadInternalCall(). It was causing a seg fault because the exceptions aren't available yet.
* seek() has to accept any int-like numberChristian Heimes2007-11-091-2/+4
|
* It works w/o the newline on my system but you are right. A newline is nicer.Christian Heimes2007-11-092-2/+2
|
* I've created three bat files based on the howto ↵Christian Heimes2007-11-083-0/+73
| | | | | | http://wiki.python.org/moin/Building_Python_with_the_free_MS_C_Toolkit I figured out that the files may suite other developers. The files take care of most problems and makes building Python on Windows easier. Simply double click on build_env.bat to open a shell and type build.
* Issue 1406: use widechar api for os.environ, on Windows.Thomas Heller2007-11-081-3/+65
|
* Fixed bug #1081: file.seek allows float argumentsChristian Heimes2007-11-083-0/+10
|
* Fixed #1403 where compileall and py_compile choked on an encoding header in ↵Christian Heimes2007-11-082-1/+4
| | | | a py file. Both modules need more unit tests.
* Added unit test to verify that #1087 is invalid. os.popen is using subprocess.Christian Heimes2007-11-081-0/+9
|
* Applied patch #1127 from Quentin Gallet Gilles: No tests for ↵Christian Heimes2007-11-082-4/+45
| | | | inspect.getfullargspec()
* Added tests from Raghuram Devarakonda for bug #1395 'py3k: duplicated line ↵Christian Heimes2007-11-081-1/+69
| | | | endings when using read(1)' to outstanding_bugs.py
* Fixed memoryview constructor. It allowed arbitrary keyword arguments. The ↵Christian Heimes2007-11-082-3/+33
| | | | bug was found by mykhal from #python. I've also added a small test case in the new test_memoryview.py
* Cosmetic changes to Christian's patch r58903.Guido van Rossum2007-11-071-6/+4
| | | | (Consider this code review feedback. :-)
* Patch for bug http://bugs.python.org/issue1293Christian Heimes2007-11-071-1/+19
| | | | | | The patch doesn't do the whole name mangling mambo jambo on purpose. MS sure does some weird things and I don't feel like reimplementing ntpath.normpath in C. If the user does deliberately something stupid he is on his own. TODO: Backport to 2.6 (maybe 2.5?) and document that users should only do sys.path.append(os.path.normpath(somepath)) if they want to be on the safe side.
* Reset original sys.stdout, stderr and displayhook even in the case of an errorChristian Heimes2007-11-071-9/+10
|
* Change a variable to Py_ssize_t to silence a compiler warning (and because itBrett Cannon2007-11-061-1/+1
| | | | is more appropriate).
* Remove an unused local variable.Brett Cannon2007-11-061-1/+0
|