|
by: Stormkid |
last post by:
Hi Group I'm trying to figure out a way that I can take two (two
dimensional) arrays and avShed and shed, and subtract the matching elements
in shed from avShed I've pasted the arrays blow from a print_r cmd any
suggestions would be great. Thanks much Todd
//avShed array
Array ( => Array ( => 1 => 08:00 ) => Array
( => 1 => 08:05 ) => Array ( => 1
=> 08:10 ) => Array ( => 1 => 08:15 )
=> Array ( => 1 => 08:20 ) => Array...
|
by: Nicolas Fleury |
last post by:
Hi,
Does anyone know if arrays would be picklable in python 2.4? Until
then, I tried to derive from array.array and add __setstate__ and
__getstate__ with the following code, but it seems I'm not doing it
correctly. Any idea what I'm doing wrong?
Thx and Regards,
Nicolas
import array as arr
|
by: Gus Tabares |
last post by:
Hello all,
I'm trying to subclass array.array but having problems with a default
parameter in the init constructor. Example:
import array
class TestClass(array.array):
def __init__(self, array_type = "B"):
array.array(array_type)
|
by: Chris Lambacher |
last post by:
Hi,
I have to do some data manipulation that needs to be fast. I had a
generator approach (that was faster than a list approch) which was
taking approximately 5 seconds to run both encode and decode.
I have done a conversion to pyrex and have gotten it down to about 2
seconds to run both encode and decode. An an excerpt from the pyrex
code is included below. My question is, is there a better way to
allocate the memory for the...
|
by: John Machin |
last post by:
Googling for "pickle array" in comp.lang.python yields old messages that
show a PickleError -- plus one message where Alex Martelli writes "I am
but an egg" :O)
Looks like arrays are NOW (2.4.1) pickleable but not unpickleable -- see
below.
I appreciate that arrays are inherently not pickleable because of the
type code.
However:
(1) Anyone know why/when the world changed?
(2) If we had alternative constructors like...
|
|
by: Jonathan DeCarlo |
last post by:
I have a situation where I need to override a method in
managed C++ that was originally defined in C#. The
method takes a parameter of an array of arrays of
doubles. Here is a simple examples that shows what I'm
talking about:
///////////////////////////////////////////
// C# Base Class
public class A
{
|
by: 0to60 |
last post by:
I can declare and initialize a managed array of managed types like this:
System::Object* array __gc = {...}
Now, what do I do if I wanna reset that array to something else without
redeclaring it? I can't seem to just say something like
array = new __gc = {...}
|
by: TJH |
last post by:
hi there
im new to develop in .net, and i keep getting this compiler error
"cannot perform pointer arithmetic on __gc pointer" when i try:
some_object->array = something;
Thanks :) Toke Jansen
|
by: craig.conboy |
last post by:
Using MC++ .Net 2.0, with the CLR Profiler (from Microsoft) I am seeing
that 3 blocks of memory, each ~48MB in size, being allocated by some
code that initializes a managed array. It is a jagged array of string
arrays, and contains some nullptr items, sample code below. Looking at
the IL using .Net Reflector also below I think I see why.
This issue is easy to work around by using a gcnew array<String^{}
instead of a nullptr, but is not...
|
by: Fabio |
last post by:
Hi All,
I have a question concerning the use of array.array inside of C++ code I
wrote.
I am working with _big_ data files but some entries in these files are
usually bounded say between -5 to 40. Returning a Python list makes no
sense. In Python I always work with the array.array module which does
the trick. But now that I wrote my own C++ module for some preprocessing
I need the return array.array objects.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|