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)
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
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
> > 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
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
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.
>
> > >> >&
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
> 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
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
, "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.
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
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
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
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]
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
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
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
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
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
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
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
21 matches
Mail list logo