)poster.
You report, we decide? Fox News has come to usenet?
As always, please do not feed the trolls.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com
kj wrote:
In mailman.1326.1269971785.23598.python-l...@python.org Steve Holden
st...@holdenweb.com writes:
John Nagle wrote:
Chris Rebert wrote:
On Tue, Mar 30, 2010 at 8:40 AM, gentlestone tibor.b...@hotmail.com
wrote:
Hi, how can I write the popular C/JAVA syntax in Python?
Java
.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo/python-list
drivers won't allow substitution of table names.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com
Steven D'Aprano wrote:
On Wed, 31 Mar 2010 22:19:27 -0400, Steve Holden wrote:
I'm the same myself, and I know from personal experience that while I am
(simply?) seeking accuracy and truth it sometimes bugs the hell out of
people ...
By the way, why are we acting as if seeking accuracy
the
function passed as an argument to the decorator.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http
the types you create
yourself.
For efficiency reasons the attributes of the built-ins are stored in a
different way (that's more accessible to the C implementation) than
those of the declared types.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from
of object (which in
Python 3 simply requires you to declare a class! In Python 2 you'd have
to explicitly subclass object, or (equivalently) set your class's
metaclass to type with
__metaclass__ = type
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks
exemplifies that people will
find something else to waste their time on if you don't encourage them
to abuse the ternary operator.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http
like, popen does?
thanks
wk
Subprocess runs another program. It's the program you are running that's
giving the error, Python is merely reporting it.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web
place to store the required data.
regards
Steve
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com
technique in a
program. You might want to consider using functools.wraps to make sure
that the foo function looks right.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http
reasonably well.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo
, but it turns out that for most Python
users (estimate PFTA: 97%) numpy/scipt is esoteric knowledge.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING
really bothered me when I started playing with
python, and it seems kind of at-odds with the one right way to do
things mentality.
That's the Platonic ideal, but the real world is a dirty place and
Python lives firmly in the real world!
regards
Steve
--
Steve Holden +1 571 484 6266
accuracy and truth it sometimes bugs the hell out of
people ...
It's a geek thing.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
soap' I am not talking about the Simple Object Access
Protocol and Being wrong is usually survivable; offending a homicidal
maniac often isn't.
Perhaps I should just add it to the Holden Web course schedule?
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks
, surely now it's time to *show us the squirrels*
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http
a well-known nit-picker (and we are *sometimes*
grateful for it).
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
to
ensure that people didn't aver-use it, thereby reducing the readability
of Python applications. Speaking purely personally I hardly ever use it,
but don't dislike it.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv
judgment, he capitulated.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org
know* you don't need the
parentheses then the parentheses are a very good idea, so I applaud the
example as Pythonic while agreeing that it's ugly. A conditional
expression seems more natural.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta
creation_date
= %s
where id_order = %s''', (new_start_date, 123))
Put single quotes around the first %s in the query.
And in future please tell us exactly what error you are trying to
explain by quoting the traceback exactly.
regards
Steve
--
Steve Holden +1 571 484 6266 +1
to be efficient.
What can I do in order to resolve this issue?
You might try Googling for expandtabs. This isn't a new problem,
though I agree it can be very vexing when it's new to you ;-)
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010
this is not a premature optimization (a question about
which I am currently skeptical) I'd suggest conversion to a list of
pairs rather than a dict.
Can you use zip() on numpy arrays? That would be the easiest way to
create the list of pairs.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800
. It's meant to help.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman
as a starting point, and publish the data you discover.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com
at present.
There's nothing wrong with ignorance (I have a more than adequate supply
of my own), but in encryption it's *very* easy to make mistakes that
render whole systems vulnerable to trivial attack. So you do really need
to know what you are doing.
regards
Steve
--
Steve Holden +1
rather than testing for equality, though this is only a
readability issue, I suspect.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
of Py3k, we are moving towards the third
release, and there is already a substantial body of code and literature
embodying the current syntax.
So you would need to reformulate your proposals to incorporate backward
compatibility.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800
as though you had written
class MyClass:
...
class MyDynClass(object):
...
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
, and its namespace is bound to the
name of the package within the importing program. So if you have code
you want to run when the package is imported, put it there.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv
.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo/python-list
to flatten a list structure? There have been
several discussions about this, which Google will find for you quite easily.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http
kj wrote:
In the last couple of weeks, docs.python.org has been down repeatedly
(like right now). Has anyone else noticed this?
http://downforeveryoneorjustme.com/docs.python.org
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010
trademarks, which you can read at
http://www.python.org/psf/trademarks/
regards
Steve
--
Steve HoldenChairman, Python Software Foundation
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
is running, but you
actually get the same message if you try to start any terminated thread
(including a canceled one), so threads cannot be restarted might be a
better message.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http
Steve Holden wrote:
Alex Hall wrote:
[...]
thread already started implies that the thread is running, but you
actually get the same message if you try to start any terminated thread
(including a canceled one), so threads cannot be restarted might be a
better message.
Or, better still
seconds while checking it out?
And if it's open source there's always the possibility of doing a Mac
port and contributing the code back.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC
to the Python community.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman
to the specific module whose
namespace you want to clear.
I presume this is related to earlier questions about reloading modules?
This is yet another reason why you might want to consider running each
module in its own process each time the user submits it.
regards
Steve
--
Steve Holden +1 571 484
to learn about it; there are
many places where I can put them to good use.
You may well find that namedtuple is faster than what you put together
yourself, as the collections module is implemented in C.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from
Christian Heimes wrote:
Steve Holden wrote:
You may well find that namedtuple is faster than what you put together
yourself, as the collections module is implemented in C.
But namedtuple isn't, Steve. Namedtuple is a class generator that
creates fast and efficient classes.
Ah, right
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo/python-list
expect
sys.stdout.flush()
time.sleep(int(2))
It may just be that the output is being held in buffers until the
program terminates. the fluch() methof pushes it straight out.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta
Steve Holden wrote:
Andrej Mitrovic wrote:
On Mar 17, 6:41 pm, Andrej Mitrovic andrej.mitrov...@gmail.com
wrote:
Hi,
What happened to the sidebar on the left of the documentation website?
It seems to be gone:
http://docs.python.org/py3k/index.html
I found it quite useful since I can
it pass.
Lawrence, if you are so worried perhaps you should consider not using
e-mail any more. It's clearly too dangerous to suit you.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC
script.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo
problem?
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo
. Or is this trivially easy,
and I just don't know enough about pipes?
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com
the return
value of PyObject_Call is?
Thanks!!
moerchendiser2k3
You'll need to use a debugger like gdb that gives you access to the C
stack, I believe.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden
\\site-packages\\wx-2.8-msw-unicode']
$
What am I doing wrong ?
Thanks,
Ron.
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
it magically capable of understanding a Cygwin path
specification.
We have yet to hear why the Cygwin Python isn't acceptable (though one
reason might be the unavailability of 2.6).
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http
(assuming os.path.chdir is ultimately used to change directories)
because it effects the process's (globaL current directory.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http
: in line 3, file test.py: expected an instance of XYZ, no
int...
Could we perhaps see a little bit more of the code? Are you throwing the
exception from within your C code or from the Python calling environment
with a raise statement?
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800
long!
Thanks :)
I guess we'd have to wait a decade or so for a PyCon here
You might be surprised. Python is really taking off right now.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC
, but that is rarely needed for the talks.
tjr
--
http://mail.python.org/mailman/listinfo/python-list
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com
want to do in a little more detail,
I suspect.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com
:
http://www.urbandictionary.com/define.php?term=op
Possibly so, and that's a useful site, but I hope you aren't suggesting
that Vicente shouldn't have asked. It seemed like a perfectly acceptable
question to me.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon
.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo/python-list
library.
The documentation is good enough to get you started.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
, but it's often
better than its less-informed critics realize.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
not require Excel to be loaded on the machine running the programs.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
pyt...@bdurham.com wrote:
Any reason you prefer PDB over WinPDB?
http://winpdb.org/
Yes. I don't have Windows except one one PC :P
WinPDB runs on non-Windows platforms :)
One might reasonably argue that it has a pretty couter-intuitive name, then.
regards
Steve
--
Steve Holden
= Popen(bash -i -c alias, stdout=PIPE, shell=True)
p1.stdout.read()
alias ls='ls --color=auto'\n
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING
for the rest of his life.
;-)
I like Give a man a fish, and he eats for a day. Teach a man to fish
and he will bore you with stories of the one that got away for the rest
of his life.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http
a second chance at indexing the URL,
but we all make mistakes.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
?
thanks
If you are all English-speakers then perhaps you could consider showing
a PyCon video - see
http://pycon.blip.tv
Good luck with the group. I hope to see PyCon Macedonia emerging before
too long!
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks
locale import *
setlocale(LC_ALL, '') # locale is otherwise 'C'
'en_US.UTF-8'
locale.format(%12.3f, 123456.789, grouping=False)
' 123456.789'
locale.format(%12.3f, 123456.789, grouping=True)
' 123,456.789'
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon
defaultdict(function dflt at 0x7f0bcb1b0ed8,
{'as': [2, 9], 'ab': [1, 5]})
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
, and providing that.
Good luck!
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org
for Python. I.e. a book that assumes that readers are
experienced programmers that already know the basics of the language,
and want to focus on more advanced programming issues?
~K
--
http://mail.python.org/mailman/listinfo/python-list
--
Steve Holden +1
object at 0xb7589a4c
p1.stdout.read()
''
thank you,
-Alex Goretoy
For shell=True I believe you should provide the command as a single
string, not a list of arguments.
p1 = Popen(alias, stdout=PIPE, shell=True)
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
of the cgitb
module.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman
why this is so important.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org
I showed was just a toy problem. The real problem is
I expect to call a function many times, and I want to avoid the overhead of
the 'if blah' everytime.
This is a premature optimization. First, make it work. Then (if it
doesn't work fast enough) make it work faster.
regards
Steve
--
Steve
, how can weather import something from config?
Thanks!
I haven't checked this, but I believe .pyw names are only for main
programs. Try renaming weather.pyw as weather.py and see if it makes any
difference.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon
?
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo/python
are delegating the handling to a subsidiary
object which implements the correct behavior for the request type.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http
realise you are posting from an address that has been
suspended due to inactivity? Otherwise you would have received this
message privately.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC
response, both the out of context quoting and your comment,
seems solely designed to convey a negative impression instead of
addressing any technical issue.
This isn't an isolated case, Alf. Physician, heal thyself.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon
Start
in thread 2 Start
in main
in thread 2 End
in thread 1 End
Why not just use the time module's sleep function? Unlike the libc code
it releases Python's GIL (global interpreter lock), thus allowing other
threads to run.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800
.
Thanks for your long-term maintenance of this package.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
, and the example there should show you how.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo/python-list
that won't get you all the way, since sys.modules[foo] will be
set even if the importing statement was
from foo import this, that, the_other
So you might want to add
foo = sys.modules[foo]
inside the function.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon
, because
modules aren't callable. Maybe you want
print foo.foo()
print foobar.foobar()
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS
. The authentication data has to be send as HTTP
headers, not as the data to a POST request. The dialog box you see is
the browser attempting to collect the data it needs to put in the header.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb
):
... a[i]=intern('spam'*10)
should reduce your memory use somewhat.
Better still, hoist the constant value out of the loop:
a={}
const = 'spam'*10
for i in range(1000):
... a[i] = const
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming
-parameter.
For your use, though, you might choose something like the generic
parameter pair).
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING
logic is denied.
Why not just stick to the facts and forget about the earlier discussions?
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS
to find out if it has work (if it does its queue is non-empty),
Is this helpful, or a red herring?
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING
taking a hit on the coding side,
especially if updates are involved).
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
you!
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo
for the programming.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo
Roy Smith wrote:
On Mar 2, 8:33 am, Steve Holden st...@holdenweb.com wrote:
And how important is it to make sure that whatever data your program
processes doesn't overwrite the actual variable names you want to use to
program the processing?
Oh, I see what you're saying. You're thinking
://en.wikipedia.org/wiki/Cargo_cult_programming
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http
that old.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http://holdenweb.eventbrite.com/
--
http://mail.python.org/mailman/listinfo
You'll need to write a custom importer. PEP 302 contains the necessary
details.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS:http
an operation that gets 100,000 hits
a day then your problems won't be with Python but with organizational
aspects of your operation.
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http
201 - 300 of 4672 matches
Mail list logo