RE: Windows installer from python source code without access to source code

2023-04-09 Thread Jim Schwartz
7:28 AM To: 'Eryk Sun' Cc: python-list@python.org Subject: RE: Windows installer from python source code without access to source code Is this what you'd recommend doing when distributing a cython-generated code compiled with cl. I want to distribute this in a windows or other o

Re: Windows installer from python source code without access to source code

2023-04-07 Thread Mark Bourne
MRAB wrote: On 2023-04-06 23:14, Jim Schwartz wrote:     Could someone please help Carlos?  I’m not sure how to answer his     question     Sent from my iPhone   On Apr 6, 2023, at 3:53 PM, Carlos Fulqueris wrote:      Hello Jim,   How can I unsubscribe to this email list?

RE: Windows installer from python source code without access to source code

2023-04-07 Thread Jim Schwartz
: 'python-list@python.org' Subject: RE: Windows installer from python source code without access to source code Yea, thanks a lot. That makes sense. I was testing it on my development environment and got it to work that way, but I need to package it and test it on my dual boot "user&

RE: Windows installer from python source code without access to source code

2023-04-07 Thread Jim Schwartz
From: Eryk Sun Sent: Thursday, April 6, 2023 8:06 PM To: Jim Schwartz Cc: python-list@python.org Subject: Re: Windows installer from python source code without access to source code On 4/6/23, Jim Schwartz wrote: > Never mind. I found it on the web. I needed to point my PYTHONPATH &

Re: Windows installer from python source code without access to source code

2023-04-06 Thread Eryk Sun
On 4/6/23, Jim Schwartz wrote: > Never mind. I found it on the web. I needed to point my PYTHONPATH to > sitepackages: In most cases an application should be isolated from PYTHON* environment variables. If you're creating a Python application or embedding Python in an application, use the embed

RE: Windows installer from python source code without access to source code

2023-04-06 Thread Jim Schwartz
' Cc: python-list@python.org Subject: RE: Windows installer from python source code without access to source code I downloaded VS community 2022 and I know how to access the developer command prompt. I'm using the one called x64 Native Tools Command Prompt for VS 2022 I ran a comman

Re: Windows installer from python source code without access to source code

2023-04-06 Thread MRAB
On 2023-04-06 23:14, Jim Schwartz wrote: Could someone please help Carlos?  I’m not sure how to answer his question Sent from my iPhone On Apr 6, 2023, at 3:53 PM, Carlos Fulqueris wrote:  Hello Jim, How can I unsubscribe to this email list? I'm wait

Re: Windows installer from python source code without access to source code

2023-04-06 Thread Jim Schwartz
arrys-emacs.org> Sent: Tuesday, April 4, 2023 1:25 PM To: Jim Schwartz <[3]jsch...@sbcglobal.net> Cc: Eryk Sun <[4]eryk...@gmail.com>; [5]python-list@python.org Subject: Re: Windows installer from python source code without access to source cod

RE: Windows installer from python source code without access to source code

2023-04-06 Thread Jim Schwartz
4, 2023 1:25 PM To: Jim Schwartz Cc: Eryk Sun ; python-list@python.org Subject: Re: Windows installer from python source code without access to source code > On 4 Apr 2023, at 16:28, Jim Schwartz wrote: > > Where can I download that cl program? I've used gcc before, but I hear

Re: Windows installer from python source code without access to source code

2023-04-04 Thread Barry
ubject: Re: Windows installer from python source code without access to > source code > >> On 3/31/23, Jim Schwartz wrote: >> I want a windows installer to install my application that's written in >> python, but I don't want the end user to have access to my sou

RE: Windows installer from python source code without access to source code

2023-04-04 Thread Jim Schwartz
z Cc: python-list@python.org Subject: Re: Windows installer from python source code without access to source code On 3/31/23, Jim Schwartz wrote: > I want a windows installer to install my application that's written in > python, but I don't want the end user to have access to my sou

Re: Windows installer from python source code without access to source code

2023-04-01 Thread Thomas Passin
On 4/1/2023 5:24 AM, Jim Schwartz wrote: I am writing an app but I’m not sure I’ll sell it yet. I have it in a private GitHub location and GitHub prompts me for a license. I don’t really understand licenses so I just picked Apache 2.0. Maybe I’m going too far with my worry about which license

Re: Windows installer from python source code without access to source code

2023-04-01 Thread Chris Angelico
On Sat, 1 Apr 2023 at 20:24, Jim Schwartz wrote: > > I am writing an app but I’m not sure I’ll sell it yet. I have it in a private > GitHub location and GitHub prompts me for a license. I don’t really > understand licenses so I just picked Apache 2.0. Maybe I’m going too far with > my worry abo

Re: Windows installer from python source code without access to source code

2023-04-01 Thread Jim Schwartz
I am writing an app but I’m not sure I’ll sell it yet. I have it in a private GitHub location and GitHub prompts me for a license. I don’t really understand licenses so I just picked Apache 2.0. Maybe I’m going too far with my worry about which license I pick. I’m not selling it now so it doesn’

Re: Windows installer from python source code without access to source code

2023-04-01 Thread Chris Angelico
On Sat, 1 Apr 2023 at 13:16, <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2023-04-01 at 10:49:18 +1100, > Chris Angelico wrote: > > > [...] I don't have access to the Gmail source code but I'm using the > > service [...] > > You have access to Gmail's front end source code. Your web browser

Re: Windows installer from python source code without access to source code

2023-03-31 Thread 2QdxY4RzWzUUiLuE
On 2023-04-01 at 10:49:18 +1100, Chris Angelico wrote: > [...] I don't have access to the Gmail source code but I'm using the > service [...] You have access to Gmail's front end source code. Your web browser runs it every time you use the service (and probably while you aren't using the servic

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Chris Angelico
On Sat, 1 Apr 2023 at 10:34, Jim Schwartz wrote: > > Yea. You’re right. I probably need a lawyer someday. Thanks. > If your needs are basic, you shouldn't need a lawyer. Copyright law and treaties DO protect you. But it's important to be aware that no amount of legal protection - whether you hire

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Jim Schwartz
r who > practices in this field. > > >> -Original Message- >> From: Python-list On >> Behalf Of Chris Angelico >> Sent: Friday, March 31, 2023 7:09 AM >> To: python-list@python.org >> Subject: Re: Windows installer from python source code with

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Thomas Passin
phone apps developers include with their apps. And it would be good to consult a lawyer who practices in this field. -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Friday, March 31, 2023 7:09 AM To: python-list@python.org Subject: Re: Windows installer from python s

RE: Windows installer from python source code without access to source code

2023-03-31 Thread Jim Schwartz
What license do I have to choose so people can't use my code? I don't know this stuff. -Original Message- From: Python-list On Behalf Of Chris Angelico Sent: Friday, March 31, 2023 7:09 AM To: python-list@python.org Subject: Re: Windows installer from python source code with

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Eryk Sun
On 3/31/23, Jim Schwartz wrote: > I want a windows installer to install my application that's written in > python, but I don't want the end user to have access to my source code. Cython can compile a script to C source code for a module or executable (--embed). The source can be compiled and link

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Alan Gauld
On 31/03/2023 13:00, Jim Schwartz wrote: > I want a windows installer to install my application that's written in > python, but I don't want the end user to have access to my source code. Others have commented that at some level it will always be thre but on a more pragmatic level tools like py2

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Thomas Passin
On 3/31/2023 10:14 AM, jkn wrote: On Friday, March 31, 2023 at 1:09:12 PM UTC+1, Chris Angelico wrote: On Fri, 31 Mar 2023 at 23:01, Jim Schwartz wrote: I want a windows installer to install my application that's written in python, but I don't want the end user to have access to my source cod

Re: Windows installer from python source code without access to source code

2023-03-31 Thread jkn
On Friday, March 31, 2023 at 1:09:12 PM UTC+1, Chris Angelico wrote: > On Fri, 31 Mar 2023 at 23:01, Jim Schwartz wrote: > > > > I want a windows installer to install my application that's written in > > python, but I don't want the end user to have access to my source code. > > > > > > > >

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Chris Angelico
On Fri, 31 Mar 2023 at 23:01, Jim Schwartz wrote: > > I want a windows installer to install my application that's written in > python, but I don't want the end user to have access to my source code. > > > > Is that possible using python? I was using cx-freeze, but that has the > source code avail

Windows installer from python source code without access to source code

2023-03-31 Thread Jim Schwartz
I want a windows installer to install my application that's written in python, but I don't want the end user to have access to my source code. Is that possible using python? I was using cx-freeze, but that has the source code available. So does pyinstaller. I think gcc does, too. Does

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

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

python source code

2017-03-22 Thread M. R.P.
does anyone know were I can python source code programs? -- https://mail.python.org/mailman/listinfo/python-list

Re: Max size of Python source code and compiled equivalent

2016-07-21 Thread Peter Otten
Malcolm Greene wrote: > We're writing a DSL parser that generates Python code. While the size of > our generated code will be small (< 32K), I wanted to re-assure the rest > of our team that there are no reasonable code size boundaries that we > need to be concerned about. I've searched for Python

Re: Max size of Python source code and compiled equivalent

2016-07-21 Thread Malcolm Greene
> Heh, great question, and I'm curious too! But one place to get a bit more > info is the standard library. > > rosuav@sikorsky:~/cpython/Lib$ find -name \*.py|xargs ls -lS|head > -rw-r--r-- 1 rosuav rosuav 624122 Jul 17 17:38 ./pydoc_data/topics.py Brilliant! :) Thanks Chris! Malcolm -- http

Re: Max size of Python source code and compiled equivalent

2016-07-21 Thread Chris Angelico
On Fri, Jul 22, 2016 at 2:51 AM, Malcolm Greene wrote: > We're writing a DSL parser that generates Python code. While the size of > our generated code will be small (< 32K), I wanted to re-assure the rest > of our team that there are no reasonable code size boundaries that we > need to be concerne

Max size of Python source code and compiled equivalent

2016-07-21 Thread Malcolm Greene
We're writing a DSL parser that generates Python code. While the size of our generated code will be small (< 32K), I wanted to re-assure the rest of our team that there are no reasonable code size boundaries that we need to be concerned about. I've searched for Python documentation that covers max

Re: Is it possible to protect python source code by compiling it to .pyc or .pyo?

2014-01-17 Thread Tim Delaney
On 18 January 2014 08:31, Joshua Landau wrote: > On 17 January 2014 00:58, Sam wrote: > > I would like to protect my python source code. It need not be foolproof > as long as it adds inconvenience to pirates. > > > > Is it possible to protect python source code by compil

Re: Is it possible to protect python source code by compiling it to .pyc or .pyo?

2014-01-17 Thread Joshua Landau
On 17 January 2014 00:58, Sam wrote: > I would like to protect my python source code. It need not be foolproof as > long as it adds inconvenience to pirates. > > Is it possible to protect python source code by compiling it to .pyc or .pyo? > Does .pyo offer better protection? If

Re: Is it possible to protect python source code by compiling it to .pyc or .pyo?

2014-01-16 Thread Steven D'Aprano
On Thu, 16 Jan 2014 16:58:48 -0800, Sam wrote: > I would like to protect my python source code. It need not be foolproof > as long as it adds inconvenience to pirates. What makes you think that "pirates" will be the least bit interested in your code? No offence intended, I&#

Re: Is it possible to protect python source code by compiling it to .pyc or .pyo?

2014-01-16 Thread Ethan Furman
On 01/16/2014 05:09 PM, Chris Angelico wrote: On Fri, Jan 17, 2014 at 11:58 AM, Sam wrote: I would like to protect my python source code. It need not be foolproof as long as it adds inconvenience to pirates. Is it possible to protect python source code by compiling it to .pyc or .pyo? Does

Re: Is it possible to protect python source code by compiling it to .pyc or .pyo?

2014-01-16 Thread Chris Angelico
On Fri, Jan 17, 2014 at 11:58 AM, Sam wrote: > I would like to protect my python source code. It need not be foolproof as > long as it adds inconvenience to pirates. > > Is it possible to protect python source code by compiling it to .pyc or .pyo? > Does .pyo offer better pro

Re: Is it possible to protect python source code by compiling it to .pyc or .pyo?

2014-01-16 Thread Ben Finney
Sam writes: > I would like to protect my python source code. Protect it from what? If there's some specific activity you want to prevent or restrict, please say what it is, since “protect” is a rather loaded term. > It need not be foolproof as long as it adds inconvenience to pirate

Re: Is it possible to protect python source code by compiling it to .pyc or .pyo?

2014-01-16 Thread Ned Batchelder
On 1/16/14 7:58 PM, Sam wrote: I would like to protect my python source code. It need not be foolproof as long as it adds inconvenience to pirates. Is it possible to protect python source code by compiling it to .pyc or .pyo? Does .pyo offer better protection? First, .pyc and .pyo are

Is it possible to protect python source code by compiling it to .pyc or .pyo?

2014-01-16 Thread Sam
I would like to protect my python source code. It need not be foolproof as long as it adds inconvenience to pirates. Is it possible to protect python source code by compiling it to .pyc or .pyo? Does .pyo offer better protection? -- https://mail.python.org/mailman/listinfo/python-list

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: Why is python source code not available on github?

2012-06-24 Thread Stefan Krah
Peter Otten <__pete...@web.de> wrote: > gmspro wrote: > > Why is python source code not available on github? Why should every free software project be available on a single proprietary platform? Also, see: http://arstechnica.com/business/2012/03/hacker-commandeers-github-to-pro

Re: Why is python source code not available on github?

2012-06-24 Thread Peter Otten
gmspro wrote: > Why is python source code not available on github? > > Make it available on github so that we can git clone and work on source > code. http://thread.gmane.org/gmane.comp.python.devel/121885/focus=122111 -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is python source code not available on github?

2012-06-24 Thread Stefan Behnel
gmspro, 24.06.2012 02:16: > Why is python source code not available on github? > > Make it available on github so that we can git clone and work on source code. github != git. You can use git to work on the sources if you wish. Just install a Mercurial plugin for it and clone the code

Re: Why is python source code not available on github?

2012-06-23 Thread Chris Angelico
On Sun, Jun 24, 2012 at 10:34 AM, gmspro wrote: > > No, > I can download as .tar.bz2, but i'm talking about using git. > git clone, git add ., git commit -a, git push is easier to keep track of > my code. Then for git pull request. Mercurial can do all that. I'm not as familiar with it as I am wi

Re: Why is python source code not available on github?

2012-06-23 Thread gmspro
No, I can download as .tar.bz2, but i'm talking about using git. git clone, git add ., git commit -a, git push is easier to keep track of my code. Then for git pull request. --- On Sat, 6/23/12, George Silva wrote: From: George Silva Subject: Re: Why is python source code not availab

Re: Why is python source code not available on github?

2012-06-23 Thread Chris Angelico
On Sun, Jun 24, 2012 at 10:16 AM, gmspro wrote: > > Why is python source code not available on github? > > Make it available on github so that we can git clone and work on source > code. It's done with Mercurial, not git, but the same can be done: hg clone http://hg.python

Re: Why is python source code not available on github?

2012-06-23 Thread Andrew Berg
On 6/23/2012 7:16 PM, gmspro wrote: > Why is python source code not available on github? If you mean CPython, it's because the devs use Mercurial and have their own hosting on python.org. hg clone http://hg.python.org/cpython http://docs.python.org/devguide/setup.html github is far from

Re: Why is python source code not available on github?

2012-06-23 Thread George Silva
http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 On Sat, Jun 23, 2012 at 9:16 PM, gmspro wrote: > Why is python source code not available on github? > > Make it available on github so that we can git clone and work on source > code. > > -- > http://mail.python

Why is python source code not available on github?

2012-06-23 Thread gmspro
Why is python source code not available on github? Make it available on github so that we can git clone and work on source code. -- http://mail.python.org/mailman/listinfo/python-list

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

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

2010-06-25 Thread superpollo
hi. 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 the best way to do that? (the appli

search engine for python source code

2010-02-01 Thread purui
I developed a source code search engine for python (http:// nullege.com). It helps you find samples from open source projects. Unlike other code search engines, it really understands python syntax and generates more relative results. I'm working on expend the source code collection now. Give it a t

Re: How python source code in large projects are organized?

2009-09-29 Thread Jonathan Gardner
On Sep 20, 8:19 am, Peng Yu wrote: > > I am wondering what is the best way of organizing python source code > in a large projects. There are package code, testing code. I'm > wondering if there has been any summary on previous practices. > (Sorry for the late reply.) My adv

Re: How python source code in large projects are organized?

2009-09-26 Thread Christopher Arndt
On 20 Sep., 22:10, exar...@twistedmatrix.com wrote: > On 07:10 pm, pengyu...@gmail.com wrote: > > >On Sun, Sep 20, 2009 at 11:31 AM, Daniel Fetchinson > > wrote: > >>>I am wondering what is the best way of organizing python source code > >>>in a large proj

Re: How python source code in large projects are organized?

2009-09-20 Thread exarkun
On 07:10 pm, pengyu...@gmail.com wrote: On Sun, Sep 20, 2009 at 11:31 AM, Daniel Fetchinson wrote: I am wondering what is the best way of organizing python source code in a large projects. There are package code, testing code. I'm wondering if there has been any summary on previous prac

Re: How python source code in large projects are organized?

2009-09-20 Thread Peng Yu
On Sun, Sep 20, 2009 at 11:31 AM, Daniel Fetchinson wrote: >> I am wondering what is the best way of organizing python source code >> in a large projects. There are package code, testing code. I'm >> wondering if there has been any summary on previous practices. >

Re: How python source code in large projects are organized?

2009-09-20 Thread Daniel Fetchinson
> I am wondering what is the best way of organizing python source code > in a large projects. There are package code, testing code. I'm > wondering if there has been any summary on previous practices. I suggest looking at the source code of large projects like twisted, PIL, djan

How python source code in large projects are organized?

2009-09-20 Thread Peng Yu
Hi, I am wondering what is the best way of organizing python source code in a large projects. There are package code, testing code. I'm wondering if there has been any summary on previous practices. Regards, Peng -- http://mail.python.org/mailman/listinfo/python-list

Re: Where find regexs needed to build lexical analyzer for Python source code?

2009-09-11 Thread Hao Lian
Chris Seberino writes with great flourish: > > I'd like to build a lexer aka lexical analyzer aka tokenizer for > Python source code as a learning exercise. > > Where can I find the regexs that define the tokens of Python source? > (I am aware of tokenizer.py but I was

Where find regexs needed to build lexical analyzer for Python source code?

2009-09-11 Thread Chris Seberino
I'd like to build a lexer aka lexical analyzer aka tokenizer for Python source code as a learning exercise. Where can I find the regexs that define the tokens of Python source? (I am aware of tokenizer.py but I was hoping there was a web page w/ a list somewhere.) cs -- http://mail.pytho

Re: How do I generate dia diagrams from python source code?

2009-07-27 Thread Vesa Köppä
Qauzzix wrote: Greetings. Since I have been using dia to make my UML diagrams. I also found an util named dia2code that generates python code from dia diagram. Now that I have that option I really want to find a way to generate dia diagram from existing code and/or maintain my diagrams. I have

Re: How do I generate dia diagrams from python source code?

2009-07-26 Thread Qauzzix
On Jul 25, 8:31 am, "Gabriel Genellina" wrote: > En Fri, 24 Jul 2009 17:52:47 -0300, Qauzzix escribió: > > > Since I have been usingdiato make my UML diagrams. I also found an > > util named dia2code that generates python code fromdiadiagram. Now > > that I have that option I really want to find

Re: How do I generate dia diagrams from python source code?

2009-07-25 Thread Gabriel Genellina
En Fri, 24 Jul 2009 17:52:47 -0300, Qauzzix escribió: Since I have been using dia to make my UML diagrams. I also found an util named dia2code that generates python code from dia diagram. Now that I have that option I really want to find a way to generate dia diagram from existing code and/or m

How do I generate dia diagrams from python source code?

2009-07-24 Thread Qauzzix
Greetings. Since I have been using dia to make my UML diagrams. I also found an util named dia2code that generates python code from dia diagram. Now that I have that option I really want to find a way to generate dia diagram from existing code and/or maintain my diagrams. I have been googling li

Re: Securely distributing python source code as an application?

2007-12-11 Thread Ben Finney
xkenneth <[EMAIL PROTECTED]> writes: > I'll shortly be distributing a number of python applications that > use proprietary. That's unfortunate. Hopefully it's not too late to avoid restricting yourself and your users in this way. > The software is part of a much larger system and it will need to

Re: Securely distributing python source code as an application?

2007-12-08 Thread Larry Bates
xkenneth wrote: > Hi All, > > I'll shortly be distributing a number of python applications that > use proprietary. The software is part of a much larger system and it > will need to be distributed securely. How can i achieve this? > > Regards, > Ken We have partnered with developers to use

Re: Securely distributing python source code as an application?

2007-12-07 Thread Tim Churches
xkenneth wrote: > Message should have read: > Hi All, > > I'll shortly be distributing a number of python applications that > use proprietary source code. The software is part of a much larger > system and it > will need to be distributed securely. How can i achieve this? You need to define

Re: Securely distributing python source code as an application?

2007-12-07 Thread sturlamolden
So for example one could: 1. Put all the compiled Python bytecode in an encrypted binary file. 2. Build a small binary executable (.exe file) that: 2a. Reads the binary file. 2b. Decrypts it to conventional Python byte code. 2c. Embeds a Python interpreter. 2d. Executes the byte

Re: Securely distributing python source code as an application?

2007-12-07 Thread sturlamolden
the application as a web service there is no need to distribute anything all. That is what Google does. You don't have to distribute your Python source code. You can distribute Python bytecode (.pyc files). Python bytecode can be decompiled, but the source can not be retrieved. The same

Re: Securely distributing python source code as an application?

2007-12-07 Thread xkenneth
Message should have read: Hi All, I'll shortly be distributing a number of python applications that use proprietary source code. The software is part of a much larger system and it will need to be distributed securely. How can i achieve this? Regards, Ken -- http://mail.python.org/mailman/l

Securely distributing python source code as an application?

2007-12-07 Thread xkenneth
Hi All, I'll shortly be distributing a number of python applications that use proprietary. The software is part of a much larger system and it will need to be distributed securely. How can i achieve this? Regards, Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: compiling python source code under VC8

2007-12-04 Thread Martin v. Löwis
> I am trying to build python from scratch under VC8. The build process > runs and completes succesfully in debug mode resulting in > python_d.exe. But when i try to run this exe it returns an assertion > error and application crashes. What Python version are you trying to compile? This sounds li

compiling python source code under VC8

2007-12-03 Thread guptaabhishek1983
Hello everyone, I am trying to build python from scratch under VC8. The build process runs and completes succesfully in debug mode resulting in python_d.exe. But when i try to run this exe it returns an assertion error and application crashes. Has anyone successfully build python using VC8. Your

Re: Spell-checking Python source code

2007-09-09 Thread David
On 9/9/07, David <[EMAIL PROTECTED]> wrote: > > tokenize.tokenize( > > file.readline, > > processStrings > > ) > > > > How would you go about writing the output to a file? I mean, I would > > like to open the file at main level and pass a handle to the file to > > processStrings to writ

Re: Spell-checking Python source code

2007-09-09 Thread Benjamin
eck literal > strings entered into Python source code? I don't mean spell-check > strings entered by the user; I mean, go through the .py file, isolate > strings, and tell me when the strings contain misspelled words. In an > ideal world, my IDE would do this with a red wavy line.

Re: Spell-checking Python source code

2007-09-09 Thread David
> tokenize.tokenize( > file.readline, > processStrings > ) > > How would you go about writing the output to a file? I mean, I would > like to open the file at main level and pass a handle to the file to > processStrings to write to it, finally close output file at main level. > Probably

Re: Spell-checking Python source code

2007-09-08 Thread Miki
>> In an ideal world, my IDE would do this with a red wavy line. > > You didn't mention which IDE you use; however, if you use Emacs, there > is flyspell-prog-mode which does that for you (checks your spelling > "on the fly", but only within comments and strings). Same in Vim (:set spell) HTH, --

Re: Spell-checking Python source code

2007-09-08 Thread David Trudgett
John Zenger writes: > In an ideal world, my IDE would do this with a red wavy line. You didn't mention which IDE you use; however, if you use Emacs, there is flyspell-prog-mode which does that for you (checks your spelling "on the fly", but only within comments and strings). Regards, David Trudg

Re: Spell-checking Python source code

2007-09-08 Thread DaveM
On Sat, 08 Sep 2007 14:04:55 -0700, John Zenger <[EMAIL PROTECTED]> wrote: > In an ideal world, my IDE would do this with a red wavy line. I can't help with your problem, but this is the first thing I turn off in Word. It drives me _mad_. Sorry - just had to share that. DaveM -- http://mail.p

Re: Spell-checking Python source code

2007-09-08 Thread Ricardo Aráoz
David wrote: >>> (I know that the better practice is to isolate user-displayed strings >>> from the code, but in this case that just didn't happen.) >>> >> Use the re module, identify the strings and write them to another file, >> then open the file with your spell checker. Program shouldn't be mor

Re: Spell-checking Python source code

2007-09-08 Thread David
> > > > (I know that the better practice is to isolate user-displayed strings > > from the code, but in this case that just didn't happen.) > > > > Use the re module, identify the strings and write them to another file, > then open the file with your spell checker. Program shouldn't be more > than

Re: Spell-checking Python source code

2007-09-08 Thread Ricardo Aráoz
John Zenger wrote: > To my horror, someone pointed out to me yesterday that a web app I > wrote has been prominently displaying a misspelled word. The word was > buried in my code. > > Is there a utility out there that will help spell-check literal > strings entered into Pyth

Spell-checking Python source code

2007-09-08 Thread John Zenger
To my horror, someone pointed out to me yesterday that a web app I wrote has been prominently displaying a misspelled word. The word was buried in my code. Is there a utility out there that will help spell-check literal strings entered into Python source code? I don't mean spell-check st

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

  1   2   >