Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #39702
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.004 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'true,': 0.04; 'compute': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'way:': 0.09; 'def': 0.10; 'suggest': 0.11; 'sat,': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:issue': 0.16; 'feb': 0.19; "i'd": 0.22; 'coding': 0.27; 'header:X-Complaints-To:1': 0.28; 'run': 0.28; '+0100,': 0.29; 'definition': 0.29; 'code': 0.31; 'function.': 0.33; 'subject:Number': 0.33; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'minimum': 0.34; 'data,': 0.35; 'received:org': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'rather': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'goal': 0.74; '2013': 0.84; 'dennis': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
| Subject | Re: Number validation issue |
| Date | Sat, 23 Feb 2013 14:03:23 -0500 |
| Organization | > Bestiaria Support Staff < |
| References | <CAJ2vgs5_gYPvMxfBUjs_6QgzUNd4akTvL2p0jV+7E-m8_6xeUw@mail.gmail.com> <CAJ2vgs4ZmXkTMAOQORXWCNFLehAbLNeOMqNG1aUPFcucrTdXtw@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | adsl-76-253-107-131.dsl.klmzmi.sbcglobal.net |
| X-Newsreader | Forte Agent 3.3/32.846 |
| X-No-Archive | YES |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2369.1361646214.2939.python-list@python.org> (permalink) |
| Lines | 23 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1361646214 news.xs4all.nl 6962 [2001:888:2000:d::a6]:44715 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:39702 |
Show key headers only | View raw
On Sat, 23 Feb 2013 10:11:04 +0100, Morten Engvoldsen
<mortenengv@gmail.com> declaimed the following in
gmane.comp.python.general:
> >
> > Hi,
> >
> Yes true, i need to generate weight at run time rather than hard coding it,
> following are some solution:
>
> Since the max length of thenumber should be 25 and minimum should be 2 so
> code will be in this way:
>
> def is_valid_isbn13(isbn13):
Isn't an ISBN13 -- by definition -- 13 digits (ignoring hyphens).
If your goal is to compute a checksum for a non-fixed length of
data, I'd suggest changing the name of the function.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Number validation issue Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-02-23 14:03 -0500
csiph-web