Guido van Rossum
9ff1a44973
Fix an edge case whereby the __del__() method of a classic class could
...
create a new weakref to the object.
2008-01-18 20:56:30 +00:00
Christian Heimes
4956d2b889
Silence Coverity false alerts with CIDs #172 , #183 , #184
2008-01-18 19:12:56 +00:00
Christian Heimes
288e89acfc
Added bytes and b'' as aliases for str and ''
2008-01-18 18:24:07 +00:00
Georg Brandl
a9e073d100
Note that genexps are function scopes too and therefore won't see class attributes.
2008-01-18 16:42:57 +00:00
Vinay Sajip
a26c73ed55
Added LoggerAdapter class, changed copyright dates, made check for extra parameter passed to logging methods explicitly against None rather than a truth value.
2008-01-18 15:55:57 +00:00
Vinay Sajip
c7403355df
Added section on passing contextual information to logging and documentation for the LoggerAdapter class.
2008-01-18 15:54:14 +00:00
Christian Heimes
bd865db90c
Added win_add2path.py to Tools/scripts/
...
Added builddoc.bat to Doc/
2008-01-18 11:58:50 +00:00
Christian Heimes
b222bbc321
Build _ctypes after the other extensions. Its build process depends
...
on the _weakref extension (and maybe other modules, too)
2008-01-18 09:51:43 +00:00
Christian Heimes
5cc3f26c48
Coverity CID #168
...
leaked_storage: Returned without freeing storage "fp"
2008-01-18 08:53:45 +00:00
Christian Heimes
3e8c897d80
Coverity issue CID #169
...
local_ptr_assign_local: Assigning address of stack variable "namebuf" to pointer "filename"
out_of_scope: Variable "namebuf" goes out of scope
use_invalid: Used "filename" pointing to out-of-scope variable "namebuf"
2008-01-18 08:47:59 +00:00
Christian Heimes
87dcf3d260
Coverity issue CID #182
...
size_error: Allocating 1 bytes to pointer "children", which needs at least 4 bytes
2008-01-18 08:04:57 +00:00
Christian Heimes
7b1e119f8c
Coverity issue CID #167
...
Event alloc_fn: Called allocation function "metacompile" [model]
Event var_assign: Assigned variable "gr" to storage returned from "metacompile"
gr = metacompile(n);
Event pass_arg: Variable "gr" not freed or pointed-to in function "maketables" [model]
g = maketables(gr);
translatelabels(g);
addfirstsets(g);
Event leaked_storage: Returned without freeing storage "gr"
return g;
2008-01-18 07:45:30 +00:00
Christian Heimes
62a8e95fea
Coverity issue CID #197
...
var_decl: Declared variable "stm" without initializer
ninit_use_in_call: Using uninitialized value "stm" (field "stm".tm_zone uninitialized) in call to function "mktime"
2008-01-18 07:30:20 +00:00
Andrew M. Kuchling
6d22c3961d
Typo fix
2008-01-18 02:42:52 +00:00
Andrew M. Kuchling
a13d4fbca4
Bump verson
2008-01-18 02:26:16 +00:00
Raymond Hettinger
18e08e5e61
clearcache() needs to remove the dict as well as clear it.
2008-01-18 00:10:42 +00:00
Raymond Hettinger
64cd1e2d91
Fix markup
2008-01-17 23:56:56 +00:00
Raymond Hettinger
497fdbf767
Fix-up Timer() example.
2008-01-17 23:32:01 +00:00
Christian Heimes
ff6cc6b8ef
Updated new property syntax. An elaborate example for subclassing and the getter was missing.
...
Added comment about VS 2008 and PGO builds.
2008-01-17 23:01:44 +00:00
Raymond Hettinger
d0ab014b5e
Add advice on choosing between scheduler and threading.Timer().
2008-01-17 22:27:49 +00:00
Andrew M. Kuchling
4e06b8a86f
Correction from Jordan Lewis: halfdelay() uses tenths of a second, not milliseconds
2008-01-17 19:49:24 +00:00
Raymond Hettinger
44bd6c0a4f
Issue #1861 : Add read-only attribute listing upcoming events in the order they will be run.
2008-01-17 19:31:38 +00:00
Brett Cannon
a35a8b11c3
Fix a function pointer declaration to silence the compiler.
2008-01-17 18:45:10 +00:00
Andrew M. Kuchling
d221956f0e
Revise 3141 section a bit; add some Windows items
2008-01-17 12:00:15 +00:00
Gregory P. Smith
bde4ae4bde
Fixes (accepts patch) issue1339 - http://bugs.python.org/issue1339
...
- Factor out the duplication of EHLO/HELO in login() and sendmail() to
a new function, ehlo_or_helo_if_needed().
- Use ehlo_or_helo_if_needed() in starttls()
- Check for the starttls exception in starttls() in the same way as
login() checks for the auth extension.
Contributed by Bill Fenner.
2008-01-17 08:35:49 +00:00
Raymond Hettinger
d59f457279
Note versionadded.
2008-01-17 08:07:05 +00:00
Gregory P. Smith
2b3ba58bf4
entry for r60015
2008-01-17 08:03:17 +00:00
Gregory P. Smith
63bfc1d19f
Comply with RFC 3207.
...
Fixes issue 829951 - http://bugs.python.org/issue829951
2008-01-17 07:43:20 +00:00
Raymond Hettinger
473170908e
Make starmap() match its pure python definition and accept any itertable input (not just tuples).
2008-01-17 03:02:14 +00:00
Raymond Hettinger
3ad2acc857
Add news entry.
2008-01-16 23:49:35 +00:00
Raymond Hettinger
9e1bc982ff
Add queues will alternative fetch orders (priority based and stack based).
2008-01-16 23:40:45 +00:00
Raymond Hettinger
171f3916c5
Minor wordsmithing.
2008-01-16 23:38:16 +00:00
Thomas Heller
0f75f9847a
Use 'g' instead of 'D' as the ctypes typecode for c_longdouble, for
...
compliance with PEP 3118.
2008-01-16 20:34:37 +00:00
Georg Brandl
2077131097
Doc build should work with 2.4 now.
2008-01-16 20:29:00 +00:00
Georg Brandl
7155a09c44
Add Python-specific content to Doc dir. Update configuration file
...
to work with the newest Sphinx.
2008-01-16 20:27:56 +00:00
Thomas Heller
415c1e36a9
Raise a TypeError instead of a ValueError when too many initializers
...
are used in a Structure or Union constructor.
2008-01-16 19:45:51 +00:00
Thomas Heller
02ec289f3e
Raise a TypeError if conflicting positional and named arguments are
...
passed to a Structure or Union constructor.
2008-01-16 19:37:33 +00:00
Thomas Heller
902d30752f
Convert the internal ctypes array type cache to a WeakValueDict so
...
that array types do not live longer than needed.
2008-01-16 19:16:27 +00:00
Georg Brandl
5c8b2abf71
Fix MSDN library URL. ( #1854 )
2008-01-16 16:56:29 +00:00
Andrew M. Kuchling
95f17bbfc0
Markup fix
2008-01-16 13:01:51 +00:00
Andrew M. Kuchling
aa355542af
Add PEP 3141 section
2008-01-16 03:17:25 +00:00
Andrew M. Kuchling
c8acc882a9
Docstring typos
2008-01-16 00:32:03 +00:00
Amaury Forgeot d'Arc
ff0f2670ff
test_doctest fails since r59984.
...
Not sure if these are the correct values, but save_stdout has to be set before its usage...
2008-01-15 21:25:11 +00:00
Raymond Hettinger
e805782b53
Fix-up half-written paragraph in the docs
2008-01-15 21:22:47 +00:00
Raymond Hettinger
f59e962b49
Refactor if/elif chain for clarity and speed. Remove dependency on subclasses having to implement _empty and _full.
2008-01-15 20:52:42 +00:00
Guido van Rossum
cad3724352
Issue #1786 (by myself): pdb should use its own stdin/stdout around an
...
exec call and when creating a recursive instance.
2008-01-15 17:59:29 +00:00
Andrew M. Kuchling
7b1e917e41
Restore description of sys.dont_write_bytecode.
...
The duplication is intentional -- this paragraph is in a section
describing additions to the sys module, and there's a later section
that mentions the switch. I think most people scan the what's-new and
don't read it in detail, so a bit of duplication is OK.
2008-01-15 14:38:05 +00:00
Jeffrey Yasskin
d7b00334f3
Add rational.Rational as an implementation of numbers.Rational with infinite
...
precision. This has been discussed at http://bugs.python.org/issue1682 . It's
useful primarily for teaching, but it also demonstrates how to implement a
member of the numeric tower, including fallbacks for mixed-mode arithmetic.
I expect to write a couple more patches in this area:
* Rational.from_decimal()
* Rational.trim/approximate() (maybe with different names)
* Maybe remove the parentheses from Rational.__str__()
* Maybe rename one of the Rational classes
* Maybe make Rational('3/2') work.
2008-01-15 07:46:24 +00:00
Georg Brandl
ca9c6e433c
Remove duplicate entry.
2008-01-15 06:58:15 +00:00
Georg Brandl
af30b2846e
Typo.
2008-01-15 06:55:56 +00:00