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


Groups > comp.lang.python > #62047

Re: Python, mySQL and password

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!ecngs!feeder2.ecngs.de!novso.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <airween@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.104
X-Spam-Level *
X-Spam-Evidence '*H*': 0.90; '*S*': 0.10; '16,': 0.03; 'subject:password': 0.05; 'subject:Python': 0.06; 'cc:addr:python- list': 0.11; 'to:addr:web.de': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'mon,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In- Reply-To:1': 0.27; 'dec': 0.30; '+0100,': 0.31; 'url:python': 0.33; 'but': 0.35; 'thanks': 0.36; 'url:org': 0.36; 'url:library': 0.38; 'from:charset:utf-8': 0.61; 'content-disposition:inline': 0.62; 'otten': 0.84; 'peter,': 0.84; 'received:86': 0.91; 'received:hu': 0.93; '2013': 0.98
X-Spam-Flag NO
X-Spam-Score -1.91
X-Spam-Level
X-Spam-Status No, score=-1.91 tagged_above=-20 required=4 tests=[ALL_TRUSTED=-1, AWL=0.088, BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9] autolearn=no
Date Mon, 16 Dec 2013 12:46:11 +0100
From Ervin Hegedüs <airween@gmail.com>
To Peter Otten <__peter__@web.de>
Subject Re: Python, mySQL and password
References <CA+FnnTz2pmBHQ7OsK5jAnZiovGeUYni_kne_F4QbWEainScStw@mail.gmail.com> <20131216111640.GA4852@arxnet.hu> <l8mom2$9ee$1@ger.gmane.org>
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
In-Reply-To <l8mom2$9ee$1@ger.gmane.org>
User-Agent Mutt/1.5.20 (2009-06-14)
Cc python-list@python.org
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.4204.1387194377.18130.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1387194377 news.xs4all.nl 2862 [2001:888:2000:d::a6]:59390
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:62047

Show key headers only | View raw


Hello Peter,

On Mon, Dec 16, 2013 at 12:38:33PM +0100, Peter Otten wrote:
> Ervin Hegedüs wrote:
> 
> > dsn['passwd'] = raw_input("Enter password for %s: " % (dsn['user']))
> > 
[...]

> > but at this way the password what you type will showing!
> 
> To avoid that use getpass.getpass() instead of raw_input().
> 
> http://docs.python.org/2/library/getpass.html

well, thanks a lot :)


a.
 

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


Thread

Re: Python, mySQL and password Ervin Hegedüs <airween@gmail.com> - 2013-12-16 12:46 +0100

csiph-web