On Tue, Oct 26, 2010 at 3:31 AM, Xah Lee wrote:
> ...
No, list comprehensions are not "nececessary", just like the plethora of
expletives in the majority of your OPs on this list are not necessary. The
question is are they useful, and the answer is the case of list
comprehensions is obviously y
On 10/27/2010 05:37 AM, Roy Smith wrote:
> I agree. I resisted LCs when they first came out, passing them off as
> unnecessary, confusing, etc. Eventually, I came to be comfortable with
> them and use them often.
I do use LCs fairly often, but only then a for loop would be ugly or
inefficient.
Hello!
You will find (positive) answers in PyWin32 and his examples.
@-salutations
--
Michel Claveau
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 21 Nov 2010 23:57:21 -0500, Steve Holden wrote:
> Perhaps we could take this thread to alt.small.minded.bickering now?
Alas, my ISP doesn't carry that newsgroup. Where else can I get my
mindless off-topic bitching if not for cross-posts from comp.lang.scheme
and comp.lang.functional?
*
On 11/21/2010 11:38 PM, Ertugrul Söylemez wrote:
> "Jon Harrop" wrote:
>
>> "Ertugrul Söylemez" wrote in message
>> news:20101014052650.510e8...@tritium.streitmacht.eu...
>>
>>> That's nonsense.
>>
>> Actually namekuseijin is right. You really need to persevere and
>> familiarize yourself with s
"Jon Harrop" wrote:
> "Ertugrul Söylemez" wrote in message
> news:20101014052650.510e8...@tritium.streitmacht.eu...
>
> > That's nonsense.
>
> Actually namekuseijin is right. You really need to persevere and
> familiarize yourself with some of the other languages out
> there. Haskell is many thi
Gnarlodious wrote:
>
>I'm having a hard time understanding this, can someone explain?
>
>Running a CGI with query string:
>
>?action=Find&page=Data
>
>Script includes these lines:
>
>form=cgi.FieldStorage(keep_blank_values=1)
>print("Content-type:text/html\n\n")
>print(cgi.print_form(form))
>
>Out
On 11/21/2010 10:12 PM, Maxim Mercury wrote:
> I was using the lstrip to trim the left occurance of a string, and it
> didnt seem to work for some cases. but when i investigated there does
> seem to be an issue with some combination of strings
> here is one case
> p1 = "abcd"
> p2 = 'def'
I was using the lstrip to trim the left occurance of a string, and it
didnt seem to work for some cases. but when i investigated there does
seem to be an issue with some combination of strings
here is one case
p1 = "abcd"
p2 = 'def'# $abc
sym = '_'
str1 = p1 + sym + p2
str1
Hi friends,
I have an interesting question. Is it possible to open HTML page from
python resources (Sorry, I don't know how to use the resources) like
we can open using Win32 from .rc files. Can that page contain
references to scrips in the resource file?
Another question is reagrding ActiveX on
On Sun, 21 Nov 2010 15:40:10 -0800, Shel wrote:
> I am confused about multiple simultaneous users, which I would like to
> be able to accommodate. On the db side, I have a structure to store
> data for each user, and know a bit about selectively locking data,
> although I have not implemented tha
Hi,
Pyro 3.11 has been released!
Pyro is a an advanced and powerful Distributed Object Technology system written entirely
in Python, that is designed to be very easy to use.
Have a look at http://www.xs4all.nl/~irmen/pyro3/ for more information.
Highlights of this release are:
- improved comp
No worries at all about repeating things. I wasn't clear, and I
appreciate your going to the trouble of teaching me just about
anything. Even things I think I know, I might not really know :-)
Let's see... am okay with the relational design stuff. Thanks for the
"EXPLAIN" verb.
I am confused a
> Thanks a lot peter, that worked as i needed. Where can i find some
> good documentation which explains such behavior.
The reason for this behavior is the way python stores attributes.
Both a class and an instance of a class have a __dict__ attribute
which is a dictionary which stores attributes
Definitely not looking to reinvent the wheel. Will check these out,
thanks!
Shel
On Nov 20, 9:50 pm, Ian Kelly wrote:
> On 11/20/2010 3:40 PM, Shel wrote:
>
> > So right now I have a mySQL db structure and some Python code. My end
> > goal is to create a browser-based interactive fiction/game th
So, what can one do about this? There seems to be at least two aspects: (a)
difference between browser-based and script-based (pygoogle in this case)
query, and (b) difference in time and place, but possibly within the same query
type. If so, how can we be sure? It would be interesting (at least
Am 21.11.2010 20:35, schrieb Petar Milin:
Hello ALL!
I am playing with the modified version of the Pygoogle (by Stefan).
Interesting thing is that get_result_count() gives numbers/results
different from those in Google. Has anyone checked this? Does anyone
know why?
Best,
Petar
AFAIK there
Hi Everyone,
I'm having a strange problem with the multiprocessing package and
Panda3D. Importing panda modules causes multiprocessing to only use
one of my cores.
I've created an example test case. It uses an infinite loop to ping
the cores so you'll have to manually kill the python processes.
Hello,
in a test suite in my project (called rvirtualenv [1]) I discovered a
strange behaviour when calling from python a batch file which calles
another python and this calles a shell command.
[1] http://github.com/kvbik/rvirtualenv
I know it sounds pretty strange, but I do this only because I
On 11/20/2010 10:30 PM, Chris Rebert wrote:
On Sat, Nov 20, 2010 at 10:08 PM, Navkirat Singh
wrote:
Hi Guys,
Is there any way to pickle a database cursor? I would like a
persistent cursor over multiple HTTP requests. Any help would be
awesome !
You can't. It's like a file handle in that respe
Hello ALL!
I am playing with the modified version of the Pygoogle (by Stefan).
Interesting thing is that get_result_count() gives numbers/results
different from those in Google. Has anyone checked this? Does anyone
know why?
Best,
Petar
--
http://mail.python.org/mailman/listinfo/python-list
In article <4cc701e7$0$1606$742ec...@news.sonic.net>,
John Nagle wrote:
>
>Python isn't a functional language. It has some minimal functional
>capabilities, and there's a lobby that would like more. So far, that's
>mostly been resisted. Attempts to allow multiline lambdas have been
>averted.
On 11/20/2010 4:59 PM Steven D'Aprano said...
On Sun, 21 Nov 2010 08:59:30 +1100, Ben Finney wrote:
C'mon, Steven, you know the drill. If you want us to help you solve a
problem, don't start with “I want to use this behaviour that seems
loony, and I won't say why”. Instead, help us by telling u
"Ertugrul Söylemez" wrote in message
news:20101014052650.510e8...@tritium.streitmacht.eu...
That's nonsense.
Actually namekuseijin is right. You really need to persevere and familiarize
yourself with some of the other languages out there. Haskell is many things
but simple is not one of them.
I have three questions:
1. If I have a variable that is stored in a data set and I want to
formulate only one constraint (under optmodel) that is a function of
all the data set's observations of this variable and a decision
variable. Suppose the
variable is a and x is the decision variable. My
c
On Sun, Nov 21, 2010 at 5:35 AM, FELD Boris wrote:
> I think the best way to do this is using css with specific media type.
> Take a look at : http://martybugs.net/articles/print.cgi
>
Oh, man, this is perfect! Thanks!
beno
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 20 Nov 2010 17:20:53 -0800, Shel wrote:
> Sorry I wasn't clear about the db part. Most of the data has already
> been written and/or generated and tested with the code. I do plan to
> finish all the database stuff before going to the front end, but am just
> thinking ahead about how to d
Download the free and exclusive involvement of Bandon the world's
first Internet Security Nod32 Antivirus 4.2.67.10 version of Business
Edition Topics Encyclopedia Internet Security / Antivirus
Download from here
http://prosoftantivirus.blogspot.com/2010/11/nod32-antivirus-426710-business-edition.h
Am 21.11.2010 11:01, schrieb Petar Milin:
On 20/11/10 22:34, Chris Rebert wrote:
On Thu, Nov 18, 2010 at 3:26 AM, neocortex wrote:
The library doesn't seem to have built-in support for filtering by
language (and Google lacks a search query-string-based operator for
that), but it looks like yo
On 20/11/10 22:34, Chris Rebert wrote:
On Thu, Nov 18, 2010 at 3:26 AM, neocortex wrote:
The library doesn't seem to have built-in support for filtering by
language (and Google lacks a search query-string-based operator for
that), but it looks like you could implement that feature by addin
Hello!
Thanks so much for the patched Pygoogle!
Also, please, can you give me some more information about how to use
google search api?
I am a newbie in Python, and I still try to cope with it. Thanks to some
experience in other
programing languages, I think I progress well, but I am not a
prof
I think the best way to do this is using css with specific media
type.Take a look at : http://martybugs.net/articles/print.cgi
-- FELD BorisSent with Sparrow
On dimanche 21 novembre 2010 at 03:35, Hidura wrote:
32 matches
Mail list logo