Jabber Bot

2013-07-18 Thread Matt
Anyone have any luck with creating Jabber Bots? Everyone I have found so far for python 3.3 has been outdated, or the required modules are outdated. -- http://mail.python.org/mailman/listinfo/python-list

What do you do when a library is outdated?

2013-07-29 Thread Matt
I'm fairly new to python but have experience in other languages. What do you generally do when a library is outdated? I asked a question on a few forums and everyone has been pointing me to Mechanize, but it will not work with 3.3 What do you do? -- http://mail.python.org/mailman/listinfo/pyt

Re: What do you do when a library is outdated?

2013-07-29 Thread Matt
On Monday, July 29, 2013 12:34:08 PM UTC-4, Chris Angelico wrote: > On Mon, Jul 29, 2013 at 5:14 PM, Matt wrote: > > > I'm fairly new to python but have experience in other languages. What do > > you generally do when a library is outdated? I asked a question on a few

question about importing a package

2012-12-05 Thread Matt
know this is frowned upon, but for my purposes it is the best choice. I have about 30 modules in my package (foos and bars) and I don't want 30 lines at the top of each file that uses this package. What am I doing wrong? Thanks, Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: question about importing a package

2012-12-06 Thread Matt
It works now. Steven and Alex, thanks for your help! I ended up leaving sample.py and foo.py and bar.p the way they were, and in __init__.py putting: from foo import * from bar import * So my mistake was not importing the foo and bar modules into sub_one/__init__.py. I also see how the __all_

Threading

2020-01-24 Thread Matt
I am using this example for threading in Python: from threading import Thread def start_test( address, port ): print address, port sleep(1) for line in big_list: t = Thread(target=start_test, args=(line, 80)) t.start() But say big_list has thousands of items and I only want to h

Re: Threading

2020-01-24 Thread Matt
thread safe? On Fri, Jan 24, 2020 at 2:44 PM Chris Angelico wrote: > > On Sat, Jan 25, 2020 at 7:35 AM Matt wrote: > > > > I am using this example for threading in Python: > > > > from threading import Thread > > > > def start_test( address, port ): &

Re: Threading

2020-01-24 Thread Matt
"Creating Threads..." port = 80 for i in range(1, 10): t = threading.Thread(target=start_test) t.start() print "Waiting on Threads..." t.join() print "Finished..." On Fri, Jan 24, 2020 at 2:44 PM Chris Angelico wrote: > > On Sat, Jan 25, 2020 at 7:3

Re: Threading

2020-01-24 Thread Matt
> Not quite. > > 1. Create a list of threads. > > 2. Put the items into a _queue_, not a list. > > 3. Start the threads. > > 4. Iterate over the list of threads, using .join() on each. > > If you're going to start the threads before you've put all of the items > into the queue, you can also put a

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Matt
Xah Lee wrote: >There are quite a lot f___ing liers and charlatans in the computing >industry, especially the OpenSourcers, from the f___ing >a-dime-a-million students with their "FREE" irresponsible homeworks >on the net to f___heads like James Gosling of Java , Larry Wall of >Perl, Linus Torvolts

pyzeroconf on linux...

2005-11-02 Thread matt
7;t work under linux. The discovery code will discover stuff (on linux) that I publish on the Mac. I've fired up ethereal and it doesn't appear that much is happening in the way of UDP on port 5353 (on linux). Does anyone have any hints or suggestions? thanks matt -- http://mail.pyth

Re: pyzeroconf on linux...

2005-11-02 Thread matt
Another (easier) example of it failing, is to just run "python Zeroconf.py": 1. Testing registration of a service... Registering service... Registration done. 2. Testing query of service information... Getting ZOE service: None Query done. 3. Testing query of own service... Getting s

Re: question about urllib and parsing a page

2005-11-02 Thread matt
Yeah, this tends to be silly, but a workaround (for firefox at least) is to select the content and rather than saying view source, right click and click View Selection Source... -- http://mail.python.org/mailman/listinfo/python-list

Re: pyzeroconf on linux...

2005-11-02 Thread matt
I think I've figured it out. It appears to be a misconfiguration on my part. In my /etc/hosts file I had the loopback address pointing to my machine name. I made 127.0.0.1 only point to localhost and I can now publish services! -- http://mail.python.org/mailman/listinfo/python-list

pyzeroconf on windows

2005-11-02 Thread matt
ything. Anyone have any clues? Thought I'd ask before delving into sockets on windows thanks matt -- http://mail.python.org/mailman/listinfo/python-list

Re: Contest snub?

2005-11-03 Thread Matt
Updated: http://www.apress.com/promo/fractal/result.html -- http://mail.python.org/mailman/listinfo/python-list

Re: best way to discover this process's current memory usage, cross-platform?

2005-11-15 Thread matt
Perhaps you could extend Valgrind (http://www.valgrind.org) so it works with python C extensions? (x86 only) matt -- http://mail.python.org/mailman/listinfo/python-list

Newbie question. Pyexpat fails on make

2005-11-18 Thread Matt
Hi I want to build pyexpat and link it statically in Python. Im using Python 2.4.2. This is just a straight forward build using ./configure and then make I change *shared* to *static* and then uncoment these two lines: EXPAT_DIR=/usr/local/src/expat-1.95.2 pyexpat pyexpat.c -DHAVE_EXPAT_H -I$(EX

Re: Los Angeles Python Users' Group, anyone?

2005-11-18 Thread Matt
[EMAIL PROTECTED] wrote: > Hi, > > I was rifling through python.org to see if there was an existing Python > user's group for the Los Angeles area. Doesn't seem like it, so maybe > we should start one? I'm interested in helping with the coordination of > activities etc. > > Since everybody living

Re: Newbie question - clearing screen @ interactive prompt

2005-12-09 Thread matt
Just press Control-L. -- http://mail.python.org/mailman/listinfo/python-list

Re: Raw Sockets vs. What?

2005-01-07 Thread Matt
Just thought I'd follow up to say that I'm using XML-RPC after all. Not that I was intimidated when I finally learned that Fredrik had written the thing. No, it was more the issue that we want to write a php debugger next and XML-RPC plays well with php, too. Thanks again, --Matt

Re: Configuring Python for Tk on Mac

2005-01-21 Thread Matt
I googled around and it looks like it might be a permissions error: http://mail.python.org/pipermail/pythonmac-sig/2002-November/006809.html I don't have a Mac, tho', so I have no idea if it works... HTH -- http://mail.python.org/mailman/listinfo/python-list

Re: Help With Python

2005-01-26 Thread Matt
Nick Vargish wrote: > Here's my Monty Pythonic answer: > > ## cut here > class Viking(): > > def __init__(): > pass > > def order(): > return 'Spam' > > # this is one viking making one order repeated 511 times. if you want > # 511 vikings making seperate orders, you'll have

Re: newbie: Syntax error

2005-02-04 Thread Matt
Chad Everett wrote: > Hi Everyone, > > I am new to Python and programming in general. I bought the book "Python > Programming for the Absolute Beginner" by michael Dawson. > > I have been working through it but am having trouble. > I am trying to make a coin flip program and keep geting a Synax E

Re: python parser

2005-07-12 Thread matt
critiques and feedback. The next time I'm parsing something more complex than a tab-delimited file (excluding xml :)) I'll probably use pyparsing. I found it very pythonic and easy to use. good luck parsing... matt -- http://mail.python.org/mailman/listinfo/python-list

How to create "cross-backend" python web app

2005-07-14 Thread matt
le to deploy in the other backends as well. What's the best way to do this? Or is a rewrite required for each one? thanks matt -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create "cross-backend" python web app

2005-07-15 Thread matt
Thanks Paul- I'll look into WebStack. -- http://mail.python.org/mailman/listinfo/python-list

Re: python and ajax

2005-08-29 Thread matt
Steve- I recently ported version 1.3 of cpaint to python. Soon after version 2.0 was released and I haven't really looked at it since. The 1.3 stuff was really simple though if you understand cgi, then you just implement a endpoint for your request to call. The javascript side is really the onl

Re: Bicycle Repair Man usability

2005-08-30 Thread matt
hand? Or is refactoring just a java based activity matt -- http://mail.python.org/mailman/listinfo/python-list

Re: testing a website from python

2005-09-20 Thread matt
Here's something I did recently at work. (Thought it's testing http digest authentication, the idea would the same (testNoAuth() is probably doing what you want)). It contains unittest code and is using urllib2. http://blog.spikesource.com/pyhton_testcases.htm matt -- http://mail.

urllib2.URLError: when trying to connect through a proxy

2005-03-01 Thread Matt
I'm trying to get the HTML data off of a webpage. Let's say for the sake of argument it's the python homepage. I've googled around and found some examples that people said worked. Here's what I've cobbled together: #getHTML.py import urllib import ur

Raw Sockets vs. What?

2004-12-11 Thread Matt
ackle this? Many thanks in advance, Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: Raw Sockets vs. What?

2004-12-12 Thread Matt
Thanks for the responses--they were very helpful. I've looked at IDLE and pyro and I think I'll try using pyro for this first version. --Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: System bell

2005-03-31 Thread Matt
Try: import os os.system('\a') -- http://mail.python.org/mailman/listinfo/python-list

Re: System bell

2005-04-01 Thread Matt
Serves me right for blindlyrunning things from IDLE. This does work (tested on WinXP only): import os os.system('echo \a') -- http://mail.python.org/mailman/listinfo/python-list

Re: text processing problem

2005-04-07 Thread Matt
Maurice LING wrote: > Hi, > > I'm looking for a way to do this: I need to scan a text (paragraph or > so) and look for occurrences of " ()". That is, if the > text just before the open bracket is the same as the text in the > brackets, then I have to delete the brackets, with the text in it. > >

Re: text processing problem

2005-04-07 Thread Matt
Maurice LING wrote: > Matt wrote: > > > > > > Try this: > > import re > > my_expr = re.compile(r'(\w+) (\(\1\))') > > s = "this is (is) a test" > > print my_expr.sub(r'\1', s) > > #prints 'this is a test'

Re: text processing problem

2005-04-08 Thread Matt
Maurice LING wrote: > Matt wrote: > > I'd HIGHLY suggest purchasing the excellent > href="http://www.oreilly.com/catalog/regex2/index.html";>Mastering > > Regular Expressions by Jeff Friedl. Although it's mostly geared > > towards Perl,

Re: Socket Error

2005-04-14 Thread Matt
[EMAIL PROTECTED] wrote: > Thanks everybody, it works now. I thought I needed to do something like > that but it didn't show it in the tutorial so I decided to ask here. Where was the tutorial? If it's in the Python docs, perhaps you could submit a patch to fix it ... ;-) M@ -- http://mail.py

Re: fpectl

2005-04-18 Thread Matt
Sébastien Boisgérault wrote: > Hi all, > > Can anybody tell me why I can't load the fpectl module in my Python > interpreter: > > >>> import fpectl > Traceback: ... > ... > ImportError: No module named fpectl > > My platform is Linux (Mandrake 10.x) + Python2.4, built from the > (python.org) sourc

Re: Which IDE is recommended?

2005-04-27 Thread Matt
The ActiveGrid IDE is a sample app with wxPython. It has a lot of good features including a source code debugger that allows you to debug wx apps and set breakpoints from the code editor. I am also biased though--I work on that IDE and use it for all my coding. Its pretty far along on Windows and g

Re: Which IDE is recommended?

2005-04-28 Thread Matt
Sorry about that Frank. You have to create a project (New --> Project) and add your file to it then Run-->Run. This is a bug that slipped past because we do all of our development using projects and hadn't even tried the obvious: open file and run. That fix has made its way to the wx folks, but has

Re: Which IDE is recommended?

2005-04-28 Thread Matt
Franz, To ask for help otherwise, use the forums link from http://sourceforge.net/projects/activegrid/ --Matt -- http://mail.python.org/mailman/listinfo/python-list

web scraping help / better way to do it ?

2016-01-19 Thread Matt
print(ladder_pos + ' ' + '-' + ' ' + l) build_ladder() Which outputs this. 1 - FRE 2 - WCE 3 - HAW 4 - SYD 5 - RICH 6 - WB 7 - ADEL 8 - NMFC 9 - PORT 10 - GEEL * - GWS 12 - COLL 13 - MELB 14 - STK 15 - ESS 16 - GCFC 17 - BL 18 - CARL Notice that numbe

RE: web scraping help / better way to do it ?

2016-01-19 Thread Matt
> -Original Message- > From: Python-list [mailto:python-list- > bounces+matt=centralkaos@python.org] On Behalf Of Peter Otten > Sent: Tuesday, 19 January 2016 9:30 PM > To: python-list@python.org > Subject: Re: web scraping help / better way to do it

snmpset

2016-02-05 Thread Matt
How do I do the equivalent of this in Python? snmpset -v 2c -c $community $ip .1.3.1.1.4.1.1.1.1.1.1.1.0 s test and snmpset -v 2c -c $community $ip .1.3.1.1.4.1.1.1.1.1.1.1.0 i 123 and snmpbulkget -v2c -c $community -m ALL $ip .1.3.1.1.4.1.1.1.1.1.1.1.1 and snmpget -v2c -c $community -m ALL

Creating a function for a directory

2013-11-11 Thread Matt
So I want to take the file, "desktop/test.txt" and write it to "desktop/newfolder/test.txt". I tried the below script, and it gave me: "IOError: [Errno 2] No such file or directory: 'desktop/%s.txt'". Any suggestions would be great. def firstdev(file): in_file = open("desktop/%s.txt")

Re: Creating a function for a directory

2013-11-11 Thread Matt
Thank you guys so much. Brain fart moment. I appreciate it -- https://mail.python.org/mailman/listinfo/python-list

Automate deployment of Python application from multiple VCS repositories

2015-04-08 Thread Matt
This seems highly do-able with Ansible. They have a git module, if that's your VCS, that fits in here perfectly. I would make two lists of variables, the first for repo URL/branch info and the second for their destinations. Then Ansible uses simple YAML to write the commands. Here's an overly

IOError 35 when trying to read the result of call to urllib2.urlopen

2011-09-09 Thread matt
I'm using urllib2's urlopen function to post to a service which should return a rather lengthy JSON object as the body of its response. Here's the code: {{{ ctype, body = encode_multipart(fields, files) url = 'http://someservice:8080/path/to/resource' headers = {'Content-Type': ctype, 'Content-Len

Re: IOError 35 when trying to read the result of call to urllib2.urlopen

2011-09-10 Thread matt
On Sep 9, 6:02 pm, Steven D'Aprano wrote: > matt wrote: > > When I try to look at "resp_body" I get this error: > > > IOError: [Errno 35] Resource temporarily unavailable > > > I posted to the same URI using curl and it worked fine, so I don't >

Python Mixins

2011-09-22 Thread Matt
I'm curious about what people's opinions are about using mixins in Python. I really like, for example, the way that class based views were implemented in Django 1.3 using mixins. It makes everything extremely customizable and reusable. I think this is a very good practice to follow, however, in Pyt

simple file flow question with csv.reader

2011-11-02 Thread Matt
f: reader = csv.reader(f) for row in reader: print ">",row[0],row[4],"\n",row[1], "\n", ">", row[2], "\n", row[3] Thanks in advance, Matt -- http://mail.python.org/mailman/listinfo/python-list

match, concatenate based on filename

2011-11-03 Thread Matt
Hi All, I am trying to concatenate several hundred files based on their filename.. Filenames are like this: Q1.HOMOblast.fasta Q1.mus.blast.fasta Q1.query.fasta Q2.HOMOblast.fasta Q2.mus.blast.fasta Q2.query.fasta ... Q1223.HOMOblast.fasta Q1223.mus.blast.fasta Q1223.query.fasta

Re: Typing letters slowly using sys

2013-04-05 Thread Matt
On Friday, April 5, 2013 10:04:49 AM UTC-4, Matt wrote: > I am using sys to give the effect that I am typing letters slowly. Basically > what I want to have happen is have it show "Loading.." with the word > loading appearing instantly and then the periods appear

Re: list comprehention

2006-01-19 Thread Matt
Tim Chase wrote: > > I'm a tad confused by the help, as it sounds like sets are > supposed to be first-class citizens, but in ver2.3.5 that I'm > running here (or rather "there", on a friend's box), I have to > "import sets" which I didn't see mentioned in the reference manual. > > -one of many t

Insert characters into string based on re ?

2006-10-12 Thread Matt
I am attempting to reformat a string, inserting newlines before certain phrases. For example, in formatting SQL, I want to start a new line at each JOIN condition. Noting that strings are immutable, I thought it best to spllit the string at the key points, then join with '\n'. Regexps can seem the

Re: How to let a loop run for a while before checking for breakcondition?

2006-08-29 Thread matt
IMHO you're better off avoiding all this... It makes the code unnecessarily complicated when you're not sure if this is a performance bottleneck or not... Common advice is to write the code as simple as possible first, then go back and optimize as needed using the profiler. This is where extendi

Mac OS X - Deployment

2006-02-14 Thread Matt
dl go into the DMG? I am used to REALbasic where you write your code and then push the "Build" button and executables for Linux, Windows, and Mac are created in less than a minute. Maybe the Python world will be as advanced one day... Thanks, Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: Mac OS X - Deployment

2006-02-15 Thread Matt
James Stroud <[EMAIL PROTECTED]> wrote: >py2app works for this. I'm not sure if it works from windows. That's what I need, Thanks, Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: Win32_Process.Create -- not starting process

2006-02-15 Thread Matt
rthing goes haywire since it has no shell to communicate with. It may crash, go into a loop, etc. Good luck, Matt -- http://mail.python.org/mailman/listinfo/python-list

Mac OS X Installation Problem

2006-02-16 Thread Matt
"command not found" so, 2) How do I get OS X to recognize python at the command line? Thanks, Matt -- http://mail.python.org/mailman/listinfo/python-list

Komodo - Will it Lock Me In?

2006-02-17 Thread Matt
to the install-packages-until-you-go-blind aspect of Python. Setting up a serious, cross-platform, gui development environment is quite a struggle for a newbie. Thanks, Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: Komodo - Will it Lock Me In?

2006-02-19 Thread Matt
"Ravi Teja" <[EMAIL PROTECTED]> wrote: >Matt, in most cases, installing packages in Python is about as easy as >it gets. Yes, it is easy, sort-of. I have installed many, many packages so far. My point is that with a polished IDE, you don't have to go through al

Re: Komodo - Will it Lock Me In?

2006-02-19 Thread Matt
he tool remains in existance. I was really pissed off when Microsoft killed Visual Basic 6, and I was stuck with a huge mound of now worthless code. I have to rewrite *all* of it. I never want to go through that again, which is why I am considering Python. Thanks, Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: Komodo - Will it Lock Me In?

2006-02-19 Thread Matt
s the kind of thing I am talking about. If Dabo were an integrated system, I wouldn't have to spend many days struggling to install package after package and then get them all to play nice with each other. Having said that, I will continue to struggle and like Dabo as the best optio

Re: Mac OS X Installation Problem

2006-02-19 Thread Matt
anything either. I also tried to make a .bashrc file on my Windows box and copy it to my Mac, but the Finder gave me an error message saying that I'm not allowed to make files that begin with a dot. Is there a web page somewhere that explains this? Thanks, Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: Mac OS X Installation Problem

2006-02-19 Thread Matt
e. But this begs the question, how do we upgrade our Python installations if OS X needs a certain version? Do we leave the pre-installed version alone and run a second Python installation? I suppose that the various package installers would know how to do that, right? Thanks, Matt -- http

Re: Need a little parse help

2005-05-10 Thread Matt
Alex Nordhus wrote: > Im trying to grab a colum of data from a text file and write it to a new > file. > I am having trouble getting It to write the data to newlines. Python is > making it one > Long string without any spaces when it writes the file. The first > character is capitalized in colum 2.

Re: How to find the classname of an object? (was Python Documentation)

2005-05-13 Thread Matt
Christopher J. Bottaro wrote: > Christopher J. Bottaro wrote: > > > Bengt Richter wrote: > > > >> >>> type(obj) > >> > >> >>> type(obj).mro() > >> [, , , > >> [, ] > >> >>> tuple(x.__name__ for x in type(obj).mro()) > >> ('A', 'B1', 'B2', 'C', 'object') > > > > Wow awesome, thats exactly w

Re: How to find the classname of an object? (was Python Documentation)

2005-05-13 Thread Matt
Bengt Richter wrote: > On 13 May 2005 09:37:07 -0700, "Matt" <[EMAIL PROTECTED]> wrote: > > > > >Christopher J. Bottaro wrote: > >> Christopher J. Bottaro wrote: > >> > >> > Bengt Richter wrote: > >> > > >>

Re: How to find the classname of an object? (was Python Documentation)

2005-05-13 Thread Matt
Bengt Richter wrote: > On 13 May 2005 14:59:13 -0700, "Matt" <[EMAIL PROTECTED]> wrote: > > > >Bengt Richter wrote: > [...] > >> I'm afraid inheriting explicitly from object will make the exception > >unraisable. > >> Exceptions a

Re: no win32com.client

2005-05-23 Thread Matt
plsullivan wrote: > In 2.4.1 the following is generated from a script that ran in 2.2: > > import sys, string, os, win32com.client > ImportError: No module named win32com.client > > thanks for any input, > Phil Have you downloaded the win32com extensions? http://starship.python.net/crew/mhammond

Re: Symbol Tables

2005-05-26 Thread Matt
Dave Zhu wrote: > Hello, > > I would like to know more about Python's symbol > tables. How are symbol tables implemented in Python? > Hash tables, lists, or arrays? I would really > appreciate if there is any documentation that you can > provide. Thank you in advance. > > Dave > > > > ___

Re: Sending mail from 'current user' in Python

2005-06-10 Thread Matt
Mike Meyer wrote: > Leo Breebaart <[EMAIL PROTECTED]> writes: > > > I can get the username info (at least on Unix) via the 'pwd' > > module, but that still leaves me with the domainname, or rather > > the mailname, and I have not been able to spot a way of finding > > that from within Python. (I

converting datetime object in UTC to local time

2007-07-03 Thread Matt
etime to a timetuple to a timestamp back to a datetime... All this seems like a lot of monkeying around to do something that should be simple -- is there a simple way to do this without requiring some other module? thx Matt -- http://mail.python.org/mailman/listinfo/python-list

Editor with visual SCC / TFS support ?

2007-01-26 Thread Matt
Company has switched to MS Team Foundation Server from VSS. Need a programmers text editor that interfaces with TFS or SCC providers to visually provide checkin/out status on project files. So far, in all of the editors I have used, some support SCC interfaces, but do not show the file status. The

Re: Some python syntax that I'm not getting

2007-12-08 Thread Matt
Think of it as using a name instead of a position for your "%s". In addition to what others already said, I thought I'd add an example of where this is useful. One place where you don't just want to have a position is when doing internatiolization. When translating for example: "I'm going by %(tr

How to get number of compressed bytes from GzipFile

2008-03-14 Thread Matt
z').st_size [15:40:17] mattb ~ $ ./mygzip.py 7 141 151 So I wrote 7 raw bytes which gets compressed to 151 bytes -- I guess the 10-byte difference is a gzip header or something? Is there any way to get this same functionality when using a socket? thx Matt -- http://mail.python.org/mailman/listinfo/python-list

using google search api for python

2008-12-12 Thread Matt
y be posted on the site … Title: SpiderMonkey « Didier Stevens Url: http://blog.didierstevens.com/programs/spidermonkey/ Description: The exact post is http://blackcodeseo.com/python-spidermonkey-navigator/. Comment by Matt — Wednesday 29 October 2008 @ 20:56. Thanks. … >>> -- http://mail.python.org/mailman/listinfo/python-list

ctypes, function pointers and a lot of trouble

2008-05-28 Thread Matt
itself gets executed correctly, but returns an "Invalid Parameter" errorcode. there's also no useful data whereas datainfo gets written correctly. I know that my cdStream can't work, facing the C-code, but what'd be the right cdStream class? What can I do? Any ideas? Best regards and thanks, Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes, function pointers and a lot of trouble

2008-05-29 Thread Matt
pStream.tell = cstreamtell(pystreamtell) data.u.pStream.read = cstreamread(pystreamread) --\CODE unfortunately that doesn't work because Python returns a TypeError: incompatible types, CFunctionType instance instead of c_void_p instance Any ideas/help (please)? Best regards, Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes, function pointers and a lot of trouble

2008-06-02 Thread Matt
--\CODE---- Does anyone see where the errors are? Best regards and thanks a lot, Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: Books for programmers

2008-06-03 Thread Matt
books are really worth their money and with some programming skills there's no need to read every line because it's easy to navigate through the books and find the function/structure/whatever you're looking for. Best regards, Matt V wrote: Hi, I'm a C++, Java and C progr

Re: ctypes, function pointers and a lot of trouble

2008-06-03 Thread Matt
in C. That means that there shouldn't be anything returned. I tried this by using the pass statement, but got an error that returntype int was expected. Also "return" or "return None" don't work. Why? Puh, long mail again... hope you're so kind again and take the time to help me out. Best regards from Austria, Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: ctypes, function pointers and a lot of trouble

2008-06-03 Thread Matt
oWrite, pBufsize, NULL ); --/CODE Ideas? Thanks and best wishes, Matt -- http://mail.python.org/mailman/listinfo/python-list

Advice on tools/technologies/books, etc.

2008-04-12 Thread Matt
nd I know what I can do now. I don't mind getting deeper into Python, but I'd love not to have to learn a bunch of other languages if I can avoid it. Any thoughts/comments? TIA, Matt. -- http://mail.python.org/mailman/listinfo/python-list

Lib/test/test_mimetools.py

2006-03-10 Thread matt
Hi, in the file Lib/test/test_mimetools.py on line 30 the call to mimetools.choose_boundary() fails if the machine that the tests are running on does not have a hostname that maps to an IP address. I would have thought that the test should be 'skipped' rather than fail? I don't know if this ha

[ANN] jsonrpclib for accessing JSON-RPC from python

2006-03-27 Thread matt
b, and have xmlrpclib and jsonrpclib derive from them? (Probably not, since it's in the stdlib...) thanks matt -- http://mail.python.org/mailman/listinfo/python-list

embed notepad into a frame widget

2006-03-27 Thread Matt
make the frame but not embed notepad. do I use something like this? from Tkinter import * master = Tk() frame = Frame(width=768, height=576, bg="", colormap="new") frame.pack() video.attach_window(frame.window_id())<--- not sure!! mainloop()

Re: embed notepad into a frame widget

2006-03-30 Thread Matt
Diez B. Roggisch wrote: > You are pretty wrong being sure :) Under windows, it is indeed possible to > embed certain applications into others - the related technical term is > conveniently called OLE (Object lining and embedding). Thanks, at least I didnt spend two much time on it

Re: Can't see the forest for the trees - when reading file, only processing first line

2006-04-13 Thread matt
rt number was used. \nValid port numbers > are 1415,1416,1417, and 1418." > print "\nPlease check the port number and try again" > usage() > sys.exit(1) > > # > # > # Test return value > # > def testval(inc,value): > vallen = in

Re: GUIs - A Modest Proposal

2010-06-16 Thread Matt
On 06/05/2010 09:22 PM, ant wrote: PyQt is tied to one platform. Several posters have asked for support for or clarification of this claim of yours. On its face it seems to be nonsense. So just what are you talking about? -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-18 Thread Matt
On 06/17/2010 08:50 AM, Grant Edwards wrote: On 2010-06-16, Matt wrote: On 06/05/2010 09:22 PM, ant wrote: PyQt is tied to one platform. Several posters have asked for support for or clarification of this claim of yours. Let me guess... The one platform it's tied to is Qt?

Re: Multi-Threading and KeyboardInterrupt

2009-06-15 Thread Matt
to do to modify this code to get my desired output and corresponding functionality? It would be a shame if this wasn't possible in any pure-Python way. ~Matt On Jun 15, 2009, at 11:53 AM, Mike Kazantsev wrote: On Mon, 15 Jun 2009 05:37:14 -0700 (PDT) OdarR wrote: On 13 juin, 07:25, M

Re: Newbie help for using multiprocessing and subprocess packages for creating child processes

2009-06-16 Thread Matt
Try replacing: cmd = [ "ls /path/to/file/"+staname+"_info.pf" ] with: cmd = [ “ls”, “/path/to/file/"+staname+"_info.pf" ] Basically, the first is the conceptual equivalent of executing the following in BASH: ‘ls /path/to/file/FOO_info.pf’ The second is this: ‘ls’ ‘/path/to/file/FOO_info.pf

Re: Unable to get Tkinter menubar to appear under OS X

2009-07-17 Thread Matt
same problem on OS 10.4, menu doesn't show up on either from tkinter or wxpython, continuing search.. -- http://mail.python.org/mailman/listinfo/python-list

execute shell script from python, needs sys.argv

2010-11-04 Thread Matt
([fastx.sh, sys.argv[1], sys.argv[2]], shell=True) But, this does not seem to work as this is not the proper way to pass arguments to the shell script. in short, I'm sure that this is a easy fix, but given my still limited python vocabulary, it eludes me. Thanks, Matt -- http://mail.pyt

SNMP

2017-03-23 Thread Matt
What is easiest way to read and write SNMP values with Python? -- https://mail.python.org/mailman/listinfo/python-list

net-snmp-python

2017-04-01 Thread Matt
Does anyone have an example of using netsnmp library to do a snmpset on a snmp v2 device? I have gotten snmpget to work fine with python I just cannot get snmpset to work. I know I have the snmp device configured correctly with read/write access since I can use snmpset on the linux(centos7) comma

  1   2   3   4   5   6   7   8   >