Nick Coghlan
99b2533539
Bring handling of genexpr in line with other anonymous scope names
2005-11-16 12:45:24 +00:00
Neal Norwitz
a3fd07d524
add more doc
2005-11-16 05:49:04 +00:00
Neal Norwitz
dee2fd5448
Fix some more memory leaks.
...
Call error_ret() in decode_str(). It was called in some other places,
but seemed inconsistent. It is safe to call PyTokenizer_Free() after
calling error_ret().
2005-11-16 05:12:59 +00:00
Neal Norwitz
ef78529e86
version was not initialized properly
2005-11-16 05:04:51 +00:00
Kurt B. Kaiser
b61602c968
Better indentation after first line of string continuation.
...
IDLEfork Patch 681992, Noam Raphael
2005-11-15 07:20:06 +00:00
Neal Norwitz
6b34789046
Fix another memory leak or two (one real, one potential)
2005-11-15 07:17:53 +00:00
Neal Norwitz
af8f974967
Add a note about how to do the memory deallocation a bit.
...
This needs a lot of work.
2005-11-15 05:09:44 +00:00
Neal Norwitz
e76adcd78a
Fix a whole bunch of potential memory leaks (and some real ones too)
...
in error conditions.
2005-11-15 05:04:31 +00:00
Neal Norwitz
56c6561d30
Prevent unlikely memory leak, tok should always be freed when parsetok() returns
2005-11-15 04:54:23 +00:00
Neal Norwitz
19b0f40cb1
Thou shalt not lie, there are really 5 types now
2005-11-15 04:52:16 +00:00
Neal Norwitz
79792651c4
Convert all internal errors from Exception to SystemError
...
Remove an abort() and let a SystemError be raised.
2005-11-14 04:25:03 +00:00
Neal Norwitz
daae6161b5
Use convenience function
2005-11-14 00:47:57 +00:00
Neal Norwitz
e8c0536d57
Fix memory leak with bad generator expression
2005-11-14 00:18:03 +00:00
Neal Norwitz
7b3d5e1779
remove useless debug print helper. fix a couple of exceptions
2005-11-13 21:17:28 +00:00
Neal Norwitz
7b5a604d24
Whoops, checkin consistent versions of *all* files to stop polluting
...
a bunch of names
2005-11-13 19:14:20 +00:00
Neal Norwitz
497b19a8a2
Updated gentoo to 2005.0
2005-11-13 18:58:32 +00:00
Neal Norwitz
e5e5aa4ea6
Do a better job of not inlining Py_ADDRESS_IN_RANGE() for newer gcc's.
...
Perhaps Py_NO_INLINE should be moved to pyport.h or some other header?
2005-11-13 18:55:39 +00:00
Neal Norwitz
b6fc9df8fc
Fix a lot of memory and ref leaks in error paths.
...
(Call symtable_exit_block or compiler_exit_scope as appropriate)
Use PyMem_Free on c_future since it was allocated with PyMem_Malloc
2005-11-13 18:50:34 +00:00
Neal Norwitz
6576bd844f
Prevent name pollution by making lots of internal functions static.
2005-11-13 18:41:28 +00:00
Skip Montanaro
f6a904456e
delete Python-ast.[ch] in distclean
2005-11-13 15:54:15 +00:00
Neal Norwitz
2744c6cc35
make internal method static
2005-11-13 01:08:38 +00:00
Fredrik Lundh
96c1c7a571
SF#1343671.
...
The removedirs function removes empty directories, it doesn't
empty them.
2005-11-12 15:55:04 +00:00
Fredrik Lundh
d489398da9
r903@spiff: Fredrik | 2005-11-12 16:28:37 +0100
...
removed outdated copyright notices (etc)
2005-11-12 15:28:52 +00:00
Fredrik Lundh
0d89e351e1
r879@spiff: Fredrik | 2005-11-12 14:38:03 +0100
...
r878@spiff: Fredrik | 2005-11-12 14:37:22 +0100
minor docstring and comment tweaks (wikipedia might not be the
ultimate reference, but it's a lot better than "XXX" ;-)
2005-11-12 15:21:05 +00:00
Fredrik Lundh
3a49e92d7d
r858@spiff: Fredrik | 2005-11-10 23:40:04 +0100
...
#1346547
added basic error checking to the STARTUPINFO code
in CreateProcess.
2005-11-12 10:15:14 +00:00
Fredrik Lundh
bb4692b6f2
r849@spiff: Fredrik | 2005-11-09 10:00:04 +0100
...
fixed resource leak in _subprocess.CreateProcess when using
explicit environments
2005-11-12 10:15:03 +00:00
Fred Drake
f5b7fd2239
update busted comment
2005-11-11 19:34:56 +00:00
Walter Dörwald
e62e936e79
Change PrettyPrinter.pprint(), so that output is written directly to the
...
output stream, instead of writing it to a StringIO first and writing the
result of this to the output stream. This should speed up the initial
output.
2005-11-11 18:18:51 +00:00
Georg Brandl
1cb179e93f
Bug #1338995 : fix problem with new webbrowser.py.
2005-11-09 21:42:48 +00:00
Walter Dörwald
966c264b02
Fix typos.
2005-11-09 17:12:43 +00:00
Vinay Sajip
8b6b53f8ac
Fixed indentation bug in _connect_unixsocket (thanks to Ken Lalonde for reporting it/supplying a patch)
2005-11-09 13:55:13 +00:00
Neal Norwitz
286d74764e
SF Bug #1348477 , regextest can't be pydoc'ed. Will backport.
2005-11-09 07:07:58 +00:00
Neal Norwitz
67715f0420
- SF Bug #1350188 , "setdlopenflags" leads to crash upon "import"
...
It was possible dlerror() returns a NULL pointer, use a default error
message in this case.
2005-11-09 06:59:35 +00:00
Brett Cannon
789fd005e0
Fix typo in envvar name.
2005-11-07 21:42:42 +00:00
Marc-André Lemburg
380f417e15
Patch by pythonic <pythonic@gmail.com> to support Fedora
...
as Linux distro.
2005-11-07 16:11:02 +00:00
Armin Rigo
c6686b7c7e
Added proper reflection on instances of <type 'method-wrapper'>, e.g.
...
'[].__add__', to match what the other internal descriptor types provide:
'__objclass__' attribute, '__self__' member, and reasonable repr and
comparison.
Added a test.
2005-11-07 08:38:00 +00:00
Armin Rigo
64b414ad4c
svn:ignoring all .pyc and .pyo files in all subdirectories of Lib/ that contain
...
.py files.
2005-11-07 07:47:30 +00:00
Armin Rigo
f4afb21526
similar to SF bug 847019: a quick check in the time() constructor, which
...
accepts strings only for unpickling reasons. This check prevents the honest
mistake of passing a string like '2:59.0' to time() and getting an insane
object.
2005-11-07 07:15:48 +00:00
Ka-Ping Yee
9a2dcf8ac1
Fix SF bug #417833 (pydoc HTTP reload failure) by removing from
...
sys.modules all submodules of a the given module/package path
when trying to reload a module.
2005-11-05 05:04:41 +00:00
Ka-Ping Yee
a487e4eb05
Accept patch to resolve SF bug #651124 .
2005-11-05 04:49:18 +00:00
Neal Norwitz
6d98ed4ad2
Oops, forgot to add the output file to 41388.
2005-11-03 05:07:15 +00:00
Neal Norwitz
0f46bbf781
Bug #1346533 , select.poll() doesn't raise an error if timeout > sys.maxint
...
Need to check return result of PyInt_AsLong()
Will backport.
2005-11-03 05:00:25 +00:00
Neal Norwitz
26f4c23074
Make consistent with 2.4
2005-11-03 04:39:09 +00:00
Brett Cannon
5d0bf9446b
Change time.strptime() to raise ValueError whenever there is an error in the
...
format string. Before exceptions generated by the internal code propagated up
to the user and were not helpful.
Closes bug #1340337 .
2005-11-02 23:04:26 +00:00
Brett Cannon
076b7325a8
Add an import line to a code fragment.
...
Closes bug #1346395 .
2005-11-02 22:58:12 +00:00
Andrew M. Kuchling
8294de5673
Another comment typo fix
2005-11-02 16:36:12 +00:00
Walter Dörwald
2e2c02fedb
Fix typo in comment.
2005-11-02 08:57:11 +00:00
Walter Dörwald
9fd115cb63
Whitespace cleanup.
2005-11-02 08:30:08 +00:00
Neal Norwitz
cf4863831c
Fix SF #1345263 , colorsys tests, bug in frange
...
Fix a typo that caused step to be ignored.
Will backport.
2005-11-02 05:54:27 +00:00
Neal Norwitz
6eac2005bf
Cleanup the previous checkin.
...
Close the fd in the close method and invalidated it. Don't try
to close a second time when deallocating.
2005-11-02 05:36:37 +00:00