pyHook and time libraries

2012-11-29 Thread Doron
Hey, I'm tring to create a software that records the keyboard/mouse and sends email of the log every predetermined period. I've manage to make the recorder and the auto-email sender, but I still can't make both of them work simultaneously. Can someone help me with this please? I thought about t

Re: Weird import failure with "nosetests --processes=1"

2012-11-29 Thread Roy Smith
In article <50b78e26$0$6945$e4fe5...@news2.news.xs4all.nl>, Hans Mulder wrote: > That is baffling indeed. It looks like nose is adding some > directory to sys.path, which contains a module pyza.py instead > of a package. We finally figured it out. As it turns out, that's pretty close. > Anot

Re: Compare list entry from csv files

2012-11-29 Thread Dave Angel
On 11/29/2012 05:22 AM, Anatoli Hristov wrote: > > Hello, > > Tried to document a little bit the script, but I'm not that good in that too > :) > > The only problem I have is that I cant compare other field than the > first one in > for ex_phone in phones: > telstr = ex_phone[0].lower() >

ntlm authentication for urllib2

2012-11-29 Thread Jorge Alberto Diaz Orozco
Hi there: I'm working with urllib2 to open some urls and grab some data. The url will be inserted by the user and my script will open it and parse the page for results. the thing is I'm behind a ntlm proxy, and I've tried with a lot of things to authenticate but it still doesn't work at all. I

Re: How to add CC and BCC while sending mails using python

2012-11-29 Thread akegb3
On Tuesday, September 30, 2008 8:00:16 AM UTC-8, Bernhard Walle wrote: > Hi, > > * cindy jones [2008-09-30 19:57]: > > > > Can someone tel me how to add cc's and bcc's while sending mails using > > python > > Following (tested) snippet should help: > > -- 8< -

RE: Compare list entry from csv files

2012-11-29 Thread Prasad, Ramit
Anatoli Hristov wrote: > Hello, > > Tried to document a little bit the script, but I'm not that good in that too > :) > > The only problem I have is that I cant compare other field than the > first one in > for ex_phone in phones: > telstr = ex_phone[0].lower() > When I use telstr = ex_p

RE: re.search when used within an if/else fails

2012-11-29 Thread Prasad, Ramit
Dennis Lee Bieber wrote: > > Unless there has been a major change in the parser... (I still don't > have Python 3.x installed) > > I believe is expanded to 8-spaces -- NOT TO NEXT MULTIPLE OF > 8... A tab is *one* character. Your *editor* may show tabs visually "expanded" or conver

RE: Imaging libraries in active development?

2012-11-29 Thread Prasad, Ramit
Christian Heimes wrote: > > Am 28.11.2012 19:14, schrieb Michael Torrie: > > I'm curious. What features do you need that pil doesn't have? Other > > than updating pil to fix bugs, support new image types or new versions > > of Python, what kind of active development do you think it needs to > >

RE: re.search when used within an if/else fails

2012-11-29 Thread Prasad, Ramit
Ramit Prasad wrote: > > Dennis Lee Bieber wrote: > > > > Unless there has been a major change in the parser... (I still don't > > have Python 3.x installed) > > > > I believe is expanded to 8-spaces -- NOT TO NEXT MULTIPLE OF > > 8... > > A tab is *one* character. Your *editor* may show

Re: weird isinstance/issubclass behavior?

2012-11-29 Thread Terry Reedy
On 11/29/2012 9:59 AM, lars van gemerden wrote: Hi, I have encountered some strange behavior of isinstance(/issubclass): depending on the import path used for classes i get different output, while the classes i compare are in the same file. Basically if i import a class as: from mod1.mo

Few Issues on Parsing and Visualization

2012-11-29 Thread subhabangalore
Dear Group, I am looking for some Python based Natural Language Tools. (i)Parsers (either syntactic or semantic). NLTK has but there I have to input the grammar. I am looking for straight built in library like nltk tagging module. (ii) I am looking for some ner extraction tools. NLTK has I am

Re: Imaging libraries in active development?

2012-11-29 Thread Nobody
On Wed, 28 Nov 2012 04:30:25 -0800, Alasdair McAndrew wrote: > What I want to know is - what are the current "standard" libraries for > image processing in Python which are in active development? NumPy/SciPy. PIL is fine for loading/saving image files (although if you're using a GUI toolkit, tha

Re: os.popen and the subprocess module

2012-11-29 Thread Nobody
On Thu, 29 Nov 2012 10:09:44 +0100, Thomas Rachel wrote: > The variant with shell=True is more os.popen()-like, but has security > flaws (e.g., what happens if there are spaces or, even worse, ";"s in the > command string? I think that you're conflating the shell= option with whether the command

Re: Migrate from Access 2010 / VBA

2012-11-29 Thread Michael Torrie
On 11/29/2012 09:05 AM, Joel Goldstick wrote: > This looks promising: > http://www.codediesel.com/data/migrating-access-mdb-to-mysql/ Unfortunately I have not found mdb tools to be sufficient. You can use them to convert the schema to sql, and to reveal any mdb password (great for looking at the

Re: weird isinstance/issubclass behavior?

2012-11-29 Thread Ian Kelly
On Thu, Nov 29, 2012 at 9:07 AM, lars van gemerden wrote: > > PS: this is somewhat simpler than the actual case i've encountered, and > i haven't tested this exact case, but for now i hope this is enough to get > some of your insight. > > I know for sure that the imports both import the same file,

Re: Weird import failure with "nosetests --processes=1"

2012-11-29 Thread Hans Mulder
On 29/11/12 04:13:57, Roy Smith wrote: > I've got a minimal test script: > > - > $ cat test_foo.py > import pyza.models > print pyza.models > > def test_foo(): > pass > - > > pyza.models is a package. Under normal conditions, I can imp

Re: Exponential arrival distribution in Python

2012-11-29 Thread duncan smith
On 28/11/12 21:34, Ricky wrote: Hi all, I am doing a project on traffic simulation. I want to introduce exponential arrival distribution to precede this task. Therefore I want write a code in python for exponential arrival distribution. I am very new for programming and if anybody can help m

Re: weird isinstance/issubclass behavior?

2012-11-29 Thread lars van gemerden
On Thursday, November 29, 2012 3:59:37 PM UTC+1, lars van gemerden wrote: > Hi, > > > > I have encountered some strange behavior of isinstance(/issubclass): > depending on the import path used for classes i get different output, while > the classes i compare are in the same file. > > > > B

Re: Migrate from Access 2010 / VBA

2012-11-29 Thread Joel Goldstick
On Thu, Nov 29, 2012 at 10:43 AM, kagard wrote: > On Nov 27, 7:06 pm, David Bolen wrote: > > kgard writes: > > > I am the lone developer of db apps at a company of 350+ > > > employees. Everything is done in MS Access 2010 and VBA. I'm > > > frustrated with the limitations of this platform and

Re: Migrate from Access 2010 / VBA

2012-11-29 Thread kagard
On Nov 27, 7:06 pm, David Bolen wrote: > kgard writes: > > I am the lone developer of db apps at a company of 350+ > > employees. Everything is done in MS Access 2010 and VBA. I'm > > frustrated with the limitations of this platform and have been > > considering switching to Python. I've been exp

Re: weird isinstance/issubclass behavior?

2012-11-29 Thread Chris Angelico
On Fri, Nov 30, 2012 at 1:59 AM, lars van gemerden wrote: > Basically if i import a class as: > > from mod1.mod2 import A > > or: > > from mod0.mod1.mod2 import A > > which both result in importing the same class, a call to isinstance(inst, A) > in another module can have a different outp

weird isinstance/issubclass behavior?

2012-11-29 Thread lars van gemerden
Hi, I have encountered some strange behavior of isinstance(/issubclass): depending on the import path used for classes i get different output, while the classes i compare are in the same file. Basically if i import a class as: from mod1.mod2 import A or: from mod0.mod1.mod2 import A

[ANN] New article published: TMSTAF – The Extended Use of STAF on Test Automation

2012-11-29 Thread mauricel...@acm.org
http://ojs.pythonpapers.org/index.php/tpp/article/view/247 Abstract As software packages becomes increasingly large and complex, the time required for testing them, throughout the development lifecycle, has also increased. Because testing activities consume the majority of software Quality Assu

Re: changing dicts in a threaded environment ?

2012-11-29 Thread Bart Thate
Terry ! thnx for replying, feedback is the thing i need ;] sorry for the late reply, after your mail i have been coding like hurt (so many hours nonstop hacking hurts in the chair). As i started with all the code in 1 file (what i get when i think something is cool), i splitted the stuff up into p

Re: Compare list entry from csv files

2012-11-29 Thread Thomas Bach
Can you please cut the message you are responding to the relevant parts? On Thu, Nov 29, 2012 at 11:22:28AM +0100, Anatoli Hristov wrote: > The only problem I have is that I cant compare other field than the > first one in > for ex_phone in phones: > telstr = ex_phone[0].lower() > When I u

Re: Is it bad style to override the built-in function `type`?

2012-11-29 Thread Michael Herrmann
Hey everyone, this is my final mail. With all your help we have decided on names for our function. It was a surprisingly difficult process but your inputs helped tremendously. I have described our experiences (very good ones here, but somewhat mixed ones with StackOverflow) in a blog entry: ht

Re: 10 sec poll - please reply!

2012-11-29 Thread Michael Herrmann
Hey everyone, this is my final mail. With all your help we have decided on names for our function. It was a surprisingly difficult process but your inputs helped tremendously. I have described our experiences (very good ones here, but somewhat mixed ones with StackOverflow) in a blog entry: ht

Re: Imaging libraries in active development?

2012-11-29 Thread Alasdair McAndrew
Thanks for the heads-up about OpenCV. I have in fact briefly looked at OpenCV (well, the documentation), and it does seem remarkably complete. And what it doesn't provide, such as image transforms (FFT, DCT etc), are offered elsewhere by other Python libraries. Probably the combinations of Op

Re: Migrate from Access 2010 / VBA

2012-11-29 Thread Nicolas Évrard
* Wolfgang Keller [2012-11-25 20:48 +0100]: I am the lone developer of db apps at a company of 350+ employees. Everything is done in MS Access 2010 and VBA. I'm frustrated with the limitations of this platform and have been considering switching to Python. I've been experimenting with the langu

Re: Compare list entry from csv files

2012-11-29 Thread Anatoli Hristov
On Tue, Nov 27, 2012 at 9:41 PM, Neil Cerutti wrote: > On 2012-11-27, Anatoli Hristov wrote: >> Thank you all for the help, but I figured that out and the >> program now works perfect. I would appreciate if you have some >> notes about my script as I'm noob :) Here is the code: >> >> import csv >

Re: re.search when used within an if/else fails

2012-11-29 Thread Duncan Booth
Dennis Lee Bieber wrote: > Unless there has been a major change in the parser... (I still don't > have Python 3.x installed) > > I believe is expanded to 8-spaces -- NOT TO NEXT MULTIPLE OF > 8... > Certainly in Python 2.7 that's not the case: the tab expands to the next multiple o

Re: Imaging libraries in active development?

2012-11-29 Thread Adrien
Hey Alasdair, I believe OpenCV might do the trick for you: - it contains everything you seem to need (+ much much more); - it is efficient; - it is cross-platform; - it has a usable python interface since version 2.4; - it is not going away any time soon and is constantly improved; - it has an ac

Re: os.popen and the subprocess module

2012-11-29 Thread Thomas Rachel
Am 27.11.2012 19:00 schrieb Andrew: I'm looking into os.popen and the subprocess module, implementing os.popen is easy but i hear it is depreciating however I'm finding the implemantation of subprocess daunting can anyone help This is only the first impression. subprocess is much more powerfu

Re: please help me to debud my local chat network program

2012-11-29 Thread Chris Angelico
On Thu, Nov 29, 2012 at 8:03 PM, Minh Dang wrote: > can anyone help me? Look over my previous posts. I've made several suggestions that you haven't followed up on. Also, check out ESR's article on asking questions, which I also linked you to earlier. Take its advice. You'll help yourself, AND it

Re: please help me to debud my local chat network program

2012-11-29 Thread Minh Dang
can anyone help me? -- http://mail.python.org/mailman/listinfo/python-list

Imaging library

2012-11-29 Thread zoom
C'mon guys, don't be so picky. The point is that that he cannot find python library that can easily create HDR image or process RAW images (or some other image format). Also, AFAIK there is no built in support for standard imaging filters, color space conversion, etc (as Alasdair also mentioned)

Re: Imaging libraries in active development?

2012-11-29 Thread Christian Heimes
Am 28.11.2012 22:11, schrieb Jorgen Grahn: > I thought those formats were dead since about a decade? (Ok, I know > TIFF has niches, but JPEG 2000?) Baseline TIFF is still used a lot when a lossless image format is required. It's widely used for scientific stuff, long-time preservation, health car