Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.news.ox.ac.uk!news.ox.ac.uk!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:not': 0.03; 'skip:\\ 20': 0.07; 'subject:code': 0.07; 'subject:same': 0.07; 'string': 0.09; 'ascii': 0.09; 'encode': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:tables': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'cc:addr:python.org': 0.22; 'bytes': 0.24; 'cc:2**0': 0.24; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'running': 0.33; 'guess': 0.33; 'maybe': 0.34; 'subject:the': 0.34; 'received:google.com': 0.35; 'represent': 0.38; 'pm,': 0.38; 'frank': 0.68; 'jul': 0.74; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=XeJwqB4pEjFimYK3I/lQbesAq3X9KpUYodDEuWJj044=; b=GDQfZLu1ulkzRnhfG08gKnljR4pZrssvFfTNt8O8kKT0mS4frudKzXmP4nDyp+hkhZ eULpdtwJaXGM+kVNOghIMojZOnGqEWgQcB2RM+OnXrI2kr5nFMMcEleMKEPwo+/ClYj5 DKT4fkY5NP6I6BWDZPB0XqmocgW2mt3k8IQTollaE4S6swGpq8nrCgJ5r8HEL0869z+u kHmzOHbSFx8GzK8Rqu5VgwPlZ+dGnQVTjRup9ANCiPTruhg2k3pDkdfVGJshYFiC58U6 0QGG8Z6WS5Tgvdfzf0oeQ3+xmKkytsJ+fWXmXG2H7BiR0L7yeyvKDqCcQhbBMkxpPCn6 Ni0Q== MIME-Version: 1.0 X-Received: by 10.58.234.103 with SMTP id ud7mr38715608vec.24.1404890578396; Wed, 09 Jul 2014 00:22:58 -0700 (PDT) In-Reply-To: References: Date: Wed, 9 Jul 2014 17:22:58 +1000 Subject: Re: same code same tables but not the same result(use flask and postgres) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1404890580 news.xs4all.nl 2964 [2001:888:2000:d::a6]:39788 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:74236 On Wed, Jul 9, 2014 at 5:14 PM, Frank Liou wrote: > one i got > > MTIzNDU2Nzg= <==it's right > > anoter i got > > \x4d54497a4e4455324e7a673d Encode that string as ASCII and represent the bytes in hexadecimal, and you get the second one. My guess is that maybe you have one of them running Python 2 and one running Python 3. ChrisA