Hi,
the discussion on allowing for automatic user provided ways to coerce
between Python types and C++ types got me thinking that this might hide a
rather interesting general feature: methods for low-level types. I faintly
remember that this idea has come up in our discussions before, but here's a
Yaroslav Halchenko, 03.07.2012 01:04:
> please pardon my sloppy cut/paste which ruined the subject line in the
> original post ;) So the topic is:
>
> On Mon, 02 Jul 2012, Yaroslav Halchenko wrote:
>> I was thinking about updating Debian package for cython 0.16 but ran into
>> the failing unittes
please pardon my sloppy cut/paste which ruined the subject line in the
original post ;) So the topic is:
On Mon, 02 Jul 2012, Yaroslav Halchenko wrote:
> I was thinking about updating Debian package for cython 0.16 but ran into
> the failing unittests so decided first to check with experts: anyth
I was thinking about updating Debian package for cython 0.16 but ran into
the failing unittests so decided first to check with experts: anything obvious
which comes to mind from seeing those?
...
compiling (c) and running sequential_parallel ... sequential_parallel.c: In
function '__pyx_pf_19sequ
On Mon, Jul 2, 2012 at 5:49 AM, Sturla Molden wrote:
> On 30.06.2012 01:06, Stefan Behnel wrote:
>
>>> std::string<=> bytes
>>> std::map<=> dict
>>> iterable => std::vector => list
>>> iterable => std::list => list
>>> iterable => std::set => set
>>> 2-iterable => std::pair => 2-tuple
>>
On 02.07.2012 14:49, Sturla Molden wrote:
I think (in C++11) std::unordered_set and std::unordered_map should be
used instead. They are hash-based with O(1) lookup.
std::set and std::map are binary search threes with average O(log n)
lookup and worst-case O(n**2).
Sorry typo, that should be w
On 30.06.2012 01:06, Stefan Behnel wrote:
std::string<=> bytes
std::map<=> dict
iterable => std::vector => list
iterable => std::list => list
iterable => std::set => set
2-iterable => std::pair => 2-tuple
Very cool.
I think (in C++11) std::unordered_set and std::unordered_map shoul