Re: python source code

2017-03-22 Thread Erik
On 22/03/17 21:57, M. R.P. wrote: does anyone know were I can [find?] python source code programs? Are you looking for the source to a Python language implementation itself? If so, see this link: https://www.python.org/downloads/ If not, what are you looking for, exactly? What sort of Pytho

Re: python source code

2017-03-22 Thread Thomas Nyberg
On 03/22/2017 05:57 PM, M. R.P. wrote: does anyone know were I can python source code programs? The source code for cpython (i.e. the most common interpreter) can be found here: https://www.python.org/downloads/source/ https://github.com/python/cpython Unless you mean the so

Re: Python source code easy to hack?

2012-09-28 Thread 88888 Dihedral
Jayden於 2012年9月28日星期五UTC+8下午7時57分14秒寫道: > Dear All, > > > > I have a concern in developing commercial code with Python. Someone told me > that its program can be easily hacked to get its source code. Is it really > the case? Any way to protect your source code? > > > > Thanks a lot! > > >

Re: Python source code easy to hack?

2012-09-28 Thread Littlefield, Tyler
On 9/28/2012 9:19 AM, stu...@molden.no wrote: kl. 16:38:10 UTC+2 fredag 28. september 2012 skrev Jerry Hill følgende: This is true, but both java and .net are also relatively easy to decompile. Neither of them are very "obfuscated". In general though, why does it matter? Paranoia among man

Re: Python source code easy to hack?

2012-09-28 Thread sturla
kl. 16:38:10 UTC+2 fredag 28. september 2012 skrev Jerry Hill følgende: > This is true, but both java and .net are also relatively easy to decompile. Neither of them are very "obfuscated". > In general though, why does it matter? Paranoia among managers? > What are you trying to protect y

Re: Python source code easy to hack?

2012-09-28 Thread Jerry Hill
On Fri, Sep 28, 2012 at 10:18 AM, wrote: > Python bytecode is not easier to hack than Java or .NET bytecodes. This is true, but both java and .net are also relatively easy to decompile. In general though, why does it matter? What are you trying to protect yourself against? If you're including

Re: Python source code easy to hack?

2012-09-28 Thread sturla
kl. 13:57:14 UTC+2 fredag 28. september 2012 skrev Jayden følgende: > Dear All, I have a concern in developing commercial code with Python. Someone > told me that its program can be easily hacked to get its source code. Is it > really the case? Any way to protect your source code? Thanks a lot! J

Re: Python source code easy to hack?

2012-09-28 Thread zig-zag
On 09/28/2012 02:17 PM, Mark Lawrence wrote: On 28/09/2012 12:57, Jayden wrote: Dear All, I have a concern in developing commercial code with Python. Someone told me that its program can be easily hacked to get its source code. Is it really the case? Any way to protect your source code? Thanks

Re: Python source code easy to hack?

2012-09-28 Thread Mark Lawrence
On 28/09/2012 12:57, Jayden wrote: Dear All, I have a concern in developing commercial code with Python. Someone told me that its program can be easily hacked to get its source code. Is it really the case? Any way to protect your source code? Thanks a lot! Jayden This question has been as

Re: python source code -> win/dos executable (on linux)

2010-07-01 Thread Bill Davy
"Stephen Hansen" wrote in message news:mailman.2344.1277821469.32709.python-l...@python.org... > On 6/29/10 12:27 AM, Lawrence D'Oliveiro wrote: >> In message<4c286d71$0$18654$4fafb...@reader3.news.tin.it>, superpollo >> wrote: >> >>> Lawrence D'Oliveiro ha scritto: Is it really such a

Re: python source code -> win/dos executable (on linux)

2010-06-29 Thread Stephen Hansen
On 6/29/10 12:27 AM, Lawrence D'Oliveiro wrote: In message<4c286d71$0$18654$4fafb...@reader3.news.tin.it>, superpollo wrote: Lawrence D'Oliveiro ha scritto: Is it really such a hassle to install things on Windows? no, but it *IS* to explain it to dumb users... :-( Can’t you create an inst

Re: python source code -> win/dos executable (on linux)

2010-06-29 Thread Lawrence D'Oliveiro
In message <4c286d71$0$18654$4fafb...@reader3.news.tin.it>, superpollo wrote: > Lawrence D'Oliveiro ha scritto: >> >> Is it really such a hassle to install things on Windows? > > no, but it *IS* to explain it to dumb users... :-( Can’t you create an installation package that specifies Python a

Re: python source code -> win/dos executable (on linux)

2010-06-28 Thread superpollo
Lawrence D'Oliveiro ha scritto: In message <4c24c152$0$31381$4fafb...@reader1.news.tin.it>, superpollo wrote: suppose i work in a linux environment, but i would like to ship a win/dos executable file from time to time, just for test purposes (my "testers" are windows users and don't want to go

Re: python source code -> win/dos executable (on linux)

2010-06-27 Thread David Robinow
On Sun, Jun 27, 2010 at 9:16 PM, Lawrence D'Oliveiro wrote: > In message <4c24c152$0$31381$4fafb...@reader1.news.tin.it>, superpollo > wrote: > >> suppose i work in a linux environment, but i would like to ship a >> win/dos executable file from time to time, just for test purposes (my >> "testers"

Re: python source code -> win/dos executable (on linux)

2010-06-27 Thread Grant Edwards
On 2010-06-28, Lawrence D'Oliveiro wrote: > In message <4c24c152$0$31381$4fafb...@reader1.news.tin.it>, superpollo > wrote: > >> suppose i work in a linux environment, but i would like to ship a >> win/dos executable file from time to time, just for test purposes (my >> "testers" are windows user

Re: python source code -> win/dos executable (on linux)

2010-06-27 Thread Lawrence D'Oliveiro
In message <4c24c152$0$31381$4fafb...@reader1.news.tin.it>, superpollo wrote: > suppose i work in a linux environment, but i would like to ship a > win/dos executable file from time to time, just for test purposes (my > "testers" are windows users and don't want to go through the hassle of > inst

Re: python source code -> win/dos executable (on linux)

2010-06-25 Thread Grant Edwards
On 2010-06-25, superpollo wrote: > suppose i work in a linux environment, but i would like to ship a > win/dos executable file from time to time, just for test purposes (my > "testers" are windows users and don't want to go through the hassle > of installing python on their win boxes). what is t

Re: Python Source Code Beautifier

2007-03-08 Thread Gabriel Genellina
En Thu, 08 Mar 2007 13:13:23 -0300, Alan Franzoni <[EMAIL PROTECTED]> escribió: > this > container does create a copy of the object even employing incremental > operators. > > Now, let's suppose I find that container type not useful for my purposes, > *or* I have already written a different cont

Re: Python Source Code Beautifier

2007-03-08 Thread Alan Franzoni
Il Wed, 07 Mar 2007 14:13:28 -0300, Gabriel Genellina ha scritto: > __iadd__, in general, is not *required* to modify the instance in place > (but should try to do that, if possible). After this code: > b = a > a += c > you can't assert than a and b both refer to the *same* object, a

Re: Python Source Code Beautifier

2007-03-07 Thread Gabriel Genellina
En Wed, 07 Mar 2007 10:29:29 -0300, Alan Franzoni <[EMAIL PROTECTED]> escribió: > Il Tue, 06 Mar 2007 01:55:54 -0300, Gabriel Genellina ha scritto: > If we rely on duck typing, by the way, we may encounter two types > quacking > like ducks, flying like ducks, but in fact acting as slightly di

Re: Python Source Code Beautifier

2007-03-07 Thread Alan Franzoni
Il Tue, 06 Mar 2007 01:55:54 -0300, Gabriel Genellina ha scritto: > The problem is that other people -not necesarily "smarter and more > experienced" than you- may use those features, and perhaps you have to > read, understand and modify some code written by someone else. > So, you should at

Re: Python Source Code Beautifier

2007-03-05 Thread Gabriel Genellina
En Mon, 05 Mar 2007 07:07:57 -0300, Alan Franzoni <[EMAIL PROTECTED]> escribió: > Il Sat, 03 Mar 2007 17:34:35 +1300, greg ha scritto: > >> This was all discussed at *very* great length many >> years ago, and the addition of in-place operators >> to the language was held up for a long time until

Re: Python Source Code Beautifier

2007-03-05 Thread Paul Boddie
On 2 Mar, 14:45, Alan Franzoni <[EMAIL PROTECTED]> wrote: > > I mean... I don't like that. I'm not really a Python expert, I found this > behaviour is documented in the language reference itself: > > http://docs.python.org/ref/augassign.html > > But... I don't know, still think it's confusing and n

Re: Python Source Code Beautifier

2007-03-05 Thread Alan Franzoni
Il Sat, 03 Mar 2007 17:34:35 +1300, greg ha scritto: > This was all discussed at *very* great length many > years ago, and the addition of in-place operators > to the language was held up for a long time until > the present compromise was devised. You might not > like it, but it's here to stay. S

Re: Python Source Code Beautifier

2007-03-02 Thread greg
Alan Franzoni wrote: > I would assume then, that if the '+=' operator > is assumed to modify objects in-place, it would just fail on immutable > objects, wouldn't I? Then you wouldn't be able to do things like x = 3 x += 1 which would result in howls of outrage from the *other* half of t

Re: Python Source Code Beautifier

2007-03-02 Thread Alan Franzoni
Il 28 Feb 2007 14:09:09 -0800, [EMAIL PROTECTED] ha scritto: > Seems obvious and desirable to me. Bare "=" is the way you assign a > name to an object; saying "NAME =" will rebind the name, breaking the > connection between a and b. Without it, they continue to refer to the > same object; exten

Re: Python Source Code Beautifier

2007-03-01 Thread Gabriel Genellina
En Wed, 28 Feb 2007 19:09:09 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribió: > On Feb 28, 11:24 am, Alan Franzoni > <[EMAIL PROTECTED]> wrote: >> Il 27 Feb 2007 16:14:20 -0800, [EMAIL PROTECTED] ha scritto: >> >> > Those mean different things: >> >> a=[1] >> b=a >> a += [2]

Re: Python Source Code Beautifier

2007-02-28 Thread Franz Steinhaeusler
Hello, thanks. pythontidy (with maybe some patches could be useful) not directly related but: pyflakes looks quite interesting too. and I try out (again) pylint and pychecker or a combination of these could bring good results, I assume. ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Source Code Beautifier

2007-02-28 Thread [EMAIL PROTECTED]
On Feb 28, 11:24 am, Alan Franzoni <[EMAIL PROTECTED]> wrote: > Il 27 Feb 2007 16:14:20 -0800, [EMAIL PROTECTED] ha scritto: > > > > > Those mean different things: > > a=[1] > b=a > a += [2] > a > > [1, 2] > b > > [1, 2] > a=[1] > b=a > a = a + [2] > a >

RE: Python Source Code Beautifier

2007-02-28 Thread Delaney, Timothy (Tim)
Alan Franzoni wrote: > Yeah, that's right, it could have semantic differences, but that > shouldn't be the case anyway. I mean, if I don't define an __iadd__ > method, writing > > a += n > > or > > a = a + n > > is just the same, right? > > So, if I bother to define an __iadd__ method, I sho

Re: Python Source Code Beautifier

2007-02-28 Thread Duncan Booth
Alan Franzoni <[EMAIL PROTECTED]> wrote: > Yeah, that's right, it could have semantic differences, but that > shouldn't be the case anyway. I mean, if I don't define an __iadd__ > method, writing > > a += n > > or > > a = a + n > > is just the same, right? > > > So, if I bother to define an

Re: Python Source Code Beautifier

2007-02-28 Thread Alan Franzoni
Il 27 Feb 2007 16:14:20 -0800, [EMAIL PROTECTED] ha scritto: > Those mean different things: > a=[1] b=a a += [2] a > [1, 2] b > [1, 2] a=[1] b=a a = a + [2] a > [1, 2] b > [1] This is a really nasty one! I just answered to Tim above here, and the

Re: Python Source Code Beautifier

2007-02-28 Thread Alan Franzoni
Il Wed, 28 Feb 2007 07:53:47 +1100, Delaney, Timothy (Tim) ha scritto: > Alan Franzoni wrote: >> the += operator is syntactic sugar just to save time... if one >> doesn't use it I don't think it's a matter of beauty. > > This change can have semantic differences, and so should not be done for > a

Re: Python Source Code Beautifier

2007-02-27 Thread [EMAIL PROTECTED]
On Feb 27, 3:45 am, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: > Hello, I did not find any reasonable pyhton source code beautifier > program (preferable gui). > > Some would ask why? Program it immediatly good. > > (BTW: Would be a nice project, if I would have more spare time). > > Ich have s

RE: Python Source Code Beautifier

2007-02-27 Thread Delaney, Timothy (Tim)
Alan Franzoni wrote: >> self.scriptcount = self.scriptcount + 1 => self.scriptcount += 1 > > the += operator is syntactic sugar just to save time... if one > doesn't use it I don't think it's a matter of beauty. This change can have semantic differences, and so should not be done for anything ex

Re: Python Source Code Beautifier

2007-02-27 Thread Michael Spencer
Franz Steinhaeusler wrote: > Use Spaces, size: 4 > detect mixed line ending > detect tabs mixed with space > trim trailing whitespaces. look at: tools/scripts/reindent.py > convert structs like: if (a > b): to if a > b: > fill in spaces, but not in functions between operators: > > a+=1 =>

Re: Python Source Code Beautifier

2007-02-27 Thread Alan Franzoni
Il Tue, 27 Feb 2007 09:45:42 +0100, Franz Steinhaeusler ha scritto: > Hello, I did not find any reasonable pyhton source code beautifier > program (preferable gui). Well, most of the things you ask should be written as such, not written and then beautified! > Use Spaces, size: 4 Your editor sho

Re: Python Source Code Beautifier

2007-02-27 Thread Chuck Rhode
Franz Steinhaeusler wrote this on Tue, 27 Feb 2007 09:45:42 +0100. My reply is below. > Hello, I did not find any reasonable pyhton source code beautifier > program (preferable gui). -snip- > Is there such a tool around? Why, yes! Yes, there is: o http://lacusveris.com/PythonTidy/PythonTidy.

Re: Python Source Code Beautifier

2007-02-27 Thread Neil Hodgson
Franz Steinhaeusler: > Hello, I did not find any reasonable pyhton source code beautifier > program (preferable gui). > ... > convert: > ... > from "is" to "==" and "is not" to "!=" (ok a find replace could do that > easily also), but in a program that would be more comfortable. That's an unsa

Re: Python Source Code for a HTTP Proxy

2005-09-23 Thread Gary Herron
llothar wrote: >Hello, > >i'm looking for a simple http proxy in python. >Does anybody know about something like this ? > > > Here's a list, maintained by Alan Kennedy, of about 20 proxys written in Python: http://xhaus.com/alan/python/proxies.html Enjoy, Gary Herron -- http://mail.pyth