Thomas Bartkus schrieb:
When run under Linux, my wxPython programs follow the look and feel of my
Gnome desktop. When the same program is run on Windows, it follows that
desktop theme. Both Gnome and Windows XP alter the the controls design
according to user preferences. wxPython GUIs reflect thi
Terry Reedy wrote:
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
This *is* a bug (since Guido called it such), but one not yet fixed as
the obvious solution (removing object.__hash__) causes problems for
Jython,
and a non-obvious solution has not been identified.
S
Bengt Richter wrote:
Essentially syntactic sugar to avoid writing id(obj) ? (and to get a little
performance
improvement if they're written in C). I can't believe this thread came from the
lack of such sugar ;-)
The downside of doing it that way is you have no means of getting from the id()
store
Are there any plans for developing a standard IDE for python that's
included with the python installation? I found information about other
IDE's elsewhere online, but couldn't even find any mention of this
possibility.
I'm still relatively new to Python--I switched over from VB--and I
found it dif
M.E.Farmer wrote:
there are no variables in python
While it's true that in Python it's more appropriate to talk about names
and bindings instead of variables and values, there is a parallel, and
you can get a fair distance without having to fully convert to the
names/bindings terminology.
That
>>> So That means blindly using threads on any process won't help!
> It depends on what "help" means to you.
Help means to improve processing speed in achieving a particular
task... *Help* here also means that I have a processor farm, how do I
best use them to get maximum processing speed out of t
It's me wrote:
I guess another example would be an assert on the type of argument:
def foo(someClass):
assert inspect.isclass(someClass)
# rest of code
But that would always fail! (I just tried it).
Are you sure you haven't pass an instance instead of a class? Remember,
classes are also
Thanks for the followup,
I just wanted to mention that you still need to read that stuff thru
several times, because...
there are no variables in python (yea I know others will say otherwise
;)
Yep, I said it, none.
There are NAMES, thats why there are NAMESPACES.
A name is just a reference or 'han
"Gurpreet Sachdeva" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> So That means blindly using threads on any process won't help!
>
It depends on what "help" means to you. Both Windows and Unix (and it's
variances) are considered "thread-weak" OSes. So, using thread will come
LutherRevisited wrote:
> Thanks, yielding has solved all remaining problems I had with this
gui.
Thank you for the followup, glad to have helped.
Study, learn , pass it on.
M.E.Farmer
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 30 Dec 2004 04:46:25 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote:
[...]
>Ok, well, that's happened to me before ;-)
>We'll have to find a way to make it illegal, but it's not likely to be quite
>as clean.
>
>x ..OP y
>x ./OP y
>x .x .. y
>X ._OP_. y
Bzzzt! ;-/
>x
I wrote:
>>> Also the difference of time is not much...
>>> How do we best optimize our task by using threads... please help...
Duncan Booth Wrote:
>The only times when it may result in a decrease
>in the running time... are when the time the task...when
> multiple CPU's are involved.
I fotgot to
Jon wrote:
Obviously I don't need PeekNamedPipe here but I know the pipe has something
in it and wanted to try it out. The code all works fine if I comment out
PeekNamedPipe.
The pipes returned by the win32pipe.popen calls are standard file-like objects,
rather than win32 Named Pipes. The only way
On Thu, 30 Dec 2004 03:55:12 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote:
[.. buncha stuff alzheimersly based on x.attr not being parsed as
x.attr ;-/ ]
> from rational import rat as RAT
>
> if x .RAT. y > 1 .RAT. 3: do_it()
>
>or
> your turn ;-)
>
Andrew got there first ;-)
Still, see my
On Thu, 30 Dec 2004 03:37:38 GMT, Andrew Dalke <[EMAIL PROTECTED]> wrote:
>Bengt Richter:
>> OTOH, there is precedent in e.g. fortran (IIRC) for named operators of the
>> form .XX. -- e.g., .GE. for >= so maybe there could be room for both.
>
>> Hm, you could make
>>
>> x .infix. y
>
>
>>
Steve Holden wrote:
> I've tried a number of these tools, including BlackAdder, wxDesigner,
> wxGlade and BoaConstructor. I even paid money for some of them.
I have also tried each of these and paid money for the first two. My
personal favorite is wxDesigner. It is very polished and worth every
On Wed, 29 Dec 2004 13:11:43 -0500, Steve Holden <[EMAIL PROTECTED]> wrote:
>Mike Meyer wrote:
>
>> [EMAIL PROTECTED] writes:
>>
>>
>>>@infix
>>>def interval(x, y): return range(x, y+1) # 2 parameters needed
>>>
>>>This may allow:
>>>assert 5 interval 9 == interval(5,9)
>>
>>
>> I don't like t
Hi
Im 22 and I really need someone to take care of me. Please take a look at my
home page, you can email me and maybe we could get in touch and have some fun.
My home page is herehttp://www.sonicboards.com/dianehome.htm -
Please get in touch soon :)
Nicolas,
Thanks for the response. Please see comment below.
"Nicolas Fleury" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > an_instance=Abc()
>
> > But what good is that? Of course I know Abc is a class, why would I
want to
> > inspect it so that it would tell me what I already
Bengt Richter:
> OTOH, there is precedent in e.g. fortran (IIRC) for named operators of the
> form .XX. -- e.g., .GE. for >= so maybe there could be room for both.
> Hm, you could make
>
> x .infix. y
> x .op1. y .op2. z => op2(op1(x, y), z)
The problem being that that's already legal s
an_instance=Abc()
But what good is that? Of course I know Abc is a class, why would I want to
inspect it so that it would tell me what I already know?
Well, for no reason in that case. For the same reason you would not
call isinstance(an_instance, Abc) if you already know an_instance is an
ins
Hi,
I have the following situation where I only open the file on the Search
class (where it should be used more often) and I want to reutilize search
methods to find the exact location of where the changes should occur. In
code terms, I have something like:
Few questions. I have a module "combin" which contains "Combin" and "Prob"
classes. This is the "Prob" class:
class Prob:
def binprob(self,n,k,p):
fewerthan = sum([Combin().kcomb(n,i)*((p**i)*(1-p)**(n-i)) for i in
range(k)])
exact = Combin().kcomb(n,k)*((p**k)*(1-p)**(n-k))
> "Squirrel" == Squirrel Havoc <[EMAIL PROTECTED] (takeout) (takeout)>
> writes:
Squirrel> Hello. I am sorry if this has been asked before, but I
Squirrel> am new here.
Welcome
Squirrel> If I recall correctly, Python can be used as a scripting
Squirrel> language for othe
Thanks, yielding has solved all remaining problems I had with this gui.
--
http://mail.python.org/mailman/listinfo/python-list
Torsten Mohr <[EMAIL PROTECTED]> writes:
> i tried to find the file and line in the C sources of python
> where the command "import" is implemented. Can anybody give
> me some hint on this?
Well, there are several levels, depending on what you are looking for.
The literal "import" syntax in a so
Just looking it appears you are trying to install SPE in Python24, which I
don't think will work. Myself I'm still on Python23 because IDEs haven't
caught up yet. I believe if you put Python23 in and install it there it will
work. On another note you may want to get Boa-constructor instead. Not
On Wed, 29 Dec 2004 11:42:00 -0600, Mike Meyer <[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] writes:
>
>> @infix
>> def interval(x, y): return range(x, y+1) # 2 parameters needed
>>
>> This may allow:
>> assert 5 interval 9 == interval(5,9)
>
>I don't like the idea of turning words into operators.
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz)
wrote:
> In article <[EMAIL PROTECTED]>,
> Roy Smith <[EMAIL PROTECTED]> wrote:
> >In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz)
> >wrote:
> >> In article <[EMAIL PROTECTED]>,
> >> Roy Smith <[EMAIL PROTECTED]> wrote:
> >>>In
I haven't play with the thread stuff in Python (yet) but in general terms
(from a C mind), one should not expect read/write actions to be sequential
across threads. I would assume the Python threads eventually goes back to
some system calls for thread handling. If that were the case, you should
In article <[EMAIL PROTECTED]>,
Roy Smith <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz)
>wrote:
>> In article <[EMAIL PROTECTED]>,
>> Roy Smith <[EMAIL PROTECTED]> wrote:
>>>In article <[EMAIL PROTECTED]>,
>>> Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
Assuming your program is written in C/C++, I would recommend that you start
with SWIG.
http://www.swig.org
You can play around with that as a start. If later you decided that SWIG is
not for you, you can always do it natively. There are plenty of
information at www.python.org.
"Squirrel Havoc
Hello. I am sorry if this has been asked before,
but I am new here.
If I recall correctly, Python can be used as a
scripting language for other programs, as if
the program had a builtin Python interpreter.
I wish to extend my programs by making them
scriptable with Python scripts.
Is this possib
free ebook python download at http://www.free-
itebooks.com/free_ebook_python_free_ebooks_python
Ebook is splitted in 1 mb each for ease download
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the responses! And sorry for the late reply, I had to force
myself away from the computer for a day.
M.E.Farmer,
Yes I've been having a little bit of trouble with name spaces, but this
self thing is actually starting to make sense the more I think about it
-- I hadn't thought too much a
Alex Martelli wrote:
Fernando Perez <[EMAIL PROTECTED]> wrote:
A mention of the particular problems with numarray might be a good idea, so
that readers are aware of Numeric and where it may still be preferable to
numarray, but with the understanding that it's a (shrinking) niche. Hopefully
one da
I discovered the hardway what inspect.isclass() is doing. Consider this no
brainer code:
###
import inspect
class Abc:
def Hello(self):
return
an_instance=Abc()
print inspect.isclass(an_instance)
###
It took me a while to understand how I can get inspect.isclass to return a
True (l
hello all,
I am planning to start coding a nanoscale design software in
python with QT interface.I have to do this in windows or linux.Intially
windows would be fine.
I have struggled almost full day today trying to make
from import qt *
execute...I have the basic python cor
Hello,
The Tkinter OptionMenu widget has me a bit confused. I have set up an
OptionMenu to expand along the X axis as the window expands. What I
find though is that the width of the submenu displaying the list of
items in the menu does not expand.
This is the object I'm talking about:
popup =
Hi,
i tried to find the file and line in the C sources of python
where the command "import" is implemented. Can anybody give
me some hint on this?
Thanks,
Torsten.
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 29 Dec 2004 22:47:55 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote:
>said>
>
>Bengt Richter wrote:
>> A second time a key may be hashed is when it is used as a lookup key. This
>> can be a reference to
>> the identical key object first used, or it can be a new object. A new object
>> has
I would not think that a generic deepcopy would work for all cases. An
object can be as simple as a number, for instance, but can also be as
complex as the universe. I can't imagine anybody would know how to copy a
complex object otherthen the object itself.
I always think that a well designed
LutherRevisited wrote:
This may be a dumb question, but are there any practical advantages of
compiling a python application to *.pyo, or *.pyc? I haven't noticed any
difference in the performance of text *.py or a bytecompiled file.
The main script is generally not compiled, but all imported
scri
Mike Meyer wrote:
Python's threading models is pretty primitive. You get the C
model (which is error-prone), the Java model (in 2.4, and also
error-prone), or Queues.
Can you please expand on your words above? I have no idea
what you are talking about with the "Java model" and your
implication tha
LutherRevisited wrote:
This may be a dumb question, but are there any practical advantages of
compiling a python application to *.pyo, or *.pyc? I haven't noticed any
difference in the performance of text *.py or a bytecompiled file.
For a large application, the startup cost may be noticable, as i
Dnia 29 Dec 2004 23:57:14 GMT, LutherRevisited napisał(a):
> I haven't noticed any difference in the performance of text *.py
> or a bytecompiled file.
Importing modules works faster.
--
JZ ICQ:6712522
http://zabiello.com
--
http://mail.python.org/mailman/listinfo/python-list
This may be a dumb question, but are there any practical advantages of
compiling a python application to *.pyo, or *.pyc? I haven't noticed any
difference in the performance of text *.py or a bytecompiled file.
--
http://mail.python.org/mailman/listinfo/python-list
I would like to exclude some files from Plone control within the same
virtual host. The problem is, I cannot use mod_rerwite because Plone needs
mod_proxy for working correctly. So the following rule does not work for
*.php files at all:
RewriteEngine on
RewriteRule \.php - [L]
ProxyPass /
http://
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Alex Martelli) wrote:
>Russell E. Owen <[EMAIL PROTECTED]> wrote:
>
>> In article <[EMAIL PROTECTED]>,
>> [EMAIL PROTECTED] (Alex Martelli) wrote:
>>
>> >I'm considering proposing to O'Reilly a 2nd edition of "Python in a
>> >Nutshell", that I'
David M. Cooke wrote:
Ideally, I think the better way is if getattr, when raising
AttributeError, somehow reused the old traceback (which would point
out the original problem). I don't know how to do that, though.
Maybe a solution could be to put the attribute name in the
AttributeError exception
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz)
wrote:
> In article <[EMAIL PROTECTED]>,
> Roy Smith <[EMAIL PROTECTED]> wrote:
> >In article <[EMAIL PROTECTED]>,
> > Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
> >>
> >> >>+<< being an operator
> >
> >Looks more like a smiley for "gu
On Sat, 25 Dec 2004 11:37:42 +0100, Georg Brandl <[EMAIL PROTECTED]>
wrote:
>what features would you expect of a Python package manager, similar to
>CPAN or rubygems?
IMVHO it would be nice if it had a feature for "upload package/module
I have just developed" - maybe PyPi would fill up faster if
John Roth wrote:
"Roy Smith" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
If Python had originally been invented in a unicode world, I suppose we
wouldn't have this problem. We'd just be using guillemots for tuples
(and have keyboards which made it easy to type them).
I suppose t
RM <[EMAIL PROTECTED]> wrote:
> What you say is true. However, I didn't think the target audience of
> this book was newbies. Python newbies yes, but not programming
> newbies. For programming newbies I would recommend the "Learning
> Python" book instead.
Sure (or any of the other excellent t
On 2004-12-29, Dan Sommers <[EMAIL PROTECTED]> wrote:
> They're guillemets (with an "e"); this is a [relatively] well-known
> Adobe SNAFU.
Ah. Googling for "guillemots punctuation" did turn up enough
hits that it didn't occur to me that I was using the wrong
spelling.
--
Grant Edwards
Grig Gheorghiu <[EMAIL PROTECTED]> wrote:
> As a tester, my vote goes to extending the "Testing" subsection of the
> "Testing, debugging and optimizing". I'd like to see more testing tools
> discussed there. Maybe py.test, PyFIT, and possibly others.
Thanks! Very helpful input. Testing surely
RM <[EMAIL PROTECTED]> wrote:
> Alex Martelli wrote:
> > I still
> > believe Tkinter coverage is going to help more readers.
>
> Alex,
>
> I know this can be a can of worms. But honestly, I wonder what do you
> base that idea on.
Availability, simplicity, stability, to name three reasons. The
In article <[EMAIL PROTECTED]>,
Alex Martelli <[EMAIL PROTECTED]> wrote:
>Aahz <[EMAIL PROTECTED]> wrote:
>> In article <[EMAIL PROTECTED]>,
>> Alex Martelli <[EMAIL PROTECTED]> wrote:
>>>
>>>Hmmm - have you looked at Deitel, Deitel, Liperi, Wiedermann, "Python
>>>how to program", chapters 18 (Proc
In article <[EMAIL PROTECTED]>,
Roy Smith <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>,
> Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
>>
>> >>+<< being an operator
>
>Looks more like a smiley for "guy wearing a bowtie"
You know Ben Yalow?
--
Aahz ([EMAIL PROTECTED]) <*
c d saunter <[EMAIL PROTECTED]> wrote:
> Probably not a practical sugestion, but have you considered
> ctypes? I know it's proved invaluable to our group at university - we
> like to make Python work with so many bits of weird hardware with vendor
> supplied libraries etc ...
Yes, I was c
On Wed, Dec 29, 2004 at 07:57:53PM -0200, Gabriel Cosentino de Barros wrote:
> i'm writting an app to display images without X... i'm scared just to think
> about writting it in C... The hardware won't run X. and the CPU is very
> humble, around 20Mhz (and it must have fade outs). it run a minimali
Russell E. Owen <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] (Alex Martelli) wrote:
>
> >I'm considering proposing to O'Reilly a 2nd edition of "Python in a
> >Nutshell", that I'd write in 2005, essentially to cover Python 2.3 and
> >2.4 (the current 1st editi
What you say is true. However, I didn't think the target audience of
this book was newbies. Python newbies yes, but not programming
newbies. For programming newbies I would recommend the "Learning
Python" book instead.
The availability argument, however, is a good point.
--
http://mail.python.
Fernando Perez <[EMAIL PROTECTED]> wrote:
> Alex Martelli wrote:
>
> > the coverage of Twisted and adding just a few things (numarray --
> > perhaps premature to have it _instead_ of Numeric, though; dateutils,
>
> You might want to keep in touch with the scipy/numarray gang on this
> particular
<[EMAIL PROTECTED]> wrote:
> As a Python beginner, I had a difficult time with the section on
> "Slicing a sequence" (p. 47). In particular, a better explanation and
> examples of negative indicies would be helpful.
Good point, thanks.
> This is nitpicking in what I consider to be a very good
Craig Ringer <[EMAIL PROTECTED]> wrote:
> On Wed, 2004-12-29 at 23:54, Thomas Heller wrote:
>
> > I found the discussion of unicode, in any python book I have, insufficient.
>
> I couldn't agree more. I think explicit treatment of implicit
> conversion, the role of sysdefaultencoding, the u'' co
RM wrote:
Alex Martelli wrote:
I still
believe Tkinter coverage is going to help more readers.
Alex,
I know this can be a can of worms. But honestly, I wonder what do you
base that idea on.
-Ruben
Tkinter is a part of the Python core, and so will be available to the
majority of beginners. Tkinte
Aahz <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> Alex Martelli <[EMAIL PROTECTED]> wrote:
> >
> >Hmmm - have you looked at Deitel, Deitel, Liperi, Wiedermann, "Python
> >how to program", chapters 18 (Process Management) and 19
> >(Multithreading), pages 613-687? They seem to do
As a tester, my vote goes to extending the "Testing" subsection of the
"Testing, debugging and optimizing". I'd like to see more testing tools
discussed there. Maybe py.test, PyFIT, and possibly others.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Dan Sommers wrote:
On 29 Dec 2004 21:03:59 GMT,
Grant Edwards <[EMAIL PROTECTED]> wrote:
On 2004-12-29, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
Perl6 experiments with the use of guillemots as part of the syntax.
As if Perl didn't look like bird-tracks already...
http://www.seabird.org/educa
I got an evaluation version of Qt for Windows and installed PyQt.
However, it gives me this error message:
"ImportError: DLL load failed:"
It doesn't seem to see the "qt-mteval" DLL, even though I made
sure that the paths to "lib" and "bin" subfolders of Qt are there in
the PATH.
I installed Qt
Alex Martelli wrote:
> I still
> believe Tkinter coverage is going to help more readers.
Alex,
I know this can be a can of worms. But honestly, I wonder what do you
base that idea on.
-Ruben
--
http://mail.python.org/mailman/listinfo/python-list
Brian
I am so thankful for your reply and for Alex's and everyone else's on
this thread. (See my reply to Alex.) This email may seem minor but it
was bugging me for months. You just
pointed out what I should have remembered on my own...
*<>'s wouldn't have been a perfect choice because they wo
Title: vga output
i'm writting an app to display images without X... i'm scared just to think about writting it in C... The hardware won't run X. and the CPU is very humble, around 20Mhz (and it must have fade outs). it run a minimalisc OpenBSD kernel.
Anyone already did something similar and
> There just isn't enough
> neat-looking punctuation in the ASCII character set.
Alex
I can't thank you enough for your reply and for everyones' great info
on this thread. The end of your email gave a rock solid reason why it
is impossible to improve upon ()'s for tuples
*There simply isn't
On 29 Dec 2004 21:03:59 GMT,
Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2004-12-29, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
Perl6 experiments with the use of guillemots as part of the syntax.
>>>
>>> As if Perl didn't look like bird-tracks already...
>>>
>>> http://www.seabird.org
Steven Bethard wrote:
Fernando Perez wrote:
Steven Bethard wrote:
Fernando Perez wrote:
Steven Bethard wrote:
I get the correct output, but if you run this yourself, you'll see
that
the numbers 1 through 10 aren't printed in sync with the writes (i.e.
every half second); they're all printed at t
Alex Martelli ([EMAIL PROTECTED]) wrote:
: I'm considering proposing to O'Reilly a 2nd edition of "Python in a
: Nutshell", that I'd write in 2005, essentially to cover Python 2.3 and
: 2.4 (the current 1st edition only covers Python up to 2.2).
: So, if there's any advice or request about a 2nd e
On 2004-12-29, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
>>> Perl6 experiments with the use of guillemots as part of the syntax.
>>
>> As if Perl didn't look like bird-tracks already...
>>
>> http://www.seabird.org/education/animals/guillemot.html
>> http://www.birdguides.com/html/vidlib/sp
In article <[EMAIL PROTECTED]>,
Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
> >>+<< being an operator
Looks more like a smiley for "guy wearing a bowtie"
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Alex Martelli) wrote:
>I'm considering proposing to O'Reilly a 2nd edition of "Python in a
>Nutshell", that I'd write in 2005, essentially to cover Python 2.3 and
>2.4 (the current 1st edition only covers Python up to 2.2).
>...
Since you were k
On Wed, 29 Dec 2004 16:41:23 +0100, Alex Martelli wrote:
>
> Hmmm, well, the concepts are reasonably independent of the programming
> language involved. If anything, threads and processes may be more tied
> to whatever _operating system_ you're using. A very fundamental but
> good introduction t
Fernando Perez wrote:
Steven Bethard wrote:
Fernando Perez wrote:
Steven Bethard wrote:
I get the correct output, but if you run this yourself, you'll see that
the numbers 1 through 10 aren't printed in sync with the writes (i.e.
every half second); they're all printed at the end. Could someone
Grant Edwards wrote:
> On 2004-12-29, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
>
>> Perl6 experiments with the use of guillemots as part of the syntax.
>
> As if Perl didn't look like bird-tracks already...
>
> http://www.seabird.org/education/animals/guillemot.html
> http://www.birdguides
Raymond Hettinger wrote:
[Steven Bethard] I'm just suggesting that in a function with a
*args in the def, the args variable be an iterator instead of
a tuple.
So people would lose the useful abilities to check len(args) or extract
an argument with args[1]?
No more than you lose these abilities wi
[EMAIL PROTECTED] wrote:
Why tuples use parentheses ()'s instead of something else like <>'s?
>
> Please enlighten me as I really want to know.
So to summarize:
Commas define tuples, except when they don't, and parentheses are only
required when they are necessary.
I hope that clears up any confu
Steven Bethard wrote:
> Fernando Perez wrote:
>> Steven Bethard wrote:
>>
>>
>>>I get the correct output, but if you run this yourself, you'll see that
>>>the numbers 1 through 10 aren't printed in sync with the writes (i.e.
>>>every half second); they're all printed at the end. Could someone
>
On 2004-12-29, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote:
> Perl6 experiments with the use of guillemots as part of the syntax.
As if Perl didn't look like bird-tracks already...
http://www.seabird.org/education/animals/guillemot.html
http://www.birdguides.com/html/vidlib/species/Uria_aalge.
"Mike Meyer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Steve Holden <[EMAIL PROTECTED]> writes:
>> Well, perhaps you can explain how a change that's made at run time
>> (calling the decorator) can affect the parser's compile time behavior,
>> then. At the moment, IIRC, the onl
[Steven Bethard] I'm just suggesting that in a function with a
> *args in the def, the args variable be an iterator instead of
> a tuple.
So people would lose the useful abilities to check len(args) or extract
an argument with args[1]?
Besides, if a function really wants an iterator, then its si
"Steven Bethard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'll second that. Please, "Bearophile", do us the courtesy of checking
>
> (1) Google groups archive of the mailing list:
> http://groups-beta.google.com/group/comp.lang.python
>
> and
>
> (2) The Python Enhancement P
Roy Smith wrote:
> "John Roth" <[EMAIL PROTECTED]> wrote:
>> > If Python had originally been invented in a unicode world, I suppose we
>> > wouldn't have this problem. We'd just be using guillemots for tuples
>> > (and have keyboards which made it easy to type them).
>>
>> I suppose the forces of
On Wed, 29 Dec 2004 13:37:22 -0600, Thomas Bartkus <[EMAIL PROTECTED]> wrote:
>"Jarek Zgoda" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Cameron Laird wrote:
> >
> > Well, while on Windows "native" look exists, on X11 "native" has other
> > meaning. On my wife's desktop it's K
Mike Meyer wrote:
Steve Holden <[EMAIL PROTECTED]> writes:
[...]
Well, perhaps you can explain how a change that's made at run time
(calling the decorator) can affect the parser's compile time behavior,
then. At the moment, IIRC, the only way Python code can affect the
parser's behavior is in the _
"Jarek Zgoda" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Cameron Laird wrote:
>
> Well, while on Windows "native" look exists, on X11 "native" has other
> meaning. On my wife's desktop it's KDE that is native, GNUStep is native
> on mine and I strongly object calling GTK "native"
"John Roth" <[EMAIL PROTECTED]> wrote:
> > If Python had originally been invented in a unicode world, I suppose we
> > wouldn't have this problem. We'd just be using guillemots for tuples
> > (and have keyboards which made it easy to type them).
>
> I suppose the forces of darkness will forever k
Fernando Perez wrote:
Steven Bethard wrote:
I get the correct output, but if you run this yourself, you'll see that
the numbers 1 through 10 aren't printed in sync with the writes (i.e.
every half second); they're all printed at the end. Could someone
explain to me why this happens, and how (if p
"Nick Coghlan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This *is* a bug (since Guido called it such), but one not yet fixed as
> the obvious solution (removing object.__hash__) causes problems for
> Jython,
> and a non-obvious solution has not been identified.
Since object
You copied an instance, not a class.
Here's an example of attempting to deepcopy a class:
>>> class X: pass
...
>>> import copy
>>> X is copy.deepcopy(X)
Traceback (most recent call last):
File "", line 1, in ?
File "/usr/lib/python2.2/copy.py", line 179, in deepcopy
raise error, \
copy.E
Steven Bethard wrote:
> I get the correct output, but if you run this yourself, you'll see that
> the numbers 1 through 10 aren't printed in sync with the writes (i.e.
> every half second); they're all printed at the end. Could someone
> explain to me why this happens, and how (if possible) I can
1 - 100 of 171 matches
Mail list logo