Shiao wrote:
> Maybe my question wasn't very clear. What I meant is that these four
> lines lead in my case to two entries per logged event:
>
> applog = logging.getLogger()
> applog.setLevel(logging.DEBUG)
> hdl = logging.FileHandler('/tmp/foo.log')
> applog.addHandler(hdl)
>
> However if I REP
On 22 août, 06:03, Nagarajan <[EMAIL PROTECTED]> wrote:
> I wanted to explore web programming facet of python. The problem at my
> hand is to develop an email web client.
I would do that with the help of Django (www.djangoproject.com
groups.google.com/group/django-users) for the server side and JQ
Hi,
I am trying to create a dictionary from a dictionary which the help of
regex to identify which keys to select. I have something like this but
I feel its long and not the fastest solution ... could someone
contribute?
import re
d= {'line2.qty':2, 'line3.qty':1, 'line5.qty':12, 'line2.item':'5
At 10:50 AM 8/20/2007, beginner wrote:
>Hi Everyone,
>
>I am using the Wing IDE. It works great when developing applications,
>but the workflow is like Visual Studio -- after you execute it or
>debug it, the python script ends.
>
>What I want is an interactive interpreting environment. I want the I
james_027 schrieb:
> hi,
>
>> Oh I see. You have to combine a couple of concepts but for this
>> example you'd say:
>>
>>name = 'james' # 'l' looks too much like the digit 1
>>for i,c in enumerate(name):
>> print i, c
>>print i
>>
>> enumerate(name) generates the sequence
>>
[EMAIL PROTECTED] schrieb:
> Hello,
>
> e.g I need run my my_scripts_setup.bat that contain:
>
> python myscript_setup.py py2exe
>
>
> Can I cover or redirect log of that process into my wx program?
> I'am using Windows XP SP2, and Python 2.5.
Who's running the bat, and who's running the wx pr
On 22 kol, 09:19, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] schrieb:
>
> > Hello,
>
> > e.g I need run my my_scripts_setup.bat that contain:
>
> > python myscript_setup.py py2exe
>
> > Can I cover or redirect log of that process into my wx program?
> > I'am using Windows XP
On 21 Aug, 21:45, "Chris Mellon" <[EMAIL PROTECTED]> wrote:
> On 8/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On 21 Aug, 17:42, Gary Herron <[EMAIL PROTECTED]> wrote:
> > > [EMAIL PROTECTED] wrote:
> > > > Hi,
>
> > > > Do the Python Paths come in the form of a dictionary whe
On Wed, 22 Aug 2007 07:13:40 +, james_027 wrote:
> I am trying to create a dictionary from a dictionary which the help of
> regex to identify which keys to select. I have something like this but
> I feel its long and not the fastest solution ... could someone
> contribute?
>
> import re
>
>
"Steve Holden" wrote:
> Ooh, goody. I just *live* to expose my scripts. Not.
What? And miss out on all the wonderful special offers?
;-) - Hendrik
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 22 Aug 2007 06:05:03 +0200, Hrvoje Niksic wrote:
> Nick Craig-Wood <[EMAIL PROTECTED]> writes:
>
>> If you are running linux > 2.6.18 then you can use
>> /proc/sys/vm/drop_caches for exactly that purpose.
>>
>> http://www.linuxinsight.com/proc_sys_vm_drop_caches.html
>
> That URL claim
i need RLOCK to use in my computer plsss..send it in me.
and i can use the rlock when you give the rlock pl teach me???
pls
-
Choose the right car based on your needs. Check out Yahoo! Autos new Ca
Here's another simple method:
l = ['j', 'a', 'm', 'e', 's']
counter = 0
for i in l:
# Do your code
counter += 1
print counter
Yrs,
Eric
> l = ['j', 'a', 'm', 'e', 's']
>
> for i in l
> # i want to know the nth number of times it has loop thru or
> something like counter?
>
> Thanks
AGLOCO: The Internet's First Economic Network
Today's hottest Internet businesses are all about the power of social
networks. Companies like MySpace, Facebook, and YouTube have become
worth billions because businesses have realized that these social
networks are generating huge advertising and mar
Steve Holden <[EMAIL PROTECTED]> writes:
>> That URL claims that you need to run "sync" before dropping the
>> cache, and so do other resources. I wonder if that means that
>> dropping the cache is unsafe on a running system.
>
> Good grief. Just let the operating system do its job, for Pete's
>
Hi,
I was wondering if anyone had a suggestion for the following issue. I
would like to talk to an IMAP-server, imaplib being the tool of
choice, of course. Unfortunately it may happen that the IMAP-server
fails to respond to certain commands, and I would like to be able to
detect that within a
At 06:55 AM 8/21/2007, limodou wrote:
>On 8/21/07, king kikapu <[EMAIL PROTECTED]> wrote:
> > On Aug 21, 12:00 pm, Joel Andres Granados <[EMAIL PROTECTED]>
> > wrote:
> > > Hello list:
> > >
> > > I have tried various times to use an IDE for python put have always been
> > > disapointed.
> >
> >
>
How do I do the equivalent of clicking (in SuSe) or double clicking (in Windows)
on a file?
In effect I want to tell the OS - take this file and feed it to the application
that is registered for it.
Not too sure what to Google for.
- Hendrik
--
http://mail.python.org/mailman/listinfo/python-l
Frank Millman wrote:
> Hi all
>
> I have just started to dabble in writing my own web server.
>
> I googled for 'python web server', and this is the first hit -
>
>http://fragments.turtlemeat.com/pythonwebserver.php
>
[...]
>
> When responding to the POST data received, it sends a 301 response,
On Wed, 22 Aug 2007 02:39:45 -, "Basilisk96" <[EMAIL PROTECTED]>
said:
> David,
>
> If your true design intent is to run X number of test cases, unittest
> is the biggest bang for your buck, like shown by Peter's example. You
> just subclass unittest.TestCase, and def your test methods in the
[EMAIL PROTECTED] wrote:
> On 22 kol, 09:19, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] schrieb:
>>
>> > Hello,
>>
>> > e.g I need run my my_scripts_setup.bat that contain:
>>
>> > python myscript_setup.py py2exe
>>
>> > Can I cover or redirect log of that process into my
Hendrik van Rooyen wrote:
> How do I do the equivalent of clicking (in SuSe) or double clicking (in
> Windows)
> on a file?
>
> In effect I want to tell the OS - take this file and feed it to the
> application
> that is registered for it.
>
> Not too sure what to Google for.
>
> - Hendrik
os.
Hello, everyone.
Several instances of a same script, which accepts parameters and does
a lengthy job, are executed on a remote machine. I want to couple the
script with a tiny HTTP server so that I can connect to the machine
with a browser and monitor the progress of jobs. The HTTP server of
each
Hello,
I am trying to mograte from vb 6 to python.
I have a very usefull AX control. It can be :
-just a bitmap
-an active picture where you can plot data and put cursors
-a data explorer
Those 3 behavior are driven by one property in visual studio when you
insert the AX control in a
Tim Golden wrote:
> Hendrik van Rooyen wrote:
>> How do I do the equivalent of clicking (in SuSe) or double clicking (in
>> Windows) on a file?
>>
>> In effect I want to tell the OS - take this file and feed it to the
>> application that is registered for it.
> os.startfile
Unfortunately this i
Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> Nick Craig-Wood <[EMAIL PROTECTED]> writes:
>
> > If you are running linux > 2.6.18 then you can use
> > /proc/sys/vm/drop_caches for exactly that purpose.
> >
> > http://www.linuxinsight.com/proc_sys_vm_drop_caches.html
>
> That URL claims that you
Peter Otten wrote:
> Tim Golden wrote:
>
>> Hendrik van Rooyen wrote:
>>> How do I do the equivalent of clicking (in SuSe) or double clicking (in
>>> Windows) on a file?
>>>
>>> In effect I want to tell the OS - take this file and feed it to the
>>> application that is registered for it.
>
>> os.
On 22 Ago, 03:11, "Evan Klitzke" <[EMAIL PROTECTED]> wrote:
> On 8/21/07, codesite-noreply <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On 22 Ago, 02:09, "Evan Klitzke" <[EMAIL PROTECTED]> wrote:
> > > On 8/21/07, billiejoex <[EMAIL PROTECTED]> wrote:
>
> > > > Hi there,
> > > > I'm facing a case where
Amit Khemka wrote:
> On 8/22/07, james_027 <[EMAIL PROTECTED]> wrote:
>> hi Paul,
>>
>>> That doesn't crash or anything like that, but it also doesn't
>>> set the index variable, which can cause confusion in some situations.
>> Thanks for your quick answer ... Actually I was thinking how do I
>> ac
"Scott M." wrote:
>
> Oh my God! How did you know?!! You were so smart to post that here!
>
about a hundred times at least by now :O(
--
Paul (We won't die of devotion)
---
Stop and Look
http://www.geocities.com/dreamst8me/
--
http:/
On 22 aug 2007, at 12.04, Peter Otten wrote:
> Tim Golden wrote:
>
>> Hendrik van Rooyen wrote:
>>> How do I do the equivalent of clicking (in SuSe) or double
>>> clicking (in
>>> Windows) on a file?
>>>
>>> In effect I want to tell the OS - take this file and feed it to the
>>> application tha
Terry Reedy a écrit :
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> | And Is it a interpreted language or a programming language
> | It comes in which category
>
> Python is an algorithm programming language.
>
> The CPython implementation of the langauge compiles Python to p
thanks very much! I am currently compiling python with the patch and
will test it over the coming days.
Paul
Hrvoje Niksic wrote:
> Paul Sijben <[EMAIL PROTECTED]> writes:
>
>> I am running a multi-threaded python application in a dual core
>> intel running Ubuntu.
> [...]
>
> Judging from the
Nick Craig-Wood <[EMAIL PROTECTED]> writes:
>> > http://www.linuxinsight.com/proc_sys_vm_drop_caches.html
>>
>> That URL claims that you need to run "sync" before dropping the cache,
>> and so do other resources. I wonder if that means that dropping the
>> cache is unsafe on a running syste
[EMAIL PROTECTED] a écrit :
> Hi
>
> Iam new to Python
> I know Perl, JScript,C,C++,Java
> But i want to know where excatly this python come in to picture
Somewhere between Perl and Java.
> And Is it a interpreted language or a programming language
??? It's obviously a programming language, but
On 2007-08-22, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> While it is desireable to not only write working, but also
> aesthetically pleasing code, as a beginner you shouldn't worry
> too much. The sense of aesthetics develops with time. Important
> is to try and grasp the idioms of the language
ANNOUNCING
eGenix.com mxODBC Database Interface
Version 3.0.1
Our commercially supported Python extension providing
ODBC database connectivity to Python applications
On 8/17/07, Gerardo Herzig <[EMAIL PROTECTED]> wrote:
> BJörn Lindqvist wrote:
> >def is_logued_in():
> >if not user.is_logged_in():
> >raise NotLoggedInError
> >
> >It costs you one more line, but reduces complexity. And if you are
> >worried about that extra line you can put it in a f
On Aug 21, 9:40 pm, Bikal KC <[EMAIL PROTECTED]> wrote:
> Greg Copeland wrote:
> > I'm having a brain cramp right now. I can't see to recall the name of
>
> Is your cramp gone now ? :P
I wish. If anyone can remember the name of this module I'd realy
appreciate it.
Greg
--
http://mail.python.
On 22 kol, 10:52, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On 22 kol, 09:19, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> >> [EMAIL PROTECTED] schrieb:
>
> >> > Hello,
>
> >> > e.g I need run my my_scripts_setup.bat that contain:
>
> >> > python myscript_setu
Greg Copeland schrieb:
> On Aug 21, 9:40 pm, Bikal KC <[EMAIL PROTECTED]> wrote:
>> Greg Copeland wrote:
>>> I'm having a brain cramp right now. I can't see to recall the name of
>> Is your cramp gone now ? :P
>
>
> I wish. If anyone can remember the name of this module I'd realy
> appreciate i
On Wed, 22 Aug 2007 13:01:47 -, Greg Copeland <[EMAIL PROTECTED]> wrote:
>On Aug 21, 9:40 pm, Bikal KC <[EMAIL PROTECTED]> wrote:
>> Greg Copeland wrote:
>> > I'm having a brain cramp right now. I can't see to recall the name of
>>
>> Is your cramp gone now ? :P
>
>
>I wish. If anyone can rem
[EMAIL PROTECTED] a écrit :
> Can I execute one .bat file (without opening .bat window) just execute
> commands
> and log process redirect with sys.stdout or something in my wx window?
>
> Is this clear enough?
Type "help cmd" in a Windows console, then grab ad-oc options (/C and /A
or /U seem g
On 22 ago, 06:50, "tzuchien chiu gmail com"
<[EMAIL PROTECTED]> wrote:
> Hello, everyone.
>
> Several instances of a same script, which accepts parameters and does
> a lengthy job, are executed on a remote machine. I want to couple the
> script with a tiny HTTP server so that I can connect to th
On 22 ago, 10:04, [EMAIL PROTECTED] wrote:
>
> > >> > e.g I need run my my_scripts_setup.bat that contain:
>
> > >> > python myscript_setup.py py2exe
>
> > >> > Can I cover or redirect log of that process into my wx program?
> > >> > I'am using Windows XP SP2, and Python 2.5.
Try the subprocess mo
On 2007-08-22, Steve Holden <[EMAIL PROTECTED]> wrote:
> Grant Edwards wrote:
>> On 2007-08-21, avishay <[EMAIL PROTECTED]> wrote:
>>
>>> I'm trying to chain two programs with a pipe (the output of
>>> one feeding the input of the other). I managed to capture the
>>> output and feeding the input o
On 22 ago, 10:00, "BJörn Lindqvist" <[EMAIL PROTECTED]> wrote:
> On 8/17/07, Gerardo Herzig <[EMAIL PROTECTED]> wrote:
>
> > BJörn Lindqvist wrote:
> > >def is_logued_in():
> > >if not user.is_logged_in():
> > >raise NotLoggedInError
>
> > >It costs you one more line, but reduces comple
On Aug 22, 4:52 am, "David N Montgomery" <[EMAIL PROTECTED]>
wrote:
> unittest is the best choice for my needs and works perfectly in Eclipse.
> Unfortunately though it (and many other things) does not work under the
> application we have to use to run our python scripts.
>
> This leaves me with 'f
|"Bruno Desthuilliers" Terry Reedy a écrit :
|
|> The CPython implementation of the langauge compiles Python to
proprietary
|> byte code
|Hahem... "proprietary" is certainly not the right term here.
a. you are being nitpicky, overly in my opinion
b. you failed to suggest a better term, hence ca
I met the same problem now, James , do you have resolved this
problem ?
On Aug 22, 5:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hey all,
>
> I've been using libgmail to send out automated notification emails for
> my company's nightly regression testing. Last night these emails
> s
On 21 ago, 21:30, Seun Osewa <[EMAIL PROTECTED]> wrote:
> Is it possible to cause this sort of thing to happen on Windows.
> Specifically, I'm looking for a way to cause multiple processes to
> accept new connections on a bound socket. on UNIX, I can just fork()
> after binding the server socket
"Tim Golden" <[EMAIL PROTECTED]> wrote:
> Hendrik van Rooyen wrote:
> > How do I do the equivalent of clicking (in SuSe) or double clicking (in
Windows)
> > on a file?
> >
> > In effect I want to tell the OS - take this file and feed it to the
application
> > that is registered for it.
> >
> > Not
"Tim Golden"
> Peter Otten wrote:
> > Tim Golden wrote:
> >
> >> Hendrik van Rooyen wrote:
> >>> How do I do the equivalent of clicking (in SuSe) or double clicking (in
> >>> Windows) on a file?
> >>>
> >>> In effect I want to tell the OS - take this file and feed it to the
> >>> application tha
"Tommy Nordgren" <[EMAIL PROTECTED]> wrote:
>
> On 22 aug 2007, at 12.04, Peter Otten wrote:
>
> > Tim Golden wrote:
> >
> >> Hendrik van Rooyen wrote:
> >>> How do I do the equivalent of clicking (in SuSe) or double
> >>> clicking (in
> >>> Windows) on a file?
> >>>
> >>> In effect I want to
> Adding socket support would certainly open the door for many common
> classes applications. If I had my pick, I say, sockets and then re.
Thanks. Especially sockets should be not too hard to add, but I
probably won't work on these directly myself. Let me know if you are
interested.. :-)
> BTW
On 22 Aug, 16:36, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> |"Bruno Desthuilliers" Terry Reedy a écrit :
> |Hahem... "proprietary" is certainly not the right term here.
[...]
> In any case, CPython is owned by PSF (which gives it away). Its bytecode
> is an private implementation detail subject
On 22 ago, 11:08, Grant Edwards <[EMAIL PROTECTED]> wrote:
> but I'm a Unix guy who occasionally tries
> to ship a Windows version of a Python app: the concept of a
Ah, that explains your previous post telling that things on Windows
don't work as they "should". They work, but not necesarily as a
howdy,
I have created an instance method for an object using new.instancemethod. It
works great. Now the questions are:
1) how do I dynamically inspect an object to determine if it has an instance
method? (there is a class method with the same name)
2) how do I dynamically delete the instance m
[EMAIL PROTECTED] schrieb/wrote:
>>> import handwriting
>>> ...
>>> http://docs.python.org/lib/module-handwriting.html
>>> ha ha, I kid, I kid.
>>> I don't think this is an easy problem to solve. You'd probably want
>>> Python to be a wrapper around whatever hand-writing recognition
>>> software y
Neil Cerutti wrote:
On 2007-08-22, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
While it is desireable to not only write working, but also
aesthetically pleasing code, as a beginner you shouldn't worry
too much. The sense of aesthetics develops with time. Important
is to try and grasp the idio
On Aug 14, 7:30 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> milan_sanremo wrote:
> > On Aug 13, 8:06 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> >> milan_sanremo wrote:
> >>> I've read the documentation on os.chmod() and can implement all the
> >>> standard commands, but what is the syntax for
Does anyone have or know of a module to write out Excel spreadsheets in
SpreadsheetML format?
Thank you,
lance
Lance Ellinghaus
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 22, 10:23 am, Danny <[EMAIL PROTECTED]> wrote:
> 1) how do I dynamically inspect an object to determine if it has an instance
> method? (there is a class method with the same name)
class Foo:
def foo(self):
pass
x = Foo()
import types
>>> isinstance(x.foo, types.MethodType)
T
Eval() doesn't seem to recognize the r'string' format. Is there a way
around this.
Example:
If I input: -> eval("r'C:\tklll\ndfd\bll'")
I get the output:
Traceback (most recent call last):
File "", line 1, in
eval("r'C:\tklll\ndfd\bll'")
File "", line 1
r'C:klll
> Have you tried SPE? I don't know how it compares to PyDev but SPE is
> pretty slick. It has several other tools integrated into it,
> including a pretty nice debugger.
After trying Eclipse and SPE, I'm back to using VIM and the Winpdb
debugger, which is the "pretty nice debugger" in SPE, and w
In article <[EMAIL PROTECTED]>,
Nagarajan <[EMAIL PROTECTED]> wrote:
>>
>> .
>> .
>> .
>Let me phrase my problem in a finer way.
>I have done simple projects in python.
>I wanted to explore web programming facet of python. The
On Aug 22, 11:06 am, Mark <[EMAIL PROTECTED]> wrote:
> Eval() doesn't seem to recognize the r'string' format. Is there a way
> around this.
> Example:
> If I input: -> eval("r'C:\tklll\ndfd\bll'")
> I get the output:
>
> Traceback (most recent call last):
> File "", line 1, in
> eval
Mark wrote:
> Eval() doesn't seem to recognize the r'string' format. Is there a way
> around this.
> Example:
> If I input: -> eval("r'C:\tklll\ndfd\bll'")
> I get the output:
>
> Traceback (most recent call last):
> File "", line 1, in
> eval("r'C:\tklll\ndfd\bll'")
> File "", l
Hi everyone,
I have to do a web based application for my final year project. Since,
i am only familiar with basic HTML and Java Script, i am totally new
to this one. My friends are using LAMP (P->PHP). But i want to use
Python. Is it possible to use Python with Apache and MySQL. Is it
possible ?
hi,
i have a very large project in visual studio2005->visual c++ in windowsxp.
i'd like to port it, or my next project, over to python.
is this possible without rewriting all my code?
are there multiple options to do this?
my project is so large, that entirely rewriting it
is actually no option.
On Aug 22, 11:06 am, Mark <[EMAIL PROTECTED]> wrote:
> Eval() doesn't seem to recognize the r'string' format. Is there a way
> around this.
> Example:
> If I input: -> eval("r'C:\tklll\ndfd\bll'")
> I get the output:
>
> Traceback (most recent call last):
> File "", line 1, in
> eval
Danny wrote:
> I have created an instance method for an object using new.instancemethod.
> It works great. Now the questions are:
>
> 1) how do I dynamically inspect an object to determine if it has an
> instance method? (there is a class method with the same name)
Why would you want to do that?
On Aug 22, 5:13 pm, [EMAIL PROTECTED] wrote:
> Hi everyone,
>
> I have to do a web based application for my final year project. Since,
> i am only familiar with basic HTML and Java Script, i am totally new
> to this one. My friends are using LAMP (P->PHP). But i want to use
> Python. Is it possible
On 8/21/07, Michael L Torrie <[EMAIL PROTECTED]> wrote:
> Ricardo Aráoz wrote:
> > Hi,
> > Do you know if for in-house development a GPL license applies? (Qt4
> > and/or Eric4).
>
> If your programs are used in-house and never released, then you don't
> have to abide by the terms of the GPL.
* Gary Herron (Tue, 21 Aug 2007 09:09:13 -0700)
> Robert Dailey wrote:
> > Note: I'm using Python on Windows
> >
> > I have an application that allows a user to submit a password as a
> > command line parameter. The password of choice may contain any
> > characters the user wishes, including quotes
Mark <[EMAIL PROTECTED]> wrote:
> Eval() doesn't seem to recognize the r'string' format. Is there a way
> around this.
> Example:
> If I input: -> eval("r'C:\tklll\ndfd\bll'")
> I get the output:
>
> Traceback (most recent call last):
> File "", line 1, in
> eval("r'C:\tklll\ndfd\bl
[EMAIL PROTECTED] wrote:
> Hey all,
>
> I've been using libgmail to send out automated notification emails for
> my company's nightly regression testing. Last night these emails
> started failing, though the python code has not changed. I updated to
> the latest libgmail, but that isn't helping.
Is there a single source that explains these statements?
--
from Tkinter import *
from Numeric import *
import Image
import ImageChops
import ImageTk
import time
import binascii
import tkMessageBox
import tkSimpleDialog
from tkFileDialog import asksaveasfilename
from tk
W. Watson wrote:
> Is there a single source that explains these statements?
http://docs.python.org/tut/node8.html
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underl
Hi,
I am trying to figure out how to use msilib to extract the registry
information from an MSI file and I really could use a good example of
how that is accomplished or even just an example using msilib in
general. Does anybody happen to know of an example for this as I
wasn't able to fin
> i have a very large project in visual studio2005->visual c++ in windowsxp.
> i'd like to port it, or my next project, over to python.
> is this possible without rewriting all my code?
> are there multiple options to do this?
> my project is so large, that entirely rewriting it
> is actually no o
I have some functions I need to create at runtime. The way I'm creating
them is by calling a function which returns the string representation.
Then I exec the string.
Here's the code I use to gen the strings:
mkfactfns.py
---
import new
def mkfactfns( cname ):
def auxgen( name, para
> > What is the main reason of "self" when it involves classes/functions
> >
> "self" provides a semi-standard way of addressing the current instance
> of a class. It is used in an instance's method. It is not typically
> used in functions.
Btw, you are free to use any other term as well inste
Hi everyone:
I have a spider that is relatively long running (somewhere between
12-24 hours). My problem is that I keep having an issue where the
program appears to freeze. Once this freezing happens the activity of
the program drops to zero. No exception is thrown or caught. The
program simpl
On Aug 22, 10:58 am, Josh Volz <[EMAIL PROTECTED]> wrote:
I'm running this program on Windows XP, using Python 2.5. I'm using
Active State Komodo IDE 4.0 as the run environment.
Thanks,
J.
> Hi everyone:
>
> I have a spider that is relatively long running (somewhere between
> 12-24 hours). My
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Flavio Preto schrieb:
> Hi,
>
> I have a doubt. Supose that i have the minimun class below:
>
> class db:
> def __init__(self):
> self.db = {}
> def read(self, key):
> return self.db[key]
> def write(self, key, value):
>
Hi,
I'm wondering where the most appropriate location is to cleanup class
objects. For example, i have a file handle as an instance attribute in one
of my classes and I need to call f.close() on it when the class object falls
out of scope. Any ideas? I've tried __del__() but I don't remember this
On Aug 21, 10:13 pm, "Scott M." <[EMAIL PROTECTED]> wrote:
> Oh my God! How did you know?!! You were so smart to post that here!
>
> <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
>
> >http://freeairconditioners.blogspot.com/
It's probably a handheld fan made out of a piece of p
>>> "'"
"'"
>>> "\'"
"'"
>>> "\\'"
"\\'"
>>> "\\\'"
"\\'"
>>>
This is quite different than any other language
that I am used to. Normally, a double backslash
takes away the special meaning of the last backslash,
and so you are left with a single backslash.
How do I express the single backslas
Tobiah wrote:
"'"
> "'"
"\'"
> "'"
"\\'"
> "\\'"
"\\\'"
> "\\'"
>
> This is quite different than any other language
> that I am used to. Normally, a double backslash
> takes away the special meaning of the last backslash,
> and so you are left with a single backslash.
On Aug 22, 1:19 pm, Tobiah <[EMAIL PROTECTED]> wrote:
> >>> "'"
> "'"
> >>> "\'"
> "'"
> >>> "\\'"
> "\\'"
> >>> "\\\'"
> "\\'"
>
> This is quite different than any other language
> that I am used to. Normally, a double backslash
> takes away the special meaning of the last backslash,
> and so you
And $15 shipping to get the "free" paper sent to you! ;^)
"Zentrader" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> On Aug 21, 10:13 pm, "Scott M." <[EMAIL PROTECTED]> wrote:
>> Oh my God! How did you know?!! You were so smart to post that here!
>>
>> <[EMAIL PROTECTED]> wrote
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Robert Dailey schrieb:
> Hi,
>
> I'm wondering where the most appropriate location is to cleanup class
> objects. For example, i have a file handle as an instance attribute in one
> of my classes and I need to call f.close() on it when the class objec
Steven W. Orr wrote:
[snip mess]
> Everything works just fine (that I know of) except
Sometimes you have to just fix the code you have. This however doesn't just
smell funny, it's hopeless. Start with clearly stating your goals and then
do a rewrite.
Should you need help again, remember post a
Hi there. I'm writing a modification for a FTP server library I'm
maintaining.
Depending on the system I'd want to temporarily impersonate the logged
user to perform actions on filesystem.
Something like:
try:
change_user('user', 'password')
os.rmdir('dir')
except:
print "some error"
f
I have this which works:
#! /usr/bin/python
strfunc = """
def foo( a ):
print 'a = ', a
"""
exec strfunc
globals()['foo'] = foo
foo( 'Hello' )
and this which does not:
#! /usr/bin/python
import new
strfunc = """
def foo( a ):
print 'a = ', a
"""
co = compile ( strfunc, '', 'exec' )
exe
On 22 kol, 16:01, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> On 22 ago, 10:04, [EMAIL PROTECTED] wrote:
>
>
>
> > > >> > e.g I need run my my_scripts_setup.bat that contain:
>
> > > >> > python myscript_setup.py py2exe
>
> > > >> > Can I cover or redirect log of that process into my wx program?
On Aug 22, 10:26 am, James Stroud <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hey all,
>
> > I've been using libgmail to send out automated notification emails for
> > my company's nightly regression testing. Last night these emails
> > started failing, though the python code has not
On Aug 22, 10:26 am, James Stroud <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hey all,
>
> > I've been using libgmail to send out automated notification emails for
> > my company's nightly regression testing. Last night these emails
> > started failing, though the python code has not
I think Python uses a very strange way to define static method in a
class. Why not make it like this?
class MyClass:
def my_static_method(self):
# self should be None as it's a static method
# just ignore self
I'm a newcomer so maybe it's quite naive. But I just wonder why it
1 - 100 of 161 matches
Mail list logo