Alan
I am planning to store the passwords encrypted. This part is allow a
user to generate and view the generated password.
Ben got me pointed to a snippet I can use. I was trying to do something
the hard way.
Jay
On 03/06/2014 07:34 PM, Alan Gauld wrote:
On 06/03/14 23:32, Jay Lozier wrot
On 06/03/14 23:32, Jay Lozier wrote:
I am try to generate random password strings of an arbitrary user
selected length. I read to generate a random string of a user supplied
length I can use os.urandom(n).
So far so good...
> I want to convert the output to a human readable string.
Define hu
Jay Lozier writes:
> I am try to generate random password strings of an arbitrary user
> selected length.
My first recommendation would be: Don't re-invent the wheel. Generating
password strings is a complex request, not because it's particularly
difficult but because the requirements are comple
Hi,
My first question
I am try to generate random password strings of an arbitrary user
selected length. I read to generate a random string of a user supplied
length I can use os.urandom(n). I want to convert the output to a human
readable string. I would like to store the string for later pr
On Thu, Mar 6, 2014 at 12:00 PM, Jignesh Sutar wrote:
> Hi I'm trying to exclude a certain line of code if the function is called by
> another function, see illustration below:
As other have said, this is not often a good idea. That said, it is
possible to inspect the call stack to see what call
On Thu, Mar 6, 2014 at 9:00 AM, Jignesh Sutar wrote:
> Hi I'm trying to exclude a certain line of code if the function is called by
> another function, see illustration below:
>
>
> def funcA():
> print "running from funcA" # print only if running from funcA
> print "running from funcA or
Jignesh Sutar Wrote in message:
>
>
Hi I'm trying to exclude a certain line of code if the function is called by
another function, see illustration below:
Your code example is all confused, so perhaps you are as well.
Why should any of your code in function A care who calls it? The
main po
On 03/06/2014 06:00 PM, Jignesh Sutar wrote:
Hi I'm trying to exclude a certain line of code if the function is called
by another function, see illustration below:
def funcA():
print "running from funcA" # print only if running from funcA
print "running from funcA or funcB" #print whe
While there are ways of getting at the caller using introspection, there
are no reliable ways of doing so and you would do well to rethink the
need and take an alternate course such as passing a parameter in.
Suppose the following:
funcC=funcB
what would you want to see?
Emile
On 3/6/2014
Hi I'm trying to exclude a certain line of code if the function is called
by another function, see illustration below:
def funcA():
print "running from funcA" # print only if running from funcA
print "running from funcA or funcB" #print when running from either
function
print "running
10 matches
Mail list logo