| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
4000 didn't work either. 1000 does work on Windows. If 2000 works,
that will hopefully be a reasonable balance.
|
|
|
|
|
| |
crashes on Windows are really due to the stack size or possibly
some other problem.
|
|
|
|
|
| |
Windows and some other boxes. If this is successful, this rev should
be backported. I'm not sure how close to the limit we should push this.
|
|
|
|
|
|
| |
lack of an infinite recursion check.
Contributed by Damien Miller at Google.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Reenable modules on x64 that had been disabled aeons ago for Itanium.
- Cleared up confusion about compilers for 64 bit windows. There is only Itanium and x64. Added macros MS_WINI64 and MS_WINX64 for those rare cases where it matters, such as the disabling of modules above.
- Set target platform (_WIN32_WINNT and WINVER) to 0x0501 (XP) for x64, and 0x0400 (NT 4.0) otherwise, which are the targeted minimum platforms.
- Fixed thread_nt.h. The emulated InterlockedCompareExchange function didn´t work on x64, probaby due to the lack of a "volatile" specifier. Anyway, win95 is no longer a target platform.
- Itertools module used wrong constant to check for overflow in count()
- PyInt_AsSsize_t couldn't deal with attribute error when accessing the __long__ member.
- PyLong_FromSsize_t() incorrectly specified that the operand were unsigned.
With these changes, the x64 passes the testsuite, for those modules present.
|
| |
|
|
|
|
| |
Triggers an assertion otherwise.
|
|
|
|
| |
.pyd files supported on windows now.
|
|
|
|
| |
typecast to get a 64 bit integer, and undefined the Yield macro that conflicts with winbase.h
|
|
|
|
| |
discovered using code analysis in VisualStudio 2005 Team Edition
|
| |
|
|
|
|
| |
signed chars in frameobject.c which can occur with opcodes > 127
|
|
|
|
| |
masked by a generic one with the message "unpack non-sequence".
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The file should now follow PEP 7, except that it uses 4 space indents
(in the style of Py3k). This particular code would be really hard to
read with the regular tab idents.
Other changes:
- reflow long lines
- change multi-line conditionals to have test at end of line
|
|
|
|
|
|
| |
complex if statements.
Will backport.
|
| |
|
|
|
|
| |
(backport)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* lines too long
* wrong indentation
* space after a function name
* wrong function name in error string
* simplifying some logic
Also add an error check to PyDict_SetItemString.
|
|
|
|
|
|
| |
Fixed by patch #922167.
Will backport.
|
|
|
|
| |
case, even when converting the value to a string failed.
|
|
|
|
|
|
|
| |
Patch #1591665: implement the __dir__() special function lookup in PyObject_Dir.
Had to change a few bits of the patch because classobjs and __methods__ are still
in Py2.6.
|
| |
|
|
|
|
|
| |
makes the filenames the warning module prints much more sensible when
a PYTHONSTARTUP file is used.
|
|
|
|
|
|
|
| |
exception if the -i command line option or PYTHONINSPECT environment
variable is given, but break into the interactive interpreter just like
on other exceptions or normal program exit.
(backport)
|
| |
|
|
|
|
| |
sq_ass_slice instead of the sq_slice slot.
|
| |
|
|
|
|
|
| |
Note that ast.c still has a mix of tabs and spaces, because it
attempts to use four-space indents for more of the new code.
|
|
|
|
| |
Reported by Mike Verdone.
|
|
|
|
| |
are gone.
|
|
|
|
| |
This duplicates the behavior whening normally printing exceptions.
|
|
|
|
|
|
| |
* use %r instead of backticks since backticks are going away in Py3k
* PyArena_Malloc() already sets PyErr_NoMemory so we don't need to do it again
* the signature for ast2obj_int incorrectly used a bool, rather than a long
|
| |
|
| |
|
|
|
|
|
|
|
| |
I can't think of an easy way to test this behavior. It only occurs
when the file system default encoding and the interpreter default
encoding are different, such that you can open the file but not decode
its name.
|
|
|
|
|
|
| |
is specified at the top of the file. Also add a note that Python/Python-ast.c
needs to be committed separately after a change to the AST grammar to capture
the revision number of the change (which is what __version__ is set to).
|
|
|
|
| |
r53731).
|
|
|
|
|
|
|
| |
The next step of PEP 352 (for 2.6) causes raising a string exception to trigger
a TypeError. Trying to catch a string exception raises a DeprecationWarning.
References to string exceptions has been removed from the docs since they are
now just an error.
|
|
|
|
|
| |
frame's thread state. Fixes #1579370.
Will backport.
|
|
|
|
|
|
|
|
|
|
|
| |
When running the interpreter in an environment that would cause it to set
stdout/stderr/stdin's encoding, having a sitecustomize that would replace
them with something other than PyFile objects would crash the interpreter.
Fix it by simply ignoring the encoding-setting for non-files.
This could do with a test, but I can think of no maintainable and portable
way to test this bug, short of adding a sitecustomize.py to the buildsystem
and have it always run with it (hmmm....)
|
| |
|
|
|
|
| |
the PREDICT macros.
|
|
|
|
|
|
|
| |
and the module dict has been cleared already and some object
raises a warning (like in a __del__).
Will backport.
|
|
|
|
| |
instead of just a dictionary. (backporting...)
|
|
|
|
| |
Will backport
|