Re: Textmining

2012-11-30 Thread Dave Angel
On 11/30/2012 02:48 PM, subhabangal...@gmail.com wrote: > Dear Group, > Python has one textming library, but I am failing to install it in Windows. > If any one can kindly help. > Regards, > Subhabrata. Please think about what you're asking, if you want people to help you. You say Python has a te

Re: amazing scope?

2012-11-30 Thread Dave Angel
On 11/30/2012 11:05 AM, andrea crotti wrote: > Well I knew that this works fine, even if I feel a bit guilty to do > this, and better is: > > foo = 'bar' if some_condition else 'baz' > > Anyway for me the suprise is that something that is defined *later* at > the module scope is found in a function

Re: send email with bcc

2012-11-30 Thread Ed
Oops. Sorry 'bout that. I somehow didn't grab the entire traceback info. Well, turns out one if not more of my BCC attempts is working. Just thought to check my spam filter of the BCC email address and there are quite a few messages in there. I've got it working now. Thanks to you both for the

Re: Textmining

2012-11-30 Thread Neil Cerutti
On 2012-11-30, subhabangal...@gmail.com wrote: > Python has one textming library, but I am failing to install it > in Windows. If any one can kindly help. More information needed. -- Neil Cerutti -- http://mail.python.org/mailman/listinfo/python-list

Re: send email with bcc

2012-11-30 Thread Ervin Hegedüs
Hello, On Fri, Nov 30, 2012 at 12:25:37PM -0800, Ed wrote: > > # Send the email > smtp.sendmail(sender, [to] + bcc, msg.as_string()) > > The above generates the following error: > Traceback (most recent call last): > File "/opt/batch/ebtest/example4.py", line 46, in > smtp.sendmail(sender

Re: send email with bcc

2012-11-30 Thread Tim Golden
On 30/11/2012 20:25, Ed wrote: to = 'e...@domain.gov' bcc = 'e...@domain.net' [... snippage ...] smtp.sendmail(sender, [to] + bcc, msg.as_string()) Well, you crucially don't show us the rest of the traceback. But I imagine you'd have got something like this: ActivePython 2.7.2.5 (Activ

send email with bcc

2012-11-30 Thread Ed
Hi, I have found many different suggestions on "how to" code python to send a bcc email. None of which have worked in my environment - yet. Following is what I have at this time, which is erroring. Most of the code I've found will successfully send the message to the TO & CC recipients, but not

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

2012-11-30 Thread Prasad, Ramit
Minh Dang wrote: > > can anyone help me? Chris Angelico has given you some good comments which should give you a direction to investigate. This list is a global list and you seem a tad impatient. It is normal to hear back from a few hours to a day or two. Even if I wanted to help, without cont

Textmining

2012-11-30 Thread subhabangalore
Dear Group, Python has one textming library, but I am failing to install it in Windows. If any one can kindly help. Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list

RE: pyHook and time libraries

2012-11-30 Thread Prasad, Ramit
Doron wrote: > > 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 w

RE: amazing scope?

2012-11-30 Thread Prasad, Ramit
andrea crotti > > I wrote a script, refactored it and then introducing a bug as below: > > def record_things(): > out.write("Hello world") > > if __name__ == '__main__': > with open('output', 'w') as out: > record_things() > > > but the shocking thing is that it didn't actually

Re: Migrate from Access 2010 / VBA

2012-11-30 Thread emile
On 11/29/2012 02:46 AM, Nicolas Évrard wrote: I'd like to add to the list Tryton http://www.tryton.org/ Which framework can be used to create a business application Let me second this, although for openERP (the parent from which Tryton was forked)... Reporting is done through relatorio (ht

Re: os.popen and the subprocess module

2012-11-30 Thread emile
On 11/29/2012 10:39 AM, Nobody wrote: Every time I see your posts "Shanghai Noodle Factory" sticks in my head as my daily hummer. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: amazing scope?

2012-11-30 Thread Jean-Michel Pichavant
- Original Message - > Well I knew that this works fine, even if I feel a bit guilty to do > this, and better is: > > foo = 'bar' if some_condition else 'baz' > > Anyway for me the suprise is that something that is defined *later* > at > the module scope is found in a function which is de

Re: amazing scope?

2012-11-30 Thread Chris Angelico
On Sat, Dec 1, 2012 at 3:05 AM, andrea crotti wrote: > Well I knew that this works fine, even if I feel a bit guilty to do > this, and better is: > > foo = 'bar' if some_condition else 'baz' > > Anyway for me the suprise is that something that is defined *later* at > the module scope is found in a

Re: amazing scope?

2012-11-30 Thread Ulrich Eckhardt
Am 30.11.2012 12:11, schrieb andrea crotti: I wrote a script, refactored it and then introducing a bug as below: def record_things(): out.write("Hello world") This is a function. Since "out" is not a local variable, it is looked up in the surrounding namespace at the time the function is

Re: amazing scope?

2012-11-30 Thread Jean-Michel Pichavant
- Original Message - > 2012/11/30 andrea crotti : > > Already changing it to: > > def record_things(): > out.write("Hello world") > > def main(): > with open('output', 'w') as out: > record_things() > > if __name__ == '__main__': > main() > > makes it stops workin

Re: amazing scope?

2012-11-30 Thread Jean-Michel Pichavant
- Original Message - > I wrote a script, refactored it and then introducing a bug as below: > > def record_things(): > out.write("Hello world") > > if __name__ == '__main__': > with open('output', 'w') as out: > record_things() > > > but the shocking thing is that it did

Re: Compare list entry from csv files

2012-11-30 Thread Anatoli Hristov
> As I said before, process both files into lists, one that you treat as > constant (and therefore capitalized) and the other containing the data > you intend to modify. > > It'd be much cleaner if you did all that input file parsing stuff in one > function, returning only the lists. Call it just

Re: Compare list entry from csv files

2012-11-30 Thread Anatoli Hristov
> Can you print ex_phone first. You are opening the files in text mode > so I wonder if the line endings are causing you to read and extra > "line" in between. Can you try reading the csv as "rb" instead of > "rt"? Yes I did this: use the global list PHONELIST and opening the CSV in binary - it wo