stock markets will all collapse tonight
when the news leaks out that those stupid Americans haven't yet realised
that much of Europe (with at least one very noticeable and sensible
exception :) uses Euros. I'd better sell all my stock holdings fast.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
tating the rationale
for it?
Thanks!
Why would you have a Python Enhancement Proposal to state the rationale
for this?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
Your only concern from the Python world will (probably; IANAL) be around
use of trademarks owned by the PSF - see
http://www.python.org/psf/trademarks/ for more.
Mark
On 20/08/2012 12:13 PM, Matthew Zipf wrote:
Good evening,
I am considering developing an iOS application that would teach
quot;The OS is flawed so I
expect the Python core developers to do my work for me by producing code
that gets around every known flaw in every supported OS" club. Somehow
I don't think that will happen.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
rd is go :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 20/08/2012 08:03, coldfire wrote:
Thanks a ton I will look into these and Get back to u
Could we have plain English please and not text speech, thanks. If
nothing else that should help the people whose English is a second or
higher numbered language.
--
Cheers.
Mark Lawrence
exact thing that you
tried with the entire traceback. "Doesn't seem to work" doesn't tell us
a lot. Your OS and Python version is usually needed as well but we
might be able to skip those details in this case :) How much general
programming experience do you hav
way to go to catch up with me then :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 21/08/2012 22:55, Pedro Larroy wrote:
Hi
Anyone knows if it's possible to use protobuffers with pypy? Seems
there isn't much info on the web about this.
Pedro.
Did you mean this, in which case there loads on the web
http://code.google.com/p/protobuf/ ?
--
Cheers.
Mar
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
tribution line.
Yep, and the only solution is for everyone to top-post.
The only solution is for people to use common sense. At least one snag
is that Voltaire said common sense is not so common.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ed it, I'd highly recommend Dive Into
Python
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
threads on python-dev discussing
sandboxing. Whether there are any tie ins with importing is for me not
to know and for you to find out :) I'll also wonder out loud if the
reworking of the import mechanism for 3.3 has any impact at all on your
question.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
This shows just how poor the Python documentation is. I can't find the
"overcoming brainwashing" section anywhere!!!
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ent of fact.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 22/08/2012 18:06, lipska the kat wrote:
On 22/08/12 17:30, Mark Lawrence wrote:
On 22/08/2012 17:10, lipska the kat wrote:
On 22/08/12 16:58, MRAB wrote:
On 22/08/2012 15:59, lipska the kat wrote:
On 22/08/12 15:13, shaun wrote:
[snip]
Im very new to python and the object orientated
et to read about it here.
Once again, this is not a criticism, it's an observation
It is OK to to make (possibly erroneous) observations isn't it?
Not if undoes concepts that computer scientists have patiently been
trying to explain for years.
Thanks for taking the time to reply.
lipska
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ouble_it(x):
return x * 2
is not far from:
double_it = lambda x: x * 2
The only declarations are "global" and "nonlocal" (and the latter
exists only in recent versions of Python).
Looking at the self I'm assuming that's a method and not a functi
Suppose I want to define a function "safe", which returns the argument passed
if there is no error, and 42 if there is one. So the setup is something like:
def safe(x):
# WHAT WOULD DEFINE HERE?
print safe(666) # prints 666
print safe(1/0) # prints 42
I don't see how such a function could be
On Thursday, 23 August 2012 10:16:08 UTC+1, Chris Angelico wrote:
> On Thu, Aug 23, 2012 at 7:05 PM, Mark Carter <> wrote:
> > Suppose I want to define a function "safe", which returns the argument
> > passed if there is no error, and 42 if there is one.
>
On Thursday, 23 August 2012 10:23:20 UTC+1, Laszlo Nagy wrote:
> On 2012-08-23 11:05, Mark Carter wrote:
> You are very vague. "There is an error" - but what kind of error?
Assume that it doesn't matter.
> In some special cases, this can be a good idea to do.
Thos
On 23/08/2012 10:05, Mark Carter wrote:
Suppose I want to define a function "safe", which returns the argument passed
if there is no error, and 42 if there is one. So the setup is something like:
def safe(x):
# WHAT WOULD DEFINE HERE?
print safe(666) # prints 666
print safe(1/0
'BULLET' (code points > 0x2000),
and you will see all the optimization efforts destroyed.
sys.getsizeof('a' * 80 * 50)
4025
sys.getsizeof('a' * 80 * 50 + '•')
8040
Just my 2 € (code point 0x20ac) cents.
jmf
I'm looking forward to all the patch
ode.org/charts/).
In that case, why using unicode?
(A problematic not specific to Python)
jmf
What do you propose should be used instead, as you appear to be the
resident expert in the field?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
row your searching from
'python' to 'scipy' (or 'numpy').
Also perhaps ipython.
And then perhaps try those specific mailing lists/fora.
Since I dont know this area much, not saying more.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
or
unix-like systems, and Macintosh OS X.
”
Why don't you try it and see what happens?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 24/08/2012 15:23, Ramchandra Apte wrote:
As BFDL, I hereby command everybody to stop the discussion.
lets put time on useful stuff
Well I didn't vote for you :)
i am using google groups (i think it knows what to do)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/ma
On 24/08/2012 17:06, rusi wrote:
Actually what exactly are you (jmf) asking for?
Its not clear to anybody as best as we can see...
A knee in the temple and a dagger up the ? :) From another
Monty Python sketch for those who don't know.
--
Cheers.
Mark Lawrence.
--
roper newsreader?
Probably because their ISP doesn't offer a free server
Python lists are available on the free gmane mail-to-news server.
I don't think the core-mentorship list is available on gmane. Have I
missed it, has nobody asked for it to go on there or what?
-
Hi,
It seems that in concurrent.futures, ProcessPoolExecutor() can be used
with no args and default to max_workers=multiprocessing.cpu_count();
but for ThreadPoolExecutor() the max_workers arg is required. Is this
intentional? (I'm using Python 3.2.)
--
http://mail.python.org/mailman/listinfo/pyt
a single thread.)
I have no idea about xmlrunner and unittest discovery, sorry.
I entirely agree with Steven's comments. I'd put a question like this
on a specialised list. How about gmane.comp.python.testing.general ?
Sorry I've no idea what it's called elsewhere.
On 25/08/2012 07:34, Chris Angelico wrote:
On Sat, Aug 25, 2012 at 1:04 PM, Steven D'Aprano
I'm just wondering out aloud if the number of times this type of thread
has been debated here will fit into a Python long or float?
--
Cheers.
Mark Lawrence.
--
http://mail.python.o
ring representation)
can not even benefit from it in his native language (I think
I'm correctly informed).
Hint: Google -> "Das grosse Eszett"
jmf
It's Saturday morning, I'm stone cold sober, had a good sleep and I'm
still baffled as to the point if any. Could
On 25/08/2012 11:23, Chris Angelico wrote:
On Sat, Aug 25, 2012 at 6:55 PM, Mark Lawrence wrote:
I'm just wondering out aloud if the number of times this type of thread has
been debated here will fit into a Python long or float?
Well, when I have to store currency information, I li
On 25/08/2012 10:46, Frank Millman wrote:
On 25/08/2012 10:58, Mark Lawrence wrote:
On 25/08/2012 08:27, wxjmfa...@gmail.com wrote:
Unicode design: a flat table of code points, where all code
points are "equals".
As soon as one attempts to escape from this rule, one has to
"p
ch for a solution, I did see some of the traffic regarding
the tracker issue, but the posts were all several years old and I was
hoping maybe there was a fix by now. I guess not. Maybe in Python 4, eh?
Thanks.
Alex
For the record issue 7676, yes?
--
Cheers.
Mark Lawrence.
--
http://mai
d as to how you get errors from one line of code.
Or
b) Provide the smallest sample of code that allows the problem to be
reproduced together with the complete traceback so we can see exactly
what happened.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 26/08/2012 14:34, Chris Angelico wrote:
Okay, that may be a bit of a fairy tale ending and completely illogical.
ChrisA
Then stick to the thread about flexible string representation, unicode
and typography :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo
something better or just share experiences?
Thank you,
Alex
I never test my own code as it's always perfect first time :) For those
who lack my talents here's a good starting point
http://wiki.python.org/moin/PythonTestingToolsTaxonomy
--
Cheers.
Mark Lawrence.
--
http://mail.
te
search engine, hit return and follow the links it comes back with.
Write some code. If you have problems give us the smallest code snippet
that reproduces the issue together with the complete traceback and we'll
help.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ev/library/logging.handlers.html
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
can anybody help meThanks in advance.
The short answer is no :) Unless you tell us exactly what you've tried
and the precise error details nobody can help you.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 29/08/2012 11:32, levinie...@gmail.com wrote:
Rather more useful than your question :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
or Windows for which
you might need administrator privileges as I've no idea what you're doing.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
p'/
Probably where Terry Reedy told you to look some hours ago!!!
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 31/08/2012 09:40, Mulla wrote:
[snip]
how can I do this ...>>?
Look forward for hear from you soon
Thank You
Search the archives as it's the fourth time the question has been asked
within a few weeks.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 31/08/2012 14:40, lipska the kat wrote:
Worryingly
I was hacking away at some x86_64 assembler today
when I found myself obsessively indenting my code
by EXACTLY 4 spaces or (multiples thereof)
Who'd have thought it.
lipska
What's wrong with structured assembler? :)
--
Che
On 31/08/2012 14:58, Grant Edwards wrote:
On 2012-08-31, Mark Lawrence wrote:
On 31/08/2012 14:40, lipska the kat wrote:
I was hacking away at some x86_64 assembler today
when I found myself obsessively indenting my code
by EXACTLY 4 spaces or (multiples thereof)
What's wrong
whatever other encoding you want instead of "ascii".
-tkc
The u"..." notation has been reintroducd for Python 3.3 see
http://docs.python.org/dev/whatsnew/3.3.html#pep-414-explicit-unicode-literals
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
"Well, it should be quite easy because most of the
_modules are either C accelerator (which there is no need to port) or a
C wrapper (which should be trivial to port)" means that I won't be
touching the project with a 10 foot long disinfected barge pole.
--
Cheers.
Mar
foreign words got to do with the internal representaion
of the individual characters?
(cf "Le Petit Robert")
or
The *letters* satisfying the requirements of the
"Imprimerie nationale".
jmf
I've just rechecked my calendar and it's definitly not 1st April today.
Poor old me I'm baffled as always.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
I've found the white paper which gives the technical basis for the
claims made by jmf so thought I'd better share in order to explain his
rationale.
http://www.montypython.net/scripts/right-think.php
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ite("%s" % line)
output.close()
IMHO better practice to use the with statement. See
http://docs.python.org/reference/compound_stmts.html#the-with-statement
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
hanks.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
=locale.strxfrm)
Hmm, and with locale.strxfrm Python 3.3 20% slower than 3.2.
That's it then I'm giving up with Python. In future I'll be writing
everything in machine code to ensure that I get the fastest possible run
times.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/m
On 02/09/2012 14:48, Ramchandra Apte wrote:
please make it *heavily optimized* machine code
Goes without saying. First thing I'll concentrate on is removing
superfluous newlines sent by crappy mail clients or similar.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/ma
e in the formatted string?
For example, in MATLAB I only had to do:
fprintf('1');fprintf('2')
12
fprintf works the same way if printing to a file. It only puts in
what you explicitly tell it to put in.
I'd settle for print 12, YMMV.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 02/09/2012 20:58, me wrote:
Well you can convert the ints to str then concatenate them.
print "1" + "2"
Please post other parts of the thread so people can get the context or
don't bother posting at all, thanks.
--
Cheers.
Mark Lawrence.
--
http://mail.py
living writing comedy for
big film or TV studios? Your response to Steven D'Aprano's "That's six
wins versus one loss." should be hilarious. Or do you not respond to
fact based posts?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
the minimum piece of code here that demonstrates the problem, what
you expect to happen, what actually happened, and if appropriate the
complete traceback.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 03/09/2012 15:12, Mark R Rivet wrote:
Hello all, I am learning to program in python. I have a need to make a
program that can store, retrieve, add, and delete client data such as
name, address, social, telephone number and similar information. This
would be a small client database for my wife
On 04/09/2012 05:56, Dan Sommers wrote:
That said, if I really wanted bloodshed, I would propose = for the third
string-equality operator! ;-)
Dan
Dan "agent provocateur" Sommers? :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ding semantics wrong if you don't
start from the front.
Good grief, what timing!!! The dust has yet to settle over the
"Flexible string representation, unicode, typography, ..." thread and
you ask this. I'll just cross my fingers and hope that people stick
with facts,
n
windows is awesome. It even works offline.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
point out *how* the original poster's question can
be improved.
It is my opinion that the OP got exactly what they deserved, hence I
entirely disagree with your response.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
e invented :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
u've done something wrong. If you'd like to tell us what
you've done to find out where the problem is, we are far more likely to
help. Please remember that the rates of pay here are amongst the lowest
in the world :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
from the advanced list is really going to stretch an
advanced Python developer, so only gurus need bother as it's so
difficult. Not.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
is an unhelpful response.
So we have to agree to disagree.
EOD.
Bye, Andreas
Thinking about it your post was very unhelpful as I couldn't find
anything about JTextField at the url you posted as seen above. Fancy
wasting my time like that :)
--
Cheers.
Mark Lawrence.
--
http://mail
pty argument matching the name of a handler you
declare." Is this what you plan to do in your code?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
see what
comes back and follow an appropriate link. Probably faster than asking
here.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ess we'll see what happens.
-Dave
Say thanks to Terry Reedy for
http://bugs.python.org/issue15871
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
yourself?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 07/09/2012 02:08, Cameron Simpson wrote:
On 07Sep2012 01:30, Mark Lawrence wrote:
| On 07/09/2012 01:01, jimbo1qaz wrote:
| > Is it faster to use bitshifts or floor division? And which is better, & or
%?
| > All divisors and mods are power of 2, so are binary operations faster
tion of the imported module.
Not very elegant, but probably functional.
Thanks in advance for any other suggestions / ideas.
I hope this helps
http://stackoverflow.com/questions/3616952/how-to-properly-use-relative-or-absolute-imports-in-python-modules
--
Cheers.
Mark Lawrence.
--
ht
On 09/09/2012 11:15, Roy Smith wrote:
In article , John Nagle
wrote:
This really should be handled in the standard library, instead of
everybody rolling their own, badly.
+1
I'll second that given "There should be one-- and preferably only one
--obvious way to do it".
-
/datamodel.html#specialnames
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
http://docs.python.org/faq/windows.html#how-do-i-run-a-python-program-under-windows
Why have you posted this seeing that the OP stated that they're on Mac OS X?
The windows faq is outdated wrt PEP397. An up to date version is
available here http://docs.python.org/dev/using/windo
n the tutor mailing list.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
or 2.x
series of releases.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
:
ImportantError: DLL load failed: The specified module could not be found.
The error come from the line of code:
from OCC.BrepPrimAPI import *
How to fix the error? Thanks a lot!!
See above, I hope, I don't actually know :)
--
Cheers.
Mark Lawrence.
--
http://mail.pytho
x27;s Python
version and pythonOCC version. Others would be able to see this for
themselves but you insist on sending email without context. Please
don't do this.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 12/09/2012 14:51, Ken Seehart wrote:
[snip]
Could you please not top post on this list, thanks.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
city to ask for context :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 13/09/2012 21:34, Joshua Landau wrote:
On 13 September 2012 20:53, Mark Lawrence wrote:
On 13/09/2012 19:39, Prasad, Ramit wrote:
Dwight Hutto wrote:
Why don' you just time it,eit lops through incrementing thmax input/
What? Without context I have no idea what this
ccents/tildes/cedillas/etc, doing just what I wanted, all using the
>
> stdlib. Hard to do better than that :-)
>
>
>
> -tkc
How about using UTF-7 for transmission and decode on the other end? This keeps
the transmission all 7-bit, and no loss.
>>> s=u"serviço móvil".encode('utf-7')
>>> print s
servi+AOc-o m+APM-vil
>>> print s.decode('utf-7')
serviço móvil
-Mark
--
http://mail.python.org/mailman/listinfo/python-list
94 arcminutes
So I would say that your table and Python are in agreement. Do you
know what the notation 63'30" means?
ChrisA
Somebody or something has a length, height or width of 63 feet 30 inches? :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
7;i0', 'n0', (dsd, 0, 0), 'n0', (dsd, 10, 1), (IE,
'n0'))
self.chain(range(10), 'i0', (KE, ddi, 10), 'n0', (ddi, 9), (IE, 'n0'))
Do you think the 2nd version is legible? Could it interfere with the accuracy
of the test?
ry.
Just don't try to pretend to yourself that Greece uses GMT+2, because
it's not that simple. For one thing, it's currently summer there...
ChrisA
I guess that Double British Summer Time made things twice as difficult?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
there?
I'm on Windows Vista and read many Python mailing lists with Thunderbird
via gmane.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
27;ve
researched, what code you've written and what problems you've got with
it. If you get a code exception please provide the complete traceback
and a mimimal code snippet that reproduces the issue. This way you're
much more likely to get help.
--
Cheers.
Mark Lawrence.
--
ht
On Tuesday, September 18, 2012 4:10:32 PM UTC-4, porkfried wrote:
> I want to define a 'with' command that makes entries
>
> in dictionary available within the local scope, and
>
> stores new local variables into that dictionary. The
>
> original scope should be restored on exit, and called
>
perhaps people could give you a solution to
your problem.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ut it was just to let him know he can call me by
my used name.
Any particular him?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 19/09/2012 20:12, ashish wrote:
Folks,
I asked the same query on the python tutor mailing list.
The responses i received are here :
http://thread.gmane.org/gmane.comp.python.tutor/77601
Mark,
There is nothing wrong in asking a query on multiple forums.
Poeple on the tutor list, may not
ere a portable way of splitting the environment variable PATH?
With os.sep ?
Thanks for any sugestions
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
')
as Chris mentioned.
However for my current use case this is not necessarily required.
HTH,
Jason
http://nedbatchelder.com/code/utilities/wh_py.html
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
x27;2 years release cycle'?
Because there aren't enough volunteers to get it done any faster?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
doesn't work you cut and paste
the smallest sample of code that can reproduce the problem, together
with the full traceback if applicable, and you're likely to get plenty
of answers.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
tional
while True:
print "\x1b[2J\x1b[0;0H" # optional
for i, line in enumerate(data):
print line
data[i] = line[1:] + line[:1]
time.sleep(.1)
Doing your homework since 2001 ;)
I tried running your code but got this:-
c:\Users\Mark>pattern.py
401 - 500 of 5531 matches
Mail list logo