exit ThreadPoolExecutor immediately

2016-11-14 Thread Atul Johri
I am looking for a way to stop a ThreadPoolExecutor immediately under the assumption that I don't care about what's currently running or pending. ``` limit = 2 executor = ThreadPoolExecutor(10) posts = itertools.islice(mygen(executor=executor, **kwargs), 0, limit) for post in posts: print(post)

Python on the web, how to?

2009-08-18 Thread Atul.
Hello All, Needless to say I am new to python and web programming. I am looking for a quick Python-101 course / tutorial for "using python to implement dynamic content on web" under some web server. Any pointers what should I be reading? Regards, Atul. -- http://mail.python.org/mailma

file open fails.

2009-03-24 Thread Atul.
Now, I can not understand the problem here I have all the permissions set for the folder, file as well. I can not understand why would it happen. Is it known on Windows Vista or am I missing something really simple and stupid? Please help. Regards, Atul. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Entry widgets 'font' property (API ?) changed in Python 2.5.2 ?

2008-08-09 Thread Atul
> > 2. How can I achieve what I want alternatively ? > > I'd use this way: > > import tkFont > entryFontDescr = Entry()["font"] > entry_font = tkFont.Font(font=entryFontDescr) > print entry_font.actual() > This works very well, thank you :) Regards, -- Atul -- http://mail.python.org/mailman/listinfo/python-list

Re: regular expressions.

2008-08-08 Thread Atul.
48"u"\u0949"u"\u094a"u"\u094b"u"\u094c"]' print re.findall(vowel, u"\u092f\u093e\u0902\u091a\u094d\u092f\u093e", re.UNICODE) [EMAIL PROTECTED]:~/Work/work/programs$ python fourth.py [] [EMAIL PROTECTED]:~/Work/work/programs$ is this the way to use Unicode in REs? Regards, Atul. -- http://mail.python.org/mailman/listinfo/python-list

Re: regular expressions.

2008-08-08 Thread Atul.
On Aug 8, 4:33 pm, "Atul." <[EMAIL PROTECTED]> wrote: > On Aug 8, 4:22 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > > > > > Atul. wrote: > > > >> Yes. You didn't paste the traceback into your message. > > > >> >&

Re: regular expressions.

2008-08-08 Thread Atul.
On Aug 8, 4:22 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > Atul. wrote: > > >> Yes. You didn't paste the traceback into your message. > > >> >>> import re > >> >>> vowel = r'[aeiou]' > >> >>> re.findall(v

Re: regular expressions.

2008-08-08 Thread Atul.
> Yes. You didn't paste the traceback into your message. > > >>> import re > >>> vowel = r'[aeiou]' > >>> re.findall(vowel, r"vowel") > > ['o', 'e'] > > It works as expected here. > > Peter When I key this input in IDLE it works but when I try to run the module it wont work. -- http://mail.python

regular expressions.

2008-08-08 Thread Atul.
Hey All, I have been playing around with REs and could not get the following code to run. import re vowel = r'[aeiou]' re.findall(vowel, r"vowel") anything wrong I have done? Regards, Atul. -- http://mail.python.org/mailman/listinfo/python-list

Tkinter Entry widgets 'font' property (API ?) changed in Python 2.5.2 ?

2008-08-05 Thread Atul
, "credits" or "license" for more information. >>> I dont remember the exact version of Python on the earlier Suse 10.2 box My questions: 1. Is this not an API change ? I looked up Python's release documentation and didn't find any mention of the same. 2.

Re: Encoding for Devanagari Script.

2008-07-28 Thread Atul.
Thanks, Tim that did work. I will proceed with my playing around now. Thanks a ton. Atul. > > Only slightly. You're importing the codecs module > but you're not using it. So you're *actually* using > the built-in open function, which doesn't have an > encod

Re: Encoding for Devanagari Script.

2008-07-28 Thread Atul.
xbf\xe0\xa4\xb2\xe0\xa5\x8d \xe0\xa4\xb2\xe0\xa5\x80,' Now based on my knowledge of Unicode I think this is a utf-8 file (the first 3 bytes \xef\xbb\xbf), please correct me if I am wrong. How do I read this? Atul. PS: the above code I wrote using the information from the Library Referenc

Encoding for Devanagari Script.

2008-07-24 Thread Atul.
Hello All, I wanted to know what encoding should I use to open the files with Devanagari characters. I was thinking of UTF-8 but was not sure, any leads on this? Anyone used it earlier? Thanks in Advance. Regards, Atul. -- http://mail.python.org/mailman/listinfo/python-list

Re: highly einteractive editor for python

2007-07-10 Thread Atul Bhingarde
I liked what the Wing IDE provides, one question though will it provide facility like creating the GUI widgets (say using TK) and facilitaate layout for the same and then run the script ? Thanks Atul "Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

Re: highly einteractive editor for python

2007-07-10 Thread Atul Bhingarde
What I want to see is that it is possible to create a python based application in a environment where I can see the results as I am creating it, specifically gui widgets (from say TK). This will provide a robust mechanism to see gui layout as well. Thanks Atul "Josiah Carlson&quo

highly einteractive editor for python

2007-07-09 Thread Atul Bhingarde
Does anybody know an editor that facilitates, interactive python development. Where GUI etc developed will be possible to see in real time mode. Thanks Atul -- http://mail.python.org/mailman/listinfo/python-list

Missing fpconst?

2006-06-19 Thread Atul Wankhade
Hi All, I im searching for fpconst. I had gone thru both the links mentioned below. But both seem to be broken.. Can any body point me to correct one. Thanks in advance.. Atul phansen wrote: >I was trying to start some experiments with SOAP, but >fairly quickly discovered that

Announcing WERD (1.0), the Phonetic Transliterator to Indic scripts

2006-05-23 Thread Atul
Python and Tkinter, is open source software released under GPL, and is hosted by SourceForge (www.sourceforge.net) Thanks and Regards, -- Atul -- http://mail.python.org/mailman/listinfo/python-list

Tkfont.families does not list all installed fonts

2006-05-08 Thread Atul
Hi, I have installed a truetype font (.ttf) on a linux machne (SUSE linux 10, KDE) by copying it to my .fonts folder. I can use the font in all applications like open-office and firefox browser. However, I cannot use the font in a python app that I am writing. The list returned by Tkfont.families

import error on solaris

2005-06-16 Thread Atul Kshirsagar
ther unix platforms and windos too. One additional thing I do for solaris is "import DLFCN; sys.setdlopenflags(DLFCN.RTLD_NOW | DLFCN.RTLD_PARENT);" One of my question is, is importing some module create a file handle ? Any help on this

directory listing

2005-01-27 Thread Atul Kamat
hi how do i get a full listing of permissions for files and directories in linux? Something like rwx-r--r-- i have managed to get it using the os.access modes as of now but it gives me the permissions of the current user. regards Atul Kamat Visionael Labs Bangalore -- http