Re: 'if name is not None:' v. 'if name:'
Jerry Hill wrote:
This is just plain untrue. If 'name is None' evaluates to true, then
the variable 'name' is bound to the singleton value None. It has
nothing to do with allocated memory or null pointers. All it means is
that someplace along the line you did the equivalent of 'name = None'
in your code.
On the other hand, there's nothing that keeps a Python implementation
from using NULL to represent the None value.
</F>
.
Relevant Pages
- Re: Double-Checked Locking pattern issue
... Construct a Singleton object in the allocated memory. ... Modern CPU ... architectures feature weak memory models: writes into memory by one CPU ... (microsoft.public.vc.language) - Dynamic Memory Allocation
... Local variable which are pointers and have dynamically allocated ... Actually, i want to develop an API, which will help in collection ... (plz correct me if i'm wrong). ... how to proceed to get information about dynamically allocated memory. ... (comp.lang.c) - Re: Dynamic Memory Allocation
... Local variable which are pointers and have dynamically allocated ... (plz correct me if i'm wrong). ... how to proceed to get information about dynamically allocated memory. ... Try to study the internals of existing GCs like Boehm's ... (comp.lang.c) - Re: Dynamic Memory Allocation
... Local variable which are pointers and have dynamically allocated ... (plz correct me if i'm wrong). ... how to proceed to get information about dynamically allocated memory. ... That garbage collector is distributed with the ... (comp.lang.c) - Re: lagging mouse pointer
... As soon as the menu window opens the mouse pointer begins to ... of my wireless pointers do this. ... I think it is a lack of allocated memory ... (microsoft.public.windows.mediacenter) |
|