Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #64632

Re: generate De Bruijn sequence memory and string vs lists

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!novso.com!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <vincent@vincentdavis.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'static': 0.04; '&quot;the': 0.07; 'intermediate': 0.07; 'string': 0.09; 'bytes,': 0.09; 'deprecated': 0.09; 'lawrence': 0.09; 'subject:string': 0.09; 'translate': 0.10; 'python': 0.11; 'jan': 0.12; 'translation': 0.12; '23,': 0.16; 'bytearray': 0.16; 'mark,': 0.16; 'str,': 0.16; 'url:whatsnew': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'previously': 0.22; 'to:name:python- list@python.org': 0.22; 'url:dev': 0.24; 'tables': 0.26; 'supported': 0.26; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:python': 0.33; 'running': 0.33; '"the': 0.34; 'received:209.85': 0.35; 'subject:lists': 0.35; 'received:google.com': 0.35; 'module.': 0.36; 'url:org': 0.36; 'received:209': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'gone': 0.61; 'url:3': 0.61; 'soon': 0.63; 'skip:w 30': 0.69
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=0VhwFNn/MGgILrkwV/WEYu528p9rLy/mzKJxZYOjWcU=; b=F51jAw/H0V1tZV01EFSxdX0SLyY5QyiqXVxHin1RAyIdPAYSah0wRHjmKrh79+dDhw CIMSaff4KAhUK0TqxqjAyPa7pGgsenJtCdNPsA0RPCuR2B2R/fxHaElb0XCZqI0+CUx9 GhbPYU8Tglwc+/tQdo3NtcM7ERIjpyAFAghIH22xloxzfq/839loTmpi0gIRQBBEhKHg C/13/0L5yv8Cb7uC+LeyyLMwTvxIF+ApHa/a7Xn+eZCcBhuB3BzV25nJMlbazxxq0MM5 XoIeFvIjO+0rC8lr0ZlmzQYk4Uv4ln++sxPFIIqNVRBC2MmIEItUAdoFG5naEwNZMFS7 0ykA==
X-Gm-Message-State ALoCoQmGdqcu26tjW13c567NpyOO/YZJW1ardJ6Pvr9qX1eub1E/EOtiEsbFvQnPcthmYxahnx+R
X-Received by 10.182.44.167 with SMTP id f7mr8542367obm.3.1390510283732; Thu, 23 Jan 2014 12:51:23 -0800 (PST)
MIME-Version 1.0
In-Reply-To <lbrugd$k3a$1@ger.gmane.org>
References <CALyJZZVU+j64Jn7fqqzLmwW+KcM=43UMKjo=HW7umnq8MSP2Uw@mail.gmail.com> <lbrjjq$96p$1@ger.gmane.org> <lbrlel$vpq$1@ger.gmane.org> <CALyJZZUn4XvTHSnsJhQwsM7CyXUJJis_BwwoZ8EYAQ209bvfig@mail.gmail.com> <lbrst6$vel$1@ger.gmane.org> <lbrugd$k3a$1@ger.gmane.org>
From Vincent Davis <vincent@vincentdavis.net>
Date Thu, 23 Jan 2014 14:51:03 -0600
Subject Re: generate De Bruijn sequence memory and string vs lists
To "python-list@python.org" <python-list@python.org>
Content-Type multipart/alternative; boundary=001a11c1d7e084bcef04f0a9673d
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5908.1390510629.18130.python-list@python.org> (permalink)
Lines 56
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1390510629 news.xs4all.nl 2891 [2001:888:2000:d::a6]:53786
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:64632

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Jan 23, 2014 at 2:36 PM, Mark Lawrence <breamoreboy@yahoo.co.uk>wrote:

> FTR string.maketrans is gone from Python 3.2+.  Quoting from
> http://docs.python.org/dev/whatsnew/3.2.html#porting-to-python-3-2 "The
> previously deprecated string.maketrans() function has been removed in favor
> of the static methods bytes.maketrans() and bytearray.maketrans(). This
> change solves the confusion around which types were supported by the string
> module. Now, str, bytes, and bytearray each have their own maketrans and
> translate methods with intermediate translation tables of the appropriate
> type."
>

​Thanks for pointing this out Mark, ​I will soon be running this on 3.3+


Vincent Davis
720-301-3003

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: generate De Bruijn sequence memory and string vs lists Vincent Davis <vincent@vincentdavis.net> - 2014-01-23 14:51 -0600

csiph-web