- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
10 Posted Topics
Re: [CODE] import os base = 'f4761' Series = ['sk','se','pl','no','nl','ie','hu','gb','fi'] for series in Series: for xx in reversed(range(1,4)): file = base+series+str(xx).strip()+".py" os.system( file ) [/CODE] Python is always the right answer. | |
Re: I got an iPad app that lets me search for chordpro files, and presents two default options, Google and Bing. The Google search almost always returns nothing, and the Bing search returns what I wanted. People do repost chords/lyrics files verbatim on site after site, I wonder if this is … | |
HELP MR. WIZARD!! I have been using PySNMP for a while, talking to devices and getting values very successfully. I now need to set a TRAP; this is where you tell the device to notify me when something happens, and then you wait for it to happen. I'm guessing that … | |
Greetings. I'm doing SNMP programming using PySNMP and Python. In my application, I'll be talking with several different devices that are all performing a similar function, but the internal SNMP implementations are very different from each other. In most of them, I'm retrieving tables of information and then parsing them … | |
Hi I posted this on another thread but messed up the title (called it y2exe) and I want to make sure this gets found if someone can help. I'm using py2exe and pysnmp, and they seem to be incompatible, at least on the oneliner form I'm using. Pysnmp claims to … | |
Re: I think you need to execute a loop from range(2,test_num/2), doing a modulus (%) operation with every number and the test_num value. Like this: [CODE] import math test_num = 2 prime_count = 0 while prime_count < 10: x = 2 while x <= ((test_num / 2)+ (test_num % 2)): if … | |
Re: Only other way I know to debug this is to break it down. Check each variable that is part of the final calculation and make sure it makes sense. Mostly likely, there is a subtle bug in how you are doing one of the calculations. That's how I find my … | |
Hi I'm using pysnmp 4.1.1.4a (yes, I know there's a newer version but it has the same behavior) and py2exe. When I execute a pysnmp oneliner, like this: [CODE] errorIndication, errorStatus, errorIndex, varBinds = cmdgen.CommandGenerator().nextCmd( cmdgen.CommunityData('my-agent', 'public', 0), cmdgen.UdpTransportTarget((self.IPaddress, self.Port)), self.keydict[ key ][0] [/CODE] I get this output: [CODE] File … | |
Re: Well, the __class__ helped me! Also, you can use .prettyPrint() on the object, store that into a string, then use normal string handling functions to search for your value. | |
I am trying to implement virtual LEDs on a Python window. I turn the LED "on" by drawing a green oval. I then use root.after() to schedule another call that turns the LED "off" by drawing a dark green oval. I use a 250ms delay. There are 4 active LEDs … |
The End.