On Dec 2, 10:13 pm, "Daniel Fetchinson" <[EMAIL PROTECTED]>
wrote:
> > > The reason I need this is that my current best strategy to avoid ads in
> > > web pages is putting all ad server names into /etc/hosts and stick my
> > > local ip number next to them (127.0.0.1) so every ad request goes to my
Using DSL (Damn Small Linux) try apache! Or you can try litehttpd
On Dec 2, 2007 3:35 AM, Daniel Fetchinson <[EMAIL PROTECTED]> wrote:
> Hi list,
>
> This is way off topic but maybe somebody knowledgeable can help.
>
> I'm looking for the most minimalist web server ever that does nothing
> el
Hi all,
i'm using python 1.5.2.
Is it possible to use the Thread module? I need it for the Timer library.
Regards,
Gianmaria
--
http://mail.python.org/mailman/listinfo/python-list
On 30 Nov., 19:46, "Daniel Fetchinson" <[EMAIL PROTECTED]>
wrote:
> You might want to fix the typo in the title tag of the webpage.
>
> Cheers,
> Daniel
That one was really hard to find, now I fixed it. Thank you, Daniel!
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
>
> I'm looking for a piece of code, preferably in Python, that will do
> the following. It will accept a few data points (x,f(x)) of a function
> that converges to some finite value when x converges to infinity. I
> need the algorithm to guess what that limit is, to whatever precision
> it ca
Diez i'm so sorry, You are right.
thank you.
Gianmaria
Firma Gianmaria Iaculo
"Diez B. Roggisch" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Gianmaria Iaculo - NVENTA wrote:
>
>>
>> Hi all,
>> i'm using python 1.5.2.
>>
>> Is it possible to use the Thread module? I ne
On Dec 2, 4:47 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Sat, 01 Dec 2007 23:55:32 -0800, Russ P. wrote:
> > I neither know nor care much about Newton's personality and social
> > graces, but I can assure you that he was more than a "technician" (no
> > offense to techn
On 3 Gru, 05:02, itcecsa <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am implementing a small Python project, what I am going to do is to
> open Matlab and run some M-files, and get some output from Matlab
> command prompt.
>
> I have no idea how to open Matlab from Python!
>
> Any suggestions would be a
Hello,
One solution I can think of would be to write an interface to the
Matlab command prompt using pexpect, the python implementation of
expect. Expect allows you to spawn and interact with other process.
There is already a cool implementation of exactly this in Sage, an
open source computer alg
Hi,
I'm working on a little program to export gps data to KML file. This
program is up and running however reading the documentation of Google
Earth I came across an interesting possibilities. I have found a couple of
examples on controlling Google Earth in python. I have experimented with
cod
Does anyone know an easy way to extract the API documentation that is
embedded into a Python file as a text file?
-Samuel
--
http://mail.python.org/mailman/listinfo/python-list
Gianmaria Iaculo - NVENTA wrote:
>
> Hi all,
> i'm using python 1.5.2.
>
> Is it possible to use the Thread module? I need it for the Timer library.
According to http://www.python.org/doc/1.5.2/lib/lib.html it's there. Why
don't you just import it and try? Would have cost less time than posting
I'm an old hand at python but all new to midi and audio. I just
started playing around with pygame to make something similar to
http://www.synthesiagame.com that will run under linux (and preferably
mac os x and windows).
One thing I need is a way to talk to midi devices from python. What's
my bes
>> dictionary-key/value syntax), you can do something like:
> number = lambda x: dict((str(i+1), v) for (i,v) in enumerate(x))
> "%(2)s and %(1)s" % number(["A", "B"])
>
> Whoa - that'll take me a little while to figure out, but it looks intriguing!
It basically just returns a dictionary
On Mon, 03 Dec 2007 02:12:17 -0800, MonkeeSage wrote:
> Being fair, the bulk of Liebniz' writings have also been rejected by
> those in related fields. Most modern metaphysicians hold a view closer
> to Boston Personalism or at least post-Kantian Personalism (a la Buber),
> than monadic unity and
On Dec 3, 7:23 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Mon, 03 Dec 2007 02:12:17 -0800, MonkeeSage wrote:
> > Being fair, the bulk of Liebniz' writings have also been rejected by
> > those in related fields. Most modern metaphysicians hold a view closer
> > to Boston
Hi,
I upgraded my system from tiger to leopard. With leopard came a new
version of python 2.5
Now I trying to run some python code that previously worked on tiger
(which included an older version of python).
This is the error I'm receiving :
Traceback (most recent call last):
File "test.py",
dirkheld wrote:
> Hi,
>
> I upgraded my system from tiger to leopard. With leopard came a new
> version of python 2.5
>
> Now I trying to run some python code that previously worked on tiger
> (which included an older version of python).
>
> This is the error I'm receiving :
>
> Traceback (mos
> I create a folder test under e:
>
> then os.access('e:\\test', os.W_OK) returns True. Everything's ok.
>
> Now I move My Documents to this e:\test folder
>
> Then os.access('e:\\test', os.W_OK) returns False !!
This description is, unfortunately, too imprecise to allow reproducing
that effect
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
Martin v. Löwis a écrit :
>> I create a folder test under e:
>>
>> then os.access('e:\\test', os.W_OK) returns True. Everything's ok.
>>
>> Now I move My Documents to this e:\test folder
>>
>> Then os.access('e:\\test', os.W_OK) returns False !!
>
> This description is, unfortunately, too imprecis
http://bux.to/?r=beronz
use this link to register
What is Bux.to?
Bux.to is a new innovative, international and FREE English based
service that allows advertisers to reach thousands of potential
customers by displaying their ad on our, "Surf Ads" page.
How does it work?
You view websites in 30 s
WOW,
Thanks a lot. I got many options to do, and play with. Each one having its
own pros and cons. But for my requirement in project, i will go with
hasattr/getattr/callable and then calling the ref method. It seems fit for
the problem.
Thanks a lot :) again.
On Dec 1, 2007 12:45 AM, Bruno Desthu
MonkeeSage wrote:
> On Dec 3, 1:31 am, MonkeeSage <[EMAIL PROTECTED]> wrote:
>> On Dec 2, 11:46 pm, Michael Spencer <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>> Michael Goerz wrote:
Hi,
I am writing unicode stings into a special text file that requires to
have non-ascii characters as as o
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?
IIRC, you can't override __magic__ methods on a per-instance basis.
>
On Dec 2, 10:02 pm, itcecsa <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am implementing a small Python project, what I am going to do is to
> open Matlab and run some M-files, and get some output from Matlab
> command prompt.
>
> I have no idea how to open Matlab from Python!
>
> Any suggestions would b
Yann Leboulanger wrote:
> Martin v. Löwis a écrit :
>>> I create a folder test under e:
>>>
>>> then os.access('e:\\test', os.W_OK) returns True. Everything's ok.
>>>
>>> Now I move My Documents to this e:\test folder
>>>
>>> Then os.access('e:\\test', os.W_OK) returns False !!
>> This description
On 3 Dic, 11:26, Samuel <[EMAIL PROTECTED]> wrote:
> Does anyone know an easy way to extract the API documentation that is
> embedded into a Python file as a text file?
>
> -Samuel
Something like this?
print >> open('file.txt', 'w'), dir.__doc__
--
http://mail.python.org/mailman/listinfo/python-
Tim Golden wrote:
> Yann Leboulanger wrote:
>> Martin v. Löwis a écrit :
I create a folder test under e:
then os.access('e:\\test', os.W_OK) returns True. Everything's ok.
Now I move My Documents to this e:\test folder
Then os.access('e:\\test', os.W_OK) returns F
On Nov 24, 4:44 am, Licheng Fang <[EMAIL PROTECTED]> wrote:
>
> Yes, millions. In my natural language processing tasks, I almost
> always need to define patterns, identify their occurrences in a huge
> data, and count them. Say, I have a big text file, consisting of
> millions of words, and I want
On Dec 3, 7:47 am, dirkheld <[EMAIL PROTECTED]> wrote:
> IOError: [Errno 2] No such file or directory: 'a_file.txt'
I sometimes see that error on Linux when trying to run a script with
DOS line endings. Is it an imported file? I don't know Macs, but start
by making sure both your script and the f
On 3 dec, 14:54, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> dirkheld wrote:
> > Hi,
>
> > I upgraded my system from tiger to leopard. With leopard came a new
> > version of python 2.5
>
> > Now I trying to run some python code that previously worked on tiger
> > (which included an older versio
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?
>
> IIRC, you can't override __magic__
In article <[EMAIL PROTECTED]>,
Gianmaria Iaculo - NVENTA <[EMAIL PROTECTED]> wrote:
>
>i'm using python 1.5.2.
>
>Is it possible to use the Thread module? I need it for the Timer library.
Python 1.5.2 contained several thread fixes, but I recommend upgrading to
2.2 or later if you can, there wer
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
On Mon, 03 Dec 2007 06:45:45 -0800, Giampaolo Rodola' wrote:
> dir.__doc__
This contains only the docstring one object (module, class,
function, ...). I was thinking more of the complete API documentation
that can be found in a file, and formatted in a readable way.
-Samuel
--
http://mail.pyt
dirkheld wrote:
> On 3 dec, 14:54, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>> dirkheld wrote:
>> > Hi,
>>
>> > I upgraded my system from tiger to leopard. With leopard came a new
>> > version of python 2.5
>>
>> > Now I trying to run some python code that previously worked on tiger
>> > (whi
Tim Golden a écrit :
>
> I'm happy to contribute a doc patch if I can imagine what
> exactly to write.
>
"Don't use it under windows, always consider it's True"?
Maybe it would be a good idea to remove support for windows for this
function, or make it always return True?
Current behaviour is w
c james <[EMAIL PROTECTED]> wrote:
> Thanks, I was trying to eliminate another level of indirection with a
> test at each invocation of __call__
>
>
Try using different subclasses for each variant:
class YesNo(object):
def __new__(cls, which, *args, **kw):
if cls is YesNo:
c james <[EMAIL PROTECTED]> writes:
>> class YesNo(object):
>>def __init__(self, which):
>> self.which = which
>>
>>def __call__(self, val):
>> return (self.no, self.yes)[self.which](val)
>>
>>def yes(self, val):
>> print 'Yes', val
>>
>>def no(self, val):
>>
dirkheld <[EMAIL PROTECTED]> writes:
> I don't have a file called 'a_file.txt'
> I want to create that file and write some data to it.
How exactly are you starting the Python interpreter? "No such file or
directory" on file creation can happen when you try to create a file
in a directory that ha
Tim Golden a écrit :
> Well, that's not the case for files: if you set your
> file's readonly attribute to True, then os.access (W_OK)
> will return False and you won't be able to write to the
> file:
> The only issue (at least, the only one we're discussing here) is:
> If os.W_OK on a directory
I need some distutils help. I currently run a python library
(PyQuante) that, until recently, had all of its modules in a single
directory, called "PyQuante". The setup command in my setup.py module
had a single "packages" line:
packages = ['PyQuante'],
I moved some of the routines into Bas
Yann Leboulanger wrote:
> Tim Golden a écrit :
>>
>> I'm happy to contribute a doc patch if I can imagine what
>> exactly to write.
>>
>
> "Don't use it under windows, always consider it's True"?
Well, that's not the case for files: if you set your
file's readonly attribute to True, then os.acces
On Dec 3, 5:23 am, Steven D'Aprano
> I'm not suggesting that Leibniz was any more of a scientist than Newton
> was, nor am I suggesting that Newton's achievements should be *rejected*
> (er, except for those pesky Quantum Mechanics and Relativity things...).
> I'm just saying that we should unders
Navid Parvini wrote:
> Dear All,
>
> Would you please help me to find a way to get the list of all processes id
> on the machine along with their parent processes.
>
> Thank you in advance.
Deja vu?
http://groups.google.com/group/comp.lang.python/search?q=list+process
TJG
--
http:/
Yann Leboulanger wrote:
> Ok thanks for all those information, I'll remove the call to os.access()
> on folders for windows in my application.
>
FWIW, I think it's worth bearing in mind what was said
earlier in this thread: it's easier to ask forgiveness
than permission. Technically, even if os.
Hello,
I'm trying to pass array as an argument into PL/SQL procedure.
According to cursor manual (http://cx-oracle.sourceforge.net/html/
cursorobj.html) arrayvar() should be use to do it. I've created my
array type in PL/SQL:
CREATE OR REPLACE TYPE cx_array_string is table of varchar2(200);
and
[ Sorry if you see this message twice (or more), mail.python.org
seems rejecting my posts.]
Hello,
I've found strangeness in socket.
Normal socket is wrapped by Python code in socket.py.
>>> socket.socket(socket.AF_INET, socket.SOCK_STREAM)
However, socket created with fromfd() is not wrappe
On 2007-12-03, Russ P. <[EMAIL PROTECTED]> wrote:
> On Dec 3, 5:23 am, Steven D'Aprano
>> I'm not suggesting that Leibniz was any more of a scientist
>> than Newton was, nor am I suggesting that Newton's
>> achievements should be *rejected* (er, except for those pesky
>> Quantum Mechanics and Relat
On Dec 3, 2007 4:40 PM, Russ P. <[EMAIL PROTECTED]> wrote:
> As I said before, a name is
> just a name. It might as well be called "cockroach" as far as I am
> concerned.
Unluckily "the Beatles" was already taken :-)
francesco
--
http://mail.python.org/mailman/listinfo/python-list
Dear All,
Would you please help me to find a way to get the list of all processes id on
the machine along with their parent processes.
Thank you in advance.
-
Never miss a thing. Make Yahoo your homepage.--
http://mail.python.org/mailman/
Which OS Windows or Linux?
br
Mathias
2007/12/3, Navid Parvini <[EMAIL PROTECTED]>:
>
> Dear All,
>
> Would you please help me to find a way to get the list of all processes id
> on the machine along with their parent processes.
>
> Thank you in advance.
>
>
> --
> Nev
The only reason to change the name would be because of some serious
bad PR that came onto Python, thus causing its branding name to be
catagorized as something bad.
However this is not the case, presently, and the brand name is well
established and accepted. There is no reason to change its name a
Hi ,
I was looking at some example of how to display tabular data with
tkinter and i found this component(
http://www.satisoft.com/tcltk/gridplus2/examples.html
). I would like to know if it possible to make it work with the tk
version used by python and how to do that ?
Thx
E,
--
http://mail.py
Hi,
Is there any way to detect if a float is NaN in Python 2.4?
I can pretty much understand why
float("nan") == float("nan") -> False
but I then expected there to be an isnan() function, perhaps provided by
the maths module. I understand a lot of the floating point behaviour is
implementation-
I don't know how to pose this question so i will just say what i am trying
to do.
i am not sure if this is at all possible i am trying to make a story
generator like the ones that i did in elementry school where they would
supply a story with blanks and you would have to place the nouns-v
Is it possible to build python as a static library and embed all necessary c
and py modules rom the standard lib in it? This would make distributing and
embedded interpreter in our app MUCH simpler.
thanks!
--
Patrick Kidd Stinson
http://www.patrickkidd.com/
http://pkaudio.sourceforge.net/
http:
Dalton, Tom wrote:
> Hi,
>
> Is there any way to detect if a float is NaN in Python 2.4?
>
> I can pretty much understand why
>
> float("nan") == float("nan") -> False
>
> but I then expected there to be an isnan() function, perhaps provided by
> the maths module. I understand a lot of the floa
thanks markacy, very thanks for your helpful reply.
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 3, 8:22 am, [EMAIL PROTECTED] wrote:
> The only reason to change the name would be because of some serious
> bad PR that came onto Python, thus causing its branding name to be
> catagorized as something bad.
>
> However this is not the case, presently, and the brand name is well
> establishe
Russ P. wrote:
> On Dec 3, 8:22 am, [EMAIL PROTECTED] wrote:
>
>> The only reason to change the name would be because of some serious
>> bad PR that came onto Python, thus causing its branding name to be
>> catagorized as something bad.
>>
>> However this is not the case, presently, and the bran
Check out the 'pydoc' script; it ships with Python. I've got my CI system
rigged up to run pydoc on each commit and automatically generate HTML
documentation. The tool actually imports a 'pydoc.py' module, which you may
be able to use directly if you need more control over the process.
On top o
On Dec 3, 3:36 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> Allowing instance lookup of __call__ would slow down normal uses of
> the internal __call__ mechanism. Since it used for all function and
> method calls, it needs to remain extremely fast. If you're really
> worried about performance,
[EMAIL PROTECTED] wrote:
> Hi ,
> I was looking at some example of how to display tabular data with
> tkinter and i found this component(
> http://www.satisoft.com/tcltk/gridplus2/examples.html
> ). I would like to know if it possible to make it work with the tk
> version used by python and how to
> i am not sure if this is at all possible i am trying to make a story
> generator like the ones that i did in elementry school where they would
> supply a story with blanks and you would have to place the nouns-verbs/you
> best friends name and it would make a funny story.
Sounds like yo
is there a way to set the interpreter prefix without setting the program
name? If you use python as a static library you will not have a bin dir and
valid program name. I want to set up my app to be able to init the site
using something like C:\ProgramData\Mine\python_blah_blah on windows and
/Libr
On 3 Gru, 19:07, Ian Clark <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hello,
>
> > I'm trying to pass array as an argument into PL/SQL procedure.
> > According to cursor manual (http://cx-oracle.sourceforge.net/html/
> > cursorobj.html) arrayvar() should be use to do it. I've created
Russ P. írta:
> Python is a "funny" name -- in both senses of the word. No? Then
> why did a comedy team adopt it?
Python name is not funny for me. Even the Monty Python, because its hard
to translate their jokes, and in my country they are not so popular.
Just a few ppl knows them.
Newton is a w
[EMAIL PROTECTED] wrote:
> Hello,
>
> I'm trying to pass array as an argument into PL/SQL procedure.
> According to cursor manual (http://cx-oracle.sourceforge.net/html/
> cursorobj.html) arrayvar() should be use to do it. I've created my
> array type in PL/SQL:
>
> CREATE OR REPLACE TYPE cx_arra
> http://support.microsoft.com/kb/326549
>
> Goodness knows what we're supposed to do with that.
Just in case it's not clear what Tim is getting at:
if a folder is marked read-only on Windows, it doesn't mean
that you can only read from it. The read-only bit is a legacy
thing, anyway, since you
On 3 Gru, 19:07, Ian Clark <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hello,
>
> > I'm trying to pass array as an argument into PL/SQL procedure.
> > According to cursor manual (http://cx-oracle.sourceforge.net/html/
> > cursorobj.html) arrayvar() should be use to do it. I've created
> Python name is not funny for me. Even the Monty Python, because its hard
> to translate their jokes, and in my country they are not so popular.
> Just a few ppl knows them.
I've heard it helps to be stoned out of your mind (i.e., under the
influence of illegal drugs), but I don't necessarily re
Russ P. írta:
>> Python name is not funny for me. Even the Monty Python, because its hard
>> to translate their jokes, and in my country they are not so popular.
>> Just a few ppl knows them.
>
> I've heard it helps to be stoned out of your mind (i.e., under the
> influence of illegal drugs), but
On Dec 1, 11:14 pm, Frank Millman <[EMAIL PROTECTED]> wrote:
> See this post from less than a week ago.
>
> http://tinyurl.com/2zyr7u
>
> I think that the message from Diez B. Roggisch has what you are
> looking for.
>
> Frank Millman
Thanks Frank. But again, this results into stack-track when the
In the following Display inherits from the Tkinter class Canvas:
import sys
from Tkinter import *
class Display(Canvas) :
...
def fill_canvas() :
slop=self.slop
set_sr(int(self.cget('width'))+slop,
int(self.cget('height'))+slop)
self.refresh()
...
dis
On Dec 3, 2007, at 2:10 PM, Mike wrote:
> In the following Display inherits from the Tkinter class Canvas:
>
> import sys
> from Tkinter import *
> class Display(Canvas) :
> ...
> def fill_canvas() :
def fill_canvas(self):
> slop=self.slop
> set_sr(int(self.cget('width'))+slop
Oops. I just forgot self.
--
http://mail.python.org/mailman/listinfo/python-list
"Joseph king" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
|I don't know how to pose this question so i will just say what i am trying
| to do.
|
| i am not sure if this is at all possible i am trying to make a story
| generator like the ones that i did in elementry school
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):
>
Tóth Csaba wrote:
> back from jokes, im _really_ interested what is core developers, mainly
> Guido's opinion about the name change.
I'm pretty sure it's, "Not a chance."
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our ow
On Dec 3, 2007, at 2:04 PM, Tóth Csaba wrote:
> Russ P. írta:
>>> Python name is not funny for me. Even the Monty Python, because
>>> its hard
>>> to translate their jokes, and in my country they are not so popular.
>>> Just a few ppl knows them.
>>
>> I've heard it helps to be stoned out of yo
Hi;
Here is sample function:
def a():
b()
print c
def b():
c = "Hi"
return c
if __name__ == "__main__":
a()
then run a(). Throws error about c not being defined. How do I return c from
b?
TIA,
Victor
--
http://mail.python.org/mailman/listinfo/python-list
> Here is sample function:
>
> def a():
> b()
> print c
>
> def b():
> c = "Hi"
> return c
>
> if __name__ == "__main__":
> a()
>
> then run a(). Throws error about c not being defined. How do I return c from
> b?
you *do* return c from b, and within the scope of a(), c is not
defin
def a():
d = b()
print d
def b()
c = "Hi"
return c
if __name__ == "__main__":
a()
Cheers
TG
On Dec 3, 2007, at 3:05 PM, Victor Subervi wrote:
> Hi;
> Here is sample function:
>
> def a():
> b()
> print c
>
> def b():
> c = "Hi"
> return c
>
> if __name__ == "__ma
Tommy Grav wrote:
> The class method needs a self argument so that
> disp.fill_canvas() can parse the class instance disp
> to the method.
It's an instance method, no class method.
Regards,
Björn
--
BOFH excuse #88:
Boss' kid fucked up the machine
--
http://mail.python.org/mailman/listinf
On Dec 3, 3:13 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> > Here is sample function:
>
> > def a():
> > b()
b() is not being assigned to anything. Use c = b() to have c assigned
in the local scope.
> > print c
>
> > def b():
When you enter the function b, you are creating a new local scope. c
The Grant Institute: Certificate in Professional Program Development and Grant Communication
will be held in Seattle, Washington, December 10 - 14, 2007. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as demand means that s
Hello,
I have recently discovered the python language and am having a lot of
fun getting head around the basics of it.
However, I have run into a stumbling block that I have not been able
to overcome, so I thought I would ask for help.
I am trying to import a text file that has the following form
On Mon, 03 Dec 2007 16:11:19 +, Neil Cerutti wrote:
> To paraphrase Bertrand Russell, Newton was too successful.
> Over-veneration of Newton was eventually an impediment to progress--this
> was not, of course, his fault.
Given that the veneration of Newton was very much a product of Newton's
[EMAIL PROTECTED] a écrit :
> Python is a good programming language, but "Python" is not a good
> name.
>
> First, python also means snake, Monty Python. If we search "python" in
> google, emule, many results are not programming resource. If we search
> PHP, all results are programming resource.
I am doing a string.replace in a simple table generation app I wrote,
and I can't figure out how to match whitespace with /s, so I thought
I would see if osmeone where would be kind enough to tell me what I am
getting wrong.
This works:
string = string.replace('\n Field One
\n %Field
Martin v. Löwis wrote:
> Just in case it's not clear what Tim is getting at:
>
> if a folder is marked read-only on Windows, it doesn't mean
> that you can only read from it. The read-only bit is a legacy
> thing, anyway, since you are supposed to use ACLs to mark
> a folder as read-only (by only
On Sun, 02 Dec 2007 13:29:58 -0800, Russ P. wrote:
>> He might have been a great intellectual but he was no scientist. It's
>> only by ignoring the vast bulk of his work -- work which Newton himself
>> considered *far* more important and interesting than his work on
>> physics and mathematics -- t
> I'm amazed that anyone here answered this obvious troll...
I doubt the original post was a troll, but the statement above clearly
is.
You are entitled to your opinion about the idea of changing the name
of the language, but calling it a troll is just arrogance on display.
Python3000 is expect
> I tried these this:
>
> string = string.replace('\s*Field One\s*
> %FieldOneValue%\s*', '')
>
>
> But this doesn't work. The doco for Python's regex suggests that \s
> should match any whitespace including newlines which is what I
> wanted,
from http://docs.python.org/lib/module-re.html
"
Russ P. a écrit :
>>I'm amazed that anyone here answered this obvious troll...
>
>
> I doubt the original post was a troll, but the statement above clearly
> is.
Then your trollometer is broken. Got and get yourself a working one.
> You are entitled to your opinion about the idea of changing th
On Dec 3, 1:04 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Mon, 03 Dec 2007 16:11:19 +, Neil Cerutti wrote:
> > To paraphrase Bertrand Russell, Newton was too successful.
> > Over-veneration of Newton was eventually an impediment to progress--this
> > was not, of cour
On Dec 3, 2007 4:34 PM, Russ P. <[EMAIL PROTECTED]> wrote:
>
> > I'm amazed that anyone here answered this obvious troll...
>
> I doubt the original post was a troll, but the statement above clearly
> is.
>
> You are entitled to your opinion about the idea of changing the name
> of the language, bu
On Dec 3, 1:47 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> Bullshit. Nowadays, anyone serious (since you seem to worry quite a lot
> about "being serious") about IT knows what Python is and who uses it.
> Heck, even MSVS now has support for Python and there's an official CLR
> port of it.
1 - 100 of 132 matches
Mail list logo