Hi,
Where can one get assistance if a Windows installation service fails to
install an msi installer? I used to download zip files, but they seem to
have been replaced with msi files. I know this issue is off topic here.
So my question simply is: where is it not off topic?
Thanks for any
Glenn Linderman wrote:
it appears the
OP understands that issue, and is asking why languages without
namespaces don't add them.
Note that Xah Lee is not generally someone who (or something that) asks
in order to learn something or to understand issues better. The more
general interest appears
Chris Rebert [EMAIL PROTECTED] wrote:
On Wed, Nov 26, 2008 at 1:48 AM, M_H [EMAIL PROTECTED]
I have a beginning of a (longer) string who is like:
mystr = 'mimetype=text/htmlcontent![CDATA['
or like
mystr = 'mimetype=text/html content![CDATA['
or like
mystr = 'mimetype=text/html
alex23 wrote:
On Nov 26, 3:26 pm, greg [EMAIL PROTECTED] wrote:
os.O_DIRECTORY must be fairly new -- it doesn't exist
in my 2.5 installation. But os.O_RDONLY seems to work
just as well for this purpose.
Which OS are you using?
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3
Hi all, I'm new to python and I've been spending the last week on GUI
that refresh its content based on data periodically coming from a
remote socket.
I succeded in doing it (thanks newsgroups and online manual!) using
the Tkinter.after method to implement a busy wait on the socket (which
I had
k3xji wrote:
I am new to Python C API and finding it difficult to debug C
extensions. So, basically I want to see the value of an integer value
during the C API. Here is the code:
#define LAST_MIX_VAL 0xDEADBEEF
static PyObject *
chash(PyObject *self, PyObject *args)
{
unsigned int
On Nov 26, 1:34 pm, Stefan Behnel [EMAIL PROTECTED] wrote:
k3xji wrote:
I am new to Python C API and finding it difficult to debug C
extensions. So, basically I want to see the value of an integer value
during the C API. Here is the code:
#define LAST_MIX_VAL 0xDEADBEEF
static
k3xji wrote:
On Nov 26, 1:34 pm, Stefan Behnel [EMAIL PROTECTED] wrote:
k3xji wrote:
I am new to Python C API and finding it difficult to debug C
extensions. So, basically I want to see the value of an integer value
during the C API. Here is the code:
#define LAST_MIX_VAL 0xDEADBEEF
On Nov 26, 1:43 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote:
k3xji wrote:
On Nov 26, 1:34 pm, Stefan Behnel [EMAIL PROTECTED] wrote:
k3xji wrote:
I am new to Python C API and finding it difficult to debug C
extensions. So, basically I want to see the value of an integer value
during
Frederic Rentsch a écrit :
Hi,
Where can one get assistance if a Windows installation service fails to
install an msi installer? I used to download zip files, but they seem to
have been replaced with msi files. I know this issue is off topic here.
So my question simply is: where is it not
Hi all,
def getFunc(x):
return lambda y : x + y
if __name__ == '__main__':
todo = []
proc = getFunc(1)
todo.append(lambda: proc(1))
proc = getFunc(2)
todo.append(lambda: proc(1))
proc = getFunc(3)
todo.append(lambda: proc(1))
todo.append(lambda:
[EMAIL PROTECTED] wrote:
Hi all, I'm new to python and I've been spending the last week on GUI
that refresh its content based on data periodically coming from a
remote socket.
I succeded in doing it (thanks newsgroups and online manual!) using
the Tkinter.after method to implement a busy wait
In article [EMAIL PROTECTED],
Lawrence D'Oliveiro [EMAIL PROTECTED] wrote:
Cameron Laird wrote:
I've been trying to decide if there's any sober reason to advocate
the one-liner
map(lambda i: a.__setitem__(i, False), [x1, x2, x3, ..., x1024])
Are lambdas like the Dark Side of Python?
ONLINE EARNINGS $$$ 500 - $$$ 1000 PER MONTH WITHOUT INVESTMENT...
projectpayday has been proven to a legit source of income that can be
earned the same day you sign up.the best programme i found in online
that it pays
more than $100 perday to me. they provides you step by step guide
untill than
Alphones:
it is a little deferent from other script language.
See also here:
http://en.wikipedia.org/wiki/Dynamic_scope#Dynamic_scoping
Python doesn't have such automatic closures, probably for performance
reasons and/or maybe to keep its C implementation simpler (maybe other
people here can
Cong Ma [EMAIL PROTECTED] wrote:
Thanks for your reply. I checked my Python 2.5 install on Linux and there's
the
O_DIRECTORY flag. However this is not mentioned anywhere in the Library
Reference.
There's another question regarding to this flag though: I checked the manual
of
the
Aaron Brady [EMAIL PROTECTED] wrote:
I don't know a clean, reliable way to structure a metaprogram though.
Mine always turn out messy.
Yes.
Then another thing - it strikes me that any problem that can be solved
by metaprogramming, can be solved by putting similar code into a class
and
Xah Lee wrote:
In many languages, they don't have namespace and is often a well known
sour point for the lang. For example, Scheme has this problem up till
R6RS last year. PHP didn't have namespace for the past decade till
about this year. Javascript, which i only have working expertise,
didn't
Hi,
I'm using a simple form to make possible the users of our site upload
files.
html
headmeta http-equiv=Content-Type content=text/html;
charset=iso-8859-1/head
body
form method=post enctype=multipart/form-data action=/ws/
upload.py/
input name=upfile type=file size=50/br
André a écrit :
(snip)
you don't need to use pattern.items()...
Here is something I use (straight cut-and-paste):
def parse_single_line(self, line):
'''Parses a given line to see if it match a known pattern'''
for name in self.patterns:
result =
On Wed, Nov 26, 2008 at 1:48 AM, M_H [EMAIL PROTECTED] wrote:
On Nov 25, 11:06 pm, r [EMAIL PROTECTED] wrote:
On Nov 25, 4:33 pm, Jorgen Grahn [EMAIL PROTECTED] wrote:
On Tue, 25 Nov 2008 12:41:53 -0800 (PST), r [EMAIL PROTECTED] wrote:
On Nov 25, 10:36 am, M_H [EMAIL PROTECTED] wrote:
On 11月26日, 下午8时48分, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Alphones wrote:
Hi all,
def getFunc(x):
return lambda y : x + y
if __name__ == '__main__':
todo = []
proc = getFunc(1)
todo.append(lambda: proc(1))
proc = getFunc(2)
todo.append(lambda:
On 2008-11-20, greg [EMAIL PROTECTED] wrote:
Antoon Pardon wrote:
You are changing your argument. In a follow up you
made the point that call by value should be as it
was intended by the writers of the algol 60 report.
No, I was countering the argument that call by value
is short for call
On Tue, 25 Nov 2008 23:37:25 +0100, News123 [EMAIL PROTECTED] wrote:
Jorgen Grahn wrote:
Compare with a language (does Perl allow this?) where if the string
is rm -rf /|, open will run rm -rf / and start reading its output.
*That* interface would have been
Good example. (for perl):
I
Nick Craig-Wood wrote:
Here is how you do exactly that in python using ctypes
from ctypes import CDLL, c_char_p, c_int, Structure, POINTER
from ctypes.util import find_library
class c_dir(Structure):
Opaque type for directory entries, corresponds to struct DIR
c_dir_p =
On Nov 26, 11:07 pm, Steve Holden [EMAIL PROTECTED] wrote:
alex23 wrote:
I'm pretty certain it was present under Windows XP as well.
Since these two are the exact same version I presume O_DIRECTORY is not
meaningful on Windows. Anyway, when I try to use O_RDONLY on Vista I get
Permission
On Nov 26, 11:55 pm, Hendrik van Rooyen [EMAIL PROTECTED]
wrote:
Then another thing - it strikes me that any problem that can be solved
by metaprogramming, can be solved by putting similar code into a class
and instanciating an instance.
Does anybody know if this is true?
If it is, it
marc wyburn a écrit :
Hi,
I've created my first Tkinter GUI class which consists of some buttons
that trigger functions. I have also created a
tkFileDialog.askdirectory control to local a root folder for log
files.
I have several file paths that depend on the value of
Hi all,
I am new to Python C API and finding it difficult to debug C
extensions. So, basically I want to see the value of an integer value
during the C API. Here is the code:
#define LAST_MIX_VAL 0xDEADBEEF
static PyObject *
chash(PyObject *self, PyObject *args)
{
unsigned int key,result;
Roy Smith wrote:
In article [EMAIL PROTECTED],
Jorgen Grahn [EMAIL PROTECTED] wrote:
Hard to take a popularity index seriously when Logo is at #19 and
Bourne shell at #32 ... and then they suggest that their readers can
use it to make a strategic decision about what programming language
On Nov 25, 11:06 pm, r [EMAIL PROTECTED] wrote:
On Nov 25, 4:33 pm, Jorgen Grahn [EMAIL PROTECTED] wrote:
On Tue, 25 Nov 2008 12:41:53 -0800 (PST), r [EMAIL PROTECTED] wrote:
On Nov 25, 10:36 am, M_H [EMAIL PROTECTED] wrote:
Hey,
I need the position of the last char
Let's say
On Nov 26, 5:45 am, Joshua Cranmer [EMAIL PROTECTED] wrote:
i cannot fathom what could possibly be difficult of
introducing or implementing a namespace mechanism into a language.
Namespaces go to the very core of a language, name resolution.
Retroactively adding such a feature is extremely
Bruno Desthuilliers [EMAIL PROTECTED] wrote:
Stefan Scholl a écrit :
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
On Nov 19, 1:50 am, gavino [EMAIL PROTECTED] wrote:
what is nicer about each?
Yes.
And No.
Or maybe ?
This isn't Haskell.
--
alex23 wrote:
On Nov 26, 3:26 pm, greg [EMAIL PROTECTED] wrote:
os.O_DIRECTORY must be fairly new -- it doesn't exist
in my 2.5 installation. But os.O_RDONLY seems to work
just as well for this purpose.
Which OS are you using?
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
[GCC 4.2.3
On 2008-11-25, Robie Basak [EMAIL PROTECTED] wrote:
If I use dlopen() to open a shared library that I've written, and that
shared library tries to use the Python/C API, then it fails. I've
reduced the problem to the test case below. The error is:
ImportError:
On Nov 26, 2008, at 6:47 AM, k3xji wrote:
By the way for simple print-debugging, below works right now, I
forgot
to try that
fprintf(stderr,%d, key);
As a new extension developer myself, I'll pass along the following
handy macro that I swiped from another extension (psycopg I think):
Steve Holden wrote:
In fact all that's really happened is that Perl has slid down the ranks,
at least temporarily. Python has been around the 6/7 mark for a while now.
Also.. can someone attempt to explain the funny correlation in
popularity over time between, for instance, Python and
Hello,
Does somebody know how to debug this kind of bug ? (see following
traceback)
I suppose that the bug is in my program (executable with python
embedded) and not in python... but how to locate it ?
I tried to compile all C sources calling Python.h with -DPy_DEBUG and
to link my code against
On Thu, 27 Nov 2008 00:55:33 +0200, Hendrik van Rooyen wrote:
Aaron Brady [EMAIL PROTECTED] wrote:
I don't know a clean, reliable way to structure a metaprogram though.
Mine always turn out messy.
Yes.
Then another thing - it strikes me that any problem that can be solved
by
On 11月26日, 下午9时28分, [EMAIL PROTECTED] wrote:
Alphones:
it is a little deferent from other script language.
See also here:http://en.wikipedia.org/wiki/Dynamic_scope#Dynamic_scoping
Python doesn't have such automatic closures, probably for performance
reasons and/or maybe to keep its C
On Nov 26, 8:56 pm, Cong Ma [EMAIL PROTECTED] wrote:
Thanks for your reply. I checked my Python 2.5 install on Linux and there's
the
O_DIRECTORY flag. However this is not mentioned anywhere in the Library
Reference.
Yes, I just noticed that myself.
O_DIRECTORY
If
Xah Lee wrote:
Of languages that do have namespace that i [sic] have at least working
expertise: Mathematica, Perl, Python, Java. Knowing these langs
sufficiently well, i [sic] do not see anything special about namespace. The
_essence_ of namespace is that a char is choosen as a separator, and
On 25 Nov., 11:08, Rafe [EMAIL PROTECTED] wrote:
Hi,
In the name of self-education can anyone share some pointers, links,
modules, etc that I might use to begin learning how to do some
metaprogramming. That is, using code to write code (right?)
Cheers,
- Rafe
Alphones wrote:
Hi all,
def getFunc(x):
return lambda y : x + y
if __name__ == '__main__':
todo = []
proc = getFunc(1)
todo.append(lambda: proc(1))
proc = getFunc(2)
todo.append(lambda: proc(1))
proc = getFunc(3)
todo.append(lambda: proc(1))
Barak, Ron wrote:
Hi Pythonistas,
I read diaz's comments with interest, but - in my current configuration, I'm
unable to use pdb.
I'm developing on cygwin and use wxPython.
Consequently, I cannot use native cygwin Python, but my Python is actually
the Windows XP Python (i.e.,
In article [EMAIL PROTECTED],
Marco Mariani [EMAIL PROTECTED] wrote:
Steve Holden wrote:
In fact all that's really happened is that Perl has slid down the ranks,
at least temporarily. Python has been around the 6/7 mark for a while now.
Also.. can someone attempt to explain the funny
Xah Lee wrote:
On Nov 26, 5:45 am, Joshua Cranmer [EMAIL PROTECTED] wrote:
i cannot fathom what could possibly be difficult of
introducing or implementing a namespace mechanism into a language.
Namespaces go to the very core of a language, name resolution.
Retroactively adding such a feature
Alphones wrote:
On 11月26日, 下午9时28分, [EMAIL PROTECTED] wrote:
Alphones:
it is a little deferent from other script language.
See also here:http://en.wikipedia.org/wiki/Dynamic_scope#Dynamic_scoping
Python doesn't have such automatic closures, probably for performance
reasons and/or maybe
On Nov 26, 12:15 am, [EMAIL PROTECTED] wrote:
bullockbefriending bard napisa³(a):
I'm not sure if my terminology is precise enough, but what I want to
do is:
Given an ordered sequence of n items, enumerate all its possible k-
segmentations.
This is *not* the same as enumerating the
Steve Holden wrote:
import os
hasattr(os, 'O_DIRECTORY')
True
I'm pretty certain it was present under Windows XP as well.
f = os.open(., os.O_DIRECTORY)
Traceback (most recent call last):
File stdin, line 1, in module
AttributeError: 'module' object has no attribute 'O_DIRECTORY'
The
On Nov 25, 2:47 pm, Jorgen Grahn [EMAIL PROTECTED] wrote:
On Mon, 24 Nov 2008 20:25:51 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
QuotingXahLee[EMAIL PROTECTED]:
herald: Python surpasses Perl in popularity!
According to
?TIOBE Programming Community Index for November 2008? at
Xah Lee wrote :
i cannot fathom what could possibly be difficult of
introducing or implementing a namespace mechanism into a language. I
do not understand, why so many languages that lacks so much needed
namespace for so long? If it is a social problem, i don't imagine they
would last so long.
Alphones wrote:
On 11月26日, 下午9时28分, [EMAIL PROTECTED] wrote:
Alphones:
it is a little deferent from other script language.
See also here:http://en.wikipedia.org/wiki/Dynamic_scope#Dynamic_scoping
Python doesn't have such automatic closures, probably for performance
reasons and/or maybe
Xah Lee wrote:
On Nov 25, 2:47 pm, Jorgen Grahn [EMAIL PROTECTED] wrote:
On Mon, 24 Nov 2008 20:25:51 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
QuotingXahLee[EMAIL PROTECTED]:
herald: Python surpasses Perl in popularity!
According to
?TIOBE Programming Community Index for November
Xah Lee wrote:
i cannot fathom what could possibly be difficult of
introducing or implementing a namespace mechanism into a language. I
do not understand, why so many languages that lacks so much needed
namespace for so long? If it is a social problem, i don't imagine they
would last so
On Nov 26, 2:28 pm, [EMAIL PROTECTED] wrote:
Alphones:
it is a little deferent from other script language.
See also here:http://en.wikipedia.org/wiki/Dynamic_scope#Dynamic_scoping
Python doesn't have such automatic closures, probably for performance
reasons and/or maybe to keep its C
Xah Lee wrote:
The IT community has enough trouble getting a few ISPs to upgrade their
DNS software. How are you going to get millions of general users to
upgrade?
alright, that's speaks for Javascript.
But how's that apply to, say, Scheme lisp, Emacs lisp, PHP?
Think before you write.
On Nov 26, 11:42 am, Stefan Behnel [EMAIL PROTECTED] wrote:
Xah Lee wrote:
The IT community has enough trouble getting a few ISPs to upgrade their
DNS software. How are you going to get millions of general users to
upgrade?
alright, that's speaks for Javascript.
But how's that apply
On Nov 26, 8:42 am, Stefan Behnel [EMAIL PROTECTED] wrote:
XahLeewrote:
The IT community has enough trouble getting a few ISPs to upgrade their
DNS software. How are you going to get millions of general users to
upgrade?
alright, that's speaks for Javascript.
But how's that apply to,
Xah Lee wrote:
i cannot fathom what could possibly be difficult of
introducing or implementing a namespace mechanism into a language.
Joshua Cranmer wrote:
Namespaces go to the very core of a language, name resolution.
Retroactively adding such a feature is extremely difficult because there
Steve Holden [EMAIL PROTECTED] wrote:
And before anyone bothers to point it out, yes, I know PHO now (finally)
has namespaces.
I cannot resist oulling the oiss... Its not the first time...
:-)
- Hendrik
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano steau wrote:
Well, I don't know about any problem. And it's not so much about
whether metaprograms can solve problems that can't be solved by anything
else, as whether metaprograms can solve problems more effectively than
other techniques.
If you include factory
Hi everybody,
Here is a file test_import_scope.py:
##
class a():
import re
def __init__( self ):
if re.search( to, toto ):
self.se = ok!
def print_se( self ):
print self.se
a().print_se()
##
When python executes this file, we obtain an error:
$
On Wed, Nov 26, 2008 at 9:30 AM, TP [EMAIL PROTECTED] wrote:
Hi everybody,
Here is a file test_import_scope.py:
##
class a():
import re
def __init__( self ):
if re.search( to, toto ):
self.se = ok!
def print_se( self ):
print self.se
a().print_se()
hello,
I've the idea that I always have a lot of useless code in my programs,
like the next example.
def _On_Menu_File_Open ( self, event = None ):
if event :
event.Skip ()
instead of
def _On_Menu_File_Open ( self, event = None ):
event.Skip ()
So I would like to extend the
Which one is the best IDE for python
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Nov 26, 2008 at 9:59 AM, asit [EMAIL PROTECTED] wrote:
Which one is the best IDE for python
This was recently discussed. To avoid needlessly rehashing said
discussion, see the thread at
On Nov 26, 11:09 pm, Chris Rebert [EMAIL PROTECTED] wrote:
On Wed, Nov 26, 2008 at 9:59 AM, asit [EMAIL PROTECTED] wrote:
Which one is the best IDE for python
This was recently discussed. To avoid needlessly rehashing said
discussion, see the thread
On Wed, Nov 26, 2008 at 9:55 AM, Stef Mientki [EMAIL PROTECTED] wrote:
hello,
I've the idea that I always have a lot of useless code in my programs,
like the next example.
def _On_Menu_File_Open ( self, event = None ):
if event :
event.Skip ()
instead of
def _On_Menu_File_Open (
On 27 Nov., 05:41, Hendrik van Rooyen [EMAIL PROTECTED] wrote:
Given that, can anybody think of an example that you could not do with
a class? (excepting the stored procedure aspect)
I just noticed that corepy 1.0 [1] has been released. Corepy is an
embedded DSL for synthesizing machine code
On Wed, 26 Nov 2008 01:48:59 -0800 (PST), M_H [EMAIL PROTECTED] wrote:
On Nov 25, 11:06 pm, r [EMAIL PROTECTED] wrote:
On Nov 25, 4:33 pm, Jorgen Grahn [EMAIL PROTECTED] wrote:
...
Depends on if you have an irrational fear of REs or not ... I agree
that REs are overused for things which
On Nov 27, 4:55 am, Stef Mientki [EMAIL PROTECTED] wrote:
hello,
I've the idea that I always have a lot of useless code in my programs,
like the next example.
def _On_Menu_File_Open ( self, event = None ):
if event :
event.Skip ()
instead of
def _On_Menu_File_Open ( self,
On Nov 26, 11:59 am, asit [EMAIL PROTECTED] wrote:
Which one is the best IDE for python
You'll probably also want to take a look at the Python wiki:
http://wiki.python.org/moin/PythonEditors
Mike
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I just started to use Python. I wrote the following code and
expected 'main' would be called.
def main():
print hello
main
But I was wrong. I have to use 'main()' to invoke main. The python
interpreter does not give any warnings for the above code. Is there
any way/tool to easily
I'm using the feedparser library to extract data from rss feed items.
After I wrote this function, which returns a list of item titles, I
noticed that most item attributes would be retrieved the same way,
i.e., the function would look exactly the same, except for the single
data.append line
On Wed, 2008-11-26 at 11:11 -0800, Nan wrote:
Hello,
I just started to use Python. I wrote the following code and
expected 'main' would be called.
def main():
print hello
main
But I was wrong. I have to use 'main()' to invoke main. The python
interpreter does not give any
On Wed, Nov 26, 2008 at 11:11 AM, Nan [EMAIL PROTECTED] wrote:
Hello,
I just started to use Python. I wrote the following code and
expected 'main' would be called.
def main():
print hello
main
But I was wrong. I have to use 'main()' to invoke main. The python
interpreter does not
In article [EMAIL PROTECTED],
M.-A. Lemburg [EMAIL PROTECTED] wrote:
It is always good practice to provide default values for instance
variables in the class definition, both to enhance readability and to
allow adding documentation regarding the variables, e.g.
Actually, my company uses an
On Wed, Nov 26, 2008 at 11:13 AM, dpapathanasiou
[EMAIL PROTECTED] wrote:
I'm using the feedparser library to extract data from rss feed items.
After I wrote this function, which returns a list of item titles, I
noticed that most item attributes would be retrieved the same way,
i.e., the
dpapathanasiou schrieb:
I'm using the feedparser library to extract data from rss feed items.
After I wrote this function, which returns a list of item titles, I
noticed that most item attributes would be retrieved the same way,
i.e., the function would look exactly the same, except for the
Hendrik van Rooyen wrote:
I am using the term in the restricted sense of Python writing Python source.
Given that, can anybody think of an example that you could not do with
a class? (excepting the stored procedure aspect)
I am not sure I understand your question.
def
dpapathanasiou [EMAIL PROTECTED] writes:
I'm using the feedparser library to extract data from rss feed items.
After I wrote this function, which returns a list of item titles, I
noticed that most item attributes would be retrieved the same way,
i.e., the function would look exactly the
Stef Mientki wrote:
hello,
I've the idea that I always have a lot of useless code in my programs,
like the next example.
def _On_Menu_File_Open ( self, event = None ):
if event :
event.Skip ()
instead of
def _O
So I would like to extend the None-type (if that's possible),
with a
dpapathanasiou [EMAIL PROTECTED] writes:
I'm using the feedparser library to extract data from rss feed items.
After I wrote this function, which returns a list of item titles, I
noticed that most item attributes would be retrieved the same way,
i.e., the function would look exactly the
On Nov 26, 9:15 am, Xah Lee [EMAIL PROTECTED] wrote:
On Nov 26, 5:45 am, Joshua Cranmer [EMAIL PROTECTED] wrote:
i cannot fathom what could possibly be difficult of
introducing or implementing a namespace mechanism into a language.
Namespaces go to the very core of a language, name
I don't know how much the community knows about this - i haven't been
participating much of late - but here's something amazing.
Apparently javascript is just as dynamic as python, because someone made a
python-to-javascript converter in just 1200 line (pyjamas). Meanwhile
google's new
On Nov 26, 2:30 pm, Chris Rebert [EMAIL PROTECTED] wrote:
On Wed, Nov 26, 2008 at 11:13 AM, dpapathanasiou
[EMAIL PROTECTED] wrote:
I'm using the feedparser library to extract data from rss feed items.
After I wrote this function, which returns a list of item titles, I
noticed that most
when i use cgi, i never get a 500 error but i can see how it might
take on overhead if many users are hitting the site at once. so to
avoid this, i looked into registering the python engine for ASP
requests.
when i use asp (C:\WINDOWS\system32\inetsrv\asp.dll fileversion
info:--a-- W32i DLL ENU
I work in a small software company using php all day, I wish the usage
of Python was more common within my company
they are starting a new project (insurance stuff) using Java, and I
just hate that eventually I'l be debugging someone-else's java code
how can I convince them that Python is better,
for some reason this code works:
*
%@ LANGUAGE = Python%
%
Response.Write (test)
%
*
but this code does NOT:
*
%@ LANGUAGE = Python
Response.Write (test)
%
On Nov 26, 11:40 am, Terry Reedy [EMAIL PROTECTED] wrote:
Stef Mientki wrote:
hello,
I've the idea that I always have a lot of useless code in my programs,
like the next example.
def _On_Menu_File_Open ( self, event = None ):
if event :
event.Skip ()
instead of
def _O
snip
Alternative (if you *really* want to save the explicit test) is to
attach the behaviour modification to the *relevant* class:
class NonEvent(Event):
def do_nothing(self):
pass
skip = jump = hop = waltz = saunter = do_nothing
def __len__(self):
return 0
NON_EVENT =
On 2008-11-26, Xah Lee [EMAIL PROTECTED] wrote:
comp.lang.lisp,comp.lang.functional,comp.lang.perl.misc,comp.lang.python,comp.lang.java.programmer
2008-11-25
Recently, Steve Yegge implemented Javascript in Emacs lisp, and
compared the 2 languages.
http://steve-yegge.blogspot.com/
Jason Scheirer wrote:
On Nov 26, 11:40 am, Terry Reedy [EMAIL PROTECTED] wrote:
Stef Mientki wrote:
hello,
I've the idea that I always have a lot of useless code in my programs,
like the next example.
def _On_Menu_File_Open ( self, event = None ):
if event :
Kaz Kylheku wrote:
On 2008-11-26, Xah Lee [EMAIL PROTECTED] wrote:
comp.lang.lisp,comp.lang.functional,comp.lang.perl.misc,comp.lang.python,comp.lang.java.programmer
2008-11-25
Recently, Steve Yegge implemented Javascript in Emacs lisp, and
compared the 2 languages.
Hello,
I am playing with class. Below is the code snippet:
#!/usr/bin/python
2
3 class test_class:
4#import gzip
5def __init__(self,file):
6 self.file = file
7def open_file(self):
8 try:
9 print file: %s % self.file
Xah Lee [EMAIL PROTECTED] writes:
Bourne Shell, is pretty much replaced by Bash since several years ago.
For example, as far as i know, linuxes today don't have Bourne Shell
anymore. “sh” is just a alias to bash with some compatibility
parameter.
That used to be the case, but these days 'sh'
On Wed, 26 Nov 2008 21:32:24 +, Kaz Kylheku wrote:
See:
http://arcfn.com/2008/07/why-your-favorite-programming-language-is-
unpopular.html
That was 404 for me, but
http://arcfn.com/2008/07/why-your-favorite-language-is-unpopular.html
works. Interesting, thanks for mentioning it.
Tamas
On 2008-11-26 18:55, Stef Mientki wrote:
hello,
I've the idea that I always have a lot of useless code in my programs,
like the next example.
def _On_Menu_File_Open ( self, event = None ):
if event :
event.Skip ()
instead of
def _On_Menu_File_Open ( self, event = None ):
On 26 Nov, 13:42, Steve Holden [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Hi all, I'm new to python and I've been spending the last week on GUI
that refresh its content based on data periodically coming from a
remote socket.
I succeded in doing it (thanks newsgroups and online
1 - 100 of 199 matches
Mail list logo