Hello everyone,
thanks for all the suggestions. I did effort to redesign parts of the
data structure the last days, but not all (only those I could easily
keep track of in my code).
For the rest I add +1 before the presentation and comment it. Seems
the easiest way now.
Andreas
--
http://mail.py
On 3 Aug., 03:22, Carl Banks wrote:>
> You are creating an object that differs from a built-in, int, in a
> highly misleading way that only makes sense in a very limited context,
> and this object's modified behavior gives no clue that it's been
> modified in such as way. (That is, it's not possi
I'm trying to define a subclass of int called int1. An int1-object
shall behave exactly like an int-object, with the only difference that
the displayed value shall be value + 1 (it will be used to display
array indices starting at 1 instead of 0). Right now I have:
class int1(int):
def __str__
On 12 Apr., 02:31, "Mark Tolonen" wrote:
> "Andreas" wrote in message
>
> news:f953c845-3660-4bb5-8ba7-00b93989c...@b1g2000vbc.googlegroups.com...
>
> > Hello,
>
> > I'd like to create a regex that captures any unicode character, but
> > not the underscore and the digits 0-9. "^(?u)\w$" captures
On 12 Apr., 02:31, "Mark Tolonen" wrote:
> "Andreas" wrote in message
>
> news:f953c845-3660-4bb5-8ba7-00b93989c...@b1g2000vbc.googlegroups.com...
>
> > Hello,
>
> > I'd like to create a regex that captures any unicode character, but
> > not the underscore and the digits 0-9. "^(?u)\w$" captures
On 11 Apr., 22:14, ergconce...@googlemail.com wrote:
> Hi,
> I have a list looking like
>
> [ 0.84971586, 0.05786009, 0.9645675, 0.84971586, 0.05786009,
> 0.9645675, 0.84971586, 0.05786009, 0.9645675, 0.84971586,
> 0.05786009, 0.9645675]
>
> and I would like to break this list into subsets