well known people.:)
Regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
Colossus. Sorry some years since I read the book
about this so can't remember the title or author.
Regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
Paul Rubin wrote:
Mark Lawrence breamore...@yahoo.co.uk writes:
The predecessor of the Enigma was cracked by Polish scientists years
before WW2 started
I believe that all of Enigma was eventually cracked cos of two major
flaws.
I think it never would have been cracked if it hadn't been
it, and am currently in my own little way
attempting to put something back in.
Regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
me nothing I can
use...
Thanks,
Angelica.
Please check the archives for the thread Please help with MemoryError,
it was only posted a day or two back. It's a problem specific to Windows.
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
Gabriel Genellina wrote:
En Fri, 12 Feb 2010 04:29:12 -0300, Arnaud Delobelle
arno...@googlemail.com escribió:
I posted an example of a decorator that does just this in this thread a
couple of days ago:
http://mail.python.org/pipermail/python-list/2010-February/1235742.html
Ouch! I didn't
Steve Holden wrote:
Mark Lawrence wrote:
Gabriel Genellina wrote:
En Fri, 12 Feb 2010 04:29:12 -0300, Arnaud Delobelle
arno...@googlemail.com escribió:
I posted an example of a decorator that does just this in this thread a
couple of days ago:
http://mail.python.org/pipermail/python-list
Goebbels School of Propaganda?
Most disgustedly.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
accuracy, you'll
get plenty of hits.
http://docs.python.org/tutorial/floatingpoint.html
Regards.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
print s[:-1]
A good starting point is
http://wiki.python.org/moin/PythonSpeed/PerformanceTips
HTH.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
will find it prominently when
searching for the Python descriptor protocol.
Thank you.
I'll second, third and fourth this request. More please Bruno, or from
anybody similarly qualified.
Thanks very much.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
are talking at
cross purposes because you've missed the significance of his
quote
(you later realise)
/quote
within his post.
Runtime test isolation doesn't enter into from what I can see.
Can you please clarify the situation one way or the other.
TIA.
Mark Lawrence.
--
http://mail.python.org
Daniel Fetchinson wrote:
Does anyone know what happened to pyjs.org ?
Cheers,
Daniel
According to google cache it was fine 13/02/2010 and it's down according
to this.
http://downforeveryoneorjustme.com/pyjs.org
HTH.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
Muhammad Alkarouri wrote:
Your question is borderline if not out of topic in this group. I will
make a few comments though.
This might be a Python group, but threads often drift way off topic,
which added to the language itself make this a great group to read. If
you don't like the way a
using file associations in the same way that you can run a
command (.bat) file. If the OP types the command ASSOC .py without
the quotes at the command prompt, the response .py=Python.File tells you
that this association has been setup.
HTH.
Mark Lawrence.
--
http://mail.python.org/mailman
Andre Engels wrote:
On Fri, Feb 19, 2010 at 3:19 PM, Mark Lawrence breamore...@yahoo.co.uk wrote:
Andre Engels wrote:
On Fri, Feb 19, 2010 at 12:20 PM, W. eWatson wolftra...@invalid.com
wrote:
I've successfully compiled several small python programs on Win XP into
executables using py2exe
to
be confusing ordering with sorting.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
though.
JM
The obvious solution to this problem is to write the assembler code in
your own way, and then use Python to change the code to the appropriate
target. Any of the solutions listed here would presumably suffice.
http://nedbatchelder.com/text/python-parsers.html
Regards.
Mark Lawrence
a line of code that actually did something. The rest of it was
boilerplate. I'm never ever going to sin again, because if I do, I will
be reincarnated as a J type, or worse still, I C(++) type.
Regards.
Mark Lawrence.
duck
No that's a swaaannn
are astronomical when compared to
initial development costs.
Regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
zlib
FILE
(built-in)
[snip the rest of the help output]
IIRC a pyd file is really a DLL, but for a built-in its included into in
this case python26.dll.
HTH.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
this (Hey, kid, run rm -
rf / and see what happens!), but did, and the words are wise. :)
Pete
After reading the words of wisdom try import this a second time and
watch what happens, it's quite interesting if you're not expecting the
output.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo
Alf and Steven Howe, please don't top post, it makes it all but
impossible to follow a thread. Darn!:)
Mark Lawrence.
Alf P. Steinbach wrote:
Since Mohamed is talking about compilation I think it's more likely he's
talking about an intermediate program represention based on quad tuples
like
Neal Becker wrote:
Want to switch __call__ behavior. Why doesn't this work? What is the
correct way to write this?
class X (object):
def __init__(self, i):
if i == 0:
def __call__ (self):
return 0
else:
def __call_ (self):
concatenate 'str' and 'int' objects
--
f = open('serial.txt', 'rb')
val = f.read()
val = val + 1
--
-- TypeError: cannot concatenate 'str' and 'int' objects
hm
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman
the triangle marking different compositions of the substances in
percent, e.g.
in metallurgy 20% Al2O3, 45% CaO and 35% SiO2.
As noone else has responded try the matplotlib users' mailing list, see
http://sourceforge.net/mail/?group_id=80706
--
Kindest regards.
Mark Lawrence.
--
http
not to be working properly
Same result list: I get an empty list
sheet = list(spamReader)
Thank you again for your help, which is highly appreciated.
Vicente Soler
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
John Machin wrote:
On Aug 28, 6:44 am, Mark Lawrence breamore...@yahoo.co.uk wrote:
vsoler wrote:
On Aug 27, 9:42 pm, Andreas Waldenburger use...@geekmail.invalid
1- the csv file was generated with Excel 2007; no prompts for what the
separator should be; Excel has used ; by default, without
address and to python-list@python.org. I think this sums
it up.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
round for him? Any and all currencies accepted?
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
are trying to achieve then I'm sure that
more help will be forthcoming. For example, could the file be saved in
Excel 97-2003 xls format and then processed with the excellent
xlrd/xlwt/xlutils? They are available here:-
http://pypi.python.org/pypi/xlutils/1.4.0
--
Kindest regards.
Mark Lawrence
for
yourself if you can.:)
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
scriptlear...@gmail.com wrote:
For example, I have a string #a=valuea;b=valueb;c=valuec;, and I
will like to take out the values (valuea, valueb, and valuec). How do
I do that in Python? The group method will only return the matched
part. Thanks.
p = re.compile('#a=*;b=*;c=*;')
m =
must be liable to change. You might
like to look at the recent thread on this ng 'List insertion cost' and
follow the links to Raymond Hettinger's power point presentation.
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
writing correct rather than incorrect code. Or as has been
repeatedly stated get somone from your CS department to help.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
the uncompressing
that's tricky.
I assume you mean ord(7)%2?
First one to correctly decompress the value 0 into an ASCII character
wins the title of the world's most capable hacker :p
Marcus
asciichar = chr(len(0)) if the OP's wishes come true?
--
Kindest regards.
Mark Lawrence.
--
http
gapbuffer.GapBuffer(range(10))[:]
GapBuffer('i')]
If my sleuthing is correct the problem is with these lines
ilow *= self-itemSize;
ihigh *= self-itemSize;
in GapBuffer_slice being computed before ilow and ihigh are compared to
anything.
Python 2.6.2 32 bit Windows.
--
Kindest regards.
Mark
, copyright, credits or license for more information.
import re
help(re.compile)
Help on function compile in module re:
compile(pattern, flags=0)
Compile a regular expression pattern, returning a pattern object.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python
having substituted regex for re. Output
timings were roughly effbot re 0.14secs, effbot regex 1.16secs, v8 re
0.17secs and v8 regex 0.67secs.
HTH.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
r wrote:
On Jul 31, 4:53 pm, Mark Lawrence breamore...@yahoo.co.uk wrote:
r wrote:
On Jul 31, 4:16 pm, Carl Banks pavlovevide...@gmail.com wrote:
On Jul 31, 1:10 pm, kj no.em...@please.post wrote:
I'm pretty new to Python, and I like a lot overall, but I find the
documentation for Python
(line).group(1)
thisParcel = parcel.search(line).group(1)
except:
continue
The bare except will hide any errors in the lines above it. Either catch
errors that you expect or take the try-except out.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo
. It's just a list, and is writeable.
Yes, but I'm mainly playing in IDLE and I was getting a bit fed up of
repeatedly typing
import sys
sys.path.append('C:/Users/Michael/Code/Python')
import mystuff
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
Michael M Mason wrote:
Mark Lawrence breamore...@yahoo.co.uk wrote in message
news:mailman.4130.1249203322.8015.python-l...@python.org...
Be careful, I'm screwed things up on several occasions by placing a
file on PYTHONPATH that overrides a file in the standard library,
test.py being my
but could you adapt this:-
data = [ 1, 4,5,6, 10, 15,16,17,18, 22, 25,26,27,28]
for k, g in groupby(enumerate(data), lambda (i,x):i-x):
print map(itemgetter(1), g)
found here
http://www.python.org/doc/2.6.2/library/itertools.html#module-itertools
--
Kindest regards.
Mark Lawrence
don't know if this is relevant, but http://planet.python.org/ has an
entry dated this morning which points here
http://www.logarithmic.net/pfh/blog/01249470842.
HTH.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
,
Dan
http://www.answers.com/topic/spider-plot
How about
http://matplotlib.sourceforge.net/examples/api/radar_chart.html?highlight=spider
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
trivial issues like Denial of
Service atacks via XML.
Sorry, just couldn't resist.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
for c in 'äöüÄÖÜß':
u = unicode(c, 'utf-8')
...
Yes?
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
google for this etc. language but failed dismally. Does
it belong here? http://www.thefreecountry.com/compilers/esoteric.shtml
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
the same problem?
Yes, it's been down for several hours.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
a query about which algorithm to use. Response Not
really a Python question, but try Put the same question on (say)
the C ng and you'd be told in no uncertain terms to Foxtrot Oscar.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
[snip]
r slayer of the galactic-ly stupid!
Can I assume from this that you intend killing yourself, on the grounds
that some 10 days ago you couldn't successfully use a windows compiled
help file?
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
, there are attention seekers who are not interested
in actual participation.
(*) http://bugs.python.org
(**) yes, humour is fine, but it doesn't replace actual, informational content
Antoine.
Thank you for this fine, cultured, reasonable response. Seriously!!!
--
Kindest regards.
Mark Lawrence
think it does.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
Regards,
Bea
I think your best bet is to read and action the responses you got to
your original email from three days ago. If these have got lost in the
post simply search online, they're bound to be archived somewhere.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo
accusations, either provide hard evidence that can
persuade me that your perspective on this is correct or shut up.
[snip]
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
the corrected version of
the file, which has presumably been available for months!
http://www.python.org/download/releases/2.6.2/
And you want newbies let loose on the python docs. As good ole Santa
would say, ho, ho, ho!
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org
. Ignore those for now.
For starters take a look at http://tinyurl.com/o2o8r8 , just about every
combination of string concatenation going there. I assume that one of
these will let you leave failMsg where it belongs.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman
r wrote:
Ah Ha! the docs are broken and i was right all along! Are the good
folks at Python dev rolling a new installer as we speak, or we must
wait for new version?
As I pointed out a few minutes ago thicko, the new version has been
available for months.
--
Kindest regards.
Mark Lawrence
Carl Banks wrote:
On Aug 11, 1:46 pm, Mark Lawrence breamore...@yahoo.co.uk wrote:
r wrote:
Ah Ha! the docs are broken and i was right all along! Are the good
folks at Python dev rolling a new installer as we speak, or we must
wait for new version?
As I pointed out a few minutes ago thicko
the
following links should anyone be interested.
http://www.dorsetforyou.com/index.jsp?articleid=386553
http://www.dorsetforyou.com/index.jsp?articleid=386598
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
Esmail wrote:
Mark Lawrence wrote:
Hi Mark,
The docs for the constraint package look good, see
http://labix.org/python-constraint and http://labix.org/doc/constraint.
I think they've been produced with epydoc see
http://epydoc.sourceforge.net/
Thanks for the links, I'll take a look.
Any
learn how to play with regexes.
I personnaly use a visual tool called RX Toolkit[1] that comes with
Komodo IDE.
[1] http://docs.activestate.com/komodo/4.4/regex.html
Haven't tried it myself but how about this?
http://re-try.appspot.com/
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org
but it prevents the user from accidently
overwriting a stdlib module. Stdlib modules can still be overwritten
with PYTHONPATH. What am I missing?
http://www.daimi.au.dk/~chili/PBI/pythonpath.html
[snip]
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
be
a looping mechanism that generates the index variable values incrementally
as they are needed.
I have a strong suspicion that you will find hints in the Python
documentation that this has already been addressed. Perhaps you could
try reading before posting?
--
Kindest regards.
Mark Lawrence
Bill Jones wrote:
On Aug 8, 3:27 pm, Mark Lawrence breamore...@yahoo.co.uk wrote:
Kee Nethery wrote:
As someone trying to learn the language I want to say that the tone on
this list towards people who are trying to learn Python feels like it
has become anti-newbies.
[snip]
Kee Nethery
My
://bytes.com/topic/python/answers/844614-python-3-sorting-comparison-function
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
as to what to do next.
--
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
-function
That seems to be about the built-in function cmp(). The OP was asking
about the special method __cmp__ and the related rich comparison
special methods (__eq__, __lt__, etc).
Cheers,
Chris
Blast, I posted the wrong flaming link, sorry everybody.
--
Kindest regards.
Mark Lawrence.
--
http
or __gt__
* __ge__ or __le__
Cheers,
Chris
Unfortunately I don't think it's that easy, see.
http://mail.python.org/pipermail/python-list/2008-November/688761.html
The issue referenced is still open. This of course assumes that I've
posted the correct link this time!
--
Kindest regards.
Mark
Xavier Ho wrote:
On Sun, Aug 16, 2009 at 9:49 PM, Mark Lawrence breamore...@yahoo.co.ukwrote:
Unfortunately I don't think it's that easy, see.
http://mail.python.org/pipermail/python-list/2008-November/688761.html
The issue referenced is still open. This of course assumes that I've
posted
the correct way to turn an iterator over bytes into a string?
This works, but, ewww:
In [8]: .join(iter(four score and seven years ago))
Out[8]: 'four score and seven years ago'
You've started with a string.
type(four score and seven years ago)
type 'str'
--
Kindest regards.
Mark
for work this
morning. Spoilsport, fishing is just no fun any more, you dangle a bit
of bait and it get's taken hook, line and sinker.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
have to jump through any hoops to get it
to run on different platforms.
/W
To quote R. David Murray on the Python bug tracker earlier today.
Everyone who uses IDLE uses TKInter, and a lot of people use IDLE.
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
, and a lot of people use IDLE.
/original
Looks like you're mad cos the bug tracker issue has already been closed
as rejected. Or is it cos you fell for my bait? Or both?
To paraphrase Tommy Docherty, Ranting Rick is to Python what King Herod
was to baby sitting.
Have a nice day.
Mark
the daleks, yetis and
cybermen Ranting Rick would be a piece of cake. :) My 13 year old will
be glued to BBC1 tonight at 18:45 BST to see his hero (Dr Who that is)
in action.
Down with baddies.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
to do so this your comments
and the responses will certainly stick in my mind.
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
very sorry for him. As he is incapable of communicating effectively I
seriously do wonder if he suffers from some form of autism, Asperger
Syndrome maybe?
Seriously.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
#Sequence_Input
Regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
-questions.html
HTH.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
On 15/06/2010 08:39, rantingrick wrote:
On Jun 15, 1:41 am, Stephen Hansenme+list/pyt...@ixokai.io wrote:
On 6/14/10 9:08 PM, Stephen Hansen wrote:
You're an *beep*.
For the record, this was inappropriate. A moment's frustration after a
long day does not excuse belligerence, even if
very far.
HTH.
Mark Lawrence
--
http://mail.python.org/mailman/listinfo/python-list
), then
logger.addHandler(x). If you don't do this, your logging shadows the
logging module so you won't get very far.
HTH.
Mark Lawrence
Hi Mark -
I thought that would be the answer.
I asked because I'm working with a framework where logging is
similarly renamed in almost every file
, but I am aware of the
Great Bustard, see e.g.
http://greatbustard.org/
As for the rest of the cobblers, you've managed to exceed the output of
Xah Lee, Ranting Rick and Ilias Lazaridis combined and all in one hit,
congratulations.
Bugger off, please!
Mark Lawrence.
--
http
actually don't know how to report such things because of the
combination of c.l.py, gmane.comp.python.general and
http://mail.python.org/mailman/listinfo/python-list, possibly others?.
Could somebody please show the correct direction?
Kindest regards.
Mark Lawrence
--
http://mail.python.org/mailman
to newsgroups.
FWIW I read the ng/ml with Thunderbird on Windows Vista through
gmane.comp.python.general, works a treat.
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 16/06/2010 21:02, Stephen Hansen wrote:
On 6/16/10 12:21 PM, Mark Lawrence wrote:
I actually don't know how to report such things because of the
combination of c.l.py, gmane.comp.python.general and
http://mail.python.org/mailman/listinfo/python-list, possibly others?.
Could somebody please
On 16/06/2010 22:51, Joshua Kordani wrote:
Benjamin Kaplan wrote:
On Wed, Jun 16, 2010 at 12:21 PM, Mark Lawrence
breamore...@yahoo.co.uk wrote:
On 16/06/2010 18:56, Alan Harris-Reid wrote:
Any idea how we get rid of this 'noise'? Will it eventually go away if
we ignore
the current situation is. Could somebody please recommend whether
I take the direct or indirect route to Python 3.1. FWIW I'm on Windows
Vista.
TIA.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
in recent days I
wish there was a Kill Poster button. Reminds me of all those jolly
old black and white Hollywood cowboy movies, we'll have a fair trial,
then we'll hang him :)
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 17/06/2010 22:51, Stephen Hansen wrote:
On 6/17/10 2:32 PM, Mark Lawrence wrote:
Where is the use of _ in a script documented, I've searched all over and
can't find it, guess I don't have the Midas touch with google? :)
Its purely a convention, and one that crosses language-bounds
news is that this is easily the fastest piece of code that I've
seen yet. The bad news is that first prize in the speed competition is
a night out with me. :)
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 18/06/2010 16:00, Steven D'Aprano wrote:
On Fri, 18 Jun 2010 14:32:30 +0100, Mark Lawrence wrote:
The good news is that this is easily the fastest piece of code that I've
seen yet. The bad news is that first prize in the speed competition is
a night out with me.
I suppose second prize
On 18/06/2010 16:26, Andre Alexander Bell wrote:
On 06/18/2010 03:32 PM, Mark Lawrence wrote:
The good news is that this is easily the fastest piece of code that I've
seen yet. The bad news is that first prize in the speed competition is
a night out with me. :)
Well, that actually means
On 19/06/2010 11:36, Stefan Behnel wrote:
Mark Lawrence, 18.06.2010 17:53:
... *AND* (looking at your email address) Germany loosing in the world
cup. :(
Yep, we always do that once at the early stages of a world cup. Pretty
good camouflage, still works most of the time.
Stefan
Yes
than python-list, which itself is pretty decent.
Terry Jan Reedy
Ok, but I'm going for EAFP rather than LBYL. I have written a will. :)
Kindest regards.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
://docs.python.org/library/itertools.html?highlight=groupby#itertools.groupby
Combine the lists in the groups.
HTH.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 6890 matches
Mail list logo