how do I factor a number down to one digit?
I'm trying to write a numerology program where I have each letter identified by a numerical value like a=1 b=2 c=3 as so forth. I then input a name. How do I treat each letter as a single value? That is, instead of print myname I have to do a print m+y+n+a+m+e which returns a number. I next want to convert the resulting two or three digit number to a single digit. Like 123 would be 1+2+3 returning a 5. I hope this isn't too stupid of a question. -- http://mail.python.org/mailman/listinfo/python-list
If you use PayPal you might consider an alternative
If you used PayPal and are not satisifed with their service there is a new and better service opening. They will be starting up during the early summer this year. The best of all - signup is FREE. Check out their benefits: www.greenzap.com/benefits -- http://mail.python.org/mailman/listinfo/python-list
Python string.title Function
Hi All - We're developing in Python 2.4.3 and are noticing something strange. For example, when testing, here's what we're seeing: x = "here's my title!"; x = x.title(); print x; Here'S My Title! Notice the capitalization -- "Here'S". Any feedback on this issue is much appreciated. Thanks much, Allan -- http://mail.python.org/mailman/listinfo/python-list
Form/Template Fill-in the blanks
I'm attempting to create a generic python script that will take an EDI document specification and a database of transactions and be able to generate a raw EDI file (ansi X12). I'm looking for ideas on how best to use the strengths of Python to implement this. I've initially tackled the EDI 812 specifications and narrowed this down to a specific implementation by a company. This narrowed down version is what I want to achieve for output. But I want the script to be generic enough such that I can plug-in another EDI specification + a database transaction set and it will output the proper raw file accordingly. My initial thought was to use: 1. .ini files to declare the EDI configuration 2. Use SQLAlchemy as ORB to simplify access to database objects. INI file configuration: * A "root" INI file indicates other INI files that define each segment of the EDI document. * Each segment INI defines the data elements of each segment and the behavior of the segment (one instance or multiple-instance as in a loop, sequence order, segment code, etc.) * Specify data elements as either constant, system function (like datetime), database field or object method (object being the segment's) * Load all the ini configuration into a "template" object. Each segment ini maps to its own segment object. DB using SQLAlchemy Gather a Trading Partner data and Credit Transaction (EDI 812 remember?) into one dictionary object Gather Credit Transaction details into another dictionary object where it can generate the multiple instance segments The heart of the matter is how to fuse together the template and the data from the dictionary objects efficiently. It should be generic enough to take another set of data dictionary and another template to generate a completely new EDI document. I'm stuck at this fusing together thing. Is this a good approach? Is there an easier to implement approach? Comments, suggestions, questions please. Allan -- http://mail.python.org/mailman/listinfo/python-list
recording input from USB port and write to text file
Hi! I'm fairly new to Python. I understand the basics basics but I'm been trying to write a simple python code that will let me read input data (such as mouse movement) from my USB port and write it in a text file and I am so lost. Can anyone help or direct me to some resources? Thank you! -- http://mail.python.org/mailman/listinfo/python-list
Re: Teaching Python
How about this. http://inventwithpython.com/ thanks, Allan On Tue, Apr 19, 2011 at 7:35 PM, geremy condra wrote: > On Tue, Apr 19, 2011 at 4:24 PM, Dan Stromberg > wrote: > > On Tue, Apr 19, 2011 at 4:03 PM, geremy condra > wrote: > >> On Tue, Apr 19, 2011 at 3:42 PM, Passiday wrote: > >>> Hello, > >>> > >>> I am planning to teach Python to a group of high school students, who > have in-depth interest in programming, hacking etc. > >>> > >>> I am looking for some good material, what I could use as a basic guide > when preparing the classes plan for the course - website or book, what would > roll out the topic methodologically gradually. The target audience is > someone who knows most basics of the programming, but doesn't mind being > reminded about them now and then. > >>> > >>> Thanks for any suggestions! > >> > >> When you say 'hacking', you mean ? > > > > Presumably he meant the real meaning of the word, not what the press > > made up and ran with. > > Even security professionals use it both ways. Especially in the > context of a room full of teenagers, it seems reasonable to ask. > > Geremy Condra > -- > http://mail.python.org/mailman/listinfo/python-list > -- ___ Allan Davis http://www.linkedin.com/in/cajuncode -- http://mail.python.org/mailman/listinfo/python-list
Problema na DLL
Olá, estou tendo problemas para executar o Python, baixei a versão 64 bit pois nas configurações de meu computador mostra 64x, porém na hora de executar diz que não tenho o api-ms-win-crt-runtime-l1-1-0.dll -- https://mail.python.org/mailman/listinfo/python-list
Re: Error 0*80070570
When running the setup for your 3.5.1(32-bit version), the setup experiences error 0*80070570 and tells me to check the log file. What could be the problem and whats the solution. On Apr 21, 2016 7:05 AM, "Allan Leo" wrote: > When running the setup for your 3.5.1(32-bit version) the setup > experiences error 0*80070570 and tells me to checkout the log file. What > could be the problem and whats the resolution. > -- https://mail.python.org/mailman/listinfo/python-list
Fwd: Re: Error 0*80070570
I need help with this setup error. -- Forwarded message -- From: "Allan Leo" Date: Apr 21, 2016 10:06 AM Subject: Re: Error 0*80070570 To: Cc: When running the setup for your 3.5.1(32-bit version), the setup experiences error 0*80070570 and tells me to check the log file. What could be the problem and whats the solution. On Apr 21, 2016 7:05 AM, "Allan Leo" wrote: > When running the setup for your 3.5.1(32-bit version) the setup > experiences error 0*80070570 and tells me to checkout the log file. What > could be the problem and whats the resolution. > -- https://mail.python.org/mailman/listinfo/python-list
anaconda.real in RH7.1
I'm trying to reinstall RedHat 7.1 Linux on a PC that was disabled when I tried to upgrade from RH7.1 to RH9. This is presenting lots of unexpected difficulties. Apart from wanting to keep the old model T in shape, I'm treating this as a learning experience. Right now, I'm trying to gain more control over the installation CD. By that I mean, I intend to modify the installation script and other aspects of the CD and burn a new installation CD. The installation script starts off as a shell script named anaconda which then calls a python script named anaconda.real. The former is pretty easy to understand, but I don't know anything about python. At the moment, I'm using the book, "Programming Python", by Mark Lutz, as a reference. The file anaconda.real is about 526 lines long. I've copied out about an eighth of it into a notebook and am trying to use the book to make sense of what I have copied. I'm not finding it very helpful. I don't know whether that is because the script relies on aspects of python that aren't well explained in the book or because it relies on aspects of RedHat Linux. I thought I should ask here first about what seem like purely python issues. The file anaconda.real is invoked with the line exec /usr/bin/anaconda.real -T "$@" I don't know what effect the -T "$@" has. The file anaconda.real begins: #!/usr/bin/python signal.signal(signal.SIGINT,signal.SIG_DFL) There is nothing about signal or signal.signal or the other signal.* in the book. The file continues: # For anaconda in test mode if (os.path.exists('isys')) sys.path.append('edd') sys.path.append('libfdisk') [lots of lines like that] else: sys.path.append('/usr/lib/anaconda') sys.path.append('/usr/lib/anaconda/textw') sys.path.append('/usr/lib/anaconda/iw') sys.path.append('/usr/lib/anaconda/installclasses') Here I'm guessing that the if never happens and the various /usr/lib/anaconda directories are appended to the PATH environment variable. Later on, after importing traceback (which is briefly mentioned in the book), string, isys, iutil, _ from translate, handleException from exception, it apparently worries about the environment variable ANACONDAARGS and then executes try: (args, extra) = isys.getopt(theargs, 'GTRxtdr:fm:', ['gui','text','reconfig','xmode','test','debug','nofallback', 'method=','rootpath=',... Anyway, in a nutshell, whenever I see anything specific in the file anaconda.real, it isn't mentioned in the book and I don't know how to get more information about it and I don't know how python gets its information about it. What do I need to read? -- Ignorantly, Allan Adler <[EMAIL PROTECTED]> * Disclaimer: I am a guest and *not* a member of the MIT CSAIL. My actions and * comments do not reflect in any way on MIT. Also, I am nowhere near Boston. -- http://mail.python.org/mailman/listinfo/python-list
Re: anaconda.real in RH7.1
Allan Adler <[EMAIL PROTECTED]> writes: > I'm trying to reinstall RedHat 7.1 Linux on a PC that was disabled when > I tried to upgrade from RH7.1 [] > The file anaconda.real is invoked with the line > exec /usr/bin/anaconda.real -T "$@" > I don't know what effect the -T "$@" has. Tiny progress on this: in a shell script, "$@" apparently lets you refer to the output of a previous command. I don't know what output would be relevant, since the last few lines of the shell script anaconda that invokes anaconda.real are: cd /usr/sbin uncpio < sbin.cgz rm sbin.cgz cd /lib uncpio < libs.cgz rm libs.cgz cd / exec /usr/bin/anaconda.real -T "$@" As for exec itself, the command line exec -T leads to a complaint that -T is an illegal option for exec, while python -T leads to a usage statement that doesn't list -T among the options for python. So, I still don't understand the statement that is used to call the python script anaconda.real. I also tried to execute in interactive session some of the commands in the file anaconda.real. E.g. the first command signal.signal(SIGINT,SIG_DFL) Python 1.5.2 (#1, Mar 3 2001, 01:35:43) [GCC 2.96 2731 (Red Hat Linux 7.1 2 on linux-i386 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> signal.signal(SIGINT,SIG_DFL) Traceback (innermost last): File "", line 1, in ? NameError: signal >>> import signal >>> signal.signal(SIGINT,SIG_DFL) Traceback (innermost last): File "", line 1, in ? NameError: SIGINT >>> import SIGINT Traceback (innermost last): File "", line 1, in ? ImportError: No module named SIGINT On the other hand, while looking at Kernighan and Pike, "The Unix programming environment" (1984), I fortuitously ran across a discussion of signals and interrupts on p.225, including the example #include signal(SIGINT,SIG_DFL) which restores default action for process termination. The resemblance to the first command in anaconda.real is so close that I think the intention in both must be the same. What is the right way to get python to do this? The file anaconda.real doesn't explicitly execute import signal but it still somehow knows what signal means (my example session above shows that it stops complaining about not knowing what signal means after I import signal). Presumably there is some way of invoking python that causes signal and other stuff to be imported automatically. What is it? -- Ignorantly, Allan Adler <[EMAIL PROTECTED]> * Disclaimer: I am a guest and *not* a member of the MIT CSAIL. My actions and * comments do not reflect in any way on MIT. Also, I am nowhere near Boston. -- http://mail.python.org/mailman/listinfo/python-list
Looking for a coder to do some work
HI > > Hope this is the right place for this, I am new. I have a spec to create > a (dual screen) framework application that > > 1 displays mp3, flash, jpegs etc. on top screen > 2: displays buttons on bottom screen which alter image when a key is > pressed. > > The hardware is a dell pc basically, no mouse and the keyboard is a > simple 8 key pad that outputs numbers 1-8 (I think but can be mapped). > > I am looking for the best way to create this and tools to use etc. > > The system is basically an information kiosk like you see in airports > etc. the presentation screen on top may show several borderless frames > containing differing media. > > Hope you can help - any thoughts welcome Am willing to pay fort hsi to be done -- http://mail.python.org/mailman/listinfo/python-list
need some help quickly
HI Hope this is the right place for this, I am new. I have a spec to create a (dual screen) framework application that 1 displays mp3, flash, jpegs etc. on top screen 2: displays buttons on bottom screen which alter image when a key is pressed. The hardware is a dell pc basically, no mouse and the keyboard is a simple 8 key pad that outputs numbers 1-8 (I think but can be mapped). I am looking for the best way to create this and tools to use etc. The system is basically an information kiosk like you see in airports etc. the presentation screen on top may show several borderless frames containing differing media. Hope you can help - any thoughts welcome I am willing to pay for some help. -- http://mail.python.org/mailman/listinfo/python-list
Re: Parsing files -- pyparsing to the rescue?
Try this code = import re p = re.compile(r'([^<]*)<') s = open("file").read() m = re.search(p, s) if m: res = m.groups()[0] res = res.lstrip("\n") res = res.rstrip("\n") print res result: === %python parser.py Sys Data Sys-Data asdkData Data % Thanks Allan "rh0dium" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I have a file which I need to parse and I need to be able to break it > down by sections. I know it's possible but I can't seem to figure this > out. > >The sections are broken by <> with one or more keywords in the <>. > What I want to do is to be able to pars a particular section of the > file. So for example I need to be able to look at the SYSLIB section. > Presumably the sections are > > > > Sys Data > Sys-Data > asdkData > Data > > Data > Data > Data > Data > > Data > Data > Data > Data > > Data > Data > Data > Data > > > So if I wanted to break them down.. > > Sections are broken down by this.. > > secH=pyparsing.LineStart() + pyparsing.Suppress( > pyparsing.Literal("<")) + > pyparsing.OneOrMore(pyparsing.Word(pyparsing.alphanums)) + > pyparsing.Suppress( pyparsing.Literal(">")) > > But how do I say that stops at the start of the next > ? > -- http://mail.python.org/mailman/listinfo/python-list
Re: sockets
> >> the following code works perfectly >> import socket, sys >> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >> s.connect(("www.python.org", 80)) >> s.send("GET") here, You need to speak HTTP protocol. I would suggest to change s.send( "GET / HTTP/1.0\x0d\x0a\x0d\x0a" ) >> while 1: >> buf = s.recv(1000) >> if not buf: >> break >> sys.stdout.write(buf) >> s.close() >> >> but the following code does not work >> >> import socket, sys >> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >> s.connect(("http://www.google.co.in/search?hl=en&q=india&meta=";, 80)) >> s.send("GET") It does not work is because you did not speak HTTP s.connect( ( www.google.co.in, 80) ) s.send( "GET /search?hl=en&q=india&meta= HTTP/1.0\x0d\x0a\x0d\x0a" ) >> while 1: >> buf = s.recv(1000) >> if not buf: >> break >> sys.stdout.write(buf) >> s.close() >> >> the given url is the google search url for the string india. >> can u suggest some way to access the google search result page >> through SOCKETS. > import urllib help(urllib) > > but this won't help; using scripts to scrape the google search page is > a violation of their TOS. for a proper way to do it, see: > >http://www.google.com/apis/ > > or use yahoo's search service, which is a lot easier to use: > >http://developer.yahoo.net/search/index.html >http://developer.yahoo.net/search/web/V1/webSearch.html > > > > > -- http://mail.python.org/mailman/listinfo/python-list
Unbuffered mode
Hi, The man page for python says: "-u Force stdin, stdout and stderr to be totally unbuffered." However, when I try: $ ssh localhost python -u print 'hello, world' [^D] hello, world $ Nothing happens until I send that EOF. I'm pretty sure it's not SSH that's buffering because when I try: $ ssh localhost bash echo 'hello, world' hello, world [^D] $ The 'hello, world' comes back immediately (I don't need to send the EOF). I've also tried: $ ssh localhost python -u import sys sys.stdout.write('hello, world\n') sys.stdout.flush() [^D] hello, world $ Again, nothing happens until I send the EOF. How can I get Python to run over SSH unbuffered? Thanks, Hamish -- http://mail.python.org/mailman/listinfo/python-list
Re: Unbuffered mode
Further to my query about trying to make Python run unbuffered, I have discovered that a SyntaxError seems to cause Python to close its SSH connection: $ ssh localhost python -u , File "", line 1 , ^ SyntaxError: invalid syntax $ Whereas a different sort of error (e.g. NameError) does not: $ ssh localhost python -u pront [^D] Traceback (most recent call last): File "", line 1, in NameError: name 'pront' is not defined $ Can anyone tell me why?! Thanks, Hamish On Feb 13, 2008 1:12 AM, Hamish Allan <[EMAIL PROTECTED]> wrote: > Hi, > > The man page for python says: > > "-u Force stdin, stdout and stderr to be totally unbuffered." > > However, when I try: > > $ ssh localhost python -u > print 'hello, world' > [^D] > hello, world > $ > > Nothing happens until I send that EOF. I'm pretty sure it's not SSH > that's buffering because when I try: > > $ ssh localhost bash > echo 'hello, world' > hello, world > [^D] > $ > > The 'hello, world' comes back immediately (I don't need to send the EOF). > > I've also tried: > > $ ssh localhost python -u > import sys > sys.stdout.write('hello, world\n') > sys.stdout.flush() > [^D] > hello, world > $ > > Again, nothing happens until I send the EOF. How can I get Python to > run over SSH unbuffered? > > Thanks, > Hamish > -- http://mail.python.org/mailman/listinfo/python-list
Re: Unbuffered mode
Sorry to reply to myself again, but I think I now know the answer and wish to post it for the archives. Python run without '-i', if not sys.stdin.isatty(), expects to read a whole script before doing anything else (presuming to be reading it from a pipe). Therefore syntax errors are fatal, but otherwise nothing is executed until EOF. So the answer to my question is to run: $ ssh localhost python -ui Best wishes, Hamish On Feb 13, 2008 4:20 PM, Hamish Allan <[EMAIL PROTECTED]> wrote: > Further to my query about trying to make Python run unbuffered, I have > discovered that a SyntaxError seems to cause Python to close its SSH > connection: > > $ ssh localhost python -u > , > File "", line 1 > , > ^ > SyntaxError: invalid syntax > $ > > Whereas a different sort of error (e.g. NameError) does not: > > $ ssh localhost python -u > pront > [^D] > Traceback (most recent call last): > File "", line 1, in > NameError: name 'pront' is not defined > $ > > Can anyone tell me why?! > > Thanks, > Hamish > > > On Feb 13, 2008 1:12 AM, Hamish Allan <[EMAIL PROTECTED]> wrote: > > Hi, > > > > The man page for python says: > > > > "-u Force stdin, stdout and stderr to be totally unbuffered." > > > > However, when I try: > > > > $ ssh localhost python -u > > print 'hello, world' > > [^D] > > hello, world > > $ > > > > Nothing happens until I send that EOF. I'm pretty sure it's not SSH > > that's buffering because when I try: > > > > $ ssh localhost bash > > echo 'hello, world' > > hello, world > > [^D] > > $ > > > > The 'hello, world' comes back immediately (I don't need to send the EOF). > > > > I've also tried: > > > > $ ssh localhost python -u > > import sys > > sys.stdout.write('hello, world\n') > > sys.stdout.flush() > > [^D] > > hello, world > > $ > > > > Again, nothing happens until I send the EOF. How can I get Python to > > run over SSH unbuffered? > > > > Thanks, > > Hamish > > > -- http://mail.python.org/mailman/listinfo/python-list
Re: Your confirmation is required to join the Python-list mailing list
Hi, I just wanna know how to set SYSTEM variables and USER variables of windows, but got no way. Firstly I thought "os.environ + os.system" may work well, but found no way to let "os.environ" run to retrive USER variables. Then I tried win32api, finding the GetEnvironmentVariables() mixing SYSTEM and USER variables up, and SetEnvironmentVariables() failing to add variables. Could you help me, please? Thanks a lot. -- http://mail.python.org/mailman/listinfo/python-list
Re: can python do this?
Try your distribution of linux package management tool. You will find PIL there -- Allan Davis Member of NetBeans Dream Team http://wiki.netbeans.org/NetBeansDreamTeam Lead Developer, nbPython http://wiki.netbeans.org/Python http://codesnakes.blogspot.com (my blog) Co-Chair, CajunJUG http://www.cajunjug.org On Wed, Dec 2, 2009 at 9:34 AM, Rounak wrote: > > > > > > http://stackoverflow.com/questions/69645/take-a-screenshot-via-a-python-script-linux > > > the first solution in this thread requires python imaging library which > I did find here: http://www.pythonware.com/products/pil/faq.htm > But i would like to know if there are easier ways to install this > instead of compiling it from the source. > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list
Re: How to tell if you're running on windows?
Try this import sys import os sep = None if sys.platform == 'cygwin': sep = ';' else: sep = os.pathsep # then use sep in your path statment Hope this helps Thanks, ------ Allan Davis Member of NetBeans Dream Team http://wiki.netbeans.org/NetBeansDreamTeam Lead Developer, nbPython http://wiki.netbeans.org/Python http://codesnakes.blogspot.com (my blog) Co-Chair, CajunJUG http://www.cajunjug.org On Fri, Dec 4, 2009 at 12:46 PM, Roy Smith wrote: > I'm using 2.5.1. How can I tell if I'm running on windows? The > obvious answer, platform.system(), gets complicated. On the python > that comes with cygwin, it returns 'CYGWIN_NT-5.2-WOW64', but I've got > a native windows build of python where it returns 'Microsoft'. > > The real problem I'm trying to solve is whether to build a LIBPATH > environment variable with ';' or ':' delimiting the entries. On the > cygwin build, os.pathsep returns ':', which isn't really correct. If > you use that, you end up building paths that look like c:foo:c:bar. > It should be c:foo;c:bar > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list
Re: RELEASED Python 2.6.5
I just downloaded the installer and tested it on my win xp machine. The installer worked fine. -- Allan Davis Member of NetBeans Dream Team http://wiki.netbeans.org/NetBeansDreamTeam Lead Developer, nbPython http://wiki.netbeans.org/Python http://codesnakes.blogspot.com (my blog) Co-Chair, CajunJUG http://www.cajunjug.org On Tue, Mar 23, 2010 at 9:38 AM, wrote: > Thank you everyone for all the work that went into this update, but there > may be > a small problem with the Windows x86 installer. > > I've built and used python 2.6.5 on linux without any apparent problems, > but the > Windows x86 binary installer stops after compiling a few python source > files. > > I've tried the Windows x86 installer on two differently configured Windows > XP > PCs (SP3 with patches), but I get the following errors during the advanced > compiling of python source files: > > "There is a problem with this Windows Installer package. A program run as > part > of the setup did not finish as expected. Contact your support personnel or > package vendor." > > "Python 2.6.5 Installer ended prematurely ..." > > The md5sum of the Windows x86 installer matched the published value. I did > not > try not using the advanced option. I reinstalled python 2.6.4 on both of > the > PCs without any problems and used the advanced compile option. > > Is anyone else having trouble with the 2.6.5 Windows x86 installer? > > Peter > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list
Re: [jython] Problem with an huge dictionary
KeoBox, Can i look at the jython file you are executing? the ClassFormatException is not with the size of the dictionary. Jython is failing on an import. thanks, -- Allan Davis Member of NetBeans Dream Team http://wiki.netbeans.org/NetBeansDreamTeam Lead Developer, nbPython http://wiki.netbeans.org/Python http://codesnakes.blogspot.com (my blog) Co-Chair, CajunJUG http://www.cajunjug.org On Mon, May 17, 2010 at 10:09 AM, keobox wrote: > Hi, > I apologize if this is not the right group for posting question > related to jython. > Please give me the right directions if this is the case. > > The question is: > Is there a limit on the number of entries a dictionary can have i > jython? > > I wrote a little app where my data is stored in a huge dictionary > (11746 entries) generated with a python script. > When I try to import the dictionary, jython complains with the > following message: > > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > C:\Documents and Settings\ceplacan\My Documents\Documents\Source\source > \Python\j > moco-test>jython > Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54) > [Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.5.0_13 > Type "help", "copyright", "credits" or "license" for more information. > >>> import jmoco_event_data > Traceback (most recent call last): > File "", line 1, in > java.lang.ClassFormatError: Invalid this class index 3241 in constant > pool in cl > ass file _1076 >at java.lang.ClassLoader.defineClass1(Native Method) >at java.lang.ClassLoader.defineClass(ClassLoader.java:620) >at org.python.core.BytecodeLoader > $Loader.loadClassFromBytes(BytecodeLoad > er.java:119) >at > org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java:37) >at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java: > 67) >at org.python.core.imp.createFromSource(imp.java:288) >at org.python.core.imp.loadFromSource(imp.java:514) >at org.python.core.imp.find_module(imp.java:411) >at org.python.core.imp.import_next(imp.java:635) >at org.python.core.imp.import_name(imp.java:746) >at org.python.core.imp.importName(imp.java:806) >at org.python.core.ImportFunction.__call__(__builtin__.java: > 1232) >at org.python.core.PyObject.__call__(PyObject.java:367) >at org.python.core.__builtin__.__import__(__builtin__.java: > 1202) >at org.python.core.__builtin__.__import__(__builtin__.java: > 1185) >at org.python.core.imp.importOne(imp.java:817) >at org.python.pycode._pyx1.f$0(:1) >at org.python.pycode._pyx1.call_function() >at org.python.core.PyTableCode.call(PyTableCode.java:165) >at org.python.core.PyCode.call(PyCode.java:18) >at org.python.core.Py.runCode(Py.java:1204) >at org.python.core.Py.exec(Py.java:1248) >at > org.python.util.PythonInterpreter.exec(PythonInterpreter.java:181) >at > org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter > .java:89) >at > org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret > er.java:70) >at > org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret > er.java:46) >at > org.python.util.InteractiveConsole.push(InteractiveConsole.java:110) >at > org.python.util.InteractiveConsole.interact(InteractiveConsole.java:9 > 0) >at org.python.util.jython.run(jython.java:316) >at org.python.util.jython.main(jython.java:129) > > java.lang.ClassFormatError: java.lang.ClassFormatError: Invalid this > class index > 3241 in constant pool in class file _1076 > > What can I do to avoid this? > > Regards, > Cesare > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list
New to python
Hi! I'm fairly new to Python. I understand the basics basics but I'm been trying to write a simple python code that will let me read input data from my USB drive and write it in a text file and I am so lost. Can anyone help or direct me to some resources? Thank you! -- http://mail.python.org/mailman/listinfo/python-list
Automatic login to website (newbie)
Did you ever find a solution for this? if so i would like to hear about it... :-) Regards Allan Pedersen, Denmark -- http://mail.python.org/mailman/listinfo/python-list