Re: atexit handlers - getting the return code

2011-09-27 Thread Mike Hull
On Sep 27, 4:59 pm, Robert Kern wrote: > On 9/27/11 9:37 AM, Mike Hull wrote: > > > > > > > > > > > Hi Giampaolo, > > Sorry, I didn't explain very clearly. > > I have a python file, 'simulation_logger.py', (given below)

Re: atexit handlers - getting the return code

2011-09-27 Thread Mike Hull
to return. Any help would be gratefully appreciated, Thanks! Mike # simulation_logger.py import atexit import sys import os import cStringIO import time import traceback import datetime import inspect class SimulationRunInfo(object): def __init

atexit handlers - getting the return code

2011-09-27 Thread Mike Hull
can then be uploaded into a database. One thing I am struggling to get though is the 'return code' that the is going to be returned after my atexit handlers have finished. Could anyone tell me how it get at this!? Thanks Mike -- http://mail.python.org/mailman/listinfo/python-list

I need help/information on Freeze.py

2011-08-10 Thread mike turner
Hello all, How do you use freeze.py to freeze an application? I have an application built with pylons and I want to make it into a portable executable, is that possible? Thanks for the help. - mikey -- http://mail.python.org/mailman/listinfo/python-list

nosend missing in suds 0.4?

2011-05-31 Thread Mike
Looks like the nosend attribute is not available in 0.4. Any reason for this? Any plans to add it back and what is the most recent release that does have the nosend option? -- http://mail.python.org/mailman/listinfo/python-list

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread Mike Barnes
ies, or I haven't given the matter any thought, so if there are any such subdirectories, tell me and don't do anything. Recursive means I want everything deleted regardless. BICBW. -- Mike Barnes Cheshire, England -- http://mail.python.org/mailman/listinfo/python-list

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread Mike Barnes
ch is, put simply, to delete the directory. I find all this somewhat arcane. Questioning the precise suitability of the word "recursive" seems like a quibble. -- Mike Barnes Cheshire, England -- http://mail.python.org/mailman/listinfo/python-list

Re: ElementTree XML parsing problem

2011-04-27 Thread Mike
On 4/27/2011 12:24 PM, Neil Cerutti wrote: On 2011-04-27, Mike wrote: I'm using ElementTree to parse an XML file, but it stops at the second record (id = 002), which contains a non-standard ascii character, ?. Here's the XML: The complaint offered up by the parser is

Re: ElementTree XML parsing problem

2011-04-27 Thread Mike
and then: - gives same error as you described. Try to change XML encoding. a. Thanks, Hegedüs and everyone else who responded. That is exactly it - I'm afraid I probably missed it in the docs because I was searching for terms like "unicode" and "coerce." In any

ElementTree XML parsing problem

2011-04-27 Thread Mike
continue root = tree.getroot() records = root.find('records') for record in records: print record.attrib['id'], record.attrib['education'] if __name__ == "__main__": main() Thanks, -- Mike -- -- http://mail.python.org/mailman/listinfo/python-list

Decorator Syntax

2011-03-21 Thread Mike Patterson
In my Python class the other day, the professor was going over decorators and he briefly mentioned that there had been this huge debate about the syntax and using the @ sign to signify decorators. I read about the alternative forms proposed here (http:// www.python.org/dev/peps/pep-0318/#syntax-al

8-Day Python Power Course in Leipzig/Germany

2011-02-03 Thread Mike Müller
2011 High Performance XML with Python Venue: Python Academy, Leipzig, Germany Trainers: Mike Müller, Stefan Behnel About the Trainers ------ Mike Müller, Ph.D has been teaching Python since 2004. He is the founder of Python Academy and regularly gives open and in-house Python cours

Re: WxPython versus Tkinter.

2011-01-24 Thread Mike Driscoll
On Jan 24, 9:02 am, rantingrick wrote: > On Jan 24, 8:49 am, Mike Driscoll wrote: > > > On Jan 24, 7:24 am, Bryan wrote: > > > In my experience, segfaults with wxPython aren't daily, but they are > > > pretty much weekly. There are weeks that can go by wit

Re: WxPython versus Tkinter.

2011-01-24 Thread Mike Driscoll
how that wx is better. I like the concept of creating a challenge to see which toolkit can do what, but this is not the way to go about it. Bryan, on the other hand, has been a Tkinter luminary who has helped me in the past when I was learning Tkinter and I won't be too surprised if he help

Re: Ideas for a module to process command line arguments

2011-01-11 Thread Mike
On Jan 11, 11:26 am, Michele Simionato wrote: > > In that case easy_install/pip/whatever will install the dependency > automatically (who is installing > dependencies by hand nowadays?). More seriously I thought being based I do. Is this bad? :} -- http://mail.python.org/mailman/listinfo/python-

Re: PEP: possibility of inline using of a symbol instead of "import"

2011-01-06 Thread Mike Kent
On Jan 6, 11:02 am, Duncan Booth wrote: > Your complaint seems to be that: > >    r1 = myFunc1(...) > > is unclear when you don't know where myfunc1 originates, so why don't > you write: > >    r1 = MyModule1.myFunc1(...) > > -- > Duncan Boothhttp://kupuguy.blogspot.com My interpretation of his

removing a post from python

2010-10-21 Thread Mike L
http://www.mail-archive.com/python-list@python.org/msg175722.html hello could you remove above post... off topic and spam thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: what happens to Popen()'s parent-side file descriptors?

2010-10-13 Thread Mike Kent
You might want to check out the Python 2.7 'pipes' standard library module: http://docs.python.org/library/pipes.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Ordering tests in a testsuite

2010-10-08 Thread Mike Kent
But sometimes you just wanna do it the way you wanna do it. If you name your tests like 'test_01_yadda' and test_02_whatever', then they will be run in the order you want, as given by the numbers. -- http://mail.python.org/mailman/listinfo/python-list

The PSF Blog Gets a Transfusion!

2010-09-06 Thread Mike Driscoll
The Python Software Foundation’s Blog staff has been recently expanded by a new set of top-notch bloggers to bring you the latest in PSF news, ranging from the scintillating projects that the PSF has its fingers in to the mundane, but necessary board minutes. Don’t despair if you hate reading blog

Re: New to python - parse data into Google Charts

2010-09-03 Thread Mike Kent
On Sep 3, 1:52 pm, alistair wrote: > I'm new to python and my programming years are a ways behind me, so I > was looking for some help in parsing a file into a chart using the > Google Charts API. > Try this: http://pygooglechart.slowchop.com/ -- http://mail.python.org/mailman/listinfo/python-li

Re: Does MySQLdb rollback on control-C? Maybe not.

2010-09-03 Thread Mike Kent
On Sep 3, 12:22 am, John Nagle wrote: >     I would expect MySQLdb to rollback on a control-C, but it doesn't > seem to have done so.   > Something is broken. I wouldn't expect it to, I'd expect to roll back on an exception, or commit if not. Perhaps this will help you. I use it in production

Re: python database

2010-09-03 Thread Mike Kent
On Sep 3, 2:36 am, shai garcia wrote: > can you pls help me to make a database program in python? It's better if you do your homework yourself. You learn more that way. Now, if you have a specific question about some detail of your assignment, and can show us that you've really tried to do the

Re: Windows vs. file.read

2010-09-01 Thread Mike
On Sep 1, 12:31 pm, MRAB wrote: > You should open the files in binary mode, not text mode, ie file(path, > "rb"). Text mode is the default. Not a problem on *nix because the line > ending is newline. Thanks. That was it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Fibonacci: How to think recursively

2010-09-01 Thread Mike
The most straightforward method would be to apply the formula directly. Loop on j computing Fj along the way if n<=1 : return n Fold=0 Fnew=1 for j in range(2,n) : Fold, Fnew = Fnew, Fold+Fnew return Fnew Even simpler: return round(((1+sqrt(5.))/2)**n/sqrt(5.)) -- http://mail.python.org/mail

Windows vs. file.read

2010-09-01 Thread Mike
I have a ppm file that python 2.5 on Windows XP cannot read completely. Python on linux can read the file with no problem Python on Windows can read similar files. I've placed test code and data here: http://www.cs.ndsu.nodak.edu/~hennebry/ppm_test.zip Within the directory ppm_test, type python ppm

Re: Python -Vs- Ruby: A regexp match to the death!

2010-08-09 Thread Mike Kent
On Aug 8, 8:43 pm, rantingrick wrote: > Hello folks, > > You all know i been forced to use Ruby and i am not happy about that. ***Blablabla cut long rant*** Xah, this is really you, isn't it. Come on, confess. -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie problem with str.replace

2010-08-04 Thread Mike Kent
On Aug 4, 9:10 am, BobAalsma wrote: > I'm working on a set of scripts and I can't get a replace to work in > the script - please help. >                         bestandsnaam_nieuw.replace(KLANTNAAM_OUT,KLANTNAAM_IN) I'm not sure what you are intending to do here, but string.replace does not do i

Re: Python source checkout problem

2010-07-15 Thread Mike Nerone
trunk' " > Assuming trunk is what you actually want, I would guess that your environment has a proxy server that's not compatible with subversion getting in your way. Ask your network admins if you're at a business location. Mike Nerone -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs. Fedora and CentOS

2010-05-29 Thread Mike Fedyk
On Sat, May 29, 2010 at 12:03 PM, Wesley Brooks wrote: > On 29 May 2010 19:58, Paul Rubin wrote: >> John Nagle writes: >>>   The major Red Hat based Linux distros are still shipping with Python 2.4. >> >> Fedora 12 ships with Python 2.6, I think. > > I've got Fedora 10 here with 2.5, and 11 at t

SEC apparently about to mandate Python for a particular financial use

2010-04-16 Thread Mike Kent
http://jrvarma.wordpress.com/2010/04/16/the-sec-and-the-python/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Reactive programming in Python ?

2010-04-16 Thread Mike Kent
On Apr 16, 11:18 am, pca wrote: > Dear all, > > Could “reactive programming” still increase the productivity and joy > of Python programming?  I’d like to hear your thoughts on the idea > that object-oriented “programming by formula”, as in a spreadsheet, > would simplify our work, because we woul

Re: Relocatable python install

2010-04-14 Thread Mike Kent
On Apr 14, 4:50 pm, Michel wrote: > Hi, > > I would like to create a binary package of python that we will ship > with our product. I need to be able to install the package anywhere in > the file system. > > The interpreter seems to be ok with that, but a few other tools that > are installed in th

Re: packaging multiple python scripts as Windows exe file

2010-04-13 Thread Mike Driscoll
the answer is. But I think you're talking about a certain MS DLL that Python distributes. If so, I've read multiple threads on this topic that claim that since Python distributes it, there is an implied permission that you can as well. Since I'm not a lawyer, I can't say for su

Re: PyDispatcher on sourceforge doesn't play nice with easy_install

2010-03-30 Thread Mike C. Fletcher
PyPI. That should now work properly with easy_install. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com -- http://mail.python.org/mailman/listinfo/python-list

Re: (a==b) ? 'Yes' : 'No'

2010-03-30 Thread Mike Kent
On Mar 30, 11:40 am, gentlestone wrote: > Hi, how can I write the popular C/JAVA syntax in Python? > > Java example: >     return (a==b) ? 'Yes' : 'No' > > My first idea is: >     return ('No','Yes')[bool(a==b)] > > Is there a more elegant/common python expression for this? return ('Yes' if a ==

Re: Need advice on starting a Python group

2010-03-18 Thread Mike Orr
d, here the specialized groups are getting more attendance than the general groups are. The local Plone and Django groups get more people than the Python group does. --Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for newbies (Pythno users group in Macedonia)

2010-03-13 Thread Mike C. Fletcher
Дамјан Георгиевски wrote: > Hi all, > we are starting with bi-monthly Python User Group meetings in Skopje, > Macedonia. The meetings are targeted for both beginners and more > experienced users. > ... http://us.pycon.org/2010/conference/schedule/event/

Re: equivalent of Ruby's Pathname?

2010-03-09 Thread Mike Orr
here were no implementations. Now there are a few projects active on this, such as http://groups.google.com/group/stdpyfs . This is probably the future of any path object, so it would make sense to define a path now that can work with all these backends. --Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: A "scopeguard" for Python

2010-03-05 Thread Mike Kent
On Mar 4, 8:04 pm, Robert Kern wrote: > No, the try: finally: is not implicit. See the source for > contextlib.GeneratorContextManager. When __exit__() gets an exception from the > with: block, it will push it into the generator using its .throw() method. > This > raises the exception inside the

Re: A "scopeguard" for Python

2010-03-04 Thread Mike Kent
On Mar 3, 12:00 pm, Robert Kern wrote: > On 2010-03-03 09:39 AM, Mike Kent wrote: > > > What's the compelling use case for this vs. a simple try/finally? > > >     original_dir = os.getcwd() > >     try: > >         os.chdir(somewhere) > &

Re: A "scopeguard" for Python

2010-03-04 Thread Mike Kent
On Mar 4, 12:30 pm, Robert Kern wrote: > He's ignorant of the use cases of the with: statement, true. Ouch! Ignorant of the use cases of the with statement, am I? Odd, I use it all the time. > Given only your > example of the with: statement, it is hard to fault him for thinking that try: >

Re: A "scopeguard" for Python

2010-03-04 Thread Mike Kent
On Mar 3, 10:56 am, "Alf P. Steinbach" wrote: > * Mike Kent: > > > What's the compelling use case for this vs. a simple try/finally? > > if you thought about it you would mean a simple "try/else". "finally" is > always > executed

Re: A "scopeguard" for Python

2010-03-03 Thread Mike Kent
What's the compelling use case for this vs. a simple try/finally? original_dir = os.getcwd() try: os.chdir(somewhere) # Do other stuff finally: os.chdir(original_dir) # Do other cleanup -- http://mail.python.org/mailman/listinfo/python-list

Re: Library support for Python 3.x

2010-01-27 Thread Mike C. Fletcher
Interestingly, at PyGTA Myles mentioned that he'd found his first-ever Python 3.x-only library! Which he then converted to Python 2.x, because he actually wanted to use it in real code :) . Projects which haven't ported to Python 3.x aren't necessarily dead, they&#x

Pyowa Meeting Next Monday

2010-01-27 Thread Mike Driscoll
us modules used to put it all together. We'll probably have plenty of free time to chat and you can show off anything neat that you've been doing too. I hope to see you there! ----- Mike Driscoll Website: www.pyowa.org Twitter: www.twitter.com/pyowa -- http://mail.python.

Re: WxPython upgrade trouble on Ubuntu 8.04

2010-01-25 Thread Mike Driscoll
124: error: ISO C++ forbids > declaration of ‘GLXFBConfig’ with no type > /usr/include/wx-2.8/wx/gtk/glcanvas.h:124: error: expected ‘;’ before > ‘*’ token > error: command 'gcc' failed with exit status 1 > > Worse -- NOW if I start Python 2.5, I get the same error mess

Re: simple pub/sub

2010-01-22 Thread Mike Driscoll
a > line of text from a data stream.  (And there may be multiple > consumers.) >   3) The comm program will need to be able to poll the serial port and > input data streams to see which ones are ready. > > Any thoughts? Did you look at the pubsub module at all? See http://pu

Re: looking for Python live code reloading IDEs

2010-01-22 Thread Mike Driscoll
visual generation). > > Currently I do this directly in my editor (for game development), but > I'm curious if there are other options. Maybe you could get an idea from TurboGears or Django. They seem to reload their environments when a file is saved. --- Mike Driscoll Blog:

Re: python gui ide under linux..like visual studio ;) ?

2010-01-18 Thread Mike Driscoll
I've heard of another one that was commercial, but I can't recall the name at the moment. --- Mike Driscoll Blog: http://blog.pythonlibrary.org PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: maintain 2 versions of python on my computer

2010-01-16 Thread Mike
be as close to a "Windows shebang line" as you can get. In actual use, if/when I want a pause, I typically make a call raw_input() or msvcrt.getch() > EOF is a special label which may be used to exist a CMD file without having > to explicitly define it. Did not know that; somethi

Re: maintain 2 versions of python on my computer

2010-01-16 Thread Mike
re I first saw this, and don't think I have ever seen it since. It seems like a bit of a hack, but I use it from time to time when I cannot rely on Windows file associations. Perl has a much cleaner way to accomplish the same thing for Windows (see the pl2bat.bat script that ships with Perl Windows distributions). Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple distributed example for learning purposes?

2010-01-14 Thread Mike Driscoll
sheer inspiration, will be gratefully received. > > Thanks > > TJG > > [*] roughly, ages 14-18 I think distributed transcoding of hi-def videos would be cool, but I haven't found much with Google. Still, you might find this useful for your project: http://pypi.python.org/

Re: Python Concurrency Workshop, Jan 14-15, 2010

2010-01-02 Thread Mike Howard
Hi Dave, Chicago in January? How about moving it to Denver - it's a nice town and I live close by. Mike David Beazley wrote: Python Concurrency Workshop, v2.0 January 14-15, 2010 Chicago, Illinois

Re: whoops: create a splash window in python

2009-12-31 Thread Mike Driscoll
xPython the most, so if you have specific questions about that, let me know. Good luck! --- Mike Driscoll Blog: http://blog.pythonlibrary.org PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Help getting profile information programmatically

2009-12-31 Thread Mike Driscoll
the data generated. That link also links to the hotshot profiler, which looks like it's even simpler to use. You might also want to check out the logging module. --- Mike Driscoll Blog: http://blog.pythonlibrary.org PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with win32ui

2009-12-22 Thread Mike Driscoll
> > There is a missing DLL. Dependency Walker is a useful tool to solve this   > kind of > problems:http://technet.microsoft.com/en-us/library/cc738370(WS.10).aspx > Once you know which DLL is missing, add it to your setup.py > > -- > Gabriel Genellina Also make

Re: subprocess kill

2009-12-04 Thread Mike Driscoll
uestions/1064335/in-python-2-5-how-do-i-kill-a-subprocess --- Mike Driscoll Blog: http://blog.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Connecting to the users preferred email client

2009-12-04 Thread Mike Driscoll
> like Thubderbird, Evolution etc.? > > Tuomas Vesterinen Check this thread out: http://www.megasolutions.net/python/invoke-users-standard-mail-client-64348.aspx Basically, the idea is to pass the mailto url to webbrowser. --- Mike Driscoll Blog: http://blog.pythonlibrary

Re: Help in wxpython

2009-12-03 Thread Mike Driscoll
ls on them on my blog, which I then stick in the official wxPython wiki if I think the article is good enough. --- Mike Driscoll Blog: http://blog.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Help in wxpython

2009-12-03 Thread Mike Driscoll
I would really recommend you > to use pygtk instead of wx. > For one thing, the developers at pygtk are very active (they have their > mailing list as well ) and it comes by default with python on almost all > linux distros.  You can also easily install it on wind

Re: confusing thread behavior

2009-12-03 Thread Mike Driscoll
lp or not, but see the following article on the wxPython wiki: http://wiki.wxpython.org/LongRunningTasks There's a section called "More Tips" where Queues are discussed. Robin Dunn (creator of wxPython) seems to recommend using wx.CallAfter there rather than PostEvent. --- Mike

Re: Stagnant Frame Data?

2009-11-18 Thread Mike
On Nov 15, 1:36 pm, Terry Reedy wrote: > Peter Otten wrote: > > Mike wrote: > > >> I'll apologize first for this somewhat lengthy example. It does > >> however recreate the problem I've run into. This is stripped-down code > >> from a much more mea

Re: Stagnant Frame Data?

2009-11-18 Thread Mike
On Nov 15, 1:36 pm, Terry Reedy wrote: > Peter Otten wrote: > > Mike wrote: > > >> I'll apologize first for this somewhat lengthy example. It does > >> however recreate the problem I've run into. This is stripped-down code > >> from a much more mea

Stagnant Frame Data?

2009-11-15 Thread Mike
of frame data? Why does the single line "sys._getframe(1).f_locals" fix the behavior? Thanks, Mike import sys class Snapshot(object): def __init__(self, caller_globals, caller_locals): self.signals = [] self.caller_globals = caller_globals self

Re: Freezing python files into executables

2009-11-03 Thread Mike Driscoll
th a whole slew of freezing modules: http://code.google.com/p/gui2exe/ I've been using it to make executables on Windows through it's py2exe implementation. --- Mike Driscoll Blog: http://blog.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: AES decrypting in Python

2009-10-07 Thread Mike Driscoll
On Oct 7, 10:04 am, "M.-A. Lemburg" wrote: > Mike Driscoll wrote: > > Hi, > > > I am working on a project where I need to decrypt some data that has > > been encrypted with AES. It looks like M2Crypto is the module of > > choice for these sorts of t

AES decrypting in Python

2009-10-07 Thread Mike Driscoll
ting though. Can someone shed some light on this? Thanks, Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: PyOpenGL and graphics card support

2009-10-01 Thread Mike C. Fletcher
__main__": glutInit([]) glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_DEPTH) glutInitWindowSize(resX, resY) glutInitWindowPosition(0, 0) window = glutCreateWindow("hello") for name in (GL_VENDOR,GL_RENDERER,GL_SHADING_LANGUAGE_VERSION,GL_EXTENSIONS): pri

removing a post

2009-09-28 Thread Mike L
hello could you remove this old post, off topic and spam http://www.mail-archive.com/python-list@python.org/msg175722.html thank you _ We are your photos. Share us now with Windows L

Re: Twisted 100% event driven or hybrid?

2009-09-23 Thread Mike C. Fletcher
nce of a few years of memory decay, so take it as "loosely this, with the proper function names and the like"). Threads aren't really part of the "twisted way" in my understanding, but they can be used if necessary AFAIK, and th

Re: entry widget won't validate

2009-09-22 Thread Mike
On Sep 22, 4:29 am, Peter Otten <__pete...@web.de> wrote: > Mike wrote: > > On Sep 21, 12:47 pm, Peter Otten <__pete...@web.de> wrote: > >> Mike wrote: > >> > I'm trying to arrange for an Entry widget to check whether its data > >> > is al

Re: socket send O(N**2) complexity

2009-09-21 Thread Mike
On Sep 21, 2:03 pm, Zac Burns wrote: > The mysocket.mysend method given > athttp://docs.python.org/howto/sockets.htmlhas an (unwitting?) O(N**2) > complexity for long msg due to the string slicing. > > I've been looking for a way to optimize this, but aside from a pure > python 'string slice view

Re: entry widget won't validate

2009-09-21 Thread Mike
On Sep 21, 12:47 pm, Peter Otten <__pete...@web.de> wrote: > Mike wrote: > > I'm trying to arrange for an Entry widget to check whether its data > > is all digits and whether the number represented is small enough. > > The validate function seem to be called once a

entry widget won't validate

2009-09-21 Thread Mike
I'm trying to arrange for an Entry widget to check whether its data is all digits and whether the number represented is small enough. The validate function seem to be called once at startup and not afterwards: import sys, Tkinter, tkFileDialog, tkMessageBox tk=Tkinter tkfd=tkFileDialog ... class

Re: subprocess woes

2009-09-15 Thread Mike Driscoll
has no > attribute 'fileno'". > > How can I capture stderr in the scenario depicted above? > > TIA! > > kynn According to the docs for subprocess module (which you don't appear to be using even though that's what you used for your subje

Re: Python and 3d

2009-09-13 Thread Mike C. Fletcher
ceneGraph, Crystal Space, etc) should all have content loaders, though I haven't played with them enough to be able to say what formats they support. HTH, Mike -- ____ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplu

Re: How do I post to the wxPython mailing list?

2009-09-08 Thread Mike Driscoll
e. And Robin Dunn sent out multiple notices about the switch and why he was doing it about a month before the switch. --- Mike Driscoll Blog: http://blog.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: What python can NOT do?

2009-09-04 Thread Mike Coleman
On Aug 28, 5:37 pm, qwe rty wrote: > i know that an interpreted language like python can't be used to make > an operating system or system drivers. > > what else can NOT be done in python? what are the limitations of the > language? Neither of those is strictly true. It is true, though, that Pyt

Re: win32ui DLL Load Failed

2009-08-31 Thread Mike Driscoll
machine. Is it possible that that is the problem? Running Depends > didn't get me anywhere. I would appreciate any help you can offer. Did you install PyWin32? If so, which version? Here's a link: http://sourceforge.net/projects/pywin32/ - Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: IDE for Python

2009-08-31 Thread Mike Driscoll
PE (Stani's Python Editor). If you want a nigh-complete list, check the Python wiki: http://wiki.python.org/moin/PythonEditors --- Mike Driscoll Blog: http://blog.pythonlibrary.org -- http://mail.python.org/mailman/listinfo/python-list

Re: How to install setuptools...egg?

2009-08-30 Thread Mike
and ez_setup.py run the command python ez_setup.py 5. Add C:\Python26\Scripts to your path to run easy_install Mike -- http://mail.python.org/mailman/listinfo/python-list

Python - scraping - javascript

2009-08-15 Thread Mike Paul
I'm trying to scrap a dynamic page with lot of javascript in it. Inorder to get all the data from the page i need to access the javascript. But i've no idea how to do it. Say I'm scraping some site htttp://www.xyz.com/xyz request=urllib2.Request("htttp://www.xyz.com/xyz") response=urllib2.urlopen

Python- javascript

2009-08-15 Thread Mike Paul
I'm trying to scrap a dynamic page with lot of javascript in it. Inorder to get all the data from the page i need to access the javascript. But i've no idea how to do it. Say I'm scraping some site htttp://www.xyz.com/xyz request=urllib2.Request("htttp://www.xyz.com/xyz") response=urllib2.urlopen

Re: Bug in IEHtmlWindow?

2009-07-30 Thread Mike Driscoll
r seen that error. Could you re-post to the wxPython user's list? They can probably help you there: http://groups.google.com/group/wxPython Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: New implementation of re module

2009-07-29 Thread Mike
On Jul 29, 10:45 am, MRAB wrote: > Mike wrote: > > - findall/finditer doesn't find overlapping matches.  Sometimes you > > really *do* want to know all possible matches, even if they overlap. > > Perhaps by adding "overlapped=True"? Something like that woul

Re: New implementation of re module

2009-07-29 Thread Mike
, perhaps over-complex, to address this problem: http://mail.python.org/pipermail/python-dev/2004-August/047238.html Mike -- http://mail.python.org/mailman/listinfo/python-list

Pyowa is this Monday!

2009-07-04 Thread Mike Driscoll
mming language. Be prepared to share! We may have another presentation in our Standard Library series as well or just something random. Let me know if you think you'll be there. Pop & water will be provided. We hope to see you there! -- Mike Driscoll http://www.

Re: n00b confusion re: local variable referenced before assignment error

2009-06-19 Thread Mike Kazantsev
t;, since the try has failed here. You might want to insert return or avoid (possibly endless) recursion altogether - just wrap it into while loop with some counter (aka max_tries). Also, you can get rid of code duplication by catching some basic urllib2 exception, then checking if it's ur

Re: Calling subprocess with arguments

2009-06-19 Thread Mike Kazantsev
On Fri, 19 Jun 2009 22:00:28 +0600 Mike Kazantsev wrote: > On Fri, 19 Jun 2009 08:28:17 -0700 > Tyler Laing wrote: > > > Thanks mike, the idea that maybe some of the info isn't being passed is > > certainly interesting. > > > > Here's the output of

Re: Calling subprocess with arguments

2009-06-19 Thread Mike Kazantsev
On Fri, 19 Jun 2009 08:28:17 -0700 Tyler Laing wrote: > Thanks mike, the idea that maybe some of the info isn't being passed is > certainly interesting. > > Here's the output of os.environ and sys.argv: > ... I'm afraid these doesn't make much sense without

Re: Retrieving column values by column name with MySQLdb

2009-06-19 Thread Mike Kazantsev
On Fri, 19 Jun 2009 10:32:32 -0500 Tim Chase wrote: > Mike gave you a good answer, though I think it's MySQL specific. I don't have to deal with MySQL frequently but I've remembered that I used got the fields out somehow, and now, looking at the code, I wonder myself, why &qu

Re: Calling subprocess with arguments

2009-06-19 Thread Mike Kazantsev
time w/o blocking. Try this recipe: http://code.activestate.com/recipes/576759/ -- Mike Kazantsev // fraggod.net signature.asc Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling subprocess with arguments

2009-06-19 Thread Mike Kazantsev
/env python import sys open('/tmp/argv', 'w').write(repr(sys.argv)) And replace 'vlc' with a path to this script, then invoke it from a shell, compare the results. If it gets the right stuff, try the same with os.environ (prehaps vlc keeps socket location there, just like ssh/gpg-agents?). -- Mike Kazantsev // fraggod.net signature.asc Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Retrieving column values by column name with MySQLdb

2009-06-19 Thread Mike Kazantsev
result = db.store_result() data = result.fetch_row(maxrows=0, how=1) -- Mike Kazantsev // fraggod.net signature.asc Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing and process run time

2009-06-19 Thread Mike Kazantsev
it can get the same results as well, w/o having to invoke shell commands: http://code.google.com/p/procpy/ -- Mike Kazantsev // fraggod.net -- http://mail.python.org/mailman/listinfo/python-list

Re: walking a directory with very many files

2009-06-19 Thread Mike Kazantsev
On Fri, 19 Jun 2009 17:53:40 +1200 Lawrence D'Oliveiro wrote: > In message <20090618081423.2e035...@coercion>, Mike Kazantsev wrote: > > > On Thu, 18 Jun 2009 10:33:49 +1200 > > Lawrence D'Oliveiro wrote: > > > >> In message <20090617

Re: Once again, comparison wxpython with PyQt

2009-06-18 Thread Mike Driscoll
ts I've ever needed are already implemented and when they aren't there, it always seems that one of the other developers releases one. I would recommend trying to create something small in each toolkit (like a minimal calculator) and see which one makes the most sense to you. Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: Tutorial on working with Excel files in Python (without COM and cross platform!) at EuroPython 2009

2009-06-18 Thread Mike Driscoll
ng you all there! > > Chris > > -- > Simplistix - Content Management, Zope & Python Consulting >             -http://www.simplistix.co.uk As I recall, these utilities don't allow the programmer to access Excel's formulas. Is that still an issue? Mike -- http://mail.python.org/mailman/listinfo/python-list

Re: walking a directory with very many files

2009-06-17 Thread Mike Kazantsev
On Thu, 18 Jun 2009 10:33:49 +1200 Lawrence D'Oliveiro wrote: > In message <20090617214535.10866...@coercion>, Mike Kazantsev wrote: > > > On Wed, 17 Jun 2009 23:04:37 +1200 > > Lawrence D'Oliveiro wrote: > > > >> In message <200906

<    1   2   3   4   5   6   7   8   9   10   >