Re: log and figure out what bits are slow and optimize them.

2012-02-10 Thread Mark Lawrence
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

Re: Python usage numbers

2012-02-11 Thread Mark Lawrence
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

Re: Python usage numbers

2012-02-12 Thread Mark Lawrence
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

Re: Numeric root-finding in Python

2012-02-12 Thread Mark Lawrence
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

Re: Numeric root-finding in Python

2012-02-12 Thread Mark Dickinson
though the values you're getting are at least alternating around the exact value. -- Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-13 Thread Mark Lawrence
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

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-15 Thread Mark Lawrence
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

Interactive keyword help

2012-02-15 Thread Mark Lawrence
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

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-15 Thread Mark Lawrence
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

Re: Interactive keyword help

2012-02-15 Thread Mark Lawrence
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

Re: writing to a file from within nested loops

2012-02-15 Thread Mark Lawrence
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

Re: Is this the right list?

2012-02-15 Thread Mark Lawrence
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

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-17 Thread Mark Lawrence
://www.bbc.co.uk/news/uk-england-dorset-17074716 -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-18 Thread Mark Lawrence
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

Re: Numeric root-finding in Python

2012-02-20 Thread Mark Lawrence
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

Re: Python math is off by .000000000000045

2012-02-22 Thread Mark Lawrence
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

Re: asynchronous downloading

2012-02-23 Thread Mark Hammond
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

Re: A quirk/gotcha of for i, x in enumerate(seq) when seq is empty

2012-02-23 Thread Mark Lawrence
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

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-24 Thread Mark Lawrence
ger! Do you want to test for something that is larger than infinity? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-24 Thread Mark Lawrence
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

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-24 Thread Mark Lawrence
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

Re: namespace question

2012-02-24 Thread Mark Lawrence
ables? :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Please verify!!

2012-02-24 Thread Mark Lawrence
d the person responsible should be sacked. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: check if directory is writable in a portable way

2012-02-28 Thread Mark Hammond
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

Re: Listing children processes

2012-02-28 Thread Mark Lawrence
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

Re: Listing children processes

2012-02-28 Thread Mark Lawrence
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

Re: Is it necessary to call Tk() when writing a GUI app with Tkinter?

2012-03-02 Thread Mark Roseman
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

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Mark Lawrence
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

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-05 Thread Mark Lawrence
b and get it illegally? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Mark Lawrence
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

Re: Tkinter: Why aren't my widgets expanding when I resize the window?

2012-03-05 Thread Mark Lawrence
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

Re: help: confused about python flavors....

2012-03-07 Thread Mark Lawrence
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

Re: sys.stdout.detach() results in ValueError

2012-03-07 Thread Mark Tolonen
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

Re: Python 3.2 and MS Outlook

2012-03-07 Thread Mark Hammond
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

Re: how to get plots made faster

2012-03-08 Thread Mark Lawrence
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

Re: converting from tcl/tkl to python

2012-03-09 Thread Mark Roseman
additional information, you can point your technical people at http://www.tkdocs.com. Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is readable

2012-03-15 Thread Mark Lawrence
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

Re: Python is readable

2012-03-15 Thread Mark Lawrence
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

Re: Python is readable

2012-03-15 Thread Mark Lawrence
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

Re: Python is readable

2012-03-15 Thread Mark Lawrence
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

Re: OAuth 2.0 implementation

2012-03-28 Thread Mark Hammond
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

Re: "convert" string to bytes without changing data (encoding)

2012-03-28 Thread Mark Lawrence
uttons and bows. No guessing the tune. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: "convert" string to bytes without changing data (encoding)

2012-03-28 Thread Mark Lawrence
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

Threads on google groups not on gmane?

2012-03-30 Thread Mark Lawrence
"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

Re: CFG for python

2012-03-30 Thread Mark Lawrence
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

Re: Threads on google groups not on gmane?

2012-04-02 Thread Mark Lawrence
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

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Mark Lawrence
atter is extremely difficult if you bite your toenails :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Mark Lawrence
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

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-04-03 Thread Mark Lawrence
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

Re: regexp partial matching, or hitEnd

2012-04-05 Thread Mark Lawrence
7;s New docs, or have I simply missed something? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: python polygon

2012-04-05 Thread Mark Lawrence
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

Re: produce the same output as Unix's date command

2012-04-05 Thread Mark Lawrence
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

Re: Generating custom Windows installers

2012-04-05 Thread Mark Hammond
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

Re: Generating custom Windows installers

2012-04-06 Thread Mark Hammond
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

Re: Donald E. Knuth in Python, cont'd

2012-04-11 Thread Mark Lawrence
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

Re: [Windows] drag-and-drop onto .py file in modern versions?

2012-04-12 Thread Mark Lawrence
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

Re: Python Gotcha's?

2012-04-15 Thread Mark Lawrence
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

Re: Python Gotcha's?

2012-04-15 Thread Mark Lawrence
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

Re: Python Gotcha's?

2012-04-16 Thread Mark Lawrence
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

Re: Naming future objects and their methods

2012-04-16 Thread Mark Lawrence
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

Re: escaping

2012-04-16 Thread Mark Lawrence
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

Re: python module

2012-04-16 Thread Mark Lawrence
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

Re: Half-baked idea: list comprehensions with "while"

2012-04-26 Thread Mark Lawrence
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

Re: why () is () and [] is [] work in other way?

2012-04-26 Thread Mark Lawrence
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

Re: why () is () and [] is [] work in other way?

2012-04-26 Thread Mark Lawrence
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

Re: Create directories and modify files with Python

2012-04-30 Thread Mark Lawrence
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.

Re: syntax for code blocks

2012-05-02 Thread Mark Lawrence
that others have already asked you to provide. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: When convert two sets with the same elements to lists, are the lists always going to be the same?

2012-05-04 Thread Mark Lawrence
please give it a rest, you're flogging a dead horse. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: sorting 1172026 entries

2012-05-06 Thread Mark Lawrence
? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-08 Thread Mark Lawrence
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

Re: which book?

2012-05-08 Thread Mark Lawrence
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

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-09 Thread Mark Lawrence
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

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-09 Thread Mark Lawrence
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

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-09 Thread Mark Lawrence
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

Re: Real time event accuracy

2012-05-10 Thread Mark Lawrence
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:

Re: increment date present list of tuple by weeks python

2012-05-11 Thread Mark Lawrence
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

Re: Finding the line number of an 'else' statement via ast

2012-05-11 Thread Mark Lawrence
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

Re: Dealing with the __str__ method in classes with lots of attributes

2012-05-11 Thread Mark Lawrence
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

Re: Good data structure for finding date intervals including a given date

2012-05-12 Thread Mark Lawrence
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.

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
e, my first thought was to say "yes" :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
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

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
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

Re: How to call and execute C code in Python?

2012-05-13 Thread Mark Lawrence
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

Re: which book?

2012-05-14 Thread Mark Lawrence
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

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-14 Thread Mark Lawrence
ity I wouldn't touch it with a barge pole. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-15 Thread Mark Lawrence
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

Re: Newbie questions on import & cmd line run

2012-05-17 Thread Mark Lawrence
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

Re: Right way to initialize python embedded in a multi-threaded application

2012-05-17 Thread Mark Hammond
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

Re: Plot a function with matplotlib?

2012-05-19 Thread Mark Lawrence
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

Re: Compiling debug Python 2.7 on Windows

2012-05-22 Thread Mark Hammond
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

Re: Install python 2.6 and python 2.7 on Windows

2012-05-23 Thread Mark Lawrence
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

Re: Please use the Python Job Board for recruiting

2012-05-23 Thread Mark Lawrence
uiters? You are a cruel, hard and absolutely correct man :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python27 in C++ on Windows: CRT compatibility issues with VS2010?

2012-05-24 Thread Mark Hammond
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

Use a locally built Tk for Python?

2012-06-01 Thread Mark Summerfield
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

How to Test GUI Apps for many Python X GUI toolkits

2012-06-03 Thread Mark Summerfield
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

Re: Use a locally built Tk for Python?

2012-06-04 Thread Mark Summerfield
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

ttk.Spinbox missing?

2012-06-06 Thread Mark Summerfield
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

Re: Where is the lastest step by step guide to compile Python into an executable?

2012-06-07 Thread Mark Lawrence
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

Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Mark Lawrence
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

Re: Pythonic cross-platform GUI desingers � la Interface Builder (Re: what gui designer is everyone using)

2012-06-11 Thread Mark Roseman
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

<    3   4   5   6   7   8   9   10   11   12   >