Re: help to convert c++ fonction in python

2009-10-21 Thread geremy condra
On Wed, Oct 21, 2009 at 3:28 AM, Processor-Dev1l wrote: > On Oct 18, 8:13 am, Toff wrote: >> On 18 oct, 02:13, geremy condra wrote: >> >> >> >> > On Sat, Oct 17, 2009 at 7:57 PM, David Robinow wrote: >> > > On Sat, Oct 17, 2009 at 7:48 PM, geremy condra >> > > wrote: >> > >> For the love of b

Re: help to convert c++ fonction in python

2009-10-21 Thread Processor-Dev1l
On Oct 18, 8:13 am, Toff wrote: > On 18 oct, 02:13, geremy condra wrote: > > > > > On Sat, Oct 17, 2009 at 7:57 PM, David Robinow wrote: > > > On Sat, Oct 17, 2009 at 7:48 PM, geremy condra wrote: > > >> For the love of baby kittens, please, please, please tell me that > > >> you do not believe

Re: help to convert c++ fonction in python

2009-10-20 Thread Paul Rudin
Gary Herron writes: > geremy condra wrote: >> And always apply ROT13 twice for extra security. >> > +1 for "quote of the week" Even if it's at least 30 years old :) -- http://mail.python.org/mailman/listinfo/python-list

Re: help to convert c++ fonction in python

2009-10-20 Thread Gary Herron
geremy condra wrote: On Mon, Oct 19, 2009 at 2:25 AM, Tim Roberts wrote: You wrote: For the love of baby kittens, please, please, please tell me that you do not believe this securely encrypts your data. The original poster asked to have two C++ functions converted to Python.

Re: help to convert c++ fonction in python

2009-10-20 Thread Aahz
In article , Mel wrote: >Aahz wrote: >> In article , >> geremy condra wrote: >>> >>>And always apply ROT13 twice for extra security. >> >> Can't you tell? I'm already doing that! > >Just don't flaunt the export restrictions by using ROT52. s/flaunt/flout/ HTH, HAND ;-) -- Aahz (a...@pytho

Re: help to convert c++ fonction in python

2009-10-20 Thread geremy condra
On Tue, Oct 20, 2009 at 3:54 PM, Aahz wrote: > In article , > geremy condra   wrote: >> >>And always apply ROT13 twice for extra security. > > Can't you tell?  I'm already doing that! > -- > Aahz (a...@pythoncraft.com)           <*>         http://www.pythoncraft.com/ Sorry, couldn't read it thro

Re: help to convert c++ fonction in python

2009-10-20 Thread Mel
Aahz wrote: > In article , > geremy condra wrote: >> >>And always apply ROT13 twice for extra security. > > Can't you tell? I'm already doing that! Just don't flaunt the export restrictions by using ROT52. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: help to convert c++ fonction in python

2009-10-20 Thread Aahz
In article , geremy condra wrote: > >And always apply ROT13 twice for extra security. Can't you tell? I'm already doing that! -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ Member of the Groucho Marx Fan Club -- http://mail.python.org/mailman/listinfo/pyth

Re: help to convert c++ fonction in python

2009-10-19 Thread geremy condra
On Tue, Oct 20, 2009 at 2:06 AM, Robert Kern wrote: > Steven D'Aprano wrote: >> >> On Sat, 17 Oct 2009 19:48:46 -0400, geremy condra wrote: >> >>> For the love of baby kittens, please, please, please tell me that you do >>> not believe this securely encrypts your data. >> >> Surely that depends on

Re: help to convert c++ fonction in python

2009-10-19 Thread Robert Kern
Steven D'Aprano wrote: On Sat, 17 Oct 2009 19:48:46 -0400, geremy condra wrote: For the love of baby kittens, please, please, please tell me that you do not believe this securely encrypts your data. Surely that depends on your threat model? Well, let's let the OP off the hook immediately. H

Re: help to convert c++ fonction in python

2009-10-19 Thread Steven D'Aprano
On Sat, 17 Oct 2009 19:48:46 -0400, geremy condra wrote: > For the love of baby kittens, please, please, please tell me that you do > not believe this securely encrypts your data. Surely that depends on your threat model? If you think that the NSA is interested in your data, then no, obviously

Re: help to convert c++ fonction in python

2009-10-19 Thread geremy condra
On Mon, Oct 19, 2009 at 2:25 AM, Tim Roberts wrote: > You wrote: >> >>For the love of baby kittens, please, please, please tell me that >>you do not believe this securely encrypts your data. > > The original poster asked to have two C++ functions converted to Python.   > That's what I did, using t

Re: help to convert c++ fonction in python

2009-10-18 Thread Tim Roberts
You wrote: > >For the love of baby kittens, please, please, please tell me that >you do not believe this securely encrypts your data. The original poster asked to have two C++ functions converted to Python. That's what I did, using the same names as the original. I neither know nor care how th

Re: help to convert c++ fonction in python

2009-10-18 Thread Lie Ryan
Thomas wrote: If you change your last line from: print s to: print u you'll get different results :) if you change: s1 = base64.b64decode( s ) into s = base64.b64decode( s ) you'll get the same result again. -- http://mail.python.org/mailman/listinfo/python-list

Re: help to convert c++ fonction in python

2009-10-18 Thread Thomas
If you change your last line from: print s to: print u you'll get different results :) TC -- http://mail.python.org/mailman/listinfo/python-list

Re: help to convert c++ fonction in python

2009-10-17 Thread Toff
On 18 oct, 02:13, geremy condra wrote: > On Sat, Oct 17, 2009 at 7:57 PM, David Robinow wrote: > > On Sat, Oct 17, 2009 at 7:48 PM, geremy condra wrote: > >> For the love of baby kittens, please, please, please tell me that > >> you do not believe this securely encrypts your data. > >  Yeah, I t

help to convert c++ fonction in python

2009-10-17 Thread geremy condra
On Sat, Oct 17, 2009 at 7:57 PM, David Robinow wrote: > On Sat, Oct 17, 2009 at 7:48 PM, geremy condra wrote: >> For the love of baby kittens, please, please, please tell me that >> you do not believe this securely encrypts your data. >  Yeah, I think it's pretty good. > Can you do better? > Tri

Re: help to convert c++ fonction in python

2009-10-17 Thread geremy condra
On Sat, Oct 17, 2009 at 6:15 PM, Tim Roberts wrote: > Toff wrote: >> >>I'm trying to convert  2 c++ functions  in python >> >>they come from wpkg client >>https://wpkg.svn.sourceforge.net/svnroot/wpkg/wpkg-client/Sources/Components/XmlSettings.cpp >> >>they are >>CString CXmlSettings::Crypt(CStri

Re: help to convert c++ fonction in python

2009-10-17 Thread Tim Roberts
Toff wrote: > >I'm trying to convert 2 c++ functions in python > >they come from wpkg client >https://wpkg.svn.sourceforge.net/svnroot/wpkg/wpkg-client/Sources/Components/XmlSettings.cpp > >they are >CString CXmlSettings::Crypt(CString str) >CString CXmlSettings::Decrypt(CString str) > >CAn some

Re: help to convert c++ fonction in python

2009-10-17 Thread Tim Roberts
Toff wrote: > >I'm trying to convert 2 c++ functions in python > >they come from wpkg client >https://wpkg.svn.sourceforge.net/svnroot/wpkg/wpkg-client/Sources/Components/XmlSettings.cpp > >they are >CString CXmlSettings::Crypt(CString str) >CString CXmlSettings::Decrypt(CString str) > >CAn some

help to convert c++ fonction in python

2009-10-17 Thread Toff
hello I'm trying to convert 2 c++ functions in python they come from wpkg client https://wpkg.svn.sourceforge.net/svnroot/wpkg/wpkg-client/Sources/Components/XmlSettings.cpp they are CString CXmlSettings::Crypt(CString str) CString CXmlSettings::Decrypt(CString str) CAn someone help me? i

Re: fonction in python

2006-07-04 Thread John Machin
On 4/07/2006 8:06 PM, aliassaf wrote: > Hello, > > If we write = x^2 and if I give to the program the values of x, it will > going to calculate the values of y, and also for x. > > But it is possible ? that is if I give to the program the values of X and Y, > it will indicate to me the rel

Re: fonction in python

2006-07-04 Thread Duncan Smith
Steven D'Aprano wrote: > On Tue, 04 Jul 2006 03:06:37 -0700, aliassaf wrote: > > >>Hello, >> >>If we write = x^2 and if I give to the program the values of x, it will >>going to calculate the values of y, and also for x. >> >>But it is possible ? that is if I give to the program the values

Re: fonction in python

2006-07-04 Thread [EMAIL PROTECTED]
8 False True 9 True True 10 False False 11 False False 12 False False 13 False False 14 False False 15 False False 16 True True 17 False False 18 False False 19 False False 9 is both a power and a square whereas 8 is a power but not a square. > > Thanks > > -- > View this message i

Re: fonction in python

2006-07-04 Thread Grant Edwards
On 2006-07-04, aliassaf <[EMAIL PROTECTED]> wrote: > But it is possible ? that is if I give to the program the values of X and Y, > it will indicate to me the relation between the two variables, in the other > hand if I look to the program x=2 y=4, x=3 y=9 ect... it is going to show me > that f (t

Re: fonction in python

2006-07-04 Thread Steven D'Aprano
On Tue, 04 Jul 2006 03:06:37 -0700, aliassaf wrote: > > Hello, > > If we write = x^2 and if I give to the program the values of x, it will > going to calculate the values of y, and also for x. > > But it is possible ? that is if I give to the program the values of X and Y, > it will indi

Re: fonction in python

2006-07-04 Thread Georg Brandl
aliassaf wrote: > Hello, > > If we write = x^2 and if I give to the program the values of x, it will > going to calculate the values of y, and also for x. > > But it is possible ? that is if I give to the program the values of X and Y, > it will indicate to me the relation between the two

fonction in python

2006-07-04 Thread aliassaf
if I look to the program x=2 y=4, x=3 y=9 ect... it is going to show me that f (t)!!! Thanks -- View this message in context: http://www.nabble.com/fonction-in-python-tf1889102.html#a5164997 Sent from the Python - python-list forum at Nabble.com. -- http://mail.python.org/mailman/listinfo