when I type sys.ps2 after import sys,
I got the message like:
Traceback (most recent call last):
File "", line 1, in -toplevel-
sys.ps2
AttributeError: 'module' object has no attribute 'ps2'
why does it happen?
--
http://mail.python.org/mailman/listinfo/python-list
I have read a lot of posts discussing python IDEs, but most of them
focus on the editor, GUI builder, project management, customizability,
etc Some talked about debugging capability, but only on an
available/unavailable level.
I use vim to edit my code, wxGlade to build the GUI or hand-code i
Qiangning Hong wrote:
> I have read a lot of posts discussing python IDEs, but most of them
> focus on the editor, GUI builder, project management, customizability,
> etc Some talked about debugging capability, but only on an
> available/unavailable level.
>
> I use vim to edit my code, wxGl
On Sun, 03 Jul 2005 00:39:19 -0400, Christopher Subich wrote:
> Devan L wrote:
>> sum(sequence[0] + [1/element for element in sequence[1:]])
>>
>> I think that should work.
>
> That won't work, because it misses the x*y part of the expression
> (x[n]*x[n+1] + 1/x[n+1], for people who haven't im
Hello group,
When browsing websites, quite often I have to look up words in
dictionary. I'm hoping that I can come up with a python program that
does the following:
When I highlight some text in browser and right-click, besides the
default options such as COPY, PASTE, etc, I want an option that
On Sun, 03 Jul 2005 03:19:45 -0400, Xinyue Ye wrote:
> when I type sys.ps2 after import sys,
> I got the message like:
> Traceback (most recent call last):
> File "", line 1, in -toplevel-
> sys.ps2
> AttributeError: 'module' object has no attribute 'ps2'
> why does it happen?
It works for me.
Steven D'Aprano wrote:
> How do you replace:
>
> reduce(lambda x,y: x*y-1/y, sequence)
>
> with sum?
missing = object()
def my_reduce(f, items, first=missing):
class adder:
def __init__(self, value):
self.value = value
def __add__(self, other):
retu
Hello group,
After searching free IDE for a while, i picked
PyScripter(http://mmm-experts.com/Products.aspx). It is neat. I like
it. But I always get error when using raw_input function. Please see
below.
>>> raw_input("Press ENTER to continue...")
Press ENTER to continue...Traceback (most recent
Hello,
I'm busy to build some kind of webpage framework written in Python. But
there's a small problem in this framework. This framework should open a
page, parse it, take some other information out of it and should store
it in some kind of fast storage. This storage need to be very fast so
every
Detlev Offenbach wrote:
> Qiangning Hong wrote:
>
>
>>I have read a lot of posts discussing python IDEs, but most of them
>>focus on the editor, GUI builder, project management, customizability,
>>etc Some talked about debugging capability, but only on an
>>available/unavailable level.
>>
>>
On Sat, Jul 02, 2005 at 08:26:31PM -0700, Devan L wrote:
>
> Also, map is easily replaced.
> map(f1, sequence) == [f1(element) for element in sequence]
>
How do you replace
map(f1,sequence1, sequence2)
especially if the sequences are of unequal length ?
I didn't see it mentioned yet as a candida
IDLE 1.0.3
>>> import sys
>>> sys.ps2
Traceback (most recent call last):
File "", line 1, in -toplevel-
sys.ps2
AttributeError: 'module' object has no attribute 'ps2'
>>>
where is the problem?
-- Forwarded message --
From: Steven D'Aprano <[EMAIL PROTECTED]>
To: pyth
Xinyue Ye wrote:
> when I type sys.ps2 after import sys,
> I got the message like:
> Traceback (most recent call last):
> File "", line 1, in -toplevel-
> sys.ps2
> AttributeError: 'module' object has no attribute 'ps2'
> why does it happen?
sys.ps2 is defined in an interactive session only as
I don't know how hard this would be to do in Python - appending text to
a file is straightforward, but it sounds like you'd need to extend the
browser itself to get the functionality you want. The most obvious
choice if you want an extensible browser is Mozilla Firefox
(http://www.mozilla.org/produ
Python 2.4, Windows XP. If I say:
f = Frame()
f.grid()
v = IntVar()
c = Checkbutton(f, text='hi there', variable=v)
c.grid()
f.mainloop()
then the checkbutton should initially display as being checked.
But it doesn't. It shows up unchecked, even though v.get() returns 1.
what is the difference between command prompt and IDLE?
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 2 Jul 2005 03:04:09 -0700 (PDT), "Ralf W. Grosse-Kunstleve"
<[EMAIL PROTECTED]> wrote:
>Hi fellow Python coders,
>
>I often find myself writing::
>
>class grouping:
>
>def __init__(self, x, y, z):
>self.x = x
>self.y = y
>self.z = z
>
On Sun, 3 Jul 2005, Steven D'Aprano wrote:
> On Sun, 03 Jul 2005 02:22:23 +0200, Fredrik Johansson wrote:
>
>> On 7/3/05, Tom Anderson <[EMAIL PROTECTED]> wrote:
>>> That's one way. I'd do:
>>>
>>> root = value ** 0.5
>>>
>>> Does that mean we can expect Guido to drop math.sqrt in py3k? :)
>>
>> I
John Roth wrote:
> "Robert Kern" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
> >
> > map and filter are being removed *because of* list comprehensions. Did you
> > even read Guido's articles about this issue? Your understanding of why
> > these changes are planned is incorrect;
yipusi wrote:
> IDLE 1.0.3
>
import sys
sys.ps2
>
>
> Traceback (most recent call last):
> File "", line 1, in -toplevel-
> sys.ps2
> AttributeError: 'module' object has no attribute 'ps2'
>
>
> where is the problem?
The problem is that you are using IDLE (and an old versi
What should I do to correct the errors accordingly?
On 7/3/05, Michael Hoffman <[EMAIL PROTECTED]> wrote:
> yipusi wrote:
> > IDLE 1.0.3
> >
> import sys
> sys.ps2
> >
> >
> > Traceback (most recent call last):
> > File "", line 1, in -toplevel-
> > sys.ps2
> > AttributeError: 'modu
Qiangning Hong wrote:
> Detlev Offenbach wrote:
>> Qiangning Hong wrote:
>>
>>
>>>I have read a lot of posts discussing python IDEs, but most of them
>>>focus on the editor, GUI builder, project management, customizability,
>>>etc Some talked about debugging capability, but only on an
>>>av
start reading here: http://www.python.org/idle/doc/idlemain.html,
although it is not up to date most of the information still holds up
--
http://mail.python.org/mailman/listinfo/python-list
see the answer on your previous post (
http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/8e132d9c734907b/87fd1f579a362e71?q=&rnum=2&hl=en#87fd1f579a362e71),
to get an interactive session open a command window and type ' python'
--
http://mail.python.org/mailman/listinfo/pytho
You can catch the content of an url like this:
http://www.python.org/doc/current/lib/node478.html, from here you can
parse it, and the store the result e.g. in dictionary, you will have a
very well performing solution like this.
--
http://mail.python.org/mailman/listinfo/python-list
Thank you, but it's not what I mean. I don't want some kind of client
parser thing. But I mean the page is already been parsed and ready to
be read. But I want to store this page for more use. I need some kind
of database that won't exit if the cgi-bin script has finished. This
database need to be
jwaixs wrote:
> Thank you, but it's not what I mean. I don't want some kind of client
> parser thing. But I mean the page is already been parsed and ready to
> be read. But I want to store this page for more use. I need some kind
> of database that won't exit if the cgi-bin script has finished. Thi
Dennis Lee Bieber wrote:
> Considering how often this has come up, I've sort of lost faith
> in CS programs at colleges. Now, this might be an unfair statement as I
> don't know if any of those bringing up the question ever had college CS
> courses... But the fluff of floating point data was
If I should put the parsedwebsites in, for example, a tablehash it will
be at least 5 times faster than just putting it in a file that needs to
be stored on a slow harddrive. Memory is a lot faster than harddisk
space. And if there would be a lot of people asking for a page all of
them have to open
Use DECIMAL columns with MySQLdb-1.2.0 and Python-2.4 and you should
get values back using Python's new decimal type.
http://docs.python.org/whatsnew/node9.html
This avoids floating point inaccuracies.
--
http://mail.python.org/mailman/listinfo/python-list
"Robert Kern" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [EMAIL PROTECTED] wrote:
>> Guido gave a nice "Python Regrets" Power Point talk at OSCON few years
>> ago.
>>
>> I was wondering if the plan is to ever implement these ideas.
>>
>> e.g. Guido said he'd prefer 'print' to be
You might also look at Boa.
http://boa-constructor.sourceforge.net/
While I haven't tried all the things on your list, I've been able to do
all the things I've wanted to do in the debugger. It is also an IDE for
wxPython, so it works well for that, but I don't know about other GUI
libraries.
jwaixs wrote:
> If I should put the parsedwebsites in, for example, a tablehash it will
> be at least 5 times faster than just putting it in a file that needs to
> be stored on a slow harddrive. Memory is a lot faster than harddisk
> space. And if there would be a lot of people asking for a page al
<[EMAIL PROTECTED]> wrote:
> Thanks! Even the fact that these ideas
> have been organized into a PEP is
> exciting to methere is hope that
> they may *someday* be implemented. Maybe sooner than people think.
Given that the latest 2.x python will be 2.9 and that 3.0 may be
released in parall
On Sun, 03 Jul 2005 10:56:42 +0100, Tom Anderson wrote:
> On Sun, 3 Jul 2005, Steven D'Aprano wrote:
>
>> On Sun, 03 Jul 2005 02:22:23 +0200, Fredrik Johansson wrote:
>>
>>> On 7/3/05, Tom Anderson <[EMAIL PROTECTED]> wrote:
That's one way. I'd do:
root = value ** 0.5
Doe
shisa wrote:
> What should I do to correct the errors accordingly?
What error? IDLE appears to be behaving as designed.
Also, please don't top-post--it makes responding to your message in a
way that others can understand more difficult.
http://en.wikipedia.org/wiki/Top-posting
--
Michael Hoffm
Hi, is it possible to save a state of the python interpreter to disk and
load it later?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
> I Just need to figure out how to get 4 numbers from
> the player on one line for easy comparison,
Unless there is a set of batteries somewhere that I don't know
about I think you have to rely on reading the line as a string
and then splitting it.
line = raw_input('Type 4 numbers separ
wcc wrote:
> Hello group,
>
> After searching free IDE for a while, i picked
> PyScripter(http://mmm-experts.com/Products.aspx). It is neat. I like
> it. But I always get error when using raw_input function. Please see
> below.
>
>
raw_input("Press ENTER to continue...")
>
> Press ENTER to
VansMll wrote:
> Hi, is it possible to save a state of the python interpreter to disk and
> load it later?
Should be doable in stackless python.
Diez
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 4 Jul 2005, Steven D'Aprano wrote:
> On Sun, 03 Jul 2005 10:56:42 +0100, Tom Anderson wrote:
>
>> On Sun, 3 Jul 2005, Steven D'Aprano wrote:
>>
>>> On Sun, 03 Jul 2005 02:22:23 +0200, Fredrik Johansson wrote:
>>>
On 7/3/05, Tom Anderson <[EMAIL PROTECTED]> wrote:
> That's one way.
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote:
> Unfortunately, floating point maths is a bit of a black art. Try this
> simple calculation:
>
> py> 4.0/3 - 5.0/6
> 0.49989
>
> Should be 0.5 exactly.
>
> Many numbers which you can write exactly in decimal cannot be
> stored exactly in fl
"Tom Anderson" <[EMAIL PROTECTED]> wrote:
> >> And finally, does Guido know something about arithmetic that i don't, or
> >> is this expression:
> >>
> >> -1.0 ** 0.5
> >>
> >> Evaluated wrongly?
> >
> > No, it is evaluated according to the rules of precedence. It is
> > equivalent to -(1.0**0.5).
egbert wrote:
> On Sat, Jul 02, 2005 at 08:26:31PM -0700, Devan L wrote:
>
>>Also, map is easily replaced.
>>map(f1, sequence) == [f1(element) for element in sequence]
>
> How do you replace
> map(f1,sequence1, sequence2)
> especially if the sequences are of unequal length ?
>
> I didn't see it
"Alan G" <[EMAIL PROTECTED]> wrote:
> > I Just need to figure out how to get 4 numbers from
> > the player on one line for easy comparison,
>
> Unless there is a set of batteries somewhere that I don't know
> about I think you have to rely on reading the line as a string
> and then splitting
Paul Rubin wrote:
> Python 2.4, Windows XP. If I say:
> f = Frame()
> f.grid()
> v = IntVar()
v.set(1) # Might help. v.get() at this point returned 0 for me.
> c = Checkbutton(f, text='hi there', variable=v)
> c.grid()
> f.mainloop()
--
http://mail.python.org/mailm
Well, thank you for your advice. So I have a couple of solutions, but
it can't become a server at its own so this means I will deal with
files.
Thank you for your advice, I'll first make it work... than the server.
Noud Aldenhoven
--
http://mail.python.org/mailman/listinfo/python-list
My question isn't as all-encompassing as the subject would suggest...
I am almost a Python newbie, but I have discovered that I don't get
along with IDLE, as i can't work out how to run and rerun a routine
without undue messing about.
What I would really like is something like an old-style BASI
maybe look at Harvestman
http://cheeseshop.python.org/HarvestMan/1.4%20final
--
http://mail.python.org/mailman/listinfo/python-list
François Pinard wrote:
> [Rocco Moretti]
>
>
>>foo, bar, _ = gen_tuple(stuff)
>
>
>>as '_' is already special cased (last result in interactive mode), and
>>is already used for "don't care" sematics in Prolog.
>
>
> `_' is also the `gettext' function in internationalised programs. It so
> se
Terry Reedy wrote:
> "Colin J. Williams" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>>Isn't this where the discussion should start? There should be some
>>general policy guiding the types of modules which should be in the
>>standard library.
>
>
> A couple of times, Guido
anthonyberet wrote:
> My question isn't as all-encompassing as the subject would suggest...
>
> I am almost a Python newbie, but I have discovered that I don't get
> along with IDLE, as i can't work out how to run and rerun a routine
> without undue messing about.
>
> What I would really like i
If it's a executable file, a ".exe" file, you can launch it in this
way, "xxx.exe < input.txt". The text file "input.txt" will be
considered as the standard input.
But when I use this trick on python, it doesn't work. The only way to
do so is like this "python xxx.py < input.txt". But this method
[Fredrik Johansson]
>>> I'd rather like to see a well implemented math.nthroot. 64**(1/3.0)
>>> gives 3.9996, and this error could be avoided.
[Steven D'Aprano]
>> >>> math.exp(math.log(64)/3.0)
>> 4.0
>>
>> Success!!!
[Tom Anderson]
> Eeenteresting. I have no idea why this works.
Qiangning Hong ha scritto:
> Eric3 need pyqt so it is not free under windows platform.
Eric3 has had a free version for months now on windows, since the kde on
win32 project recompiled the free versions on windows.
And qt4 now has a GPL version free on windows too.
--
Renato
--
Scott David Daniels <[EMAIL PROTECTED]> writes:
> Paul Rubin wrote:
> > Python 2.4, Windows XP. If I say:
> > f = Frame()
> > f.grid()
> > v = IntVar()
>v.set(1) # Might help. v.get() at this point returned 0 for me.
Yeah, I tried that too. Further reorganization of the cod
On Sun, 03 Jul 2005 15:46:35 +0100, Tom Anderson wrote:
> I think there would be a lot less confusion over the alleged inaccuracy of
> floating point if everyone wrote in hex - indeed, i believe that C99 has
> hex floating-point literals. C has always been such a forward-thinking
> language!
N
Steven D'Aprano wrote:
> On Sun, 03 Jul 2005 00:39:19 -0400, Christopher Subich wrote:
>>Personally, I think demanding that it be writable as a sum (or product,
>>or any, or all) is a false standard -- nobody's claimed that these would
>>replace all cases of reduce, just the most common ones.
>
[Steven D'Aprano]
...
> But this works:
>
> py> inf = float("inf")
> py> inf
> inf
Another platform-dependent accident. That does not work, for example,
on Windows. In fact, the Microsoft C float<->string routines don't
support any way "to spell infinity" that works in the string->float
directi
wcc wrote:
> Hello group,
>
> When browsing websites, quite often I have to look up words in
> dictionary. I'm hoping that I can come up with a python program that
> does the following:
>
> When I highlight some text in browser and right-click, besides the
> default options such as COPY, PASTE,
anthonyberet wrote:
> What I would really like is something like an old-style BASIC
> interpreter, in which I could list, modify and test-run sections of
> code, to see the effects of tweaks, without having to save it each time,
> or re-typing it over and over (I haven't even worked out how to c
Peter Cai wrote:
> Thus, you
> can execute you "py" program anywhere by using the command "xxx.py",
> but when you want to use an exsiting file as it's input, you have to
> use something like "pythong xxx.py < input.txt".
This is apparently a bug or limitation of Windows command prompts and
may n
On Sun, 03 Jul 2005 08:14:28 -0700, Scott David Daniels wrote:
> egbert wrote:
>> On Sat, Jul 02, 2005 at 08:26:31PM -0700, Devan L wrote:
>>
>>>Also, map is easily replaced.
>>>map(f1, sequence) == [f1(element) for element in sequence]
>>
>> How do you replace
>> map(f1,sequence1, sequence2)
>>
What is the best way to use regular expressions to extract information
from the internet if one wants to search multiple pages? Let's say I
want to search all of www.cnn.com and get a list of all the words that
follow "Michael."
(1) Is Python the best language for this? (Plus is it time-efficient?
Hi,
Has anybody already implemented a full ANSI C parser
with John Aycock's spark module ?
(spark : http://pages.cpsc.ucalgary.ca/~aycock/spark/)
Cheers,
SB
--
http://mail.python.org/mailman/listinfo/python-list
Carl Banks wrote:
> Listcomps et al. cannot do everything map, lambda, filter, and reduce
> did. Listcomps are inferior for functional programming. But, you see,
> functional is not the point. Streamlining procedural programs is the
> point, and I'd say listcomps do that far better, and without
Scott David Daniels wrote:
> egbert wrote:
>> How do you replace
>> map(f1,sequence1, sequence2)
>> especially if the sequences are of unequal length ?
>>
>> I didn't see it mentioned yet as a candidate for limbo,
>> but the same question goes for:
>> zip(sequence1,sequence2)
>
> OK, you guys are
[EMAIL PROTECTED] wrote:
> What is the best way to use regular expressions to extract information
> from the internet if one wants to search multiple pages? Let's say I
> want to search all of www.cnn.com and get a list of all the words that
> follow "Michael."
>
> (1) Is Python the best language
Steven D'Aprano wrote:
> Frankly, I find this entire discussion very surreal. Reduce etc *work*,
> right now. They have worked for years. If people don't like them, nobody
> is forcing them to use them. Python is being pushed into directions which
> are *far* harder to understand than map and reduc
On Sat, 02 Jul 2005 12:26:49 -0700, Scott David Daniels <[EMAIL PROTECTED]>
wrote:
>Bengt Richter wrote:
>> On Thu, 30 Jun 2005 08:54:31 -0700, Scott David Daniels <[EMAIL PROTECTED]>
>> wrote:
>>>Or, perhaps:
>>>class foo(object):
>>>def __init__(self, *args, **kwargs):
>>>
On Sun, 03 Jul 2005 14:43:14 -0400, Peter Hansen <[EMAIL PROTECTED]> wrote:
>Steven D'Aprano wrote:
>> Frankly, I find this entire discussion very surreal. Reduce etc *work*,
>> right now. They have worked for years. If people don't like them, nobody
>> is forcing them to use them. Python is being
Python would be good for this, but if you just want a chuck an rumble
solution might be.
bash $wget -r --ignore-robots -l 0 -c -t 3 http://www.cnn.com/
bash $ grep -r "Micheal.*" ./www.cnn.com/*
Or you could do a wget/python mix
like
import sys
import re
sys.os.command("wget -r --ignore-robots
anthonyberet wrote:
> My question isn't as all-encompassing as the subject would suggest...
>
> I am almost a Python newbie, but I have discovered that I don't get
> along with IDLE, as i can't work out how to run and rerun a routine
> without undue messing about.
>
> What I would really like is
On Sun, 3 Jul 2005, George Sakkis wrote:
> "Tom Anderson" <[EMAIL PROTECTED]> wrote:
>
And finally, does Guido know something about arithmetic that i don't, or
is this expression:
-1.0 ** 0.5
Evaluated wrongly?
>>>
>>> No, it is evaluated according to the rules of pre
On 3 Jul 2005 10:49:03 -0700, [EMAIL PROTECTED] wrote:
>What is the best way to use regular expressions to extract information
>from the internet if one wants to search multiple pages? Let's say I
>want to search all of www.cnn.com and get a list of all the words that
>follow "Michael."
>
>(1) Is P
hey there,
i need to be able to get the index for an item in a list.
the list is a list of lines read from a text file.
like this:
file = open("/home/somefile.text", "r")
lines = file.readlines()
file.close()
now, i want to see if a certain string is == to one of the lines
and if so, i need to k
On Sun, 03 Jul 2005 11:47:07 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>On Fri, 01 Jul 2005 12:59:20 -0400, François Pinard wrote:
>
>> [Peter Hansen]
>>> Mike Meyer wrote:
>>> > Yes. I once grabbed an old program that did assignments to None. But
>>> > that's always been a bad idea.
>>
>
On 7/2/05, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
> A.M. Kuchling wrote:
> > For anyone who's interested: the Python wiki now contains a list of the
> > PSF-mentored proposals that were accepted for Google's Summer of Code:
> > http://wiki.python.org/moin/SummerOfCode
>
> Is it right
Ilpo Nyyssönen napisał(a):
>>>Is there any way of keeping this info in PIL?
>>
>>I don't think so... when I investigated in the past, I think I
>>discovered that the PIL can't write EXIF data (I might be wrong,
>>though, or my information might be outdated).
>
> There is this:
>
> http://mail.py
On Sun, 3 Jul 2005, Tim Peters wrote:
> [Fredrik Johansson]
>
I'd rather like to see a well implemented math.nthroot. 64**(1/3.0)
gives 3.9996, and this error could be avoided.
>
> [Steven D'Aprano]
>> math.exp(math.log(64)/3.0)
>>> 4.0
>>>
>>> Success!!!
>
> None of this
[EMAIL PROTECTED] wrote:
> i need to be able to get the index for an item in a list.
> any ideas?
Fire up the interactive interpreter and learn to use it to help
yourself. In this case, the most useful thing might be to know about
the dir() builtin method, which you can use on a list like so:
Erik Max Francis wrote:
> Ron Adam wrote:
>> I'm just estimating, but I think that is the gist of adding those two
>> in exchange for reduce. Not that they will replace all of reduce use
>> cases, but that sum and product cover most situations and can be
>> implemented more efficiently than u
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> hey there,
> i need to be able to get the index for an item in a list.
> the list is a list of lines read from a text file.
>
> like this:
>
> file = open("/home/somefile.text", "r")
> lines = file.readlines()
> file.close()
>
> now, i
Peter Decker wrote:
> On 7/2/05, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
>>Is it right that two Wax proposals were accepted?
>
> Or that Wax is being promoted over Dabo
"Promoted"? Do you know if any Dabo proposals were even made? And how
good the proposals were?
The money goes to thos
In article <[EMAIL PROTECTED]>,
Peter Hansen <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > i need to be able to get the index for an item in a list.
>
> > any ideas?
>
> Fire up the interactive interpreter and learn to use it to help
> yourself. In this case, the most useful thing
Peter Decker wrote:
> On 7/2/05, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
>
>>A.M. Kuchling wrote:
>>
>>>For anyone who's interested: the Python wiki now contains a list of the
>>>PSF-mentored proposals that were accepted for Google's Summer of Code:
>>> http://wiki.python.org/moin/Summ
Roy Smith wrote:
> That being said, index() isn't isn't going to work if there are duplicate
> lines in the file; it'll return the index of the first one.
It will still work, if you are willing to do a bit of work to help it:
>>> l = range(10) + [5]
>>> l
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 5]
>>>
On Sat, 02 Jul 2005 13:50:25 GMT, "Andrew Koenig" <[EMAIL PROTECTED]> wrote:
>"Ralf W. Grosse-Kunstleve" <[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]
>
>>class grouping:
>>
>>def __init__(self, .x, .y, .z):
>># real code right here
>
>> Emulation using exis
Peter Hansen wrote:
> anthonyberet wrote:
> > What I would really like is something like an old-style BASIC
> > interpreter, in which I could list, modify and test-run sections of
> > code, to see the effects of tweaks, without having to save it each time,
> > or re-typing it over and over (I hav
On Mon, 4 Jul 2005, Steven D'Aprano wrote:
> On Sun, 03 Jul 2005 15:46:35 +0100, Tom Anderson wrote:
>
>> I think there would be a lot less confusion over the alleged inaccuracy of
>> floating point if everyone wrote in hex - indeed, i believe that C99 has
>> hex floating-point literals. C has alw
On Sat, 2 Jul 2005 19:44:19 -0400, Tim Peters <[EMAIL PROTECTED]> wrote:
>[Peter Hansen]
>> Hmmm... not only that, but at least under XP the return value of
>> time.time() _is_ UTC. At least, it's entirely unaffected by the
>> daylight savings time change, or (apparently) by changes in time zone.
"Colin J. Williams" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Terry Reedy wrote:
>>
>> A couple of times, Guido has given his general policy as generally
>> useful;
>> best-of-breed, tested and accepted by the community; and backed by a
>> developer who will adapt it and its
On 7/3/05, Robert Kern <[EMAIL PROTECTED]> wrote:
> I would suggest not speculating on biased or malicious intentions. It is
> possible that no one applied with a proposal to work on Dabo, or that
> such a proposal was poorly written, or that the author had too little
> experience, or any number o
Christopher Subich <[EMAIL PROTECTED]> writes:
> That, and the file format definitely isn't robust to bit-rot that
> happened too often on FAT16/32 filesystems.
>From where I sit, the critical difference between the registry and a
set of .ini files (or Unix rc files) is that the registry requires
Hey, thanks, this has worked out for me.
i am trying to do as much of this as possible in IDLE because
it lets me know on the fly what is messed up.
thanks for your help
shawn <><
--
http://mail.python.org/mailman/listinfo/python-list
Tom Anderson wrote:
> On Sun, 3 Jul 2005, George Sakkis wrote:
>
>> "Tom Anderson" <[EMAIL PROTECTED]> wrote:
>>
> And finally, does Guido know something about arithmetic that i
> don't, or
> is this expression:
>
> -1.0 ** 0.5
>
> Evaluated wrongly?
No
"Chris Stiles" <[EMAIL PROTECTED]> wrote:
> Hi --
>
> I was wondering if anyone had a list of the various (presuming more than one)
> Python tasking frameworks? I know of Twisted already, but I'm really looking
> for something along the lines of a task/thread pool type of arrangement. I
> see th
"Peter Decker" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>> Is it right that two Wax proposals were accepted?
>
> Or that Wax is being promoted over Dabo, which wraps wxPython just as
> elegantly in its UI tier, and which is further along (more controls
> supported) than Wax, i
Am Sun, 03 Jul 2005 13:40:04 -0400 schrieb Peter Hansen:
> I do all my work using Scite (a nice free editor that was built to
> demonstrate the Scintilla plugin that can also be used in Python
> programs through things like the StructuredTextControl in wxPython),
> with the auto-save-on-loss-of
"jwaixs" <[EMAIL PROTECTED]> writes:
> If I should put the parsedwebsites in, for example, a tablehash it will
> be at least 5 times faster than just putting it in a file that needs to
> be stored on a slow harddrive. Memory is a lot faster than harddisk
> space. And if there would be a lot of peo
1 - 100 of 163 matches
Mail list logo