Re: How to streamingly read text file and display whenever updated text

2013-10-06 Thread Mark Lawrence
a bare except is extremely bad practice, e.g. you can't stop rogue programs with a CTRL-C -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: How to streamingly read text file and display whenever updated text

2013-10-06 Thread Mark Lawrence
On 06/10/2013 12:03, Chris Angelico wrote: On Sun, Oct 6, 2013 at 9:36 PM, Mark Lawrence wrote: Also note that a bare except is extremely bad practice, e.g. you can't stop rogue programs with a CTRL-C Or to be more accurate, a Ctrl-C will cause a jump to your except clause. Since, in

Re: How to streamingly read text file and display whenever updated text

2013-10-06 Thread Mark Lawrence
On 06/10/2013 12:15, Chris Angelico wrote: On Sun, Oct 6, 2013 at 10:13 PM, Mark Lawrence wrote: Good point, but at least this time I typed "rogue" correctly, unlike on the tutor mailing list :) Obligatory TVTropes link. http://tvtropes.org/pmwiki/pmwiki.php/Main/RougeAnglesOfSat

Re: Odd-length string

2013-10-06 Thread Mark Lawrence
the key im using to decrypt the code. everything else is generated byt the decrytion process and the unhexlify command. So my guess is, the join command cant handle the b"u" type of format. how can i get rid of the b. Or does anyone have a better idea how to translate HEX into ASCII and sort out the lines that make sense Will you please be kind enough to quote your replies in context. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: how to read list from file

2013-10-06 Thread Mark Lawrence
ps://wiki.python.org/moin/GoogleGroupsPython -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: HEX to ASCII

2013-10-07 Thread Mark Lawrence
ething from the original. Thanks in anticipation. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Tail recursion to while iteration in 2 easy steps

2013-10-07 Thread Mark Janssen
>> That's fine. My point was: you can't at the same time have full >> dynamicity *and* procedural optimizations (like tail call opt). >> Everybody should be clear about the trade-off. > > Your wrong. Full dynamics is not in contradiction with tail call > optimisation. Scheme has already done it for

Re: Tail recursion to while iteration in 2 easy steps

2013-10-07 Thread Mark Janssen
> Only that you've got a consistent, stable (and therefore, > formalizable) translation from your language to the machine. That's > all. Everything else is magic. Do you know that the Warren > Abstraction Engine used to power the predicate logic in Prolog into > machien code for a VonNeumann mac

Re: Tail recursion to while iteration in 2 easy steps

2013-10-07 Thread Mark Janssen
On Mon, Oct 7, 2013 at 4:50 PM, Steven D'Aprano wrote: > On Mon, 07 Oct 2013 15:47:26 -0700, Mark Janssen wrote: >> I challenge you to get >> down to the machine code in scheme and formally describe how it's doing >> both. > > For which machine? R

Re: Tail recursion to while iteration in 2 easy steps

2013-10-07 Thread Mark Janssen
>>> But even putting that aside, even if somebody wrote such a description, >>> it would be reductionism gone mad. What possible light on the problem >>> would be shined by a long, long list of machine code operations, even >>> if written using assembly mnemonics? >> >> Only that you've got a consi

Re: Tail recursion to while iteration in 2 easy steps

2013-10-07 Thread Mark Janssen
>> Yeah, and this is where two models of computation have been conflated, >> creating magical effects, confusing everybody. I challenge you to get >> down to the machine code in scheme and formally describe how it's >> doing both. > > Which two models of computation are you talking about? And what

Re: Formal-ity and the Church-Turing thesis

2013-10-07 Thread Mark Janssen
> On Tuesday, October 8, 2013 5:54:10 AM UTC+5:30, zipher wrote: >> Now, one can easily argue that I've gone too far to say "no one has >> understood it" (obviously), so it's very little tongue-in-cheek, but >> really, when one tries to pretend that one model of computation can be >> substituted fo

Re: Formal-ity and the Church-Turing thesis

2013-10-07 Thread Mark Lawrence
ost poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Multiprocessing and Multithreading

2013-10-08 Thread Mark Lawrence
re blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Code golf challenge: XKCD 936 passwords

2013-10-08 Thread Mark Lawrence
characters on one line and added too many lines to count to your emails, which I've snipped. Please read and digest this https://wiki.python.org/moin/GoogleGroupsPython, thanks in anticipation. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: HEX to ASCII

2013-10-08 Thread Mark Lawrence
On 08/10/2013 09:13, [email protected] wrote: esmaspäev, 7. oktoober 2013 17:16.29 UTC+3 kirjutas Mark Lawrence: On 07/10/2013 14:54, [email protected] wrote: I forgot to tell. The teisendaja module that i have imported, is a number converter that allow to convert numbers from one base

Re: class implementation

2013-10-08 Thread Mark Lawrence
On 08/10/2013 09:20, [email protected] wrote: To whom and to what are you replying? -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: converting letters to numbers

2013-10-08 Thread Mark Lawrence
ffering from the highly contagious, highly virulent double line spacing disease. This is known to cause severe eye strain leading to blindness. In can be cured by purchasing medication here https://wiki.python.org/moin/GoogleGroupsPython -- Roses are red, Violets are blue, Most poems rhyme, B

Re: Formal-ity and the Church-Turing thesis

2013-10-08 Thread Mark Janssen
>> I don't have an infinite stack to implement >> lambda calculus, but... > > And then > >> But this is not a useful formalism. Any particular Program implements >> a DFA, even as it runs on a TM. The issue of whether than TM is >> finite or not can be dismissed because a simple calculation can >

Re: Can ay one help me on pysvn , i want to capture the log and status of checkout call .....

2013-10-08 Thread Mark Lawrence
dimensions. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Cookie gets changed when hit comes from a referrer

2013-10-09 Thread Mark Lawrence
On 08/10/2013 23:52, Νίκος Αλεξόπουλος wrote: Is there something i can try to isolate the problem and make it work? As you are the problem why not try solitary confinement? :) -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence --

Re: Pygame with python 3.3.2

2013-10-09 Thread Mark Lawrence
i dont know how to fix it. From http://docs.python.org/3.0/whatsnew/3.0.html "Change from except exc, var to except exc as var. See PEP 3110." You might also like to see this http://docs.python.org/3/howto/pyporting.html -- Roses are red, Violets are blue, Most poems rhyme, But this one d

Re: Cookie gets changed when hit comes from a referrer

2013-10-09 Thread Mark Lawrence
rates." Please be courteous enough to take your questions to an appropriate forum. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: öpcaö variable refrenced before assignment

2013-10-09 Thread Mark Lawrence
must remember to place things in context when replying to the Python main mailing list/news group". Do you understand this? -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Cookie gets changed when hit comes from a referrer

2013-10-09 Thread Mark Lawrence
On 09/10/2013 16:00, Νίκος Αλεξόπουλος wrote: ok so then tell me where i should ask this. Google, bing, duckduckgo, ask, yahoo ... -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Cookie gets changed when hit comes from a referrer

2013-10-09 Thread Mark Lawrence
On 09/10/2013 19:06, Denis McMahon wrote: Find the relevant forums and ask in them. Why am I thinking of this http://en.wikipedia.org/wiki/There%27s_a_Hole_in_My_Bucket ? -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.pytho

Re: Cookie gets changed when hit comes from a referrer

2013-10-09 Thread Mark Lawrence
On 09/10/2013 20:26, Tim Chase wrote: On 2013-10-09 19:28, Mark Lawrence wrote: On 09/10/2013 19:06, Denis McMahon wrote: Find the relevant forums and ask in them. Why am I thinking of this http://en.wikipedia.org/wiki/There%27s_a_Hole_in_My_Bucket ? There's a bug in my program,

Re: Cookie gets changed when hit comes from a referrer

2013-10-09 Thread Mark Lawrence
are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Can anyone help on conflicts between Python 2.5 and 2.7

2013-10-09 Thread Mark Lawrence
On 10/10/2013 04:32, Terry Reedy wrote: On 10/9/2013 9:31 PM, Steven D'Aprano wrote: I'm not a Windows guru, so I might be off-mark here (I'm sure somebody will correct me) but as I understand it, the "default Python" under Windows is the one that was installed most re

Re: Cookie gets changed when hit comes from a referrer

2013-10-09 Thread Mark Lawrence
onspicious by its absence. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: I am never going to complain about Python again

2013-10-09 Thread Mark Lawrence
Python again. Isn't that what the CS gurus call a type safe array? What's the problem, *I* don't see anything wrong with it :) -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Cookie gets changed when hit comes from a referrer

2013-10-09 Thread Mark Lawrence
ython-list/2013-October/657221.html https://mail.python.org/pipermail/python-list/2013-October/657034.html I don't understand you point, please explain. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Consolidate several lines of a CSV file with firewall rules [PS]

2013-10-11 Thread Mark Lawrence
inly be less bother if you read and digest this first https://wiki.python.org/moin/GoogleGroupsPython :) -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Mark Lawrence
ty fish filled glue I'm too lazy to type anything else so please refer to this http://stackoverflow.com/questions/843277/how-do-i-check-if-a-variable-exists-in-python. I'll also leave the argument over whether it's a variable or a name to others :) -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Why isn't this code working how I want it to?

2013-10-12 Thread Mark Lawrence
le banana Could it be that you just confused dict keys with dict values? This fixed it, thank you! I did think a dictionary was right; I never considered swapping the keys with the values, though. A simple 'fix, but it worked. You've been a great help. That's good to hear. Would you please read and digest this https://wiki.python.org/moin/GoogleGroupsPython if you need to post again, a quick glance above will soon tell you why :) -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: web scraping

2013-10-12 Thread Mark Lawrence
about how to us it.. Thanks [email protected] Take a look at this http://www.crummy.com/software/BeautifulSoup/ -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: What version of glibc is Python using?

2013-10-13 Thread Mark Lawrence
tence. The documentation needs to be updated. Please submit a patch. John Nagle If you want it done I suggest you submit the patch. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.

Re: error message: "Cannot find GStreamer Python Library"

2013-10-14 Thread Mark Lawrence
t-import-gst-in-python ? -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Mark Lawrence
I learned a lot from it, thanks. Would you be kind enough to learn something from this please https://wiki.python.org/moin/GoogleGroupsPython -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Mark Janssen
so slow. Yes, and all of that is because, the world has not settled on some simple facts. It needs an understanding of type system. It's been throwing terms around, some of which are well-defined, but others, not: there has been enormous cross-breeding that has made mutts out of everybody and someone's going to have to eat a floppy disk for feigning authority where there wasn't any. Mark J Tacoma, Washington -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-14 Thread Mark Janssen
>>> Python objects have dynamic operations suited >>> to a naive interpreter like CPython. >> >> Naive, no. > > "Naive", in this instance, means executing code exactly as written, > without optimizing things (and it's not an insult, btw). In that case, you're talking about a "non-optimizing" inter

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Lawrence
encyclopedia doesn't mention Python, unicode or IPv6. Not that it's old, but the stone mason retired years ago :) -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Janssen
> Objects in programming languages (or 'values' if one is more functional > programming oriented) correspond to things in the world. One of the things you're saying there is that "values correspond to things in the world". But you will not get agreement in computer science on that anymore than s

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Lawrence
ding is needed. Where is Unicode? Away. jmf I very much look forward to seeing your correct Python unicode implementation on the bug tracker. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-15 Thread Mark Lawrence
On 15/10/2013 21:26, Mark Janssen wrote: Yeah, well 40 years ago they didn't have parsers. I'm very pleased to see that (presumably) some Americans do have a sense of humour. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Law

Re: How pickle helps in reading huge files?

2013-10-16 Thread Mark Lawrence
iolets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-16 Thread Mark Janssen
On Tue, Oct 15, 2013 at 2:46 PM, Grant Edwards wrote: > On 2013-10-15, Mark Janssen wrote: > >> Yeah, well 40 years ago they didn't have parsers. > > That seems an odd thing to say. People were assembling and compiling > computer programs long before 1973. I'm

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-16 Thread Mark Janssen
>>> Types on the other hand correspond to our classifications and so are >>> things in our minds. >> >> That is not how a C programmer views it. They have explicit >> "typedef"s that make it a thing for the computer. > > Speaking as a C programmer, no. We have explicit typedefs to create new > la

Re: Markers on a matplotlib plot

2013-10-16 Thread Mark Lawrence
t A, and when the price is equal to $40 and label it B. Does anyone know how I can accomplish this. If this matplotlib.pyplot.text described here http://matplotlib.org/api/pyplot_api.html isn't any good I suggest you ask on the dedicated matplotlib users mailing list see https://l

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-16 Thread Mark Janssen
Who uses "object abstraction" in C? No one. That's why C++ was invented. >>> >> If not, Linux, how about Python? >> >> http://hg.python.org/cpython/file/e2a411a429d6/Objects > > Or huge slabs of the OS/2 Presentation Manager, which is entirely > object oriented and mostly C. It's done with S

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-16 Thread Mark Janssen
> And your earlier idea that punched cards didn't have tokens is wildly > ignorant of the state of software and languages 50 years ago. Please tell me how you parsed tokens with binary switches 50 years ago. Your input is rubbish. -- MarkJ Tacoma, Washington -- https://mail.python.org/mailman/l

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread Mark Lawrence
On 17/10/2013 01:53, Mark Janssen wrote: And your earlier idea that punched cards didn't have tokens is wildly ignorant of the state of software and languages 50 years ago. Please tell me how you parsed tokens with binary switches 50 years ago. Your input is rubbish. You must be one o

Re: Markers on a matplotlib plot

2013-10-17 Thread Mark Lawrence
On 17/10/2013 02:31, Brandon La Porte wrote: On Wednesday, 16 October 2013 18:31:09 UTC-4, Mark Lawrence wrote: On 16/10/2013 22:34, Brandon La Porte wrote: I have the following code to make a plot of 4 different supply curves (economics). from matplotlib import pyplot as plt

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread Mark Janssen
>Prior to that [the '70s] you have punch cards where there's no meaningful > definition of "parsing" because there are no tokens. > > I have no idea what you mean by this. [...] > You seem drawn to sweeping statements about the current state and history of > computer science, but then make clai

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread Mark Lawrence
On 17/10/2013 15:49, Mark Janssen wrote: Prior to that [the '70s] you have punch cards where there's no meaningful definition of "parsing" because there are no tokens. I have no idea what you mean by this. [...] You seem drawn to sweeping statements about the current

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Mark Lawrence
On 17/10/2013 04:13, Owen Jacobson wrote: It is no business of the Python community how the Ruby community manages sexism or any other ism. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread Mark Lawrence
. You dig? Heh Mark I am really sorry. I think this is the third or fourth time that I say something to which you reply with such egregious rubbish -- parsing has something to do with card-punches?!?! Yeah like python has something to do with the purple shirt I am wearing -- that a dozen othe

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Mark Lawrence
it does very little to distinguish itself from any other programming language. It's just so unfair, poor old CORAL gets left out of this type of list every time :( -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread Mark Janssen
;> and not have these sloppy understandings everywhere. You dig? > > Heh Mark I am really sorry. I think this is the third or fourth time that I > say something to which you reply with such egregious rubbish -- parsing has > something to do with card-punches?!?! Yeah like python has something

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread Mark Lawrence
On 17/10/2013 07:49, Peter Cacioppi wrote: I don't know if I want to step into the flames here, Even Python, which isn't strongly typed Yeah right. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread Mark Janssen
On Thu, Oct 17, 2013 at 3:10 PM, Ethan Furman wrote: > On 10/17/2013 01:57 PM, Ned Batchelder wrote: >> >> >> Read and listen more. Write and say less. > > > Mark Janssen has no interest in learning. From a thread long-ago: > > Mark Janssen wrote: >> &

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-17 Thread Mark Janssen
niversity (MIT?) to head their Computer Engineering department. Cheers, Mark -- https://mail.python.org/mailman/listinfo/python-list

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-18 Thread Mark Lawrence
going to one place for one purpose. Contrast that with its use in spaghetti code where you're leaping around like a naked person on an ant hill. -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-18 Thread Mark Lawrence
ue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-18 Thread Mark Lawrence
tand that the ladies involved used to surprise the big wig visitors by working in their underwear as the rooms could get so hot, quite something for the 1940s, but "Don't you know there's a war on". -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn'

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-18 Thread Mark Lawrence
On 18/10/2013 08:44, Chris Angelico wrote: On Fri, Oct 18, 2013 at 6:40 PM, Mark Lawrence wrote: On 18/10/2013 00:53, Peter Cacioppi wrote: You know, I'd heard somewhere that Goto was considered harmful trying to remember exactly where Yep, but it's used throughout t

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-18 Thread Mark Lawrence
:) -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-18 Thread Mark Lawrence
ar as I'm concerned all of the above belongs on comp.theoretical.claptrap, give me practicality beats purity any day of the week :) -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Error Testing

2013-10-19 Thread Mark Lawrence
urther data feel free to ask, we don't bite :) -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Error Testing

2013-10-19 Thread Mark Lawrence
In [7]: type(a) Out[7]: builtins.str -- Roses are red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Looking for UNICODE to ASCII Conversioni Example Code

2013-10-20 Thread Mark Lawrence
in the pipeline, and that's that). It's about time Amazon moved to 2.7, at least... Tell that to Amazon. Dear Amazon, Please upgrade to Python 3.3 or similar so that users can have better unicode support amongst other things. Love and kisses. Mark. -- Roses are red, Violets are bl

Re: skipping __init__ and using exploiting a class member instead

2013-10-20 Thread Mark Lawrence
e red, Violets are blue, Most poems rhyme, But this one doesn't. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Front-end to GCC

2013-10-20 Thread Mark Janssen
> Gccpy is an Ahead of time implementation of Python ontop of GCC. So it > works as you would expect with a traditional compiler such as GCC to > compile C code. Or G++ to compile C++ etc. That is amazing. I was just talking about how someone should make a front-end to GCC on this list a couple o

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-21 Thread Mark Lawrence
posed as a bizarre form of trolling. As my crystal ball is once again being mended, would you please be kind enough to tell all of us who and exactly what you're replying to. -- Python is the second best programming language in the world. But the best has yet to be invented. Christi

Re: Printing a drop down menu for a specific field.

2013-10-21 Thread Mark Lawrence
t the best has yet to be invented. Christian Tismer Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-21 Thread Mark Lawrence
in a procedural style it will be fixed? ChrisA -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python was designed (was Re: Multi-threading in Python vs Java)

2013-10-21 Thread Mark Lawrence
On 21/10/2013 08:43, Chris Angelico wrote: On Mon, Oct 21, 2013 at 6:39 PM, Mark Lawrence wrote: On 21/10/2013 08:31, Chris Angelico wrote: "I use Google Groups and it sucks, so I delete all the context because then nobody can see how much it sucks at showing context." Be

Re: Python Front-end to GCC

2013-10-21 Thread Mark Janssen
On Mon, Oct 21, 2013 at 12:46 AM, Steven D'Aprano wrote: > On Sun, 20 Oct 2013 20:35:03 -0700, Mark Janssen wrote: > > [Attribution to the original post has been lost] >>> Is a jit implementation of a language (not just python) better than >>> traditional ahead o

Re: Python Front-end to GCC

2013-10-21 Thread Mark Janssen
On Mon, Oct 21, 2013 at 4:08 AM, Philip Herron wrote: > Thanks, i've been working on this basically on my own 95% of the compiler is > all my code, in my spare time. Its been fairly scary all of this for me. I > personally find this as a real source of interest to really demystify > compilers a

Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.

2013-10-21 Thread Mark Lawrence
On 17/10/2013 00:36, Skybuck Flying wrote: Unfortunately python does not have labels and goto statements as far as I know http://entrian.com/goto/ -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https

Re: Python Front-end to GCC

2013-10-21 Thread Mark Janssen
> No its not like those 'compilers' i dont really agree with a compiler > generating C/C++ and saying its producing native code. I dont really believe > its truely within the statement. Compilers that do that tend to put in alot > of type saftey code and debugging internals at a high level to ge

Re: Python Front-end to GCC

2013-10-21 Thread Mark Janssen
> A language specification in BNF is just syntax. It doesn't say anything > about semantics. So how could this be used to produce executable C code > for a program? BNF is used to produce parsers. But a parser isn't > sufficient. A C program is just syntax also. How does the compiler generate exe

Re: Python Front-end to GCC

2013-10-22 Thread Mark Janssen
syntax that a BNF specification of the language would not allow (even though Steven calls it "syntax" which is what BNF in Dave's claim parses). So which of you is confused? I ask that in the inclusive (not exclusive OR) sense ;^) <-- face says "both". Mark Janssen Tacoma, Washington. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Front-end to GCC

2013-10-22 Thread Mark Lawrence
when considering that both Dave Angel and Steven D'Aprano, the targets of the snarkiness, have been regular, helpful contributors over many years. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https://mail.

Re: Python Front-end to GCC

2013-10-22 Thread Mark Lawrence
002312 arr[5] = 134513753 arr[6] = 1294213 arr[7] = -1082002164 arr[8] = -1082002312 arr[9] = 2527220 What am I missing here? arr is local to main, not static or global. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawre

Re: Python Front-end to GCC

2013-10-22 Thread Mark Janssen
>> So which of you is confused? I ask that in the inclusive (not >> exclusive OR) sense ;^) <-- face says "both". > > Could you please be less snarky? We're trying to communicate here, and it > is not at all clear yet who is confused and who is not. If you are > interested in discussing tec

Re: Python Front-end to GCC

2013-10-22 Thread Mark Janssen
So which of you is confused? I ask that in the inclusive (not exclusive OR) sense ;^) <-- face says "both". >>> >>> Could you please be less snarky? >> >> Okay. The purpose of BNF (at least as I envision it) is to >> produce/specify a *context-free* "grammar". A lexer parses the t

Re: Python Front-end to GCC

2013-10-22 Thread Mark Janssen
>> Okay. The purpose of BNF (at least as I envision it) is to >> produce/specify a *context-free* "grammar". A lexer parses the tokens >> specified in the BNF into an Abstract Syntax Tree. If one can produce >> such a tree for any given source, the language, in theory, can be >> compiled by GCC

Re: Python Front-end to GCC

2013-10-22 Thread Mark Janssen
it at all. That's the difference between a calculator and a computer. Thank you. You may be seated. Mark J Tacoma, Washington -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Front-end to GCC

2013-10-22 Thread Mark Lawrence
meaning of the words BNF, compile, program, and C. I believe we need to talk about the Dunning-Kruger effect No need for me to discuss that as I used to be big headed but now I'm perfect. -- Python is the second best programming language in the world. But the best has yet to be invented

Re: Python Front-end to GCC

2013-10-22 Thread Mark Lawrence
sitive"? :) -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Front-end to GCC

2013-10-22 Thread Mark Lawrence
y BNF. Yes. I thought Mark might have had a misconception that all programming languages have to be defined in BNF. Please be kind enough to disambiguate Mark, as I would not wish to be tarred with the same brush. TIA. -- Python is the second best programming language in the world. But the

Re: Screenshots in Mac OS X

2013-10-22 Thread Mark Lawrence
in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Screenshots in Mac OS X

2013-10-22 Thread Mark Lawrence
On 23/10/2013 01:22, Pratik Mehta wrote: Hey Mark, Thanks for reverting. I had tried coding it using os.system("screencapture -s /filepath") // for selecting a particular region.. I have replied to Kevin's comment, that's exactly what I am looking for. :) Thanks

Re: Python Front-end to GCC

2013-10-22 Thread Mark Lawrence
on a topic long enough to explain yourself. Either way, I don't know how else to move the discussion forward. You forgot to end with a well-warranted "Boom". Mark Janssen is rapidly becoming Xah Lee 2.0, identical down to the repugnant misogyny he expresses elsewhere. The only differenc

Re: Python Front-end to GCC

2013-10-22 Thread Mark Lawrence
On 23/10/2013 05:05, Michael Torrie wrote: On 10/22/2013 12:28 PM, Mark Janssen wrote: Thank you. You may be seated. Ranting Rick, is that you? I think that's unfair, rr can be very helpful when discussing IDLE type issues. In comparison all that appears to have eminated from T

Re: Python Front-end to GCC

2013-10-23 Thread Mark Lawrence
health, would you please be kind enough to read, digest and action this https://wiki.python.org/moin/GoogleGroupsPython. TIA. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https://mail.python.org/mailman

Re: Will Python 3.x ever become the actual standard?

2013-10-23 Thread Mark Lawrence
second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Will Python 3.x ever become the actual standard?

2013-10-23 Thread Mark Lawrence
carrying the tactical thermonuclear missile just in case of trouble as sometimes the combination of nailing heads to coffee tables and sarcasm just isn't enough. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark

Re: Will Python 3.x ever become the actual standard?

2013-10-23 Thread Mark Lawrence
l kit and being told to get on with it. Perhaps it's a case of second class treatment for users of a second class OS? Ducks and runs for cover :) -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- htt

<    21   22   23   24   25   26   27   28   29   30   >