Neal Norwitz
fddc469876
Prevent namespace pollution, add static for internal functions
2008-04-15 03:46:21 +00:00
Andrew M. Kuchling
04f58760d7
Various items; begin writing the SSL section
2008-04-15 02:24:15 +00:00
Alexandre Vassalotti
bcdc4685ba
Backport manually r62342 from the py3k branch to the trunk.
2008-04-14 22:40:08 +00:00
Amaury Forgeot d'Arc
f9e7ebe165
Correct a refleak found by "regrtest.py -R:: test_structmembers"
...
Some other minor updates in _warnings.c:
- make a function static
- rename a shadowing local variable
2008-04-14 20:07:48 +00:00
Amaury Forgeot d'Arc
14d6b0f8f0
Update project files for all Windows supported compilers
2008-04-14 19:55:40 +00:00
Thomas Heller
046e6a43ff
Issue #2616 : Implement ctypes.pointer() and ctypes.POINTER() in C for
...
better performance.
2008-04-14 16:10:07 +00:00
Andrew M. Kuchling
da950eb01c
Add example
2008-04-13 22:39:12 +00:00
Georg Brandl
8ffb5734d3
Check out Jinja as a separate step now that it's not included in the Sphinx package anymore.
2008-04-13 20:51:27 +00:00
Georg Brandl
41a0a37c08
Improve -X error message.
2008-04-13 20:50:29 +00:00
Benjamin Peterson
c89be9d37d
Added an ignore file for Bazaar #2510
2008-04-13 20:40:03 +00:00
Benjamin Peterson
820b51c170
#2627 Let it be known what pgen generates
2008-04-13 20:35:56 +00:00
Brett Cannon
c477427eba
Fix spliting on colons on Windows machines with a file path by limiting the
...
number of splits.
2008-04-13 17:41:31 +00:00
Brett Cannon
25bb8182c6
Add an explicit check for output in a test to try to diagnose a failure on
...
Windows.
2008-04-13 17:09:43 +00:00
Christian Heimes
a2d7f4c7a3
Added new files to the pcbuild files
2008-04-13 09:37:05 +00:00
Christian Heimes
6715352848
Use PyString_InternFromString instead of PyString_FromString for static vars
2008-04-13 09:33:24 +00:00
Christian Heimes
0a4f8956e6
Fix compiler warning Include/warnings.h:19:28: warning: no newline at end of file
2008-04-13 09:30:17 +00:00
Georg Brandl
4aa8df2871
Fix markup.
2008-04-13 07:07:44 +00:00
Skip Montanaro
e3d3785e11
spelling
2008-04-13 03:17:30 +00:00
Brett Cannon
667bb4f236
Fix test_warnings by making the state of things more consistent for each test
...
when it is run.
2008-04-13 02:42:36 +00:00
Benjamin Peterson
037d829319
Give the "Interactive Interpreter Changes" section in 2.6 whatsnew a unique link name
2008-04-13 02:20:05 +00:00
Benjamin Peterson
a3d19f35c4
Backport the removal of a __repr__ from 62251
2008-04-13 02:05:48 +00:00
Benjamin Peterson
7bb4d2d0fa
Backported io module docs
2008-04-13 02:01:27 +00:00
Andrew M. Kuchling
c161df6abd
Mention -J, -X
2008-04-13 01:05:59 +00:00
Brett Cannon
76ca13ca2a
Fix an accidental bug of an non-existent init function.
2008-04-13 00:25:15 +00:00
Brett Cannon
40f0a87666
Fix a bug in PySys_HasWarnOption() where it was not properly checking the
...
length of the list storing the warning options.
2008-04-13 00:18:44 +00:00
Gregory P. Smith
b2693e007b
Adds a profile-opt target for easy compilation of a python binary using
...
gcc's profile guided optimization.
2008-04-13 00:03:25 +00:00
Brett Cannon
e974689038
Re-implement the 'warnings' module in C. This allows for usage of the
...
'warnings' code in places where it was previously not possible (e.g., the
parser). It could also potentially lead to a speed-up in interpreter start-up
if the C version of the code (_warnings) is imported over the use of the
Python version in key places.
Closes issue #1631171 .
2008-04-12 23:44:07 +00:00
Gregory P. Smith
e6c03033af
socket.error inherits from IOError, it no longer needs listing in
...
the all_errors tuple.
2008-04-12 22:24:04 +00:00
Gregory P. Smith
73bee444ab
fix compiler warnings
2008-04-12 20:37:48 +00:00
Georg Brandl
751a0362aa
Don't offend snake lovers.
2008-04-12 19:05:37 +00:00
Georg Brandl
a93eaa5772
Add Jeroen.
2008-04-12 19:00:20 +00:00
Georg Brandl
8189310a7f
#2615 : small consistency update by Jeroen Ruigrok van der Werven.
2008-04-12 18:36:09 +00:00
Georg Brandl
b4d21139b7
Use absolute path in sys.path.
2008-04-12 18:11:18 +00:00
Christian Heimes
7a98d2730c
Applied patch #2617 from Frank Wierzbicki wit some extras from me
...
-J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future.
2008-04-12 13:03:03 +00:00
Thomas Heller
d3ed492164
Performance improvements.
2008-04-11 14:20:26 +00:00
Thomas Heller
12c4e6478a
Move backwards compatibility macro to the correct place;
...
PyIndex_Check() was introduced in Python 2.5.
2008-04-11 13:05:38 +00:00
Andrew M. Kuchling
17f8429bd2
Use issue directive
2008-04-10 21:29:01 +00:00
Andrew M. Kuchling
19baaadf51
Add punctuation
2008-04-10 21:28:51 +00:00
Andrew M. Kuchling
3351e4142c
Remove forward-looking statement
2008-04-10 21:27:10 +00:00
Gregory P. Smith
2ea2968064
get rid of assert (size >= 0) now that an explicit if (size < 0) is in the code.
2008-04-10 19:50:36 +00:00
Neal Norwitz
36a59b4a08
Remove the test file before writing it in case there is no write permission.
...
This might help fix some of the failures on Windows box(es). It doesn't hurt
either way and ensure the tests are a little more self contained (ie have
less assumptions).
2008-04-10 05:46:39 +00:00
Martin v. Löwis
60a819d681
Merged revisions 62080-62262 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r62092 | collin.winter | 2008-04-01 18:27:10 +0200 (Di, 01 Apr 2008) | 1 line
Add get_prev_sibling() to complement pytree's get_next_sibling().
........
r62226 | collin.winter | 2008-04-08 21:07:56 +0200 (Di, 08 Apr 2008) | 1 line
Add min() and max() to the list of special contexts that don't require adding list() calls around dict methods.
........
r62232 | collin.winter | 2008-04-09 00:12:38 +0200 (Mi, 09 Apr 2008) | 4 lines
Fix for http://bugs.python.org/issue2596
This extends fix_xrange to know about the (mostly) same special contexts as fix_dict (where a special context is something that is guaranteed to fully consume the iterable), adding list() calls where appropriate. It also special-cases "x in range(y)".
........
2008-04-10 02:48:01 +00:00
Gregory P. Smith
c00eb73a30
Raise SystemError when size < 0 is passed into PyString_FromStringAndSize,
...
PyBytes_FromStringAndSize or PyUnicode_FromStringAndSize. [issue2587]
2008-04-09 23:16:37 +00:00
Gregory P. Smith
f108320055
better diagnostics
2008-04-09 23:11:56 +00:00
Andrew M. Kuchling
c157c9c277
Try out the new issue role. Thanks, Georg!
2008-04-09 22:28:43 +00:00
Martin v. Löwis
023b9f952a
Package wininst*.exe from distutils/command.
2008-04-09 18:56:20 +00:00
Gregory P. Smith
671c5d9fb5
Add a note about the zlib.decompressobj().flush() fix.
2008-04-09 18:18:43 +00:00
Georg Brandl
c305192196
Add :issue: directive for easy linking to bugs.python.org.
2008-04-09 17:58:56 +00:00
Georg Brandl
99bb5f3fef
#2585 : initialize code attribute of HTTPError.
2008-04-09 17:57:38 +00:00
Jerry Seutter
8f80a6a5f9
Changed test so it no longer runs as a side effect of importing.
2008-04-09 05:07:58 +00:00