ronrsr wrote:
> still having a heckuva time with this.
>
> here's where it stand - the split function doesn't seem to work the way
> i expect it to.
>
>
> longkw1,type(longkw): Agricultural subsidies; Foreign
> aid;Agriculture; Sustainable Agriculture - Support; Organic
> Agriculture; Pesticid
ronrsr wrote:
> still having a heckuva time with this.
You don't seem to get it.
> here's where it stand - the split function doesn't seem to work the way
> i expect it to.
>
>
> longkw1,type(longkw): Agricultural subsidies; Foreign
> aid;Agriculture; Sustainable Agriculture - Support; Organ
Hi all
I am writing a business/accounting application. Once a user has logged
in they are presented with a menu. Each menu option has a description
and an associated file name and program name. The file name is the name
of a .py file (impName) and the program name is the name of a class in
that fi
ronrsr wrote:
> I have a single long string - I'd like to split it into a list of
> unique keywords. Sadly, the database wasn't designed to do this, so I
> must do this in Python - I'm having some trouble using the .split()
> function, it doesn't seem to do what I want it to - any ideas?
>
> thank
Hi Sandip,
sandip desale wrote:
> Dear All,
>
> We have a Tcl/Tk application written using Python 2.2. Using this application
> we want to call some customizable Java APIs. I tried porting Tcl/Tk
> application to Jython but not able to do the same as TKinter library is not
> available with JYth
"ronrsr" <[EMAIL PROTECTED]> wrote:
>I have a single long string - I'd like to split it into a list of
>unique keywords. Sadly, the database wasn't designed to do this, so I
>must do this in Python - I'm having some trouble using the .split()
>function, it doesn't seem to do what I want it to - an
I want to join two mono wave file to a stereo wave file by only using
the default python module.
Here is my program, but it is much slower than the C version, so how
can I increase the speed?
I think the problem is at line #1, #2, #3.
import wave
import array
lfile = wave.open(lfilename)
rfile = w
still having a heckuva time with this.
here's where it stand - the split function doesn't seem to work the way
i expect it to.
longkw1,type(longkw): Agricultural subsidies; Foreign
aid;Agriculture; Sustainable Agriculture - Support; Organic
Agriculture; Pesticides, US, Childhood Development, B
OKB (not okblacke) wrote:
> Why doesn't it?
because whoever wrote the class didn't do things that way, mostly for
efficiency reasons. there's nothing in Python that keeps you from using
template methods if you want, but that's a costly approach, so it's not
very common.
I suggest reading up
What exactly seems to be the problem?
"ronrsr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I have a single long string - I'd like to split it into a list of
> unique keywords. Sadly, the database wasn't designed to do this, so I
> must do this in Python - I'm having some trouble
ronrsr wrote:
> I have a single long string - I'd like to split it into a list of
> unique keywords. Sadly, the database wasn't designed to do this, so I
> must do this in Python - I'm having some trouble using the .split()
> function, it doesn't seem to do what I want it to - any ideas?
Did you f
ronrsr wrote:
> I have a single long string - I'd like to split it into a list of
> unique keywords. Sadly, the database wasn't designed to do this, so I
> must do this in Python - I'm having some trouble using the .split()
> function, it doesn't seem to do what I want it to - any ideas?
>
> thank
I have a single long string - I'd like to split it into a list of
unique keywords. Sadly, the database wasn't designed to do this, so I
must do this in Python - I'm having some trouble using the .split()
function, it doesn't seem to do what I want it to - any ideas?
thanks very much for your help.
I have a single long string - I'd like to split it into a list of
unique keywords. Sadly, the database wasn't designed to do this, so I
must do this in Python - I'm having some trouble using the .split()
function, it doesn't seem to do what I want it to - any ideas?
thanks very much for your help.
Thuan Seah Tan wrote:
> Hi all,
>
> I am new to python and currently I am working on a traffic simulation
> which I plan to define the various agents using scripting. It's kind of like
> scripting for non-playable character in games. I am thinking of using python
> for this but I am concerned
Filip Wasilewski wrote:
> As far as the speed comparison is concerned I totally agree that NumPy
> can easily outperform Matlab in most cases. Of course one can use
> compiled low-level extensions to speed up specific computations in
> Matlab, but it's a lot easier and/or cheaper to find very good
Carl Banks wrote:
> Unfortunately, short of hackery, you're stuck with having to write out
> super(C,self).
For my version of that particular hackery ...
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/286195
Tim Delaney
--
http://mail.python.org/mailman/listinfo/python-list
Carsten Haese wrote:
> You can change the behavior of a list's sort method by overriding
> sort. You can't change the behavior of sort by overriding
> __getitem__ and __setitem__, because sort does not call __getitem__
> or __setitem__.
Why doesn't it?
--
--OKB (not okblacke)
Brendan B
On Fri, 24 Nov 2006 05:00:53 -0800, srj wrote:
> i wish to develop an NFS server usin python from scratch( some wise guy
> told me i'ts easy!).
> can i get any kinda tutorial for this??
>
> any suggestions on how 2 begin?
NFS is an RPC based protocol. The first step is to be able to do
SunRCP/O
Hi,
I just changed some previously-working Python program to add a C++
extension.
Now, when I call __init__() in a Python class I did not change and with the
same arguments passed, I get the screen message 'Floating exception' and the
program seems to stop. The exact point of the crash in __in
At Sunday 26/11/2006 01:29, wo_shi_big_stomach wrote:
for line in fileinput.input(g, inplace=1, backup='.bak'):
# just print 2nd and subsequent lines
if not fileinput.isfirstline():
print line.rstrip('\n')
# check first line only
elif fileinput.isfirstline
Thuan Seah Tan wrote:
> Hi all,
>
> I am new to python and currently I am working on a traffic simulation
> which I plan to define the various agents using scripting. It's kind of like
> scripting for non-playable character in games. I am thinking of using python
> for this but I am concerned
I have an application that processes MIME messages. It reads a message from a
file,
looks for a text/html and text/plain parts in it, performs some processing on
these
parts, and outputs the new message.
Ever since I recently upgraded my Python to 2.4.3, the output messages started
to
come out
"kdotsky" <[EMAIL PROTECTED]> writes:
> Hello All,
> I've ran into this problem on several sites where urllib2 will hang
> (using all the CPU) trying to read a page. I was able to reproduce it
> for one particular site. I'm using python 2.4
>
> import urllib2
> url = 'http://www.wautomas.info'
Thuan Seah Tan wrote:
> Hi all,
>
> I am new to python and currently I am working on a traffic simulation
> which I plan to define the various agents using scripting. It's kind of like
> scripting for non-playable character in games. I am thinking of using python
> for this but I am concer
Vincent Delporte wrote:
> Hi
>
> I'm a Python newbie, and would like to rewrite this Perl scrip
> to be run with the Asterisk PBX:
>
> http://www.voip-info.org/wiki/view/Asterisk+NetCID
>
> Anyone knows if those lines are necessary, why, and what their
> alternative is in Python?
> open STDO
Hi all,
I am new to python and currently I am working on a traffic simulation
which I plan to define the various agents using scripting. It's kind of like
scripting for non-playable character in games. I am thinking of using python
for this but I am concerned with running time. Is scriptin
Rob Purser wrote:
> Anyway, I just wanted to call your attention to Data Acquisition Toolbox:
> http://www.mathworks.com/products/daq/
Absolutely. If the hardware is supported by this toolbox, there is no
need to reinvent the wheel. The license is expensive, but development
time can be far more
Hi
I'm a Python newbie, and would like to rewrite this Perl scrip
to be run with the Asterisk PBX:
http://www.voip-info.org/wiki/view/Asterisk+NetCID
Anyone knows if those lines are necessary, why, and what their
alternative is in Python?
---
open STDOUT, '>/dev/null';
fork and exi
Alan J. Salmoni wrote:
> I heartily agree. pdf format has never been much of a problem for me.
> Now that you have an ISSN, has it been submitted to Google Scholar or
> other academic indexes?
>
> http://scholar.google.com/intl/en/scholar/about.html for Google Scholar
> http://citeseer.ist.psu.edu
Gerard Brunick schrieb:
> Consider:
>
> >>> def negate(func):
> ... def wrapper(*args, **kwargs):
> ... return not func(*args, **kwargs)
> ... return wrapper
> ...
> >>> def f(x):
> ... return x > 10
> ...
> >>> g = negate(f)
> >>> g(20)
> False
> >>> g(5)
> True
>
> Now
Consider:
>>> def negate(func):
... def wrapper(*args, **kwargs):
... return not func(*args, **kwargs)
... return wrapper
...
>>> def f(x):
... return x > 10
...
>>> g = negate(f)
>>> g(20)
False
>>> g(5)
True
Now g has the argument signature of (*args, **kwargs). Pop-up
Gabriel Genellina wrote:
> os.spawnl(os.P_NOWAIT, 'mycmd.exe', 'mycmd.exe', 'first_arg', 'second_arg')
> That is, you must provide explicitely the value for argv[0] (executable)
> Remember to quote appropiately any parameter with embedded spaces
> (including the executable). On Python 2.5 you coul
Diez B. Roggisch wrote:
> Edwin Gomez wrote:
>
> > I'm a C# developer and I'm new to Python. I would like to know if the
> > concept of Asynchronous call-backs exists in Python. Basically what I
> > mean is that I dispatch a thread and when the thread completes it invokes
> > a method from the c
On Fri, Nov 24, 2006 at 10:11:06AM +, Soeren Sonnenburg wrote:
> Dear all,
>
> I am a bit puzzled, as
>
> -snip-
> import bz2
> f=bz2.BZ2File('data/data.bz2');
>
> while f.readline():
> pass
> -snip-
>
> takes twice the time (10 seconds) to read/decode a bz2 file
> c
On Nov 21, 11:20 am, "Sai Krishna M" <[EMAIL PROTECTED]> wrote:
> there are certainly client/server interactions.
But are they cross-language interactions?
This is how I would choose to distribute code.
Same machine, all in Python - organize in modules in Python path.
Different machines, all in P
I believe that if you redefine the value, the key should not change.
So, yes, I would expect that they value of the key to remain as they
were.
J. Clifford Dyer wrote:
> John Henry wrote:
> >print pets.keys()
> >
> > should print:
> >
> > "Cat", "Dog"
>
> If you do:
>
> Py> pets['Cat'] = 2
>
John Henry wrote:
> I believe the standard dictionary should be amened to allow the use of
> case insensitive keys - as an option. I found some work done by others
> to do that at:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/283455
>
> but the problem with that approach is that th
Regarding Topic number 3: 3. Calling a thread asynchronously with a callback
(Edwin Gomez):
Thanks Bjorn for you quick answer and by the way, that works. Diez, in answer
to your question regarding async callbacks in C#; C# runs in a multi threaded
apartments. Many times we'll setup listener ob
Chris Mellon wrote in
news:[EMAIL PROTECTED] in
comp.lang.python:
> I see super documented, and in use, as below (from the Python
> documentation)
>
> class C(B):
> def meth(self, arg):
> super(C, self).meth(arg)
>
> I'd like to not write C all the time, so is there any problem wit
Chris Mellon wrote:
> I see super documented, and in use, as below (from the Python documentation)
>
> class C(B):
> def meth(self, arg):
> super(C, self).meth(arg)
>
> I'd like to not write C all the time, so is there any problem with writing:
>
> class C(B):
> def meth(self, arg):
Hi,
Thanks for pointing out this resource. I have indeed used Tkinter in a
couple of applications, but I knew nothing about this wiki. This is
very helpful.
Thanks,
--
Gheorghe Postelnicu, PhD
MGH, Harvard Medical School
--
http://mail.python.org/mailman/listinfo/python-list
ronrsr wrote:
> Thank you, all. that was very helpful, and did solve many of my
> problems. I was addressing the dict with () rather than [].
>
> I'm still having one problem, though -- extracting the keywords. NOw,
> if you check the value for Form below, you'll see there is more than
> one key
And dont forget that you can use triple quotes to get rid of all the
quote-escaping you are using:
$ python
>>> """
...
... ho
...
... """
'\n\nho\n\n'
>>>
Craig wrote:
> John Machin wrote:
>
> > Craig wrote:
> >
> > > Great. Got that sorted. The problem I have now is that some of the
> > >
Thank you, all. that was very helpful, and did solve many of my
problems. I was addressing the dict with () rather than [].
I'm still having one problem, though -- extracting the keywords. NOw,
if you check the value for Form below, you'll see there is more than
one keyword entry. When I do: k
tsjuan schrieb:
> Hello python users,
>
> I am just learning on how to use xmlrpc and stumbled upon how to pass
> com object
> from server to client side.
>
> The client side complain about can't marshall the com object. I don't
> know what type
> of marshall command I should use to pass the obje
Thank you, all. that was very helpful, and did solve many of my
problems. I was addressing the dict with () rather than [].
I'm still having one problem, though -- extracting the keywords. NOw,
if you check the value for Form below, you'll see there is more than
one keyword entry. When I do: k
Hi,
Can one tell me what the status of this project is ?. I did google ...
but not much out there.
Regards,
hg
--
http://mail.python.org/mailman/listinfo/python-list
John Henry wrote:
>print pets.keys()
>
> should print:
>
> "Cat", "Dog"
If you do:
Py> pets['Cat'] = 2
Py> pets['Dog'] = 3
Py> pets['DOG'] = 4
Py> pets['cat'] += 5
Py> pets.keys()
What should the result be?
"['Cat', 'Dog']" or "['cat', 'DOG']"?
That is to say, if you use a new case in r
On Mon, 2006-11-27 at 19:14 +, OKB (not okblacke) wrote:
> Duncan Booth wrote:
>
> >> And is there a mechanism in Python that will allow me to override
> >> the operators of a class, for all its occurrences, even the ones
> >> implemented on C built-in objects?
> >
> > No.
>
> For wha
Thanks, everyone for replying so promptly. I got it to work the way I
intended, and have some ideas for how to make it much cleaner.
- Lisa
--
http://mail.python.org/mailman/listinfo/python-list
I'm not sure if this will /solve/ your problem, but it's
something I noticed...
> UnitList = open('/Python25/working/FacList.txt', 'r')
> RawData = open('/Python25/working/data.txt', 'r')
Here, you open RawData once...
> Output = open('/Python25/working/output.txt', 'a')
>
> def PullHourlyData
[EMAIL PROTECTED] wrote:
> RawData = open('/Python25/working/data.txt', 'r')
You open this file only once. The first time in here:
> def PullHourlyData(filename, facility, unit):
> for line in filename:
reads all of the file - nothing left for the other function calls!
A better way wou
Duncan Booth wrote:
>> And is there a mechanism in Python that will allow me to override
>> the operators of a class, for all its occurrences, even the ones
>> implemented on C built-in objects?
>
> No.
For what it's worth, which is undoubtedly nothing, this is
something that I think n
Hello python users,
I am just learning on how to use xmlrpc and stumbled upon how to pass
com object
from server to client side.
The client side complain about can't marshall the com object. I don't
know what type
of marshall command I should use to pass the object.
Below are my scripts, any hel
[EMAIL PROTECTED] wrote:
> thats easy enough to solve
>
> """test text.py
> for playing around with my text editing task
> """
>
> UnitList = open('/Python25/working/FacList.txt', 'r')
> RawData = open('/Python25/working/data.txt', 'r')
> Output = open('/Python25/working/output.txt', 'a')
>
> de
thats easy enough to solve
"""test text.py
for playing around with my text editing task
"""
UnitList = open('/Python25/working/FacList.txt', 'r')
RawData = open('/Python25/working/data.txt', 'r')
Output = open('/Python25/working/output.txt', 'a')
def PullHourlyData(filename, facility, unit):
ronrsr wrote:
> I'm having trouble extracting cgi parameters in my code - this is a web
> application, so I only know the line that's causing the problem.
if exceptions try "import cgitb; cgitb.enable()" to get a traces directly in
HTML for testing; otherwise read the server log (logs of httpd et
[EMAIL PROTECTED] wrote:
> Hi,
> Any ideas of what could be the problem?
>
Hard to say without seeing your code.
Jordan Greenberg
--
Posted via a free Usenet account from http://www.teranews.com
--
http://mail.python.org/mailman/listinfo/python-list
I see super documented, and in use, as below (from the Python documentation)
class C(B):
def meth(self, arg):
super(C, self).meth(arg)
I'd like to not write C all the time, so is there any problem with writing:
class C(B):
def meth(self, arg):
super(type(self), self).meth
form("citation").value
Is form some form of dict? If so, then this should be something like:
form["citation"]
If not, then maybe value is a function, requiring ()'s to actually invoke
it.
-- Paul
--
http://mail.python.org/mailman/listinfo/python-list
ronrsr wrote:
> I'm having trouble extracting cgi parameters in my code - this is a web
> application, so I only know the line that's causing the problem.
seen this:
http://docs.python.org/lib/module-cgitb.html
?
> temp = str(form("citation").value)
did you perhaps mean form["citati
I'm having trouble extracting cgi parameters in my code - this is a web
application, so I only know the line that's causing the problem.
here's the info I know:
form = FieldStorage(None, None, [MiniFieldStorage('zid', '17'),
MiniFieldStorage('keywords', 'aAUA'), MiniFieldStorage('keywords',
'aBOS
Hi,
I've just started programming in python, and have run into an
unexpected problem. I am using python to pull text data from some csv
files. I have one file that has the important identifiers (name, etc)
and other files with lots of other data. I wrote a function that takes
the file name and
Edwin Gomez wrote:
> I'm a C# developer and I'm new to Python. I would like to know if
> the concept of Asynchronous call-backs exists in Python.
Sure. Either with this:
http://twistedmatrix.com/projects/core/documentation/howto/async.html
Or manually using select().
> Basically what I mean i
Edwin Gomez wrote:
> I'm a C# developer and I'm new to Python. I would like to know if the
> concept of Asynchronous call-backs exists in Python. Basically what I
> mean is that I dispatch a thread and when the thread completes it invokes
> a method from the calling thread. Sort event driven co
"Duncan Booth" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> "halex2000" <[EMAIL PROTECTED]> wrote:
>> "Thomas Ploch" <[EMAIL PROTECTED]> ha scritto nel messaggio
>> news:[EMAIL PROTECTED]
>>> Have you actually even tried to find some "documentation"?
>>> Have you placed a
Steve Thompson wrote:
> Hello all,
>
> I was wondering the differnced there were betwee Active State's python and
> the open source version of python.
Here is the best answer to that:
http://groups.google.com/group/comp.lang.python/tree/browse_frm/thread/e8291fcb1418e80/16f39060f654402f?rnum=1&h
I'm a C# developer and I'm new to Python. I would like to know if the concept
of Asynchronous call-backs exists in Python. Basically what I mean is that I
dispatch a thread and when the thread completes it invokes a method from the
calling thread. Sort event driven concept with threads.
Tha
Hello,
I have install problem about shtoom.How to I Install shtoom
correct,when I install shtoom
with setup.py (shtoom package setup file), it just make some directory
(shtoom-0.2) and
3 python files with them.But just tell me this,when I was manual make
folder by name "shtoom" (as write in shtoom
Thanks for posting this entry,
The fact that a wiki or help site doesn't get a
lot of traffic is not an necessarily an indicator
of it's usfulness. It indicates to me that the
product, in this case Tkinter, may be easy to use
and understand, after working with it a little, A
lot of help may
QOTW: "Given these criteria, my recommendations for a first programming
language would be Python or Scheme." - Peter Norvig (some time ago, but
referenced on comp.lang.lisp this week)
http://www.norvig.com/21-days.html
"however if you want more visual effect with less hassle, consider learnin
In article <[EMAIL PROTECTED]>, I reported:
.
.
.
>I appreciate your clarification. I can report back that we
>certainly move in different circles; I, for example, knew of
>people with multi-million-dollar budgets deciding on
I have noticed that there is also pygtk-web project, I suppose that is
what you use for the web?
--
http://mail.python.org/mailman/listinfo/python-list
"Matthew Tylee Atkinson" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I appear to be having some problems with the isAlive() method of
> detecting if a thread is alive/active/running or not. I'd be grateful
> for any advice.
>
Your comments about restartable threads got me thinkin
Fredrik Lundh wrote:
> Michalis Giannakidis wrote:
>
> > Could someone please explain the reasoning/behabiour of these?
>
> in general, methods on C objects are implemented in terms of operations
> on the internal data structures, not in terms of a subset of the methods
> already provided by the ob
Hi all,
I'm not going to touch the big picture issues here -- you need to pick the
right tool for the job you're doing, and only you know what works best for
your task. However, since it didn't come up, I feel I need to add a piece
of info to the mix, since I spend my days getting MATLAB worki
Michalis Giannakidis wrote:
>> "obj[index] = value" maps to "obj.__setitem__(index, value)". reading
>> the documentation might help; start here:
>>
>> http://docs.python.org/ref/specialnames.html
>
> In this documentation page it also says:
> --snip---
> then x[i] is equivalent3.2 to x.__g
Michalis Giannakidis <[EMAIL PROTECTED]> wrote:
> On Monday 27 November 2006 11:50, Fredrik Lundh wrote:
>
>> "obj[index] = value" maps to "obj.__setitem__(index, value)".
>> reading the documentation might help; start here:
>>
>> http://docs.python.org/ref/specialnames.html
>
> In this do
On Monday 27 November 2006 11:50, Fredrik Lundh wrote:
> "obj[index] = value" maps to "obj.__setitem__(index, value)". reading
> the documentation might help; start here:
>
> http://docs.python.org/ref/specialnames.html
In this documentation page it also says:
--snip---
then x[i] is equival
On 11/24/06, Piet van Oostrum <[EMAIL PROTECTED]> wrote:
> > "Chris Mellon" <[EMAIL PROTECTED]> (CM) wrote:
>
> >CM> FYI: Ice is available under the GPL, so if by "pay" you mean "pay
> >CM> money" that's not your only option. You can also get a commercial
> >CM> license, similiar to Qt.
>
> >CM
"halex2000" <[EMAIL PROTECTED]> wrote:
> "Thomas Ploch" <[EMAIL PROTECTED]> ha scritto nel messaggio
> news:[EMAIL PROTECTED]
>> Have you actually even tried to find some "documentation"?
>> Have you placed a google search "python directories rename files"?
>> Thomas
>
> Actually I did it on the
"Bryan Olson" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> halex2000 wrote:
>> Hi all, I'm new with Python, and I thought to use it to automatically
>> rename some files in a directory, but I don't know where should I search
>> the functions: to get all the files of a d
"Thomas Ploch" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Have you actually even tried to find some "documentation"?
> Have you placed a google search "python directories rename files"?
> Thomas
Actually I did it on the documentation file provided with the windows
dis
halex2000 wrote:
> Hi all, I'm new with Python, and I thought to use it to automatically rename
> some files in a directory, but I don't know where should I search the
> functions: to get all the files of a directory, to rename the files and so
> on.
Python programmers are constantly looking at
halex2000 schrieb:
> Hi all, I'm new with Python, and I thought to use it to automatically rename
> some files in a directory, but I don't know where should I search the
> functions: to get all the files of a directory, to rename the files and so
> on.
> Thank you.
>
>
Have you actually even
"halex2000" wrote:
> Hi all, I'm new with Python, and I thought to use it to automatically rename
> some files in a
> directory, but I don't know where should I search the functions: to get all
> the files of a
> directory, to rename the files and so on.
see
http://effbot.org/pyfaq/how-d
Hi all, I'm new with Python, and I thought to use it to automatically rename
some files in a directory, but I don't know where should I search the
functions: to get all the files of a directory, to rename the files and so
on.
Thank you.
--
http://mail.python.org/mailman/listinfo/python-list
Fred Bayer a écrit :
>
> Tony Belding wrote:
>> I'm interested in using an off-the-shelf interpreted language as a
>> user-accessible scripting language for a MUCK. I'm just not sure if I
>> can find one that does everything I need. The MUCK must be able to
>> call the interpreter and execute sc
I heartily agree. pdf format has never been much of a problem for me.
Now that you have an ISSN, has it been submitted to Google Scholar or
other academic indexes?
http://scholar.google.com/intl/en/scholar/about.html for Google Scholar
http://citeseer.ist.psu.edu/submitDocument.html for Citeseer
On Sun, 26 Nov 2006 19:38:20 +, Dennis Lee Bieber wrote:
> Methods defined in a thread class but called from outside the
> running thread run in the environment of the caller, not as part of the
> thread (and if the method manipulates state you may run into conflicts).
Thanks very much;
Hi all,
I rencently had trouble finding a bug in an email processing script
because of an error that pass silently in the email module.
The get_payload() method in the email.message module always return
something when the decode argument is set to True.
This behaviour is well documented, but is th
Mark Harrison wrote:
> I've built a python with --enable-shared in order to support mod_python,
> but now I have to set LD_LIBRARY_PATH to $prefix/lib.
>
> Worse, it seems mod_python will die on some import statements,
> I'm suspecting ones that need to pull in .so's.
I find that most of my Apac
The PyCon organizers have established a short online poll to collect input
from the Python community regarding the shirts, tote bag and slogans to be
used at PyCon 2007, being held in Addison (Dallas), Texas Feb 23-25 2007.
When we put out a prior call for slogan suggestions, we received 104
su
Michalis Giannakidis wrote:
>> in general, methods on C objects are implemented in terms of operations
>> on the internal data structures, not in terms of a subset of the methods
>> already provided by the object.
>
> But what is the reason that the assignment
> l[2] = 6
> call my function, but
Mathias Panzenboeck wrote:
> Robert Kern wrote:
>> Timothy Wu wrote:
>>> Hi,
>>>
>>> Using generator recursively is not doing what I expect:
>>>
>>> def test_gen(x):
>>> yield x
>>> x = x - 1
>>> if x != 0:
>>> test_gen(x)
>>
>> The only thing that the last line does is *creat
On Nov 24, 7:57 am, "Andre Meyer" <[EMAIL PROTECTED]> wrote:
>
> os.walk() is a nice generator for performing actions on all files in a
> directory and subdirectories. However, how can one use os.walk() for walking
> through two hierarchies at once? I want to synchronise two directories (just
> b
The PyCon organizers would like to announce the slate of keynote speakers who
have accepted our invitation to speak at PyCon 2007!
PyCon 2007 is taking place in Addison (Dallas), Texas on Feb 23-25 2007.
For photos, biographies and more, check out:
http://us.pycon.org/TX2007/Keynotes
Ivan
> in general, methods on C objects are implemented in terms of operations
> on the internal data structures, not in terms of a subset of the methods
> already provided by the object.
But what is the reason that the assignment
l[2] = 6
call my function, but
l.append(3)
doesn't ?
Also, why can'
On Nov 24, 5:42 pm, "jeff" <[EMAIL PROTECTED]> wrote:
[snip]
> and what do you mean by 'id3reader' cant do directories?
> my for loop just does each file in the dirextory
It's just a friendly warning that you shouldn't suppose that all that
is scanned are indeed files, and not directories.
--
ht
1 - 100 of 103 matches
Mail list logo