"Miki Tebeka" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello Colin,
>
> > I have a function
> > def printHello():
> > fp = open('file','w')
> > fp.write('hello')
> > fp.close()
> >
> > I would like to call that function using spawn or fork. My questions
are:
> >
>
> What are you trying to do exactly? If you provide more explanations, we
may
> provide a better help than the simplistic one above.
Dear All,
Thanks for the suggestions.
Basically, I have the situation where a user (via the web) requests data
from a database that has to be written to file. Howe
htmldata 1.0.4 is available.
http://oregonstate.edu/~barnesc/htmldata/
The htmldata module allows one to translate HTML
documents back and forth to list data structures.
This allows for programmatic reading and writing
of HTML documents, with much flexibility.
Functions are also available for e
When I request a URL using urllib2, it appears that urllib2 always
makes the request using HTTP 1.0, and not HTTP 1.1. I'm trying to use
the "If-None-Match"/"ETag" HTTP headers to conserve bandwidth, but if
I'm not mistaken, these are HTTP 1.1 headers, so I can't reasonably
expect a web server to
python-dev Summary for 2004-11-01 through 2004-11-15
This is a summary of traffic on the `python-dev mailing list`_ from November
01, 2004 through November 15, 2004. It is intended to inform the wider Python
community of on-going developments
[The HTML version of this Summary is available at
http://www.python.org/dev/summary/2005-03-01_2005-03-15.html]
=
Summary Announcements
=
-
Second to last summary for me
-
Just a reminder, after this Su
Dear All,
I ran my code through pylint to clean it up and one of the (many) errors it
through up was
Dangerous default value {} as argument
Bascially, I have:
class NewClass:
def __init__(self, myDict={}):
for key, value in myDict:
print key, value
Obviously, this is not
so a slight discussion/clarification on the functions named
marshal_write_*() that output a byte format for the AST that is supposed to be
agnostic of implementation. This will most likely end up being used as the way
to pass AST objects back and forth between C and Python code. But with the
name colli
To reply to many of your messages (I'm using Google right now due to
lack of a better newsreader at the moment), the issue with the
temporary file is that when I write something new to it, if the old
contents of the file was larger, not all of it will be overwritten.
So, the truncate() method will
When I'm using Windows, I have found the Syn TextEditor
(http://syn.sourceforge.net) to be quite useful. It has basic syntax
highlighting, about enough for me and is quite compatible with FTP and
such. It supports Python pretty well. Its user interface is quite
easy yet pretty powerful. All in
Hi all,
Please suggest how I can understand someone else's program where
- documentation is sparse
- in function A, there will be calls to function B, C, D and in those
functions will be calls to functions R,S,T and so on so forth... making it
difficult to trace what happens
i cant print any accent(á é í ó ú) or ñ in console when i use windows OS with
python, the console showme an error or extrangers characters in some cases, i
need help
III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del
2014. Ver www.uci.cu
--
https://mail.python.org/ma
thanks U, but the real problem is:
i have a path C:\Users\yanet\Desktop\áaaéeeíiiióooúuuñnn
this path is correct, áaaéeeíiiióooúuuñnn is the name of a directory
but when i try to use os.walk() usin this path, dont work, for os this path
dont exist, i try every things but nothing works.
some
nt self.left_to_act[0] + ' your hand is
'+playas[self.left_to_act[0]].hand[0]+'
'+playas[self.left_to_act[0]].hand[1]
print 'The last raise is '+str(self.last_raise)
print 'The pot is '+str(self.pot)
print 'The cost to
, 2014 12:35:32 PM UTC-8, John Gordon wrote:
>> C Smith writes:
>>
>> > I was wondering if I could get some feedback on the biggest thing I
>> > have done as an amateur Python coder.
>>
>> Comments.
>>
>> You need a *lot* more comments.
>>
I thing this work:
stg='pythonpython'
foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ]
On 2014-11-05 11:58, [email protected] wrote:
> I have line 'pythonpythonpyth'. How do I know which word is the foundation
> line?.
> Other examples:
> "pythonpythonpyth" is python
> "DOLOR
Hi,
Given the sample text file below (where the gibberish represent the irrelevant
portions) :
abcddsdfffgfg
ggfhghghgfhghgh round 5 xccdcxcfd
sdfdffdfbcvcvbbvnghg score = 0.4533
abcddsdfffgfg round 5 level = 0.15
ggfhghghgfhghgh round 10 dfsdfdcdsd
sdfdffdfbcvcvbbvnghg score = 0.4
I had python 2.7.6 installed on OS X yosemite, which has always worked
fine, until I tried to install matplotlib with pip. I got the same
error below and upgraded to 2.7.9, used pip to upgrade all the
packages, but still get the same error.
>>> import matplotlib
Traceback (most recent call last):
On Fri, Feb 6, 2015 at 10:20 AM, Chris Angelico wrote:
> On Sat, Feb 7, 2015 at 3:34 AM, C Smith wrote:
>> ImportError:
>> dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/linalg/lapack_lite.so,
>> 2): Symbol not found: __gfortran_
On Fri, Feb 6, 2015 at 7:04 PM, Ned Deily wrote:
> In article
> ,
> C Smith wrote:
>> I had python 2.7.6 installed on OS X yosemite, which has always worked
>> fine, until I tried to install matplotlib with pip. I got the same
>> error below and upgraded to 2.7.9,
On Thursday, May 16, 2013 11:15:45 AM UTC-7, [email protected] wrote:
> www.prevayler.org in python = pypersist
>
>
>
> medusa = python epoll web server and ftp server eventy and async
wow interesting
sprevayler ??
cl-prevalence
--
https://mail.python.org/mailman/listinfo/python-list
Hi all,
So I cloned a package xyz from github. OS is ubuntu 12.04.
Then install successfully using "sudo python setup.py install"
Now when I try to import xyz, I get "ImportError: No module named xyz" unless
my current working directory is in xyz.
Appreciate your help. Thanks.
--
https://mail.p
On Tuesday, October 29, 2013 6:40:37 PM UTC+8, Peter Otten wrote:
> C. Ng wrote: > Hi all, > So I cloned a package xyz from github. OS is ubuntu
> 12.04. > Then install successfully using "sudo python setup.py install" > Now
> when I try to import xyz, I get &q
Hi,
I have cloned someone's repository on my local drive using git command:
git clone http://github.com/xxx.git
But I don't find any setup.py file. How do I install the package xxx? So that I
can 'import xxx' in my python script.
Many thanks.
--
https://mail.python.org/mailman/listinfo/pyt
nope there is no installation instructions
--
https://mail.python.org/mailman/listinfo/python-list
Ok, that seems to work... I modified from another package.
I don't understand how setup.py does it exactly, but got it done anyways.
--
https://mail.python.org/mailman/listinfo/python-list
Sylvania Ga. USA 30467 5.) Sarah Mccully, 8818 w 88th st overland park, ks,
USA 66212 6.) Kristie C. P.O. Box 3034 Kalispell MT 59903 STEP 2: Now take the
#1 name off the list that you see above, move the other names up (6 becomes 5,
5 becomes 4, etc...) and add YOUR Name as number 6 on the list
I was looking on the Internet regarding the use of OpenID in Python apps
but I only found Flask/web related stuff.
Is there any module that provides OpenID implementation for desktop level?
I currently have a Python desktop script that needs to authenticate in a
OpenID server, but I don't know ho
Objective: Save the browser session/cookies to share them in multiples
script execution.
I currently have this working using ChromeDriver:
chrome_options = Options()
chrome_options.add_argument("user-data-dir=" + os.path.dirname(sys.argv[0]))
browser = webdriver.Chrome(chrome_options=chrome_optio
Issue resolved.
My code was working, the problem was PhantomJS 2.0, used 1.9.8 and now I
have the 'cookies.txt' file as expected!
--
https://mail.python.org/mailman/listinfo/python-list
self.velocity)
screen.blit (balls.ball_image, balls.ball_boundary)
pygame.display.flip()
play = Ball(random.randint(0, 800), random.randint(0, 600))
play.settings()
Message File Name LinePosition
Traceback
.jpg")
patrick.speed[0] = 5
patrick.speed[1] = 8
patrick.control()
patrick.settings()
jaws = BALL("jaws.jpg")
jaws.speed[0] = 1
jaws.speed[1] = 10
jaws.control()
jaws.settings()
On Friday, May 8, 2015 at 11:40:46 AM UTC-4, Tommy C wrote:
> I'm trying to apply OOP in this bou
I installed 2.7.9 on a Win8.1 machine. The Coursera instructor did a simple
install then executed Python from a file in which he'd put a simple hello world
script. My similar documents folder cannot see the python executable. How do
I make this work?
--
https://mail.python.org/mailman/listinf
343
Q 340
M 338
J 337
F 335
K 334
H 330
[/code]
I couldn't run the Series function successfully... is there something missing
in this code?
4.
[code]
Data can also be exported to delimited format. Let's consider one of the CSV
files read
above:
In [878]: data = pd.read_csv('ch06
b'
> elif lin == 6 or lin == 7:
> peca['cor'] = 'p'
> if lin == 1 or lin == 6:
> peca['nome'] = 'p'
> elif col == 0 or col == 7:
>
>> def process(): # Ordinarily this would be process(photo,wdth,hgt)
>>global wdth # but I ran into problems calling it from a button
If you want to pass arguments to a command called when a button is
clicked, you have to use 'lambda' in tkinter.
>>global hgt #command with parameters...
>
I wouldn't take it personally, just defend your position. I think that
is what he is looking for. We are all adults here (maybe?). You guys
should be able to work it out. A tangential skill to programming is
being able to give and take criticism well, even if you think it
crosses the line.
On Mon,
Once the runtime of SHORT starts to increase by a certain threshold,
Such as 2x, 4x, or 16x its last runtime? The other ideas already
proposed sound better, but I am wondering if it would work.
On Tue, Sep 23, 2014 at 12:21 PM, Terry Reedy wrote:
> On 9/23/2014 10:48 AM, Steven D'Aprano wrote:
>>
14 wrote:
> On 10/5/14 7:02 PM, Seymore4Head wrote:
>>
>> For the record, I don't want a hint. I want the answer.
>> I see a practice question is similar to this.
>> 15 <= x < 30 And it wants a similar expression that is equivalent.
>> So the right answer is 15<= x or x <30
>
>
> No, "15 <= x < 3
Steven D'Aprano wrote:
>>With two numbers, 15 and 30, all you really need is five test cases:
My solution assumed integers also, but after I posted it, I thought:
"What about floating points?"
On Tue, Oct 7, 2014 at 1:48 AM, Steven D'Aprano wrote:
> On Sun, 05 Oct 2014 20:18:13 -0400, Seymore4He
=qstringtext.text().toUtf8.data()
and it return a python string correctly.
i need some help plese...
.C@rlos
III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del
2014. Ver www.uci.cu
--
https://mail.python.org/mailman/listinfo/python-list
Thanks Alec.
For me it works with the following Default key :
"C:\Python32\pythonw.exe" "C:\Python32\Lib\idlelib\idle.pyw" -e "%1"
Otherwise IDLE does not open, only python was executed.
--
http://mail.python.org/mailman/listinfo/python-list
Il 19/04/2013 11:56, Ombongi Moraa Fe ha scritto:
> Hi Team,
>
> In my python script, I have this:
>
> command="lynx -dump
> 'phpscript?param1=%s¶m2=%s¶m3=%s¶m4=%s¶m5=%s'"%(value1,value2,value3,value4)
http://docs.python.org/2/library/subprocess.html#module-subprocess
You should set the properl
On 2006-07-15, Gerhard Fiedler <[EMAIL PROTECTED]> wrote:
> On 2006-07-15 06:55:14, mystilleef wrote:
>
>> In very well designed systems, the state of an object should only be
>> changed by the object.
>
> IMO that's not quite true. Ultimately, the state always gets changed by
> something else (us
On 2006-07-14, Adonis <[EMAIL PROTECTED]> wrote:
> Satya Kiran wrote:
>> Hello,
>> I have upgraded to Python2.4 on my Red Hat 9.0 Linux box.
>> I want to work with IDLE and ran a search to check it's presence.
>> Here is what I get.
>>
>> [EMAIL PROTECTED] bin]# find / -iname idlelib
>> /usr/local
f "mello" in mo.groups():
print "saw mello"
re.sub(r'(hello)(mello)', f, "jellohellomello")
Actually I didn't know you could do that in Perl. The time I've found
this useful in Python is substitutions to convert e.g.
"ba
On 2006-07-17, TG <[EMAIL PROTECTED]> wrote:
> Hi there.
>
> Anyone knows how to use numpy / scipy in order to solve this ?
>
> * A is an array of shape (n,)
> * X is a positive float number
> * B is an array of shape (n,)
> * O is an array of shape (n,) containing only zeros.
>
> A.X - B = O
> min
On 2006-07-17, TG <[EMAIL PROTECTED]> wrote:
>
> Ben C wrote:
>> On 2006-07-17, TG <[EMAIL PROTECTED]> wrote:
>> > Hi there.
>> >
>> > Anyone knows how to use numpy / scipy in order to solve this ?
>> >
>> > * A is an array of s
On 2006-08-05, Fabian Braennstroem <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to get access to my abook address file with python.
> Does anyone have some python lines to achive this using
> curses? If not, maybe anybody has small python program doing
> it with a gui!?
You can just parse the abook
On 2006-08-06, Fabian Braennstroem <[EMAIL PROTECTED]> wrote:
> Hi Ben,
>
> * Ben C <[EMAIL PROTECTED]> wrote:
>> On 2006-08-05, Fabian Braennstroem <[EMAIL PROTECTED]> wrote:
>>> Hi,
>>>
>>> I want to get access to my abook address
Hi Python Gurus I have a python script that is supposed to check to see if a folder exists in a computer on a network, but python always seems to return false. for example: 1) folder_path = shared-dir\\packages\\hwmanager\\4.00.1.16 if os.path.isdir(folder_path):
On 2006-08-08, Fabian Braennstroem <[EMAIL PROTECTED]> wrote:
> Hi Ben,
>
> * Ben C <[EMAIL PROTECTED]> wrote:
>> On 2006-08-06, Fabian Braennstroem <[EMAIL PROTECTED]> wrote:
>>> Hi Ben,
>>>
>>> * Ben C <[EMAIL PROTECTED]> wrote:
On 2006-08-09, Dean Card <[EMAIL PROTECTED]> wrote:
> Okay, so here is the situation. I have need to do some on-the-fly image
> creation. I have everything working great except for the last part of it,
> applying a perspective type transform to the image. The transform will take
> a rectangul
anyway, for a given face, you work out a normal with 3 components,
n[0], n[1] and n[2].
Then I think it's likely that each of (a, b), (d, e) and (g, h) should
be set to different combinations of two out of the three (maybe with
some minus signs in here and there).
Something like this:
(a, b) <= (n[2], n[1])
(d, e) <= (n[0], n[2])
(g, h) <= (n[0], n[1])
Leaving c and f as zero.
If I get the time I'll try and work it out properly and explain it.
--
http://mail.python.org/mailman/listinfo/python-list
his in comp.graphics.algorithms. The question is
easily made non-Python-specific, just say you have a function in a
library that does this:
Transform each point {x,y} in an image into a new point {x1,y1} where
{x1,y1} = {(ax + by + c)/(gx + hy + 1), (dx + ey + f)/(gx + hy + 1)}
then ask how to cho
> With web hosting, does the ISP you chose have to support the framework
> you work with as well?
>
> Im looking at making a site in Python, however, Im lost as to what ISPs
> actually support. Some ISPs say they support Python so does that mean
> if I wanted to use TurboGears It would just work an
On 2006-06-21, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> I am absolutely new to Linux programming, with no w##s programming
> experience except a small amount of C++ console apps.
> Reasonably new to Linux, BSD etc, got good sound networking base of
>
On 2006-09-21, Fijoy George <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am a bit perplexed by the following behaviour of the 'is' comparator
>
x = 2.
x is 2.
> False
y = [2., 2.]
y[0] is y[1]
> True
>
> My understanding was that every literal is a constructure of an object.
> Th
Hello Python Experts I am Chirantan, a beginner in python programming world. I have some programming knowledge in SHELL, BATCH and little bit PERL. I subscribed to this list with the hope that I will get support and help from all of you. To start with, I thought it will be a good idea to s
Hi All I am getting the result but along with this error, any idea what could be the reason? fibo.fib(1000) 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987Traceback (most recent call last): File "", line 1, in ? File "fibo.py", line 8, in fib return resultNameError: global name 'res
Hi,
Does anyone know of any examples on how (& where) to use staticmethods and
classmethods?
Thanks
Colin
--
http://mail.python.org/mailman/listinfo/python-list
Dear All,
What is the best way of creating methods depending on the packages that have
been installed.
A silly example is
try:
import somepack
class hello:
def __init__(self):
print 'hi'
def some(self):
print 'some'
except:
class hello:
st thing I want happening is people finding mistakes in the code. =) But if
enough people request the source I will take the time to generate a tar.bz2
file of patches against the 2.3.4 source release and put them up somewhere.
Below is the abstract culled directly from the thesis it
enough. Thanks for all of your help and I'm sorry if this is a
question that has been asked 15 million times.
Joey C.
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden wrote:
> It's not a common question, but it's relatively easily answered. You are
> splitting everything but the filename off with os.path.split and then
> complaining about the result! Once you stop doing that your problem is
> solved.
Thus, it's a stupid newbie question. Thanks a l
Tim Thompson has agreed to October at Ironport.
Would someone pencil him in on the Web page?
I will see if I can get a short abstract from him.
If not, I've contacted Tim Thompsonhttp://nosuch.com/tjt/index.html
,
author of many interesting software projects, many of which are music-oriented.
ound, this
>> seems to work:
>>
>>
>> import win32com.client
>> word = win32com.client.Dispatch ("Word.Application")
>> doc = word.Documents.Open ("c:/temp/temp.doc")
>> text = doc.Range ().Text
>>
>> open ("c:/temp/temp.txt",
I have been working on making Python a secure interpreter to run when
embedded in terms of resources with an object representation (e.g.,
files but not memory or CPU). To save myself from repeating myself
and missing some details of exactly what I have done I am going to
point to a post to my Pyth
Watch Free Satellite TV on your PC or Laptop
Instantly Turn your Computer into a Super TV
• Watch all your favorite shows on your Computer & TV!
• Channels you can’t get any other place in the U.S.A!
• Watch from anywhere in the world!
• Save 1000's of $$$ over many years on cable and satellite
On 2007-04-25, Peter Beattie <[EMAIL PROTECTED]> wrote:
> I am trying to plot something in gnuplot 4.2 using co-ordinates a Python
> 2.5 program computes. Here's what I'm doing:
>
> py> from subprocess import *
> py> plot = Popen("c:/progs/gp/bin/wgnuplo
I use a variation of the following. Clean and straight forward.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/425043
Vyacheslav Maslov wrote:
> Hi, all!
>
> I need multi threaded version of SimpleXMLRPCServer. Does python library
> already have implementation of this one? Or i need
On 2007-05-20, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi all, I'm not skilled at programming, so sorry for my ignorance.
> My questions:
>
> (1)
> which is the better way to calculate the value of attributes of a class ?
> for example:
>
> (A)
> def cal_attr(self, args):
> #do
Take a look at
http://www.demonseed.net/~jp/code/magic.py
W3 wrote:
> Hi all,
>
> Just a quick one... Is there such a thing?
>
> Thanks,
> /Walter
--
http://mail.python.org/mailman/listinfo/python-list
Instantly Turn your Computer into a Super TV
• Watch all your favorite shows on your Computer & TV!
• Channels you can’t get any other place in the U.S.A!
• Watch from anywhere in the world!
• Save 1000's of $$$ over many years on cable and satellite bills
• INSTANT DOWNLOAD
• And much, much more!
Jan Danielsson wrote:
> Hello all,
>
>I writing an application based on the SimpleXMLRPCServer class. I
> would like to know the IP address of the client performing the RPC. Is
> that possible, without having to abandon the SimpleXMLRPCServer class?
>
I did this a long time ago so it's not li
Take a look at Trac. This might give you some ideas.
http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture
--
http://mail.python.org/mailman/listinfo/python-list
Beema shafreen wrote:
> 2721520 2721569A_16_P21360235199-49
> 2721768 2721821A_16_P03641971139-53
> 2721960 2722004A_16_P21360237312-44
> I need to append the column D and E into a list:
> in such a way that the li
Absolute newbie here. In spite of the Python Software Foundation tutorial's
( http://www.python.org/doc/current/tut/tut.html ) use of the array
declaration
array(type[,initializer]), the Python interpreter does NOT accept the word
array! It , presumably, needs to have an import included. Coul
OK, thanks to all. The key statement is "from array import array" which is
not exactly intuitive!
Gord
"John Machin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Bernard wrote:
>> On 12 nov, 20:19, "Gordon C" <[EMAIL PROTEC
OK Steve, But why do we say "from array import array" and NOT "from math
import math"? Why the difference in syntax?
Gord
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 13 Nov 2007 11:26:28 -0500, Gor
Given a condition at the time a class is instantiated, I want to change
how __call__ is used. From the example below, self.no is using self.yes
but self.__call__ is not. Can someone please explain why?
EXAMPLE:
class YesNo(object):
def __init__(self, which):
self.no = self.yes
Bruno Desthuilliers wrote:
> c james a écrit :
>> Given a condition at the time a class is instantiated, I want to change
>> how __call__ is used. From the example below, self.no is using self.yes
>> but self.__call__ is not. Can someone please explain why?
>
&g
One of the difficulties of this kind of a problem is that one is looking for
a solution to a limited number of data points for which it may be possible
to define a function. There can never be a guarantee that the chosen "fit"
can be reliably extrapolated. You need to tie a possible solution to
Arnaud Delobelle wrote:
> Why not simply do:
>
> class YesNo(object):
> def __init__(self, which):
> self.yesno = which and self.yes or self.no
> def yes(self, val):
> print 'Yes', val
> def no(self, val):
> print 'No', val
> def __call__(self, val):
>
on 12/10/2007 05:14 AM Jack wrote :
> I wonder if it's possible to have a Python that's completely (or at
> least for the most part) implemented in C, just like PHP - I think
> this is where PHP gets its performance advantage. Or maybe I'm wrong
> because the c
On 2006-04-17, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:
> Hi All,
> I've done a bunch of searching in google and in python's help, but,
> I haven't found any function to decode a string like:
> Refresh! (ihenvyr)
> In to plain english.
> [...]
I needed to do that the other day, and did it li
On 2006-04-19, Jeff Groves <[EMAIL PROTECTED]> wrote:
> I'm writing a launcher that should do the following:
>
> 1. Activate a .bat file to set environmental variables.
> 2. Start 3 programs, using said environmental variables as arguments.
>
> However, I can't get the environmental variables to st
nds to the same shell yet. If I could,
> my problem would be solved.
If I understood correctly I think the idea is to run vars.bat first,
then run the Python program in _that_ shell (so it inherits the
environment) and then launch the other programs from the Python program.
i.e.
C:\> vars
On 2006-04-21, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> hi
> i wanted to start execute a command and put it in the background. i am
> using Unix.
If you use subprocess, or even os.spawn, it should be portable and work
on all systems (although the docs list some restrictions).
> Usually i st
On 2006-04-21, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I need your help understanding lambda (and doing it a better way
> without).
>
> f = lambda x : x*x
> [...]
> # the idea is now to give the definition of the multiplication of
> functions an
On 2006-04-21, Ben C <[EMAIL PROTECTED]> wrote:
> On 2006-04-21, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> I need your help understanding lambda (and doing it a better way
>> without).
>>
>> f = lambda x : x*x
>>
On 2006-04-21, Alexis Roda <[EMAIL PROTECTED]> wrote:
> Ben C escribió:
>> On 2006-04-21, Ben C <[EMAIL PROTECTED]> wrote:
>> Having said that, I attempted to confirm this using def rather than
>> lambda, and encountered something I cannot explain at all-- it
On 2006-04-26, nikie <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
>> Here is another non-pythonic question from the Java Developer. (I beg
>> for forgiveness...)
>>
>> Does Python have a mechanism for events/event-driven programming?
>>
>> I'm not necessarily talking about just GUIs eith
On 2006-04-29, Robin Becker <[EMAIL PROTECTED]> wrote:
> When young I was warned repeatedly by more knowledgeable folk that self
> modifying code was dangerous.
>
> Is the following idiom dangerous or unpythonic?
>
> def func(a):
> global func, data
> data = somethingcomplexandcostly()
>
Hi Python Worriors I am looking for a py script which will send me email when ever my disk becomes more than 90% full. By the way my OS is Win XP. If anybody have already has written same type of script or something very similar kind of script will also be great. Thanks a lot to all in
On 2006-05-09, Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
> N/A wrote:
>
>> Hi all,
>> I am learning Python. Just wondering how to clear saved memory in
>> Python? Like in Matlab I can simply use "clear all" to clear all saved
>> memory.
>
> You don't - python does it for you. It is called garbage
On 2006-05-09, Petr Jakes <[EMAIL PROTECTED]> wrote:
> I would like to do "some action" once a minute.
You can try the sched module (import sched).
You give it a time at which to call a callback. Then in the callback you
can reset the "alarm" for a minute later, using enterabs.
If the task might
On 2006-05-09, Ben C <[EMAIL PROTECTED]> wrote:
> def clearall():
> all = [var for var in globals() if "__" not in (var[:2], var[-2:])]
> for var in all:
> del globals()[var]
>
> since I think magic things always start and end with __.
Oops,
My code is = "test.py" import osimport sysimport smtplib def df(): """ This function checks the Available space in each drive. """ #Command for C drive df -k | grep /cygdrive/c | awk '{print $5}
On 2006-05-10, Gr�goire Dooms <[EMAIL PROTECTED]> wrote:
> Ben C wrote:
>> On 2006-05-09, Ben C <[EMAIL PROTECTED]> wrote:
>>> def clearall():
>>> all = [var for var in globals() if "__" not in (var[:2], var[-2:])]
>>> for var in
101 - 200 of 1183 matches
Mail list logo