Re: How do I display unicode value stored in a string variable using ord()

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

Re: Why doesn't Python remember the initial directory?

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

Re: Legal: Introduction to Programming App

2012-08-19 Thread Mark Hammond
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

Re: Why doesn't Python remember the initial directory?

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

Re: Why doesn't Python remember the initial directory?

2012-08-20 Thread Mark Lawrence
rd is go :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: ONLINE SERVER TO STORE AND RUN PYTHON SCRIPTS

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

Re: How to convert base 10 to base 2?

2012-08-20 Thread 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

Re: Top-posting &c. (was Re: [ANNC] pybotwar-0.8)

2012-08-20 Thread Mark Lawrence
way to go to catch up with me then :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: protobuf + pypy

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

Re: something about split()???

2012-08-22 Thread Mark Lawrence
-- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Top-posting &c. (was Re: [ANNC] pybotwar-0.8)

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

Re: Books?

2012-08-22 Thread Mark Lawrence
ed it, I'd highly recommend Dive Into Python -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Reimporting modules, and sandboxing?

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

Re: Objects in Python

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

Re: Objects in Python

2012-08-22 Thread Mark Lawrence
ent of fact. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Objects in Python

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

Re: Objects in Python

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

Re: Objects in Python

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

Guarding arithmetic

2012-08-23 Thread Mark Carter
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

Re: Guarding arithmetic

2012-08-23 Thread Mark Carter
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. >

Re: Guarding arithmetic

2012-08-23 Thread Mark Carter
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

Re: Guarding arithmetic

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

Re: Flexible string representation, unicode, typography, ...

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

Re: Flexible string representation, unicode, typography, ...

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

Re: Data cleaning workouts

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

Re: Does a wxPython program not run on 64bit Windows?

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

python-list@python.org

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

Re: Flexible string representation, unicode, typography, ...

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

Re: Filter versus comprehension (was Re: something about split()???)

2012-08-24 Thread 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? -

concurrent.futures inconsistency?

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

Re: Publish unittest results from test discovery

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

Re: Objects in Python

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

Re: Flexible string representation, unicode, typography, ...

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

Re: Objects in Python

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

Re: Flexible string representation, unicode, typography, ...

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

Re: Is there a way to configure IDLE to use spaces instead of tabs for indenting?

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

Re: issue with struct.unpack

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

Re: Objects in Python

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

Re: Your favorite test tool and automation frameworks

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

Re: What do I do to read html files on my pc?

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

Re: Can I get logging.FileHandler to close the file on each emit?

2012-08-29 Thread Mark Lawrence
ev/library/logging.handlers.html -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Issue installing pyopencv in mac

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

Re: Are the property Function really useful?

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

Re: Basic Question. Deploy new Master/Slave (M/S) datastore

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

Re: Basic Question. Deploy new Master/Slave (M/S) datastore

2012-08-30 Thread Mark Lawrence
p'/ Probably where Terry Reedy told you to look some hours ago!!! -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Call perl to store data in DB

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

Re: interfacing with x86_64 assembler

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

Re: interfacing with x86_64 assembler

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

Re: how to get character hex number?

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

Re: py2c - an open source Python to C/C++ is looking for developers

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

Re: Flexible string representation, unicode, typography, ...

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

Re: Flexible string representation, unicode, typography, ...

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

Re: [2.5.1] Read each line from txt file, replace, and save?

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

Re: Changing a Value in List of lists

2012-09-02 Thread Mark Lawrence
hanks. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Flexible string representation, unicode, typography, ...

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

Re: Flexible string representation, unicode, typography, ...

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

Re: newbie ``print`` question

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

Re: newbie ``print`` question

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

Re: Flexible string representation, unicode, typography, ...

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

Re: get the matched regular expression position in string.

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

Re: simple client data base

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

Re: Comparing strings from the back?

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

Re: Comparing strings from the back?

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

Re: python docs search for 'print'

2012-09-04 Thread Mark Lawrence
n windows is awesome. It even works offline. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to tell people to ask questions the smart way

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

Re: Error 32 - Broken Pipe . Please Help!!

2012-09-05 Thread Mark Lawrence
e invented :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: why did the WindowsError occur?

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

Re: Beginners question

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

Re: How to tell people to ask questions the smart way

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

Re: how can i register the non-default browser with the webbrowser module?

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

Re: webkit related problems

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

Re: python docs search for 'print'

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

Re: Bitshifts and "And" vs Floor-division and Modular

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

Re: Bitshifts and "And" vs Floor-division and Modular

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

Re: how to run python2.6 module with absolute imports stand alone

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

Re: Parsing ISO date/time strings - where did the parser go?

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

Re: Beginner Q: What does the double underscore __ mean?

2012-09-09 Thread Mark Lawrence
/datamodel.html#specialnames -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie: where's the new python gone?

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

Re: How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-11 Thread Mark Lawrence
n the tutor mailing list. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Which Version of Python?

2012-09-11 Thread Mark Lawrence
or 2.x series of releases. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: pythonOCC examples doesn't work?

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

Re: pythonOCC examples doesn't work?

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

Re: Boolean function on variable-length lists

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

Re: Comparing strings from the back?

2012-09-13 Thread Mark Lawrence
city to ask for context :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing strings from the back?

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

Re: Least-lossy string.encode to us-ascii?

2012-09-13 Thread Mark Tolonen
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

Re: What's wrong with my arc tangens calculation?

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

Re: unit test strategy

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

Re: datetime issue

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

Re: Obnoxious postings from Google Groups

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

Re: HMM based Chunker NLTK

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

Re: User defined lexical scoping... can I do this?

2012-09-18 Thread weissman . mark
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 >

Re: User defined lexical scoping... can I do this?

2012-09-18 Thread Mark Lawrence
perhaps people could give you a solution to your problem. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing strings from the back?

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

Re: How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

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

Re: portable way of locating an executable (like which)

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

Re: portable way of locating an executable (like which)

2012-09-20 Thread Mark Lawrence
') 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

Re: Does python have built command for package skeleton creation?

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

Re: how to do draw pattern with python?

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

Re: how to do draw pattern with python?

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

<    1   2   3   4   5   6   7   8   9   10   >