permanently include profile's debugging code in
source code,
will cause any performance issue ??
How about http://docs.python.org/library/logging.html ?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
couldn't
print a £ sign. I used a U to enforce unicode job done. If I had a
major problem I reckon that a search on c.l.p would give me an answer
easy peasy.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
you display the following line?
Příliš žluťoučký kůň úpěl ďábelské ódy.
Best,
Matěj
Yes in Thunderbird, Notepad, Wordpad and Notepad++ on Windows Vista,
can't be bothered to try any other apps.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ate is good enough? If its not good
enough, play around the the ordering of your operations, try solving a
transformed problem less sensitive to loss of significance; and begin
by trying different numeric types to see if the problem is sensitive
thereto to begin with.
HTH.
c:\Users\Mark\Pyth
though the values you're getting are at least
alternating around the exact value.
--
Mark
--
http://mail.python.org/mailman/listinfo/python-list
efore, healthy people have
correctly functioning immune systems -- of course quality genes always
help!
Please explain why previously healthy people get struck down with Common
Fatigue Syndrome amongst other things.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
The News of the Screws closed months ago.
As you didn't answer my question from some days back I'll ask it agin.
Please explain why previously healthy people get struck down with Common
Fatigue Syndrome amongst other things.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
I didn't realise that this was available until today. It doesn't appear
to be prominent in the official docs or have I missed something?
Certainly I'd have thought a couple of sentences here
http://www.python.org/about/help/ would be justified, what do y'all think?
--
Ch
On 15/02/2012 16:27, Rick Johnson wrote:
On Feb 15, 9:18 am, Mark Lawrence wrote:
As you didn't answer my question from some days back I'll ask it agin.
Please explain why previously healthy people get struck down with Common
Fatigue Syndrome amongst other things.
Why do you seek
On 15/02/2012 17:27, Arnaud Delobelle wrote:
On 15 February 2012 17:23, Andrew Berg wrote:
On 2/15/2012 10:04 AM, Mark Lawrence wrote:
I didn't realise that this was available until today. It doesn't appear
to be prominent in the official docs or have I missed something?
Certainl
d not simply the last line. Having said that I'm guessing
that you're reassigning f somewhere to be a string, hence the error.
Also why not write Python loops like:-
for r in name:
etc.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
to ask?
thanks,
-Alan
Welcome.
Put (a snippet of) code here that's causing the problem together with a
full traceback and you'll soon find out :) If it is the right place
you'll get answers, if not you'll certainly be pointed in the right
direction.
--
Cheers.
Mar
://www.bbc.co.uk/news/uk-england-dorset-17074716
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
kipedia to correct its incorrect data then.
http://en.wikipedia.org/wiki/Health_care_in_the_United_States
Specifically.
http://en.wikipedia.org/wiki/File:International_Comparison_-_Healthcare_spending_as_%25_GDP.png
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
Error:
assert w == -1
Why?
DM
Why not is probably a better question, given that Dennis Lee Bieber and
Dave Angel have already pointed out that this is not legal Python, it'll
give a syntax error.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
math is only approximated? - Or is this a bug?
Thanks for all info,
Alec Taylor
Please google for floating point numbers.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
the stdlib - even demanding *sync* http apps often
wind up using modules outside the stdlib. Look into virtualenv etc if
permission to install packages is the issue.
Batteries included free, but turbo-chargers are an extra ;)
Mark
--
http://mail.python.org/mailman/listinfo/python-list
op variable i (and, if you need it, x) before hand.
Actually,
i = -1
or his reporting will be wrong.
~Ethan~
Methinks an off by one error :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ger!
Do you want to test for something that is larger than infinity?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ray
didn't just do two's compliment like everyone else, Seymour Cray
responded that when the computer was designed he simply didn't know
about twos compliment.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 24/02/2012 23:16, Michael Torrie wrote:
On 02/24/2012 09:59 AM, Mark Lawrence wrote:
The C integer bit doesn't matter since e.g.
>>>
a=10
ables? :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
d the person responsible should be
sacked.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
This is what
almost every app does - consider apps with a "save as" dialog - they
never check the directory is writable, they just attempt the actual
write and handle the failure.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
e. psutil doesn't do children.
--mihai
Please don't top-post! Also, psutil.Process.get_children() looks to
me like it "does" children.
You are incorrect. I've been told of by the BDFL for stating that
people should not top post on any Python mailing list/news
On 29/02/2012 00:16, Steven D'Aprano wrote:
On Tue, 28 Feb 2012 23:41:16 +0000, Mark Lawrence wrote:
I've been told of by the BDFL for stating that
people should not top post on any Python mailing list/news group.
He's the BDFL of Python, not of mailing list etiquette.
I
better served by
spending a bit of time learning the conceptual underpinnings (e.g.
http://www.tkdocs.com/tutorial/concepts.html) after which the "right"
thing to do will be more obvious.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
On 06/03/2012 01:10, Steven D'Aprano wrote:
Which is a pity, because I gather that Rick actually does know Tkinter
well.
+1. Please Rick less of the Dark Side. :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
b and
get it illegally?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
n won by a
landslide!
There is no need for this. You (as I've stated in another reply) seem
to know what you're talking about WRT tkinter so please stick with the
Light rather than the Dark Side.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 06/03/2012 02:56, Rick Johnson wrote:
On Mar 5, 8:33 pm, Mark Lawrence wrote:
please stick with the
Light rather than the Dark Side.
You're correct. I need to ignore these negative distractions. Thanks
for re-focusing the conversation.
No problem, but as I've often stated in t
ey are all free software, so the only
cost is your time), and decide for yourself which one meets your needs.
We can't answer that, because we don't know what you need.
Matplotlib is excellent, it has an extensive pile of docs and examples,
and the mailing list is extremely he
text mode. I am pretty sure that remains true
> even if stdout is redirected. (You did not mention your OS.) You would
> have to open such a file and make sys.stdout point to it.
> sys.stdout = my_binary_file.
> But why do that? Just open the file and write to it directly without the
> above.
>
> --
> Terry Jan Reedy
Write binary data to sys.stdout.buffer.
-Mark
--
http://mail.python.org/mailman/listinfo/python-list
y the same -
except, obviously, for the general differences between 2 and 3 (ie, any
differences should not be due to needing to talk to Outlook and would
exist regardless of the job at hand)
Mark
--
http://mail.python.org/mailman/listinfo/python-list
x27;Time', fontsize=16)
pp.savefig()
plt.clf()
VdotB=F[:,14]
plt.plot(t,VdotB)
pp.savefig()
pp.close()
I can't help directly but you may be better off asking on the matplotlib
users mailing list see
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
additional information, you can point your technical people at
http://www.tkdocs.com.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
aren't those ':' redundant?
Kiuhnm
Nope.
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> with open("filename&quo
On 15/03/2012 16:01, Alec Taylor wrote:
C++0x? You mean C++11? :P
On that note, is Python upgrading to use C11? :V
Not for Windows given
http://mail.python.org/pipermail/python-dev/2012-February/116258.html.
I've no idea regarding *nix, os x or whatever.
--
Cheers.
Mark Law
I like it because it reads like a tree.
Kiuhnm
Why not find out for yourself by slapping the code into an interactive
Python interpreter and seeing what the result is?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
u show the
killer instincts of a great bowler in an Ashes Test Match, now could
there be anything more important in life or showing greater esteem than
that?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
only player.
It's also used extensively by google (eg, even their SMTP server
supports using OAuth credentials to send email)
I'd go even further - most sites which expose an API use OAuth for
credentials with that API.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
uttons and bows.
No guessing the tune.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
27;s never seen?
Ross Ridge
We appear to have a case of "would you stand up please, your voice is
rather muffled". I can hear all the *plonks* from miles away.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
"weird
behaviour: pygame plays in shell but not in script".
Is anyone else seeing the same thing?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
However, i stil cant figure out what how to create the CFG from the
two references.
Regards
Taking a look at this may help you get going
http://alexleone.blogspot.co.uk/2010/01/python-ast-pretty-printer.html
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
e blocking google groups as a known source
of spam.
Thanks for all the replies, but as I've have just seen a pile of
messages, some of which date back to 28/03/2012, I'd hazard a guess that
something somewhere was wrong and has now been fixed :) Or ... ?
--
Cheers.
Mark Lawrence
atter is extremely difficult if you bite your toenails :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
loaded into memory. They even came up with a system that let you
select which patches you wanted and which you didn't, as e.g. some
patches were customer specific.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 03/04/2012 19:42, Nathan Rice wrote:
I view "computer science" as applied mathematics, when it deserves
that moniker. When it doesn't, it is merely engineering.
Is it still April first in your time zone?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
7;s New docs, or have I
simply missed something?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
to the Origo main page at http://origo.ethz.ch
Can anyone provide some updates on this?
Thanks,
It's now http://pypi.python.org/pypi/Polygon/2.0.4
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
Original Message
Subject: Re: produce the same output as Unix's date command
Date: Thu, 05 Apr 2012 22:07:42 +0100
From: Mark Lawrence
Newsgroups: gmane.comp.python.general
References:
On 05/04/2012 21:52, Jabba Laci wrote:
Hi,
Unix's date command produces t
Seeing you are relying on win32com, you might as well add the links
directly rather than via the intermediate WScript.shell object. Look in
win32comext\shell\demos\create_link.py for an example of how to create
shortcuts directly.
HTH,
Mark
On 6/04/2012 5:23 AM, cesar.covarrub...@gmail.com
te however that bdist_msi really isn't targeted at creating
stand-alone installations, but instead at installing Python extension
modules. I'd recommend using cx_Freeze to create the app, but looking
further afield to create the installer for the app (eg, Inno, NSIS, WiX,
etc)
Mark
Cesa
opping algorithm would be used. Someone queried this,
stating that a hashing algorithm would be better suited to the task.
The reply was "What's a hashing algorithm?". Last I heard the person
who made this quote was a director of the last major defence contractor
in
ngelico
For the record please see http://www.python.org/dev/peps/pep-0397/
"Python launcher for Windows" which discusses shebang lines.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ault install on Windows
commandeers the '.py' extension and breaks stuff that currently works.
PEP397 discusses this issue, a solution is already available which works
a treat.
-Bryan
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
as I am, but the gotchas are really annoying. With minor
versions its not a big deal if most users simply wait to do an
upgrade.
-Bryan
You can as I've already said do this but apparently you're more than
happy to ignore solutions that have been given to you. The
implementation of PEP
Now.
No Real Soon Now about it see here
https://bitbucket.org/vinay.sajip/pylauncher/downloads. Shock horror
probe there's even some documentation referenced :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
g . I
thought there was some kind of gateway, but in my reader I
only saw one answer in the newsgroup.)
Stefan
Do you see this through gmane.comp.python.general?
Also note that I can spell "through" correctly unlike sum foruneers.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/m
t it was on. I'm certain that
other subscribers will remember and point us all in the correct direction.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
can't be found. Worse still when you want to try a really popular
product like taskcoach, but you can't get it cos some moronic OSes
insist on being case sensitive. Does that warrant a :) or a :(
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
f the list where all
elements of the tuple are string non-zero-length strings. Obviously, you'd do
the corresponding generator expression as well.
itertools.takewhile ?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ich comes later in all the responses) so why do some people
think it's so important?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
thy Holy Hand Grenade of
Antioch towards thy foe, who being naughty in My sight, shall snuff it."
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
far, including full traceback
for any errors. Let's face it, this is similar to the question you
posted some eight hours ago give or take. For more data on the problems
with time please see this amongst others
http://thread.gmane.org/gmane.comp.python.devel/132284
--
Cheers.
that others have already asked you to provide.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
please give it a rest, you're flogging a dead horse.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
art from five(ish) morons)
will follow the hijacked project, while the vast majority will support
Luke as a matter of principal. I suggest the thieves be subjected to
this http://en.wikipedia.org/wiki/Send_to_Coventry
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 08/05/2012 19:16, d.po...@gmail.com wrote:
folks
hi,
I am going to learn python for some plot issues. which book or sources, do you
recommend please?
Cheers,
Dave
matplotlib - google and yee shall find.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
years)… The IP you came up with is still yours and a
contract that claims your IP can (and has been in a court of law) judged to be
null and void.
References please, as this is completely opposite to my understanding.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python
On 10/05/2012 00:19, Adrian Hunt wrote:
Hi there Mark
There has been a few that I know of but going back quite a long time... Soon
after I got my qualifications, a small company called Merlio, not only did the
court case get passed in UK courts by it went to the European court too... I
On 10/05/2012 01:27, Chris Angelico wrote:
On Thu, May 10, 2012 at 10:12 AM, Mark Lawrence wrote:
Google was a right PITA but eventually I found this
http://www.legalcentre.co.uk/intellectual-property/guide/intellectual-property-and-employees/
It appears to contradict what you've said
the correct time as possible.
For an idea of how difficult timing can be, search the Python
development mailing list for PEP 418 and associated threads. Make sure
you have a large supply of sandwiches and coffee cos you'll need it :)
Thanks,
Tobiah
--
Cheers.
Mark Lawrence.
--
http:
27;29 May monday AM
Neuropancreatic')]
Thanks
See http://docs.python.org/library/time.html#time.strptime and it's
cousin strftime, and
http://docs.python.org/library/datetime.html#module-datetime date and
timedelta types.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
tree.body[0].orelse
[<_ast.Pass object at 0x7f1301319390>]
tree.body[0]._fields
('test', 'body', 'orelse')
for i in ast.iter_child_nodes(tree.body[0]):
... print i.__class__.__name__
...
Name
Pass
Pass
Is my suspicion correct? Or is there a way to get t
On 11/05/2012 15:32, Andreas Tawn wrote:
It's also helpful to not have to display every attribute, of which there may be
dozens.
Do I detect a code smell here?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 12/05/2012 13:17, Jean-Daniel wrote:
Hello,
Do you know the best way to do this in Python with the stdlib?
Sorry, not part of the stdlib but search for red black tree here
http://pypi.python.org/pypi. While you're there also take a look at the
blist package.
--
Cheers.
e, my first thought was to say "yes" :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
es that are not performance critical.
Stefan
Stefan, you appear to have a lot to do with Cython. It would be polite
to mention this when replying.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
On 13/05/2012 18:38, Stefan Behnel wrote:
Mark Lawrence, 13.05.2012 19:23:
On 13/05/2012 16:39, Chris Angelico wrote:
On Sun, May 13, 2012 at 11:25 PM, David Shi wrote:
Can anyone tell me how to call and exectute C code in Python?
Browse the documentation about Extending and Embedding
On 13/05/2012 19:14, Stefan Behnel wrote:
Mark Lawrence, 13.05.2012 19:44:
On 13/05/2012 18:38, Stefan Behnel wrote:
Mark Lawrence, 13.05.2012 19:23:
On 13/05/2012 16:39, Chris Angelico wrote:
On Sun, May 13, 2012 at 11:25 PM, David Shi wrote:
Can anyone tell me how to call and exectute C
good things on "Python Essential Reference".
Thanks.
Could you please pass the line for tutorial?
google for python tutorial - IIRC first hit is to the tutorial for
version 2.7.3
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ity I wouldn't touch it with a barge pole.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
and start
building a new community. Why didn't the rebels do that?
Cheers,
Daniel
Typical shabby Nazi trick.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
iles with a
'.py' extension to use a different executable based on the Python
version the script targets. This will be done by borrowing the existing
practices of another operating system - scripts will be able to nominate
the version of Python they need by way of a "sheba
s the same basic requirement - see
http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/raw-file/b8c62cf04c5a/com/win32com/src/dllmain.cpp
for how it works.
HTH,
Mark
--
http://mail.python.org/mailman/listinfo/python-list
ere a way to do this in iPython or matplotlib?
Sorry don't know but wouldn't it make sense to ask on the matplotlib
users mailing lst, cos like most python users the're extremely friendly?
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
way is still to load the PCBuild/PCBuild.sln file
as a project in MS Visual Studio 2008.
Cheers,
Mark
--
Best regards, Ivan Gromov
--
http://mail.python.org/mailman/listinfo/python-list
alone.
I find it amazing that this doesn't come up more often
http://www.python.org/dev/peps/pep-0397/
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
uiters? You are a cruel,
hard and absolutely correct man :)
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ome APIs take a "FILE *" and some
may take ownership of memory - such APIs needs to use the same CRT.
APIs that don't attempt to share CRT "objects" should be fine.
Mark
If there is a dependency, does that mean that I cannot use VS2010 to
develop this XLL, but shoul
x27;t seem to be any --with-tk or --with-tcl options for
configure that would allow me to say where my local Tcl/Tk is.
So I ran ./configure --prefix=/home/mark/opt/py32tkmod
And then I tried editing Modules/Setup: I just uncommented and edited
the _tkinter line as follows:
_tkinter _tkinter.c t
Hi,
There are many options for writing desktop GUI applications with
Python and I'd like to explore some of them. However, to do this I
need to be able to test various Python 3.x X GUI toolkit y.z
combinations.
With PyQt4 this is easy. (Example given at the end.)
I'd like to be able to do the sa
Thanks for your thoughtful replies.
I don't use altinstall because using --prefix is sufficient to get a
locally built Python.
Both your suggestions require root (or sudo) and changing the system
itself. Whereas I was hoping to just build a local Python and install
my own Tcl/Tk in its lib and si
Hi,
I have Python 3.2 with Tcl/Tk 8.5, but there doesn't seem to be a
ttk.Spinbox widget even though that widget is part of Tcl/Tk 8.5:
http://www.tcl.tk/man/tcl8.5/TkCmd/ttk_spinbox.htm
Why is that?
--
http://mail.python.org/mailman/listinfo/python-list
On 07/06/2012 11:05, David Shi wrote:
Hi, folks.
Where is the lastest step by step guide to compile Python into an executable?
Regards.
David
Google.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
ut picking appropriate algorithms for the code,
or a sensible database design or whatever. And heaven forbid that
anyone suggest using a command line even if this was the better solution
for the problem that the user wants solved.
--
Cheers.
Mark Lawrence.
--
http://mail.python.org/mailman/listinfo/python-list
cumentation is
admittedly buried in a sea of out-of-date information that is still all
too easy to find.
Please see http://www.tkdocs.com and in particular the tutorial there.
Mark
--
http://mail.python.org/mailman/listinfo/python-list
701 - 800 of 5531 matches
Mail list logo