Hi Roel
"Our problem turned out to be caused by a loss of precision in an
application of ours, caused by Direct3D. The solution for us was to
include the flag D3DCREATE_FPU_PRESERVE in CreateDevice(). The
documentation seems to imply that the lower precision only has effect in
the Direct3D code, b
blems and appears to be frozen as a result.
C, only supporting early binding cannot change the function referenced
at runtime so how the devil is it managing to do this.
On 08/05/2012 12:17, Bob Cowdery wrote:
Can anyone make sense of this.
I've looked over the Python timemodule.c again a
xtension
if os.path.exists('C:\\Program Files (x86)'):
# 64 bit
ProgramFiles = 'Program Files (x86)'
else:
# 32 bit
ProgramFiles = 'Program Files'
setup(
name='Time Test',
author='Bob Cowdery',
ext_modules = [
Extens
On 06/05/2012 09:49, Cameron Simpson wrote:
> On 06May2012 09:18, Bob Cowdery wrote:
> | On 05/05/2012 23:05, Cameron Simpson wrote:
> | > On 05May2012 20:33, Bob Cowdery wrote:
> | > | [...] calls to time.time() always return the same
> | > | time which is usually severa
On 06/05/2012 09:24, Chris Angelico wrote:
> On Sun, May 6, 2012 at 6:18 PM, Bob Cowdery wrote:
>> On 05/05/2012 23:05, Cameron Simpson wrote:
>>> Thought #1: you are calling time.time() and haven't unfortunately
>>> renamed it? (I doubt this scenario, though th
On 06/05/2012 00:11, Chris Angelico wrote:
> On Sun, May 6, 2012 at 6:51 AM, Bob Cowdery wrote:
>> The time.clock() function does increment correctly. CPU is around 30%
> 30% of how many cores? If that's a quad-core processor, that could
> indicate one core completely pegged
On 05/05/2012 23:05, Cameron Simpson wrote:
> On 05May2012 20:33, Bob Cowdery wrote:
> | I've written a straight forward extension that wraps a vendors SDK for a
> | video capture card. All works well except that in the Python thread on
> | which I call the extension, after cer
ple code that exhibits the same behavior it may be
> obvious to someone on the list as to what is the problem.
>
>
>
> On Sat, May 5, 2012 at 3:33 PM, Bob Cowdery wrote:
>> Hi all,
>>
>> I've been a long time user of Python and written many extensions bu
Hi all,
I've been a long time user of Python and written many extensions but
this problem has me stumped.
I've written a straight forward extension that wraps a vendors SDK for a
video capture card. All works well except that in the Python thread on
which I call the extension, after certain calls
Title: RE: built-in 'property'
Thanks to everyone that has helped on this. What I am trying to do is create a capability based api that I can build to order. This is as far as I get at the moment.
Each of the first three classes represents some function I can do to a radio, there would be man
Title: RE: built-in 'property'
What I want to achieve is a class whereby I can set the property access per instance so the user can test if a property is present using hasattr(klass,'prop') such that the instance has a given capability that can easily be tested by the user. The actual get/set
it is a property object. Is this statement only designed to
work at class scope? I really want to set these properties per
instance.
Thanks
Bob
Bob Cowdery
CGI Senior Technical
Architect
+44(0)1438 791517
Mobile: +44(0)7771 532138
[EMAIL PROTECTED]
*** Confidentiality Notice
Title: RE: Metaclasses
Shalabh
Yes I am realising there are variaous ways to achieve the same end. I guess I am in research mode at the moment and understanding what metaclasses can do is important even if I end up not using them. There is another thread on this question where I am trying to
Title: RE: Metaclasses
Robert Brewer wrote:
>Okay. It depends on where you're getting that capability information from, but the simplest approach I can >
>think of would be to stick it in the class:
>
>class API(object):
> __metaclass__ = MetaAPI
>
> capmap = global_map_getter(userco
python-list@python.org
Subject: RE: Metaclasses
Bob Cowdery wrote:
> I am trying to build a capability based API. That is,
> an instance of the api will reflect the capabilities
> of some underlying services. I could have several
> different instances of the api concurrently runnin
only way I can see to
do this at the moment is to have a metaclass for each capability type and
hardcode the type inside it, then pick the appropriate metaclass when I build
the implementation class.
Regards
Bob
Bob Cowdery
CGI Senior Technical
Architect
+44(0)1438 791517
Mobile: +4
16 matches
Mail list logo