Re: [OT] Re: Why Is Escaping Data Considered So Magical?

2010-06-30 Thread Lawrence D'Oliveiro
In message , Michael Torrie wrote: > Okay, I will. Your code passes a char** when a char* is expected. No it doesn’t. > Consider this variation where I use a dynamically allocated buffer > instead of static: And so you misunderstand the difference between a C array and a pointer. -- http://ma

Re: Why Is Escaping Data Considered So Magical?

2010-07-01 Thread Lawrence D'Oliveiro
In message , Michael Torrie wrote: > On 06/29/2010 06:26 PM, Lawrence D'Oliveiro wrote: >>> I'm not sure you understood me correctly, because I advocate >>> *not* doing input sanitization. Hard or not -- I don't want to know, >>> because I don'

Re: [farther OT] Re: Why Is Escaping Data Considered So Magical?

2010-07-01 Thread Lawrence D'Oliveiro
In message <4c2ccd9c$0$1643$742ec...@news.sonic.net>, John Nagle wrote: > The approach to arrays in C is just broken, for historical reasons. Nevertheless, it it at least self-consistent. To return to my original macro: #define Descr(v) &v, sizeof v As written, this works whatever the type

Re: [farther OT] Re: Why Is Escaping Data Considered So Magical?

2010-07-02 Thread Lawrence D'Oliveiro
In message , Rami Chowdhury wrote: > On Thursday 01 July 2010 16:50:59 Lawrence D'Oliveiro wrote: > >> Nevertheless, it it at least self-consistent. To return to my original >> macro: >> >> #define Descr(v) &v, sizeof v >> >> As writte

Re: [farther OT] Re: Why Is Escaping Data Considered So Magical?

2010-07-03 Thread Lawrence D'Oliveiro
In message , Rami Chowdhury wrote: > I'm sorry, perhaps you've misunderstood what I was refuting. You posted: >> >> macro: >> >> #define Descr(v) &v, sizeof v >> >> >> >> As written, this works whatever the type of v: array, struct, >> >> whatever. > > With my code example I found that, as

Re: Why Is Escaping Data Considered So Magical?

2010-07-03 Thread Lawrence D'Oliveiro
In message , Robert Kern wrote: > On 2010-06-25 19:47 , Lawrence D'Oliveiro wrote: > >> In message, Cameron >> Simpson wrote: >> >>> On 25Jun2010 15:38, Lawrence >>> D'Oliveiro wrote: >>> >>> | In message<2010062422432

Re: Why Is Escaping Data Considered So Magical?

2010-07-03 Thread Lawrence D'Oliveiro
In message , Robert Kern wrote: > On 2010-06-25 19:49 , Lawrence D'Oliveiro wrote: > >> Why do people consider input sanitization so hard? > > It's not hard per se; it's just repetitive, prone to the occasional > mistake, and, frankly, really boring. But a

Re: Why are String Formatted Queries Considered So Magical?

2010-07-03 Thread Lawrence D'Oliveiro
In message , Nobody wrote: > On Tue, 29 Jun 2010 12:30:36 +1200, Lawrence D'Oliveiro wrote: > >>> Seriously, almost every other kind of library uses a binary API. What >>> makes databases so special that they need a string-command based API? >> >> HT

Re: Python as a scripting language. Alternative to bash script?

2010-07-04 Thread Lawrence D'Oliveiro
In message <7xpqzbj8st@ruckus.brouhaha.com>, Paul Rubin wrote: > ... and argc/argv were passed to the child process on its stack. I’ve always felt that to be a misfeature. It means you can’t implement a self-contained argument-parsing library, it still needs the mainline to explicitly pass/

Re: Python as a scripting language. Alternative to bash script?

2010-07-05 Thread Lawrence D'Oliveiro
In message , Mithrandir wrote: > I think that Python "could" be a alternative to bash and have some > advantages, but it's a long way off from being fully implemented. Would you prefer to do the following sort of thing in Python or Bash? AudioParms = "-f s16le -ar 48000 -ac 2" # because I

Re: Python as a scripting language. Alternative to bash script?

2010-07-05 Thread Lawrence D'Oliveiro
In message , Rhodri James wrote: > Classic Unix programming is a matter of stringing a bunch of tools > together with pipes to get the output you want. This isn't a great > paradigm for GUIs (not without tweaking that hasn't really been done), but > then again it was never meant to be. I’ve neve

Re: Splitting numeric litterals

2010-07-15 Thread Lawrence D'Oliveiro
In message , MRAB wrote: > Normally it's only string literals that could be so long that you might > want to split them over several lines. It is somewhat unusual to have a > _numeric_ literal that's very very long! Seems a peculiar assumption to make in a language that allows integers of arbitr

Re: File transfer on network

2010-07-17 Thread Lawrence D'Oliveiro
In message , MRAB wrote: > You could either open and close a connection for each image, or have the > client tell the server how many bytes it's going to send, followed by > the bytes (my preference would be to send the size as a string ending > with, say, a newline). I have used variations on th

Re: Fascinating interview by Richard Stallman at KTH on emacs history and internals

2010-07-17 Thread Lawrence D'Oliveiro
In message , Nick Keighley wrote: > On 16 July, 09:24, Mark Tarver wrote: >> On 15 July, 23:21, bolega wrote: >> >> >http://www.gnu.org/philosophy/stallman-kth.html >> >> > RMS lecture at KTH (Sweden), 30 October 1986 > > did you really have to post all of this... > > > >> > read more »...

Re: loading configuration files that are themselves python

2010-07-23 Thread Lawrence D'Oliveiro
In message <7j8w5tylmw@rapun.sel.cam.ac.uk>, Matthew Vernon wrote: > Is there a more idiomatic way of loading in a configuration file > that's python code ... Is it really a good idea to have a configuration language that’s Turing- complete? -- http://mail.python.org/mailman/listinfo/python-

Re: Python as a scripting language. Alternative to bash script?

2010-07-23 Thread Lawrence D'Oliveiro
In message , Tim Harig wrote: > On 2010-07-05, Lawrence D'Oliveiro > wrote: >> >> I’ve never come across any system where you could string together >> multiple GUI apps, or even multiple GUI operations in the same app, in >> any sensible or effective way at

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-23 Thread Lawrence D'Oliveiro
In message , Robert Kern wrote: > There are also utilities for mounting ISOs directly without burning them > to a physical disk. You need special utilities to do this?? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python as a scripting language. Alternative to bash script?

2010-07-23 Thread Lawrence D'Oliveiro
In message , Michael Torrie wrote: > While it's possible to set up pipes and spawn programs in parallel to > operate on the pipes, in practice it's simpler to tell subprocess.Popen > to use a shell and then just rely on Bash's very nice syntax for setting > up the pipeline. Just be careful about

Re: Socket performance

2010-07-24 Thread Lawrence D'Oliveiro
In message , Navkirat Singh wrote: > I had a question, programming sockets, what are the things that would > degrade performance and what steps could help in a performance boost? Remember the old saying, “premature optimization is the root of all evil”. Have you actually got some code working pr

Re: Library versions

2010-07-25 Thread Lawrence D'Oliveiro
In message <2cb0c88b-58ea-4704-8578-2ebd766f1...@t10g2000yqg.googlegroups.com>, Peo wrote: > My current plan is to call the library something like 'foo1' and > import it into scripts like 'import foo1 as foo'. Releases that change the > API would be installed as 'foo2', 'foo3' and so on. This wo

Re: Multiprocessing zombie processes

2010-07-26 Thread Lawrence D'Oliveiro
In message , Chris Rebert wrote: > "Paging Dr. Frankenstein. Dr. Frankenstein to the lab. Paging Dr. > Frankenstein." > > Most people try to /avoid/ making zombies. Is there some connection between Frankenstein and zombies? -- http://mail.python.org/mailman/listinfo/python-list

Re: non-blocking IO EAGAIN on write

2010-07-27 Thread Lawrence D'Oliveiro
In message , Roy Smith wrote: > Consider, for example, a write on a TCP connection. You are sitting in > a select(), when the other side closes the connection. The select() > should return, and the write should then immediately fail. Remember that select can return 3 different sets of file obje

Re: Are those features still the same?

2010-07-27 Thread Lawrence D'Oliveiro
In message , francogrex wrote: > By the way Peter Norvig is not biased, he works for Google research and is > a supporter of programming in any language, especially in Python. Bias doesn’t have to be a conscious thing. -- http://mail.python.org/mailman/listinfo/python-list

Re: python styles: why Use spaces around arithmetic operators?

2010-07-30 Thread Lawrence D'Oliveiro
In message , J.B. Brown wrote: > I personally prefer to be slightly excessive in the amount of spacing > I used, especially when parentheses are involved. > > myTuple = ( 1, 2, 3, 4, 5 ) Parentheses are punctuation. Why not leave spaces around the commas as well, to be consistent? myTuple

Normalizing A Vector

2010-07-30 Thread Lawrence D'Oliveiro
Say a vector V is a tuple of 3 numbers, not all zero. You want to normalize it (scale all components by the same factor) so its magnitude is 1. The usual way is something like this: L = math.sqrt(V[0] * V[0] + V[1] * V[1] + V[2] * V[2]) V = (V[0] / L, V[1] / L, V[2] / L) What I don’t li

RE: Ascii to Unicode.

2010-07-30 Thread Lawrence D'Oliveiro
In message , Joe Goldthwaite wrote: > Ascii.csv isn't really a latin-1 encoded file. It's an ascii file with a > few characters above the 128 range that are causing Postgresql Unicode > errors. Those characters work fine in the Windows world but they're not > the correct byte representation for

Re: Ascii to Unicode.

2010-07-30 Thread Lawrence D'Oliveiro
In message <4c51d3b6$0$1638$742ec...@news.sonic.net>, John Nagle wrote: > UTF-8 is a stream format for Unicode. It's slightly compressed ... “Variable-length” is not the same as “compressed”. Particularly if you’re mainly using non-Roman scripts... -- http://mail.python.org/mailman/listin

RE: Ascii to Unicode.

2010-07-30 Thread Lawrence D'Oliveiro
In message , Joe Goldthwaite wrote: > Next I tried to write the unicodestring object to a file thusly; > > output.write(unicodestring) > > I would have expected the write function to request the byte string from > the unicodestring object and simply write that byte string to a file. Encoded ac

Re: solving Tix problem in ubuntu jaunty

2010-07-30 Thread Lawrence D'Oliveiro
In message <7cbe39d0-cac8-41d8-b80a-a148ac4b7...@q21g2000prm.googlegroups.com>, jimgardener wrote: > How do I correct the problem? -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib timeout

2010-07-30 Thread Lawrence D'Oliveiro
In message <43f464f9-3f8a-4bec-8d06-930092d5a...@g6g2000pro.googlegroups.com>, kBob wrote: > The company changed the Internet LAN connections to "Accept Automatic > settings" and "Use automatic configuration script" Look at that configuration script, figure out what it’s returning for a proxy

Re: os.fork on linux defunct

2010-07-30 Thread Lawrence D'Oliveiro
In message <77a879cc-94ab-4e2a-a4af-a6945a5b8...@q16g2000prf.googlegroups.com>, Ray wrote: > I think I found it. need to call os.wait() The rule on Unix/Linux systems is: “always remember to gobble your zombie children”. -- http://mail.python.org/mailman/listinfo/python-list

Re: Normalizing A Vector

2010-07-31 Thread Lawrence D'Oliveiro
In message <877hkdhyl5@dpt-info.u-strasbg.fr>, Alain Ketterlin wrote: > Lawrence D'Oliveiro writes: > >> What I don’t like is having that intermediate variable L leftover after >> the computation. > > Well, it also guarantees that the square root is comp

Re: Normalizing A Vector

2010-07-31 Thread Lawrence D'Oliveiro
In message <87sk2zhpcj@dpt-info.u-strasbg.fr>, Alain Ketterlin wrote: > Lawrence D'Oliveiro writes: > >> V = tuple \ >> ( >> x >> / >> l >>for x in V >>for l in >>

Re: Problem with Elementtree and XMLSchem instance type

2010-07-31 Thread Lawrence D'Oliveiro
In message , Roland Hedberg wrote: > And there is the problem, I've lost the coupling between the prefix > 'fed' and the namespace > "http://docs.oasis-open.org/wsfed/federation/200706";. Why is this a problem? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is there no platform independent way of clearing a terminal?

2010-07-31 Thread Lawrence D'Oliveiro
In message , Daniel Fetchinson wrote: > Sure, there are many different terminals and many different operating > systems but in many areas python managed to hide all these complexities > behind a well defined API. Once upon a time, there were indeed many different kinds of actual physical termin

Re: Why is there no platform independent way of clearing a terminal?

2010-07-31 Thread Lawrence D'Oliveiro
In message , Tim Harig wrote: > It would be rewarding as it would make writing cross-platform charactor > mode applications possible. I thought Windows users were allergic to command lines. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is there no platform independent way of clearing a terminal?

2010-07-31 Thread Lawrence D'Oliveiro
In message , Emile van Sebille wrote: > If all else fails, repeating 24 (or 40,60?) lines feeds clears the > screen cross platform. Depending on the height of the terminal window... -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is there no platform independent way of clearing a terminal?

2010-07-31 Thread Lawrence D'Oliveiro
In message , Mark Lawrence wrote: > Personally I find double clicking on an msi file rather easier. Easier than apt-get dist-upgrade? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is there no platform independent way of clearing a terminal?

2010-08-01 Thread Lawrence D'Oliveiro
In message , Mark Lawrence wrote: > On 01/08/2010 07:50, Lawrence D'Oliveiro wrote: > >> In message, Mark >> Lawrence wrote: >> >>> Personally I find double clicking on an msi file rather easier. >> >> Easier than apt-get dist-upgrade? >

Re: Why is there no platform independent way of clearing a terminal?

2010-08-01 Thread Lawrence D'Oliveiro
In message <8bkosifpi...@mid.individual.net>, Gregory Ewing wrote: > Don't you just leave the machine on overnight and wait > for Microsoft to download all the stuff they think > you should be using? That’s fine, but it doesn’t handle the non-Microsoft stuff. -- http://mail.python.org/mailman/li

Re: Why is there no platform independent way of clearing a terminal?

2010-08-01 Thread Lawrence D'Oliveiro
In message , Mark Lawrence wrote: > On 01/08/2010 08:18, Lawrence D'Oliveiro wrote: > >> In message, Mark >> Lawrence wrote: >> >>> On 01/08/2010 07:50, Lawrence D'Oliveiro wrote: >>> >>>> In message, Mark >>>> Lawren

Re: Normalizing A Vector

2010-08-01 Thread Lawrence D'Oliveiro
In message <87k4oah1rp@dpt-info.u-strasbg.fr>, Alain Ketterlin wrote: > Lawrence D'Oliveiro writes: > >> No, I deliberately put it in that order to ensure that the value for l >> can only ever be evaulated once. > > Try this (essentially equivalent to yo

Re: Problem with Elementtree and XMLSchem instance type

2010-08-01 Thread Lawrence D'Oliveiro
In message <96e47fd8-c939-48a2-9a2b-92afa720c...@k1g2000prl.googlegroups.com>, Carl Banks wrote: > My general feeling is that ElementTree is a lot handier for reading > and writing your own XML formats, than for handling XML files produced > by other tools. Why is that? I’ve successfully used it

Re: Problem with Elementtree and XMLSchem instance type

2010-08-02 Thread Lawrence D'Oliveiro
In message <6627204c-d0b1-456d-94bd-76d946ad2...@g6g2000pro.googlegroups.com>, Carl Banks wrote: > On Aug 1, 5:43 pm, Lawrence D'Oliveiro > wrote: > >> In message >> <96e47fd8-c939-48a2-9a2b-92afa720c...@k1g2000prl.googlegroups.com>, Carl >> Ba

Re: Normalizing A Vector

2010-08-02 Thread Lawrence D'Oliveiro
In message <6dw5o.72330$ds3.63...@hurricane>, Bartc wrote: > There's a cost involved in using those fancy constructions. Sure. But at the point that starts to matter, you have to ask yourself why you’re not rewriting the CPU-intensive part in C. -- http://mail.python.org/mailman/listinfo/python

Re: Why is python not written in C++ ?

2010-08-03 Thread Lawrence D'Oliveiro
In message , Grant Edwards wrote: > I've always thought Ada was a pretty nice embedded/systems languages, > but some of the initial implementations were indede horrible. Well, there’s GNAT, the GNU Ada implementation. Seems pretty robust and complete, while offering backward compatibility with s

Re: Why is python not written in C++ ?

2010-08-03 Thread Lawrence D'Oliveiro
In message <7xmxt3uo4h@ruckus.brouhaha.com>, Paul Rubin wrote: > It's more verbose than C, so coding in it takes more keystrokes, but it > looks to me like the general coding approach (modulo the extra keystrokes) > should be similar to that of C, Algol, and so on, and the results should > be

Re: Why is python not written in C++ ?

2010-08-03 Thread Lawrence D'Oliveiro
In message , Grant Edwards wrote: > That said, the last time I looked the Ada spec was only something like > 100 pages long, so a case could be made that it won't take long to > learn. I don't know how long the C++ language spec is, but I'm > betting it's closer to 1000 than 100. I have a copy o

Re: Why is python not written in C++ ?

2010-08-03 Thread Lawrence D'Oliveiro
In message , Roy Smith wrote: > There are, however, a lot of people who know a large enough subset of > C++ to be productive ... I think there are some language features, knowledge of which has a negative impact on productivity. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is python not written in C++ ?

2010-08-04 Thread Lawrence D'Oliveiro
In message , Neil Hodgson wrote: >The Ada 2012 Language Reference Manual is 860 pages and the Ada 2005 > LRM was 790 pages. The annotated versions are even longer > http://www.ada-auth.org/standards/ada12.html Yeah, unfortunately the language was designed by a committee which was trying to

Re: Why is python not written in C++ ?

2010-08-04 Thread Lawrence D'Oliveiro
In message , Nobody wrote: > One feature which can't readily be implemented in C is the automatic > clean-up side of the RAII idiom. Use do-once blocks . -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is python not written in C++ ?

2010-08-04 Thread Lawrence D'Oliveiro
In message <7d95c0d3-718d-4958-9364-263c833f1...@i24g2000yqa.googlegroups.com>, sturlamolden wrote: > This is unsafe, anyone who writes this in C++ should be flogged: Only if they’re using exceptions. Otherwise, it’s fine. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is python not written in C++ ?

2010-08-04 Thread Lawrence D'Oliveiro
In message , Grant Edwards wrote: > In my experience, the hiring issue is "we're already behind schedule > and short-handed, we don't have the time or resources to teach people > a new language." Most people seem to need tutorials or handholding of some sort. Look at the number of questions in t

Re: Why is python not written in C++ ?

2010-08-04 Thread Lawrence D'Oliveiro
In message , Grant Edwards wrote: > The problem has nothing to do with the relative merits of the > languages. The problem is inertia. So how was C++ able to get popular in the first place? And how was Java able to grab some share from it? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is there no platform independent way of clearing a terminal?

2010-08-04 Thread Lawrence D'Oliveiro
In message , David Robinow wrote: > As an admittedly stupid comparison, I have 1579 DLLs in my > \windows\system32 directory. > Some number of these have been upgraded by Windows Update. What about the ones that aren’t? How do you maintain those? -- http://mail.python.org/mailman/listinfo/pyth

Re: Package management (was: Why is there no platform independent way of clearing a terminal?)

2010-08-04 Thread Lawrence D'Oliveiro
In message <87aap44mc7.fsf...@benfinney.id.au>, Ben Finney wrote: > Sadly, Python's package management is rather lacking by these standards. > The Distutils legacy assumption of “package recipient, system > administrator, and end user are all the same person”, among other design > decisions, makes

Re: Package management

2010-08-04 Thread Lawrence D'Oliveiro
In message <87pqxy2aqd@benfinney.id.au>, Ben Finney wrote: > Have you ever tried to make such a package and get it into Debian? I have found it very easy to recreate the same steps used by the package maintainers. For instance, “apt-get source ” brings down the exact same source files used

Re: Why is python not written in C++ ?

2010-08-05 Thread Lawrence D'Oliveiro
In message <7xocdi56cp@ruckus.brouhaha.com>, Paul Rubin wrote: > I'd say the Ada standardizers went to a great deal of trouble to specify > and document stuff that other languages simply leave undefined, leaving > developers relying on implementation-specific behavior that's not part > of the

Re: Why is python not written in C++ ?

2010-08-05 Thread Lawrence D'Oliveiro
In message , Roy Smith wrote: > C++, for all its flaws, had one powerful feature which made it very > popular. It is a superset of C. Actually, it never was. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is there no platform independent way of clearing a terminal?

2010-08-05 Thread Lawrence D'Oliveiro
In message , David Robinow wrote: > Lawrence, you've been asking a lot of off-topic questions about > Microsoft Windows. You’ve got to be kidding. Look at the number of Windows-specific questions this groups is already full of. -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess escaping POpen?!

2010-08-06 Thread Lawrence D'Oliveiro
In message , Chris Withers wrote: > Wolfgang Rohdewald wrote: > >> On Donnerstag 05 August 2010, Chris Withers wrote: >> >>> But why only the request for auth credentials? >> >> for security reasons I suppose - make sure a human enters >> the password > > Well yes, but what if you actually want

Re: Python Portability

2010-08-06 Thread Lawrence D'Oliveiro
In message , W. eWatson wrote: > I made a one character change to it and sent him the new py file. He can't > execute it. What exactly was the problem? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Script Cannot Write to Directory

2010-08-06 Thread Lawrence D'Oliveiro
In message <4c5a6d00$0$29614$426a3...@news.free.fr>, News123 wrote: > The original question lacks necessary information That seems to be very common in this newsgroup. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is python not written in C++ ?

2010-08-06 Thread Lawrence D'Oliveiro
In message , David Cournapeau wrote: > I have yet seen a project where you could build C code with a C++ > compiler - the only ones I know are specifically designed that way and > it is painful. I seem to recall a FAQ entry, might have been on kernelnewbies.org, asking why the Linux kernel wasn

Re: Why is python not written in C++ ?

2010-08-08 Thread Lawrence D'Oliveiro
In message <8c4g22f5l...@mid.individual.net>, Gregory Ewing wrote: > FWIW, certain parts of the Darwin kernel are written in a > carefully-selected subset of C++. So Apple evidently think > that it makes sense to use some C++ in a Unix kernel under > some circumstances. I wonder if that explains

Re: Why is python not written in C++ ?

2010-08-08 Thread Lawrence D'Oliveiro
In message , Albert van der Horst wrote: > The bottom line is that to implement a programming language > you want to use a simpler programming language, not a more > complicated one. That would rule out ever using a language to implement itself. -- http://mail.python.org/mailman/listinfo/python-

Re: Microsoft lessening commitment to IronPython and IronRuby

2010-08-08 Thread Lawrence D'Oliveiro
In message , Neil Hodgson wrote: > http://blog.jimmy.schementi.com/2010/08/start-spreading-news-future-of-jimmy.html Frankly I never understood the point of IronPython and IronRuby. They seemed like a desperate attempt to keep Dotnet relevant in the modern world of dynamic languages. Looks like

Re: Python Portability

2010-08-09 Thread Lawrence D'Oliveiro
In message , W. eWatson wrote: > Believe me I had no intent of expanding this thread beyond looking for a > straight and simple insight to Python distribution (portability, > whatever) and how to get my partner squared away. The general issue > seems to drifted off on its own accord. “Drifted off

Re: os.unlink on Windows

2010-08-09 Thread Lawrence D'Oliveiro
In message , Shambhu wrote: > It is working now after using double backslash in pathname. Might be simpler to use slashes. -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft lessening commitment to IronPython and IronRuby

2010-08-09 Thread Lawrence D'Oliveiro
In message <7fr16650meigqgmj8rh0n3a66q9r4j4...@4ax.com>, Tim Roberts wrote: > The .NET Common Language Runtime is a vast and very useful class library, > including two complete GUI systems. Used only by corporate code-cutter drones. Go on, name one creative thing which was ever done in Dotnet. -

Re: GUI automation tool (windows)

2010-08-10 Thread Lawrence D'Oliveiro
In message <56a18e2b-4967-4a63-852e-1eb53bb6e...@j8g2000yqd.googlegroups.com>, Alex Barna wrote: > So what happens to this field (Windows GUI automation) ? Can’t understand the point to it. “GUI automation” is a contradiction in terms, because a GUI is designed for use by humans to do manual t

Re: Why is python not written in C++ ?

2010-08-10 Thread Lawrence D'Oliveiro
In message , Christian Heimes wrote: > There isn't really a point in cluttering the source with type casts. Makes you wonder why they bothered using a typed language at all. -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI automation tool (windows)

2010-08-10 Thread Lawrence D'Oliveiro
In message , Alex Barna wrote: > On Aug 10, 10:05 am, Lawrence D'Oliveiro > >> Can’t understand the point to it. “GUI automation” is a contradiction in >> terms, because a GUI is designed for use by humans to do manual tasks, >> not ones that can be automated. >

Re: GUI automation tool (windows)

2010-08-10 Thread Lawrence D'Oliveiro
In message <4c61a4f5$0$5804$426a3...@news.free.fr>, News123 wrote: > On 08/10/2010 12:25 PM, Alex Barna wrote: > >> On Aug 10, 10:05 am, Lawrence D'Oliveiro >> >>> Can’t understand the point to it. “GUI automation” is a contradiction in >>> terms, be

Re: GUI automation tool (windows)

2010-08-10 Thread Lawrence D'Oliveiro
In message , Robert Kern wrote: > On 2010-08-10 21:57 , Lawrence D'Oliveiro wrote: > >> In message >> , Alex >> Barna wrote: >> >>> On Aug 10, 10:05 am, Lawrence D'Oliveiro >>> >>>> Can’t understand the point to it. “GUI autom

Re: GUI automation tool (windows)

2010-08-10 Thread Lawrence D'Oliveiro
In message , Grant Edwards wrote: > Automated GUI intended to uncover problems in the underlying program > functionality ... That “underlying” functionality has nothing to do with the GUI, then. Why not test it directly, rather than go through the GUI? > Automated GUI testing often isn't even b

Re: GUI automation tool (windows)

2010-08-10 Thread Lawrence D'Oliveiro
In message , Grant Edwards wrote: > ... nobody's talking about using automated testing to figure out > what users think. That’s the trouble. What’s the point of a GUI, then? -- http://mail.python.org/mailman/listinfo/python-list

Re: how to save a whole web page with something block

2010-08-12 Thread Lawrence D'Oliveiro
In message , Daniel Fetchinson wrote: > A web server may present different output depending on the client > used. It may also require execution of some JavaScript to insert HTML content. > So you might want to make urllib appear as a browser by sending the > appropriate headers. If the above i

Re: looping through possible combinations of McNuggets packs of 6, 9 and 20

2010-08-12 Thread Lawrence D'Oliveiro
In message , Jean- Michel Pichavant wrote: > for mcNugget in range(0,10): > sendTo(trashbin) Ah, but should that be mcNugget.sendTo(trashbin) or trashbin.insert(mcNugget) ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is python not written in C++ ?

2010-08-14 Thread Lawrence D'Oliveiro
In message <44d30ac7-931e-4eb0-9aed-f664c872d...@l20g2000yqm.googlegroups.com>, sturlamolden wrote: > A C++ compiler can use Python's header files and link with Python's C API > correctly. But it cannot compile Python's C source code. A C compiler > is required to compile and build Python. Since

Re: Why is python not written in C++ ?

2010-08-15 Thread Lawrence D'Oliveiro
In message , Aahz wrote: > Heck, I learned Ada as a sixteen-year-old knowing only BASIC and Pascal. Not so surprising, considering Ada was consciously modelled on Pascal. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Python Sandbox

2010-08-15 Thread Lawrence D'Oliveiro
In message , Stephen Hansen wrote: > On 8/14/10 2:25 PM, Cameron Simpson wrote: > >> Ok, what about this: run the untrusted code in a separate process, >> if necessary running as a user with different privileges. > > Way too much overhead by a really significant margin: I need to do many, > many

Re: Python "why" questions

2010-08-15 Thread Lawrence D'Oliveiro
In message <4c5db0ae$0$1641$742ec...@news.sonic.net>, John Nagle wrote: > The languages which have real multidimensional arrays, rather > than arrays of arrays, tend to use 1-based subscripts. That > reflects standard practice in mathematics. Actually I’d go one better, and say that the lang

Re: Python "why" questions

2010-08-15 Thread Lawrence D'Oliveiro
In message , Thomas Jollans wrote: > "Where it all started" is that 0-based indexing gives languages like C a > very nice property: a[i] and *(a+i) are equivalent in C. From a language > design viewpoint, I think that's quite a strong argument. It would be if pointers and arrays were the same th

Re: Python "why" questions

2010-08-15 Thread Lawrence D'Oliveiro
In message , Ian Kelly wrote: > The ability to change the minimum index is evil. Pascal allowed you to do that. And nobody ever characterized Pascal as “evil”. Not for that reason, anyway... -- http://mail.python.org/mailman/listinfo/python-list

Re: Python "why" questions

2010-08-15 Thread Lawrence D'Oliveiro
In message <8crg0effb...@mid.individual.net>, Gregory Ewing wrote: > For example, the constant term of a polynomial is usually called term 0, > not term 1. That is not some kind of ordinal numbering of the terms, that is the power of the variable involved. And polynomials can have negative powe

Re: [Q] How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-16 Thread Lawrence D'Oliveiro
In message <5fa7b287-0199-4349-ae0d-c34c8461c...@5g2000yqz.googlegroups.com>, Standish P wrote: > We envisage an exogenous stack which has malloc() associated > with a push and free() associated with a pop. Since when are malloc(3) and free(3) exogenous? -- http://mail.python.org/mailman/listin

Re: Python "why" questions

2010-08-16 Thread Lawrence D'Oliveiro
In message , Roy Smith wrote: > 5) real intensity[160.0 : 30.0 : 0.01] How many elements in that array? a) 2999 b) 3000 c) neither of the above -- http://mail.python.org/mailman/listinfo/python-list

Re: 79 chars or more?

2010-08-17 Thread Lawrence D'Oliveiro
In message , AK wrote: > As monitors are getting bigger, is there a general change in opinion on > the 79 chars limit in source files? WHAT 79-character limit in source files? I currently have my Emacs windows set at 100 characters wide, and I’m thinking of going wider. Remember, the old hardc

Re: 79 chars or more?

2010-08-18 Thread Lawrence D'Oliveiro
In message , Martin Gregorie wrote: > 1) ssh terminal windows generally come up as 24 x 80 My terminal windows come up by default at something like 40 lines by 100 characters. > 2) at 24 x 80 I can get more ssh terminal windows on the desktop with >minimal overlap than I can do with longer/

Re: 79 chars or more?

2010-08-18 Thread Lawrence D'Oliveiro
In message <4c6a9c72.4040...@sschwarzer.net>, Stefan Schwarzer wrote: > self.expiration_date = translate_date( > find(response, 'MPNExpirationDate').text, > '%Y-%m-%d', > '%m%d%Y') Might I suggest (guessing at the argument keywords here) : self.e

Re: A question to experienced Pythoneers

2010-08-20 Thread Lawrence D'Oliveiro
In message <8d1b76b7-1ba3-49c5-97cf-dc3837050...@y11g2000yqm.googlegroups.com>, Rony wrote: > The manager of the development has been fired, main reason (what they > told me) is that they have big big troubles in keeping deadlines ! For > there last product, for which they estimated 3 man years o

Re: 79 chars or more?

2010-08-20 Thread Lawrence D'Oliveiro
In message , Jean-Michel Pichavant wrote: > Saying that, if one intend to distribute its code, he should stick to 80 > chars per line. Why? -- http://mail.python.org/mailman/listinfo/python-list

Re: String substitution VS proper mysql escaping

2010-08-21 Thread Lawrence D'Oliveiro
In message , Νίκος wrote: > I would expect that: > > ("nikos") is a single element tuple. Then how would you do a simple parenthesized expression? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Developer - HFT Trading firm - Chicago, IL

2010-08-21 Thread Lawrence D'Oliveiro
In message , Rich Moss wrote: > Python developer needed for math/trading applications and research at > leading HFT firm. Wasn’t HFT an exacerbating factor in just about every major stockmarket downturn since, oh, 1987? -- http://mail.python.org/mailman/listinfo/python-list

Re: Open a command pipe for reading

2010-08-21 Thread Lawrence D'Oliveiro
In message , Rodrick Brown wrote: > Sent from my iPhone 4. Glad to hear you achieved it without losing the signal. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Developer - HFT Trading firm - Chicago, IL

2010-08-21 Thread Lawrence D'Oliveiro
In message , Raymond Hettinger wrote: > On Aug 21, 2:30 am, Lawrence D'Oliveiro > wrote: > >> Wasn’t HFT an exacerbating factor in just about every major stockmarket >> downturn since, oh, 1987? > > IMO, it was a mitigating factor. > HFT firms provide

Re: Python Developer - HFT Trading firm - Chicago, IL

2010-08-23 Thread Lawrence D'Oliveiro
In message <8dbb89fi3...@mid.individual.net>, Gregory Ewing wrote: > Lawrence D'Oliveiro wrote: > >> Someone who doesn’t understand how positive feedback can lead to >> instabilities in a dynamical system. > > Let's hope the person they hire makes it hi

Re: 79 chars or more?

2010-08-24 Thread Lawrence D'Oliveiro
In message , Jean-Michel Pichavant wrote: > Lawrence D'Oliveiro wrote: > >> In message >> , Jean-Michel >> Pichavant wrote: >> >>> Saying that, if one intend to distribute its code, he should stick to 80 >>> chars per line. >>>

Re: Reading the access attributes of directories in Windows

2010-08-24 Thread Lawrence D'Oliveiro
In message , Nobody wrote: > 1. There are far more permission types than just "rwx". One thing Windows lacks is the ability to replace files that are currently open by another process. This is why Windows software updates require so many reboots. On Unix/Linux, you can replace the files, then r

<    6   7   8   9   10   11   12   13   14   15   >