py2exe questions
I have 2 questions about py2exe or any similar utility. 1. Is it possible to create a single Windows executable that does not blow out to a folder full of files and can be called from scripts using command line arguments? 2. If the above can be done, it is possible to hide parts of the Python source code from users? These users are software developers, but we don't want them to see how the code does what it does. thanks, doug -- http://mail.python.org/mailman/listinfo/python-list
ASN.1 encoder & decoder
Can anyone provide guidance on building an ASN.1 decoder and encoder in Python? This does not have to be a general purpose implementation, drivenf from an ASN.1 template. It can be dedicated hard coded to a particular template. Doug Stell, [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list
Re: ASN.1 encoder & decoder
I looked at pyasn1. Unfortunately, it is not useful and provides a C interface. Thanks, anyhow. I figure that I will have to write my own, but am unsure of the best approach. Nested lists and distionaries might be useful and I am looking to the feasibility of those mechanisms. On Fri, 25 Aug 2006 23:20:41 +0100, Bruce Stephens <[EMAIL PROTECTED]> wrote: >Doug Stell <[EMAIL PROTECTED]> writes: > >> Can anyone provide guidance on building an ASN.1 decoder and encoder >> in Python? > ><http://sourceforge.net/projects/pyasn1/>? -- http://mail.python.org/mailman/listinfo/python-list
Re: ASN.1 encoder & decoder
Thanks Paul. This is exactly the type andlevel of implementation that I was looking for. I will look at the other implementation again. On 25 Aug 2006 16:32:46 -0700, Paul Rubin <http://[EMAIL PROTECTED]> wrote: >Doug Stell <[EMAIL PROTECTED]> writes: >> Can anyone provide guidance on building an ASN.1 decoder and encoder >> in Python? This does not have to be a general purpose implementation, >> drivenf from an ASN.1 template. It can be dedicated hard coded to a >> particular template. > >There might be some useful code in www.trevp.com/tlslite . -- http://mail.python.org/mailman/listinfo/python-list
Re: Looking for the Perfect Editor
Try www.TextPad.com. I've used it for years and love it. It understands many programming language constructs and can be taught to understand python so that things show up in color. On 7 Sep 2006 13:18:22 -0700, "Omar" <[EMAIL PROTECTED]> wrote: >I'd love the perfect editor that would be: > >a) free > >b) enable me to drag and drop code snippets from a sort of browser into >the code > >c) can run programs right from within > >d) can edit > - PYTHON > - Javascript > - HTML > - actionscript (since I'm also learning flash) > >e) easy to learn > >suggestions? -- http://mail.python.org/mailman/listinfo/python-list
Inconsistent list/pointer problem
I am having a problem with the corruption of a list. It occurs only the first time that I call a function and never happens on subsequent calls. Any suggestions would be appreciated. I call the function, passing in a list as the input data. The function must manipulate and operate on a copy of that list's data, without altering the list in the calling routine. def myFunc(listA): listB = listA work on & modify listB return(listB) The first time this function touches listB, listA is corrupted. However, I get the right results from the function. On subsequent calls to the function, listA is not corrupted further and the function will always return the same wrong results, which would be correct given the corruption of listA created in the first call. I concluded that it appears that listB is still pointing at elements of listA and I need to force Python to reassign those pointers to point to copies of listA's elements. I've tried copying listA to a tuple and then change the copy back to a list. That sometimes works if the input data is a simple list. It does not work if the input data is a list extracted from a list of lists. listB = tuple(listA) listB = list(listB) I've tried building the copy of listA, element by element, but that doesn't work. listB = [] for x in listA: listB.append(x) I finally had to do some type changing during the element by element copy and that does seem to work. Thanks in advance for any suggestions. Doug -- http://mail.python.org/mailman/listinfo/python-list
Supporting Python 2.x and 3.x on a PC
I support multiple projects, some of which will remain on Python 2.x and some of which want to use Python 3.1.2. While I have installed both on my Windows PC, only the last installed version can be used. I do not have admin rights on the machine, so altering registry settings is not an option. Any guidance on how I can select between the versions? Thanks -- http://mail.python.org/mailman/listinfo/python-list