Re: I have no clue figuring out how to check dates in workholidays

2020-11-06 Thread Cameron Simpson
ase paste the contents of gwd.py directly into your email (which itself should be a _reply_ to this email or your original email). Then we can see your code. Thanks, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a conflict of libraries here?

2020-11-08 Thread Cameron Simpson
r simple things where's they're really working against only one module. In most things it is unhelpful. >from tkinter import ttk ttk = sys.modules['tkinter'].ttk All of these 3 things set local variables/names in your script to some value. The "*" import sets a bunch of variables. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Changing strings in files

2020-11-09 Thread Cameron Simpson
ou're really batch editing files, you could (a) put everything into a VCS (eg hg or git) so you can roll back changes or (b) work on a copy of your directory tree or (c) just print the "text" filenames to stdout and pipe that into GNU parallel, invoking "sed -i.bak s/this/that/g" to batch edit the checked files, keeping a backup. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Changing strings in files

2020-11-10 Thread Cameron Simpson
On 10Nov2020 10:07, Manfred Lotz wrote: >On Tue, 10 Nov 2020 18:37:54 +1100 >Cameron Simpson wrote: >> Use os.walk for trees. scandir does a single directory. > >Perhaps better. I like to use os.scandir this way > >def scantree(path: str) -> Iterator[os.DirEntry[str]]

Re: Changing strings in files

2020-11-10 Thread Cameron Simpson
the replacement in memory. If we get all the way out the bottom, rewrite the file. If memory is a concern, we could copy modified lines to a temporary file, and copy back if everything was good (or not if we make no replacements). Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Changing strings in files

2020-11-10 Thread Cameron Simpson
usually be pretty early for video. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: io.TextIOWrapper.readlines

2020-11-11 Thread Cameron Simpson
based interface to stream I/O. It inherits IOBase. And the docs for IOBase has the readlines method with the signature you describe from its help. Nte that if I look at the readlines from TextIOWrapper it says: >>> open('/dev/null','r').readlines which pr

Re: How to start using python

2020-11-13 Thread Cameron Simpson
o attachments - just paste the text inline in your message. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter global variable

2020-11-13 Thread Cameron Simpson
t . This might be confusing< because that state is fragile, only applying if "pic" is never set, only accessed. As soon as David modifies on_printfilename() to _assign_ to pic, it becomes a local name if he hasn't used "global". IMO, if he must use "pic"

Re: try/except in loop

2020-11-27 Thread Cameron Simpson
headers = {'Authorization': 'Bearer ' + self.auth_token().token} Means you don't have to embed verbose checks all through your code - just grab "the token" and proceeed. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Returning from a multiple stacked call at once

2020-12-12 Thread Cameron Simpson
e and put()ing the data onto the queue. It's quite dependent on what you're trying to do though. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Letter replacer - suggestions?

2020-12-12 Thread Cameron Simpson
Also note that the exception itself is very interesting. So: except Exception as e: print(, e) raise Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Returning from a multiple stacked call at once

2020-12-12 Thread Cameron Simpson
On 12Dec2020 17:46, ast wrote: >Le 12/12/2020 à 09:18, Cameron Simpson a écrit : >>On 12Dec2020 07:39, ast wrote: >>>In case a function recursively calls itself many times, >>>is there a way to return a data immediately without >>>unstacking all functio

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Cameron Simpson
ly not. I think ChrisA's Python 2 suggestion is the go here. You may need to manually copy the requisite .so files if the package is about to vanish. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2 to Python 3 .so library incompatibility - need help

2020-12-16 Thread Cameron Simpson
On 16Dec2020 21:59, Chris Green wrote: >Cameron Simpson wrote: >> On 16Dec2020 18:51, Chris Green wrote: >> >The specific problem that finally prevented me from managing to get it >> >to work was a (Linux) .so file that had been built for Python 2 and, >> >

Re: Lambda in parameters

2020-12-17 Thread Cameron Simpson
chieves this If you rewite the lambda like this: def a_from_ab(a,b): return a and then rewrite the first call to cons() like this: cons(1,2)(a_from_ab) does it make any more sense? Frankly, I think this is a terrible way to solve this problem, whatever the problem was supposed

Re: Function returns old value

2020-12-17 Thread Cameron Simpson
x27;t cross the entirely in-vim-curses window boundary, very very handy. I guess iTerm may know about terminal scrolling regions, if that's how vim implements the windowing stuff. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Lambda in parameters

2020-12-19 Thread Cameron Simpson
On 19Dec2020 07:39, Philippe Meunier wrote: >See also the example reduction >here: https://en.wikipedia.org/wiki/Church_encoding#Church_pairs Thank you for this reference. I've stuck it on my reading list. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: list() strange behaviour

2020-12-20 Thread Cameron Simpson
tten longhand: L = [] for value in b: L.append(b) Written even longer: L = [] b_values = iter(b) while True: try: value = next(b_values) except Stopiteration: break L.append(value) which more clearly shows a call to "next()&qu

Re: How do you find what exceptions a class can throw?

2020-12-20 Thread Cameron Simpson
0s and 1990s. Gathering evidence is indeed part of science, and computer science is indeed mathematics, but alas programmering is just a craft and software engineering often ... isn't. Anyway, I would hope we're all for more rigour rather than less. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: list() strange behaviour

2020-12-20 Thread Cameron Simpson
On 21Dec2020 08:09, Cameron Simpson wrote: >>b = ((x[0] for x in a)) > >This is a generator comprehension, and _not_ a list. I should amend this: a "generator _expression_", not comprehension. A "generator comprehension" is not a thing. Apologies, Cameron Simp

Re: Which method to check if string index is queal to character.

2020-12-28 Thread Cameron Simpson
function will parse a single address, and getaddresses() will parse a list of addresses such as might be in a To: header line. They work well - I've been filing my email based on these for years - MANY thousands of messages. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: I'm finally disentangled from Python 2, thank you everyone

2020-12-29 Thread Cameron Simpson
ython 2 dependencies inside the package. >[...] Could I ask you to write up a post on what you did here? I've never used cx-freeze but it sounds like a useful thing for keeping legacy stuff functioning. A writeup from someone who's actually used it for that would be welcome. Cheers,

Re: Control stript which is runing in background.

2020-12-31 Thread Cameron Simpson
client (your command line control script) _share_ the same pipe - if two scripts un at once there will be a failure. If you contrive some locking scheme then you can share a named pipe in UNIX because only once client will use the pipe at a time. Just something to keep in mind. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Control stript which is runing in background.

2020-12-31 Thread Cameron Simpson
ctionality, and why sockets have a connect/accept step. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: Control stript which is runing in background.

2021-01-01 Thread Cameron Simpson
e difference in behaviours and semantics between UNIX named pipes (unidirection shared single channel) with sockets (bidirection distinct multichannels). Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: A random word from one of two lists

2021-01-01 Thread Cameron Simpson
from the list of animals or fruits. Since you (will) have the word "animals" or "fruits" in "kind", how do you reference the appropriate list? Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread Cameron Simpson
. >I know that this probably seems like a stupid post but your input will >be useful. No, it's entirely reasonable. Getting off the ground with a useful-to-you task is always the first hurdle with a new language. Cheers, Cameron Simpson -- https://mail.python.org/mailman/listinfo/python-list

Re: A beginning beginner's question about input, output and . . .

2021-01-11 Thread Cameron Simpson
On 11Jan2021 15:52, Dan Stromberg wrote: >On Mon, Jan 11, 2021 at 2:22 PM Cameron Simpson wrote: >> >I've seen some Python gui frameworks like Tkinter, PyQt, etc. but >> >they >> >look kinda like adding a family room onto a 1986 double wide mobile >> &

Re: how to get any available port

2005-10-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >Here's how it behaved over several runs: >$ python soc.py >('0.0.0.0', 34205) >$ python soc.py >('0.0.0.0', 34206) >$ python soc.py >('0.0.0.0', 34207) > >I

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, spiffo <[EMAIL PROTECTED]> wrote: . . . >I am a corporate developer, working for a single company. Got a new project >coming up and wondering if I should stay with Python for this new, fairly >la

Re: Can Python replace TCL/Expect

2005-10-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Robert Kern <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: >> Hi >> >> I'm learning Python. I don't know whether Python can do something like >> Expect can do. If yes, please show me how to do it. >> I want to do something automatically: open connection to a

Re: Can Python replace TCL/Expect

2005-10-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jorgen Grahn <[EMAIL PROTECTED]> wrote: . . . >It depends. I do not feel /that/ advanced, but I've been bitten by pexpect's >limitations several times in several places. > >... which puts me in

Dr. Dobb's Python-URL! - weekly Python news and links (Oct 17)

2005-10-17 Thread Cameron Laird
QOTW: "If you don't have the time to be paranoid, try taking the time to straighten out identity theft." -- K. G. Schneider "The best way to make classes on the fly is generally to call the metaclass with suitable parameters (just like, the best way to make instances of any type is generally to ca

Dr. Dobb's Python-URL! - weekly Python news and links (Oct 17)

2005-10-17 Thread Cameron Laird
QOTW: "If you don't have the time to be paranoid, try taking the time to straighten out identity theft." -- K. G. Schneider "The best way to make classes on the fly is generally to call the metaclass with suitable parameters (just like, the best way to make instances of any type is generally to ca

Re: Python vs Ruby

2005-10-20 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, bruno modulix <[EMAIL PROTECTED]> wrote: >Bryan wrote: >> Amol Vaidya wrote: >> >>> Hi. I am interested in learning a new programming language, and have >>> been debating whether to learn Ruby or Python. >(snip) >> >> why don't you do what i did? download ruby a

Dr. Dobb's Python-URL! - weekly Python news and links (Oct 26)

2005-10-25 Thread Cameron Laird
QOTW: "Using Unix for 20+ years probably warps one's perception of what's obvious and what isn't." -- Grant Edwards "... windoze users--despite their unfortunate ignorance, they are people too." -- James Stroud "The Widget Construction Kit (WCK) is an extension API that allows you to imp

Dr. Dobb's Python-URL! - weekly Python news and links (Oct 26)

2005-10-26 Thread Cameron Laird
QOTW: "Using Unix for 20+ years probably warps one's perception of what's obvious and what isn't." -- Grant Edwards "... windoze users--despite their unfortunate ignorance, they are people too." -- James Stroud "The Widget Construction Kit (WCK) is an extension API that allows you to imp

Issues with pyperl: perl2.so not found

2005-11-03 Thread Cameron Beattie
gz python -V Python 2.4.1 perl -v This is perl, v5.8.6 built for i386-linux-thread-multi Obviously I've done something wrong and any clues to point me or the system in the right direction would be appreciated. Regards Cameron -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheapest pocket device to code python on

2005-11-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Sybren Stuvel <[EMAIL PROTECTED]> wrote: >Devan L enlightened us with: >> I would not recommend trying to code on a handheld device. Small >> screen size and [usually] small keyboards make it >> less-than-practical. Stick with a laptop, or write it in a notebook, >>

Dr. Dobb's Python-URL! - weekly Python news and links (Nov 6)

2005-11-06 Thread Cameron Laird
QOTW: "- don't use SAX unless your document is huge - don't use DOM unless someone is putting a gun to your head" - Istvan Albert "I wouldn't fret too much about a sharp remark from Fredrik Lundh. They're pretty much all that way. ;) It looks like you already did the right thing - read past the

Dr. Dobb's Python-URL! - weekly Python news and links (Nov 6)

2005-11-06 Thread Cameron Laird
QOTW: "- don't use SAX unless your document is huge - don't use DOM unless someone is putting a gun to your head" - Istvan Albert "I wouldn't fret too much about a sharp remark from Fredrik Lundh. They're pretty much all that way. ;) It looks like you already did the right thing - read past the

Re: A Tcl/Tk programmer learns Python--any advice?

2005-11-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Kevin Walzer <[EMAIL PROTECTED]> wrote: . . . >I've gotten all the approropriate resources for learning Python (docs, >books, tutorials), so my question is this: are there any "gotchas" that >Tc

Re: Invoking Python from Python

2005-11-08 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Thomas Guettler <[EMAIL PROTECTED]> wrote: . . . >creating source code with a script, is no good solution. > >Once I had to maintain lisp code which stored its data in lisp code, too >(incl. co

Re: A Tcl/Tk programmer learns Python--any advice?

2005-11-08 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Russell E. Owen <[EMAIL PROTECTED]> wrote: . [acute observations] . . >Features of Python that are well integrated and well worth using include: >- objects >- collection classes (

Re: Invoking Python from Python

2005-11-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: . . . >Since Cameron didn't provide examples, let me grab a simple one. The >cheetah templating system works by creating Python prog

Dr. Dobb's Python-URL! - weekly Python news and links (Nov 9)

2005-11-09 Thread Cameron Laird
QOTW: "The lesson for me is to spend much less time on Python discussion and much more on unfinished projects. So even if I never use the new syntax, I will have gained something ;-)" - Terry Reedy "In short, this group is a broad church, and those readers with brains the size of planets should

Re: Invoking Python from Python

2005-11-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: . . . >It's very flexible - but at this point, the "configuration file" is a >Python program, and not really suitable to use by non-programmers.

Dr. Dobb's Python-URL! - weekly Python news and links (Nov 9)

2005-11-10 Thread Cameron Laird
QOTW: "The lesson for me is to spend much less time on Python discussion and much more on unfinished projects. So even if I never use the new syntax, I will have gained something ;-)" - Terry Reedy "In short, this group is a broad church, and those readers with brains the size of planets should

Dr. Dobb's Python-URL! - weekly Python news and links (Nov 16)

2005-11-15 Thread Cameron Laird
QOTW: "You can tell everything is well in the world of dynamic languages when someone posts a question with nuclear flame war potential like 'python vs. ruby' and after a while people go off singing hymns about the beauty of Scheme..." - vdrab "ctypes completely rocks." - Grant Edwards Mich

Dr. Dobb's Python-URL! - weekly Python news and links (Nov 16)

2005-11-16 Thread Cameron Laird
QOTW: "You can tell everything is well in the world of dynamic languages when someone posts a question with nuclear flame war potential like 'python vs. ruby' and after a while people go off singing hymns about the beauty of Scheme..." - vdrab "ctypes completely rocks." - Grant Edwards Mich

Re: running functions

2005-11-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> wrote: >On 2005-11-16, Gorlon the Impossible <[EMAIL PROTECTED]> wrote: > >> I'm not sure how to phrase this question. I have a Python function >> that sends MIDI messages to a synth. When I run it, I of course have >> to wait until

Re: running functions

2005-11-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Gorlon the Impossible <[EMAIL PROTECTED]> wrote: . . . >the fly' so to speak. I checked out the threading module and its >working for what I am trying to do at the moment, but I am open to >sugg

Re: How to write an API for a Python application?

2005-11-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, dwelch <[EMAIL PROTECTED]> wrote: >Gary Kshepitzki wrote: >> Hello >> I would like to create an API for a piece of Python code. The API is for use >> by non Python code. >> It should support interaction in both directions, both accessing functions >> on the API an

Re: How to write an API for a Python application?

2005-11-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Boddie <[EMAIL PROTECTED]> wrote: . . . >meaning that callbacks and other things just work. Rolling your own >solution, on the other hand, can end in a long road discovering what >those CORB

Re: How to write an API for a Python application?

2005-11-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I mumbled: . . . >Pyro might be perfect. My own instinct is to start even more >primitively, with a minimal asynchat client and server. I've >looked through the *Cookbook*, and see that it does

Dr. Dobb's Python-URL! - weekly Python news and links (Nov 26)

2005-11-26 Thread Cameron Laird
QOTW: "... '[B]ut assume that I have some other use case' isn't a valid use case". - Fredrik Lundh "Rolling your own solution, on the other hand, can end in a long road discovering what those CORBA people were doing for all those years." - Paul Boddie NOTW: sceptifications. Steven D'Apra

Dr. Dobb's Python-URL! - weekly Python news and links (Nov 26)

2005-11-27 Thread Cameron Laird
QOTW: "... '[B]ut assume that I have some other use case' isn't a valid use case". - Fredrik Lundh "Rolling your own solution, on the other hand, can end in a long road discovering what those CORBA people were doing for all those years." - Paul Boddie NOTW: sceptifications. Steven D'Apra

Re: How to write an API for a Python application?

2005-11-28 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: . . . >Note also that you can freely download all of the code in my book as >http://examples.oreilly.com/pythonian/pythonian-examples.zip (it's just >36 K

Re: How to write an API for a Python application?

2005-11-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: . . . >Yeah, O'Reilly tools have this delightful penchant for inserting a space >between two adjacent underscores, drives me crazy:-(. > > >Alex Do more

Re: How to get started in GUI Programming?

2005-11-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Kay Schluehr <[EMAIL PROTECTED]> wrote: > >[EMAIL PROTECTED] wrote: >> I am trying to learn GUI programming in Python, but have to confess I >> am finding it difficult. > >Don't do it if you can prevent it. > >GUI - toolkits are very complex beasts and at least to me

Re: python speed

2005-12-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Isaac Gouy wrote: > >> Which stated "Python is doing the heavy lifting with GMPY which is a >> compiled C program with a Python wrapper" - but didn't seem to compare >> that to GMPY with a Java wrapper? > >You are missing the main idea: J

Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2005-12-02 Thread Cameron Laird
QOTW: "Python makes it easy to implement algorithms." - casevh "Most of the discussion of immutables here seems to be caused by newcomers wanting to copy an idiom from another language which doesn't have immutable variables. Their real problem is usually with binding, not immutability." - Mike Me

Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2005-12-04 Thread Cameron Laird
QOTW: "Python makes it easy to implement algorithms." - casevh "Most of the discussion of immutables here seems to be caused by newcomers wanting to copy an idiom from another language which doesn't have immutable variables. Their real problem is usually with binding, not immutability." - Mike Me

Re: Use python to test Java and Windows (dll) applciations

2005-12-05 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, jb <[EMAIL PROTECTED]> wrote: >Hello everybody: > >I need help, and please let me know if python is the language of choice >to implement following functionalities: > >I am trying to test a Java application and a C++ (win32) application. > >I want to be able to write

Re: Ant (with Python extensions) good replacement for distutils?

2005-12-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Diez B. Roggisch <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] wrote: >> I know distutils well but don't know anything about Ant except that it >> is a build >> tool from Apache project. >> >> Could it possible be better or as good as distutils? >> (There are extens

Dr. Dobb's Python-URL! - weekly Python news and links (Dec 7)

2005-12-07 Thread Cameron Laird
QOTW: "... and to my utter surprise it worked." - Andrew Nagel on his move from wxPython to programming Tkinter in desperation "Python has more web application frameworks than keywords." - Skip Montanaro (but probably others going back years) Frithiof Andreas Jensen writes frankly on use o

Dr. Dobb's Python-URL! - weekly Python news and links (Dec 7)

2005-12-08 Thread Cameron Laird
QOTW: "... and to my utter surprise it worked." - Andrew Nagel on his move from wxPython to programming Tkinter in desperation "Python has more web application frameworks than keywords." - Skip Montanaro (but probably others going back years) Frithiof Andreas Jensen writes frankly on use o

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 7)

2005-12-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, David Isaac <[EMAIL PROTECTED]> wrote: > >"Cameron Laird" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> Jibes against the lambda-clingers lead eventually to serious >> questions of style i

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 7)

2005-12-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, I reported: . . . >"Python has more web application frameworks than keywords." - Skip >Montanaro (but probably others going back years) . .

Re: new in programing

2005-12-09 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mike C. Fletcher <[EMAIL PROTECTED]> wrote: >Python iterates over "things" (objects), of which integer numbers are >just one possible choice. The range built-in command produces ranges of >integers which are useful for tasks such as this. > >lim = 3 > >for i in ra

Re: The Industry choice

2004-12-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: >Peter Dembinski <[EMAIL PROTECTED]> writes: >> If it has to be both reliable and secure, I suggest you used more >> redundant language such as Ada 95. > >That's something to think about and it's come up in discussions, b

Re: The Industry choice

2004-12-31 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Christopher Koppler <[EMAIL PROTECTED]> wrote: . . . >Manager culture is still very much mired in rituals that may in one form >or another go back to hunter-gatherer days (or maybe even further)

Re: The Industry choice

2005-01-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Hans Nowak <[EMAIL PROTECTED]> wrote: >Paul Rubin wrote: > >> You should write unit tests either way, but in Python you're relying >> on the tests to find stuff that the compiler finds for you with Java. > >As I wrote on my weblog a while ago, I suspect that this ef

Re: The Industry choice

2005-01-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Bulba wrote: >>OK, so what projects and why would you consider >>Python: >>1. "clearly unsuitable" > >Large-scale scientific computing projects, such as numerical weather >prediction, where performance is critical. Python could be used as

Re: The Industry choice

2005-01-02 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mark Carter <[EMAIL PROTECTED]> wrote: . [tale of *very* typical experience with non-software engineers] . . >use something like

Industrial organization (was: The Industry choice)

2005-01-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: >Bulba! <[EMAIL PROTECTED]> wrote: > >> True. I have a bit of interest in economics, so I've seen e.g. >> this example - why is it that foreign branches of companies >> tend to cluster themselves in one city or country (e.g. >

Re: The Industry choice

2005-01-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Terry Reedy <[EMAIL PROTECTED]> wrote: > >"Steve Holden" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> Well clearly there's a spectrum. However, I have previously written that >> the number of open source projects that appear to get stuck somewher

Compiler benefits (was: The Industry choice)

2005-01-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >Roy Smith wrote: >>I think you've hit the nail on the head. In awk (and perl, and most >>shells, and IIRC, FORTRAN), using an undefined variable silently gets >>you a default value (empty string or zero). This tends to propagate >>errors

How can engineers not understand source-code control? (was: The Industry choice)

2005-01-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mark Carter <[EMAIL PROTECTED]> wrote: . . . >Don't start me! Dammit, too late ... > >I've noticed that they have an overwhelming obsession with GUIs, too. >They design wizards for everything.

Re: How can engineers not understand source-code control?

2005-01-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Mark Carter <[EMAIL PROTECTED]> wrote: . . . >True story: when I began working for my current employer, there was a >guy there doing some work with a spreadsheet. He was given two weeks to

Re: The Industry choice

2005-01-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Peter Dembinski <[EMAIL PROTECTED]> wrote: . . . >def foo(x): >return str(x) > >str = foo(x) > >And now, let's say that foo()'s definition is in another module. >It is hard for a programmer

Re: The Industry choice

2005-01-04 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alan Gauld <[EMAIL PROTECTED]> wrote: >On Sat, 01 Jan 2005 16:08:07 GMT, [EMAIL PROTECTED] (Cameron >Laird) wrote: > >> I argue that it's a false opposition to categorize projects in >> terms of use of single languages. Many

Re: navigating/changing directories

2005-01-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Nick Coghlan <[EMAIL PROTECTED]> wrote: >The script is executed in a process separate from your command shell, and >hence >has no effect on your shell's current directory. > >There are some things that batch files and shell scripts are still good for - >manipulat

Excluded and other middles in licensing (was: The Industry choice)

2005-01-06 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: . . . >One last reflection -- I believe there are or used to be some programs >written by people no doubt of very good will, distributed with all >sources

Re: Integration with java

2005-01-14 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Istvan Albert <[EMAIL PROTECTED]> wrote: >Joachim Boomberschloss wrote: > >> the code is already written in Python, using the >> standard libraries and several extension modules > >One thing to keep in mind is that Jython does not >integrate CPython, instead it "u

Re: Integration with java (Jpype vs. JPE)

2005-01-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jon Perez <[EMAIL PROTECTED]> wrote: >Can someone summarize in a nutshell what is the >difference between JPype and JPE? JPE's the original. It provided more functionality than JPype has achieved so far, I believe (though that could change any day). I think no on

Re: java 5 could like python?

2005-01-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, vegetax <[EMAIL PROTECTED]> wrote: . . . >For example if i remember a function i want ie:get attribute, i dont >remember if the module implementer coded it as >getAttribute,GetAttribute,get_attr

Dr. Dobb's Python-URL! - weekly Python news and links (Jan 15)

2005-01-15 Thread Cameron Laird
QOTW: "Python: it tastes so good it makes you hungrier." -- EP "I don't consider 'throws Exception' to be sloppy, I consider it to be programmers voting with their feet." -- Roy Smith The Centre for Epidemiology and Research has released a high-quality suite of Python-based "Network-en

Re: Why 'r' mode anyway?

2005-01-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Tim Peters <[EMAIL PROTECTED]> wrote: . . . >reading up the bits in the index and offsets too, etc. IIRC, Unix was >actually quite novel at the time in insisting that all files were just >raw b

Re: reusing Tkinter Canvases

2005-01-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Sean McIlroy <[EMAIL PROTECTED]> wrote: >I'd like to save one Tkinter Canvas in order to use it on another >Canvas later. The problem is that it gets saved as EPS but it needs to >be GIF to be reuseable. How can I convert that format? .

Re: java 5 could like python?

2005-01-15 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Bengt Richter <[EMAIL PROTECTED]> wrote: . . . >This triggers a thought: Some are more passive about exploring than others, >and think there's nothing to be seen except what's pointed at. Sad for

Re: Checking for X availability

2005-01-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Nils Nordman <[EMAIL PROTECTED]> wrote: >On Tue, Jan 11, 2005 at 03:32:01AM -0800, Flavio codeco coelho wrote: >> So my question is: how can I check for the availability of X? i.e., >> How will my program know if its running in a text only console or in >> console w

Re: PyChecker messages

2005-01-16 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Roger Binns <[EMAIL PROTECTED]> wrote: . . . >> runner.py:200: Function (detectMimeType) has too many returns (11) >> >> The function is simply a long "else-if" clause, branching out to different

Re: PyChecker messages

2005-01-17 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Ben Sizer <[EMAIL PROTECTED]> wrote: >But you could use a dict of return values, or even just assigning a >different return value in each if clause. The end result is that you >have a single well-defined exit point from the function, which is >generally considered to

Dr. Dobb's Python-URL! - weekly Python news and links (Jan 15)

2005-01-17 Thread Cameron Laird
QOTW: "Python: it tastes so good it makes you hungrier." -- EP "I don't consider 'throws Exception' to be sloppy, I consider it to be programmers voting with their feet." -- Roy Smith The Centre for Epidemiology and Research has released a high-quality suite of Python-based "Network-en

Re: script to automate GUI application (newbie)

2005-01-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jim <[EMAIL PROTECTED]> wrote: > >It sounds like a case for the Expect program, to me. Try Google-ing >for "Expect". If you are looking for a Python approach, then try >googling for "Expect Python". > >Jim > No--that is, I find his description unambiguous in NOT a

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Orlando Vazquez <[EMAIL PROTECTED]> wrote: >Jeff Shannon wrote: > >snip > >> Because you cannot make Python secure against a malicious (or ignorant) >> user -- there's too much flexibility to be able to guard against every >> possible way in which user-code could

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Carl Banks <[EMAIL PROTECTED]> wrote: . . . >> Python, or Perl, or TCL, or Ruby, or PHP, > >Not PHP. PHP is one of the better (meaning less terrible) examples of >what happens when you do this s

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Quest Master <[EMAIL PROTECTED]> wrote: . . . >I know C/C++ might be better suited for a task of this kind, but most >of the modules in my application which need speed have already been >coded i

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