phil hunt wrote:
> On Sat, 03 Sep 2005 00:45:19 -0500, Steve Holden <[EMAIL PROTECTED]> wrote:
>
>>>I'm not talking about a change in *paradigm* merely a change in
>>>*syntax*; this:
>>>
>>> receiver selector argu
amDialog(frame)
d1.Show()
d2.Show()
d3.Show()
return True
if __name__ == '__main__':
app = MyApp(0)
app.MainLoop()
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
is the screen. The sub-process forked by os.system inherits
stdin stdout and stderr from the invoking process.
This is all pretty basic stuff. Perhaps you should stop your verbal
assault on the computer science community and start to learn the
principles of what you are doing.
regards
Steve
--
Ste
t='Quit', command=ROOT.quit)
qBut.grid(row=1, column=2, pady=2, padx=2, sticky=E)
iLab = Label(ROOT, textvariable=infVar, width=21,
relief=SUNKEN, anchor=W)
iLab.grid(row=2, column=0, columnspan=3)
set_info(None) # example to show what will be displayed.
ROOT.mainloop()
End Example
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
> Steve Holden wrote:
>
>>This is all pretty basic stuff. Perhaps you should stop your verbal
>>assault on the computer science community and start to learn the
>>principles of what you are doing.
>
>
> is this a supressed behavior that a human a
Aahz wrote:
> In article <[EMAIL PROTECTED]>,
> Steve Holden <[EMAIL PROTECTED]> wrote:
>
>>Bear in mind that the PSF made its very first grants last year. The
>>reason none of those grants was awarded to a documentation project was
>>that the (volunte
ing sensible error messages.
One further possibility is that Apache is using an older Python by
default: byte codes vary from version to version, so something horrible
might be happening as mod_python tries to execute, but that seems a bit
far-fetched when you've got so far. I seem to remembe
Peter Hansen wrote:
> Steve Holden wrote:
>
>>and the day managers stop being ignorant we'll all be able to fly around
>>on pigs. Not wishing to offend the pigs, of course.
>>
>>still-working-for-myself-ly y'rs - steve
>
>
> What Steve mea
r
deal with the Python that exists now than wrap my head around this
particular suggestion.
>
> Actually, a[1 : -1] is how you get to drop the first and
> last characters today. I suspect you knew this and were
> just a bit in a hurry criticizing a lame-brained scheme.
>
Y
ectory (standard on Windows, with source on other platforms) you can
take a look at the ftpmirror script - a fairly recent version can be seen at
http://weblog.cs.uiowa.edu/python-2.3.1/Tools/scripts/ftpmirror.py
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web L
eftClick)
Panel=wx.Panel(self)
to
Panel=wx.Panel(self)
Panel.Bind(wx.EVT_LEFT_DOWN, self.OnLeftClick)
Panel.Bind(wx.EVT_LEFT_UP, self.OnLeftClick)
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
y should.
>
> 2. Using base one negative index's and picking item from the right
> of negative index's instead of the right.
>
>
> They don't both need to implemented, Item 1 could be fixed in 2.5.
>
Given that Python has a 1's-complemen
Paul Rubin wrote:
> Steve Holden <[EMAIL PROTECTED]> writes:
>
>>Given that Python has a 1's-complement operator already I don;t see
>>why you can't just leave Python alone and use it,
>
>
> What's the meaning of the 1's complement operator
Ron Adam wrote:
> Steve Holden wrote:
>
>
>>It's a common misconception that all ideas should be explainable simply.
>>This is not necessarily the case, of course. When a subject is difficult
>>then all sorts of people bring their specific misconceptions to t
;) is on your path (which you can see
with the command
echo $PATH
in your command shell).
> Thanks a lot. I hope this post isn't too hard to follow; I know I'm
> asking a lot.
>
It's clear you're new to comp.lang.python - this is a perfectly
acceptable request. Hope this answer helps.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
re creating a new one. Python only *ever* uses references, so why
not just use
rec = {}
instead of rec.clear()?
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
SIGINT is defined in the signal module so you probably want
signal.signal(signal.SIGINT, signal.SIG_DFL)
> The file anaconda.real doesn't explicitly execute
> import signal
> but it still somehow knows what signal means (my example session above shows
> that it stops
or pointers.
>>
>>Thanks.
>
>
>
> Okay. It works if I change:
>
> fullink = reg4.search(str(cleanlink))
> if fullink:
> linkArray.append(cleanlink)
> else:
> cleanlink2 = str(web
rary numbers that aren't algorithmically related to any
> sensitive data. Answers involving encryption will need to use either
> large ID numbers or secret keys, both of which will cause hassles.
This is indubitably true. There's absolutely no excuse for making the
primary key a
r more quickly.
If you want fast document startup you could consider using the win32all
extensions to create an AcroReader application process in advance of
opening any documents.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
hat you may think from reading certain slicing threads,
> this mailing list is not an argument clinic.
>
Yes it is :)
then-there's-the-£10-argument-next-door-ly y'rs - steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
o add the abstract class, how do you make my example
>>work without explictly converting the iterator to a list type?
>
>
> I don't know how sorted() is implemented? A naive implementation would
> in fact be nothing else then:
>
> def sorted(iter):
> l = list(iter)
&g
eb.archive.org/web/20001119074200/www.python.org/doc/howto/regex-to-re/regex-to-re.html
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
ere should be one (and
preferably only one) obvious way to do it" philosophy, we often end up
with many "competing" solutions to a given problem.
While this can sometimes be tedious, it's probably an overall indication
of Python's health.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
x27;t need any complicated modules
for this fairly simple requirement. If you are wanting to match the
words against each other, or against some pre-exisitng list, you might
want to reduce the input to lower-case first.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
ne is a list of lines, since it
seems improbable that absence of a character should cause a value of
"nothing" to be required.
so-i-say-po-tay-to-ly y'rs - steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
obvious substitution of the correct path. Interestingly I
couldn't quickly formulate a Google search specifically containing
Python, but a search for
unix add to path
gives the quite helpful
http://www.ee.surrey.ac.uk/Teaching/Unix/unix8.html
as its first result.
regards
Stev
then\n<__main__.C object at 0x4e0b6c>'
>>>
Not immediately clear how to extend that to old-style objects since they
aren't as cooperative in making their superclass as readily available.
Unless your needs are specifically for old-style classes I'd suggest
return value.
So basically exceptions allow simplification of program structure with
more effective and simpler error handling. If you read through (for
example) the code you'll find in the standard library and you'll get a
better feel for the usefulness of exceptions.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
;cat', 'window', 'defenestrate']
>
>
> Tim Delaney
I should have thought nowadays
for x in tuple(a):
...
would have been slightly more acceptable, but I'm not the ultimate
arbiter of style.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
x27;, '__module__', '__repr__', 'close',
'fileno',
'fp', 'geturl', 'headers', 'info', 'next', 'read', 'readline',
'readlines', 'ur
l']
>>> print f.read()
...
tries to resolve a name. But the data objects that the names point to
live in what I like to think of as "object space", and in the CPython
implementation are garbage collected when the last pointer to them is
deleted (or, equivalently, goes out of scope).
regards
Steve
--
Steve Hol
to
treat carriage returns as whitespace during its tokenizations. The only
area I would anticipate problems would be string literals containing
end-of-line sequences embedded within triple-quotes.
It would seem to make sense to program the compiler defensively to
ignore embedded "\r"
on at PyCon, whose Call for Proposals recently came out.
Yes folks, next time around it's PyCon TX 2006, see
http://www.python.org/pycon/2006/cfp
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org
--
http://mail.python.org/mailman/listinfo/python-list
n't be putting a "drain" on the
> server.
>
> -Peter
To add one final note, if the "fromaddress" belongs to a domain that's
properly handled by the SMTP server then you aren't relaying (since you
are a legitimate domain user) so the mails sh
close to being on-topic I fear you are
being far more charitable than is justified here. But I *am* getting a
bit fucking tired of his rather limited style of discourse.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.ho
> Pls "CC" replies to [EMAIL PROTECTED] (as well as newsgroup)
> Barry Searle,[EMAIL PROTECTED]
>
Your approach to exception handling is a little simplistic, resulting on
code that reads about as well as a plate of spaghetti.
What are you actually tr
be to maintain a Queue.Queue containing the messages that
need to be sent and, rather than sleeping to retry just retrying when
enough time has elapsed. That way you can keep pumping messages and so
on to your heart's content, though you will have to keep track of the
messages still to be sent.
question shouldn't make sure
(probably by the addition of a .pth file) that the required directory is
added to the search path.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006
[EMAIL PROTECTED], 905-413-4020 (TL:969-4020)
> Barry Searle/Toronto/[EMAIL PROTECTED] (D3/639/8200/MKM)
> "Architect, WebSphere Tools for WsAdmin Scripting and Automated Build "
>
>
>
> *Steve Holden <[EMAIL PROTECTED]>*
>
> 20/09/2005 11:55 A
think I'd rather use the already-engineered ssh solution, relying as
it does on well-thought-out asymmetric encryption. You might want to look at
http://www.ssh.com/support/documentation/online/ssh/winhelp/32/Tunneling_Explained.html
regards
Steve
[or possibly http://www.googleityoumoron.
ere isn't a simpler way to do what you appear to want
to do.
Since you are talking about machine-generated code we can agree not to
care about ugly in terms of source, but I think we should be careful no
to throw the baby out with the bath water here.
Rather than casting yo
hard work on py2exe over the years, which has benefited the Windows
Python community immeasurably.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org
--
http://mail.python.org/mailman/listinfo/python-list
http://www.dbtools.com.br/
The free version is quite acceptable. Then there's SQLManager, at
http://www.sqlmanager.net/
which is also goos for visual database work on MySQL databases. Hope
this helps.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC
vestate.com/Komodo/Trial
>
> Cheers,
> Trent
>
> (*) Disclaimer: I work on Komodo.
>
>
WingWare's Wing IDE can also debug mod_python code. See
http://www.wingware.com/
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC
Peter Hansen wrote:
> Steve Holden wrote:
>
>>Peter Hansen wrote:
>>
>>>In any case, unless the mail server will allow "relaying", which most
>>>don't these days (to prevent spamming), then it won't work the way you
>>&g
et
to you, but others have seen similar claims come and go without major
changes in software methodology.
You might also like to look up "flowchart" in your dictionary ;-)
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org
--
http://mail.python.org/mailman/listinfo/python-list
ne-month evaluation, as with many similar products.
http://www.wingware.com/
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org
--
http://mail.python.org/mailman/listinfo/python-list
the share
from the Windows machine.
There are many other file sharing solutions, and you can of course also
consider using FTP to send the file to the Linux server.
Some ideas to start with, anyway.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC
7;s primary feature
was the introduction of interactive execution modes and immediate
edit/run cycling. The addition of compilation to machine code is a
relatively recent phenomenon for (only some) BASICs, unlike other
high-level languages.
regards
Steve
--
Steve Holden +44 150 684 7255
1. Do not feed the trolls.
2. I offered $100 for a rewrite of the "re" documentation if he could
persuade 5 regular readers of c.l.py to tell me his version was
superior. Emails received: 0. 'Nuff said :-)
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
very
> ugly code.
In which case perhaps you should actually try the code. Then once you
realise it works you can start to figure out why :-). Hint: f(*p1)
appears as len(p1) separate arguments to the called function.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holde
Christophe wrote:
> Steve Holden a écrit :
>
>>Christophe wrote:
>>
>>
>>>Serhiy Storchaka a écrit :
>>>
>>>
>>>>Roel Schroeven wrote:
>>
>>[...]
>>
>>
>>>>>or
>>>>>
>>>&
the ~/.ssh directory for a long time to avoid the need for
lots of little dot files, and this works quite well. Good luck in your
campaign!
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org
--
http://mail.python.org/mailman/listinfo/python-list
am doing wrong?
>
> Thanks
>
> - Kreedz
>
This code works fine for me (once I add an "import wx" at the top).
Python 2.4.1, wxPython 2..5.3.1
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org
--
http://mail.python.org/mailman/listinfo/python-list
s a brilliant way to
show off what modules can do.
As for "Why not foo and bar rather than spam and eggs?", all I can think
of to say is "Get over it".
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org
--
http://mail.python.org/mailman/listinfo/python-list
need to report a bug to the wxPython folks.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org
--
http://mail.python.org/mailman/listinfo/python-list
age this
little change you'd find so convenient would cause.
> On one hand these seem like little things, but little things is
> sometimes what will bite you the hardest as they are more likely to get
> by your guard.
>
Kindly think again about the vast number of times that Pytho
Kreedz wrote:
> Did it freeze for you too with the alt+f while focus on the tab?
>
No, the program appears to work perfectly normally.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon T
t;
> import os
>
> parent = os.path.split(os.path.abspath(os.sys.argv[0]))[0]
> file = parent + os.sep + '.bombz'
>
> Cheers,
> Ron
>
Since you've gone to the trouble to use os.path functions why not use
file = os.path.join(parent, 'bombz')
re
00:00:00.00
2000-01-13 00:00:00.00
2000-01-14 00:00:00.00
2000-01-15 00:00:00.00
2000-01-16 00:00:00.00
2000-01-17 00:00:00.00
2000-01-18 00:00:00.00
2000-01-19 00:00:00.00
2000-01-20 00:00:00.00
>>>
Does this help?
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC www.holdenweb.com
PyCon TX 2006 www.pycon.org
--
http://mail.python.org/mailman/listinfo/python-list
.
Isn't there a saying like ... those who create file-based
databases are destined to re-create a relational database
management system poorly? ;o)
regards
Steve
--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.py
your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
ong-side-of-bed-ly y'rs - steve
--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
let.
regards
Steve
--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
hon and
this newsgroup. Instead, ask yourself why your remarks engender such a
response from a pillar of the Python community. What are your credentials?
regards
Steve
--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
M.E.Farmer wrote:
Steve Holden wrote:
M.E.Farmer wrote:
Jeffrey Borkent
Systems Specialist
Information Technology Services
With that kind of credentials, and the fact that you claim you are
a
system specialists
I don't know you have me worried already.
I guess for you I just say RTFM.
I
Timo Virkkala wrote:
Xah Lee wrote:
is it possible to write python code without any indentation?
1) Why in the name of Xah Lee would you even want to?
2) If you need to ask questions this simple, are you sure you are the
right person to write tutorials?
3) Do you even read the replies you get?
S
Carl wrote:
Dear friends,
What is the ultimate version control tool for Python if you are working in a
Windows environment?
When you work on a Visual C++ project then it's easy, use Visual Source Safe
for your source code! But when it comes to large Python projects and no
universal Python IDE wit
http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
Do Re Mi chel La Si Do wrote:
Hi !
I had also make a Python-COM-server.
But, when I launch several clients, I obtain several instances of my
COM-server.
Finally, there are advantages and disadvantages in this established fact.
But I can't use this way for to exchange data between several clients. F
Jonas Meurer wrote:
On 22/02/2005 Radovan Garabik wrote:
i could write a function to parse the comment and substitute special
chars with the relevant html code, but maybe this already exists in some
module?
just make the page in utf-8, and you'll save you a lot of troubles
ok, how do i do this? si
[EMAIL PROTECTED] wrote:
When I specify an source encoding such as:
# -*- coding: GBK -*-
or
# -*- coding: GB2312 -*-
as the first line of source, I got the following error:
SyntaxError: 'unknown encoding: GBK'
Does this mean Python does not support GBK/GB2312? What do I do?
Well, *your* Python mi
Alec Wysoker wrote:
Hi Andy,
Thanks for your message. It turned out that I had installed 64-bit
mySql on a 32-bit machine. I'm amazed it worked at all. Anyway, I
finally got mysql-python built, but I'm unable to connect to a machine
on a remote host. The problem doesn't seem to be with the pyth
Dennis Lee Bieber wrote:
On Thu, 24 Feb 2005 14:22:59 -, "Richard Brodie" <[EMAIL PROTECTED]>
declaimed the following in comp.lang.python:
"John Machin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Essentially, it should be possible to use a 'packed string' format in
Python, wh
6 to server version: 4.1.10-standard
One would assume that 4.1.0 and 4.1.10 are compatible, no?
Indeed. Sorry I couldn't be of more assistance. I suspected that the
MySQLdb driver was somehow compiled with 4.0-or-earlier client software
- is this possible?
regards
Steve
--
Steve Holden
Michael Hoffman wrote:
[EMAIL PROTECTED] wrote:
my question is i have parsed the xhtml data stream using c
That's not a question. And this is a language for discussing
Python, not C.
Whoa, there! Ease off that trigger-finger, pardner ...
i need to diplay the content present in the command prompt a
Michael Hoffman wrote:
Steve Holden wrote:
Consider that the OP might want to pass the C parser output to a
Python web-content generator, which would make a deal of sense.
You're welcome to guess what the OP wants to do, but I'm not going to.
If he or she asks a coherent questi
in2K SP4, Python 2.4 plus win32 extentions).
regards
Steve
--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
for displaying your ignorance.
that's-my-kind-of-pub-ly y'rs - steve
--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
ython developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
Kartic wrote:
I'm having a problem where when trying to open a file in write mode,
I
get an IOError stating no such file or directory. I'm calling an
external program which takes an input file and produces an output
file
repeatedly, simulating the input file separately for each replicate.
The erro
Raghul wrote:
I think this need some more explanation.Pls help me to understand this
by giving an example.
Thanks in advance
Raghul:
I've seen several (hundred ;-) posts of yours in the past couple of
weeks. It's obvious you are looking for help, but it also seems obvious
that your level of prog
anthonyberet wrote:
Steve Holden wrote:
anthonyberet wrote:
So, is it pronounced 'Tee-Kinter', or 'Tee-Kay-Inter'?
I don't want to appear as a dork down the pub.
If anyone down your pub knows enough about Python to understand what
TKinter is I very much doubt they'l
[EMAIL PROTECTED] wrote:
This is a good way to kick off a tussle among interested parties, but
hinestly, at this point, most packages work fine. In my opinion your
rade-off right now is raw speed (e.g. libxslt) versus flexibility (e.g.
4Suite). All are bug-free enough that you'd have to be doing
Steven Bethard wrote:
Antoon Pardon wrote:
Can anyone explain why descriptors only work when they are an attribute
to an object or class. I think a lot of interesting things one can
do with descriptors would be just as interesting if the object stood
on itself instead of being an attribute to an o
James Stroud wrote:
Say I have a module, we'll call it "my_imported_mod". It contains a function
in it that calls another function, "myfun". The "myfun" function is in the
module "my_main_mod", that imports "my_imported_mod".
The code of "my_main_mod" might look like this:
==
from my
Terry Reedy wrote:
"Douglas Alan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
We can shorten the code--and make it run in O(N) time--by adding a
new
keyword to replace the "for v in ...: yield v" pattern:
Maybe. Until you define the semantics of yield_all and at least out
Andrew Dalke wrote:
Me:
What's wrong with the use of attributes in this case and how
would you write your interface?
Dan Sommers:
I think I'd add a change_temperature_to method that accepts the target
temperature and some sort of timing information, depending on how the
rest of the program and/or
Carl Banks wrote:
[EMAIL PROTECTED] wrote:
[...]
My questions are:
a) Are the three things above considered pythonic?
No. It's not good programming practice in C++, either.
If you have a class that's nothing but a big data structure, you ought
to use it as a data structure. Writing accessor and
at least as good as me (I thought he was better), and life
carried on. If you were to ask a member of the Sun UK User Group now the
name of their second chairman I'd be very surprised if they had any idea
who the hell Steve Holden was. (Historical note: the first chairman was
Chris Brown,
Harlin Seritt wrote:
I've got the following code:
nums = range(0)
for a in range(100):
nums.append(a)
Is there a better way to have num initialized to a list of 100
consecutive int values?
Why not the simplest solution?
a = range(100)
regards
Steve
--
http://mail.python.org/mailman/listinfo/p
e Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
built-in types.
regards
Steve
--
Meet the Python developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
Steven Bethard wrote:
Steve Holden wrote:
Steven Bethard wrote:
Antoon Pardon wrote:
Can anyone explain why descriptors only work when they are an attribute
to an object or class. I think a lot of interesting things one can
do with descriptors would be just as interesting if the object stood
on
name
does not cause two names to be associated wight the same binding. It
copies the current binding from one namespace into the importing
namespace. The two bindings are thereafter independent, so changing the
binding of testPython.x makes no difference to __main__.x.
regards
Steve
--
Meet
o the other useful
things I can do with a proper class, like provide an __init__, __str__,
or __repr__.
That will depend on the value returned by property access, surely?
I suspect you are a little confused about properties and descriptors.
regards
Steve
--
Meet the Python developers an
your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
on developers and your c.l.py favorites March 23-25
Come to PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
o PyCon DC 2005 http://www.pycon.org/
Steve Holden http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
701 - 800 of 4732 matches
Mail list logo