Full stack trace in pdb.post_mortem() ?

2019-11-01 Thread John W
I'm trying to understand pdb.post_mortem(), and why the backtrace available in the debugger session seems limited. I posted a similar question on stackoverflow[1], but figured I'd try here as well. Here's a simple program import pdb def inner(): raise Exception("bad stuff")

Re: sed/awk/perl: How to replace all spaces each with an underscore that occur before a specific string ?

2009-08-22 Thread John W. Krahn
bolega wrote: sed/awk/perl: How to replace all spaces each with an underscore that occur before a specific string ? I really prefer a sed one liner. Example Input : This is my book. It is too thick to read. The author gets little royalty but the publisher makes a lot. Output: This_is_my_book

Re: Mathematica 7 compares to other languages

2008-12-10 Thread John W Kennedy
for (int i = 0; i < x.length; ++i) a[i] = x[i]/divisor; return a; } -- John W. Kennedy "Never try to take over the international economy based on a radical feminist agenda if you're not sure your leader isn't a transvestite." -- David Misch: "She-Spies&q

Re: The Importance of Terminology's Quality

2008-08-23 Thread John W Kennedy
Martin Gregorie wrote: On Sat, 23 Aug 2008 00:06:28 -0400, John W Kennedy wrote: Martin Gregorie wrote: Not necessarily. An awful lot of CPU cycles were used before microcode was introduced. Mainframes and minis designed before about 1970 didn't use or need it No, most S/360s used micr

Re: The Importance of Terminology's Quality

2008-08-22 Thread John W Kennedy
1401, the typewriter was an optional luxury, mainly used in long batch jobs to do ad-hoc on-line queries. On the compatible 1460, the typewriter was somewhat more common, because the console the typewriter mounted on was a standard part of the system, so only the typewriter had to be added. --

Re: The Importance of Terminology's Quality

2008-08-22 Thread John W Kennedy
Martin Gregorie wrote: Not necessarily. An awful lot of CPU cycles were used before microcode was introduced. Mainframes and minis designed before about 1970 didn't use or need it No, most S/360s used microcode. -- John W. Kennedy "There are those who argue that everything brea

Re: The Importance of Terminology's Quality

2008-08-17 Thread John W Kennedy
Martin Gregorie wrote: On Sat, 16 Aug 2008 21:46:18 -0400, John W Kennedy wrote: Martijn Lievaart wrote: On Thu, 14 Aug 2008 18:33:30 -0400, John W Kennedy wrote: Actually, I was thinking of the 1401. But both the 1620 and the 1401 (without the optional Advanced Programming Feature) share

Re: The Importance of Terminology's Quality

2008-08-16 Thread John W Kennedy
Martijn Lievaart wrote: On Thu, 14 Aug 2008 18:33:30 -0400, John W Kennedy wrote: Actually, I was thinking of the 1401. But both the 1620 and the 1401 (without the optional Advanced Programming Feature) share the basic omission of any instruction that could do call-and-return without hard

Re: The Importance of Terminology's Quality

2008-08-14 Thread John W Kennedy
Robert Maas, http://tinyurl.com/uh3t wrote: John W Kennedy <[EMAIL PROTECTED]> wrote: JWK> Into the 60s, indeed, there were still machines being made JWK> that had no instruction comparable to the mainframe BASx/BALx JWK> family, or to Intel's CALL. You had to do a subprogra

Re: The Importance of Terminology's Quality

2008-07-22 Thread John W Kennedy
e a system programmer and had to write Algol-friendly assembler. -- John W. Kennedy "Give up vows and dogmas, and fixed things, and you may grow like That. ...you may come to think a blow bad, because it hurts, and not because it humiliates. You may come to think murder wrong, because

Re: The Importance of Terminology's Quality

2008-07-22 Thread John W Kennedy
sion, so it is a terminological mistake to refer to it without specifying the implementing compiler. Standards-conforming Algol compilers had a limited ability to create de-facto anonymous functions in the call-by-name implementation. -- John W. Kennedy "Information is light

Re: The Importance of Terminology's Quality

2008-07-20 Thread John W Kennedy
edit it in? From: John W Kennedy <[EMAIL PROTECTED]> It is explained s.v. "thunk", which is referenced from "ALGOL 60". The ALGOL "pass-by-name" argument/parameter matching was perhaps the most extreme example ever of a language feature that was "elegant"

Re: The Importance of Terminology's Quality

2008-07-01 Thread John W Kennedy
Robert Maas, http://tinyurl.com/uh3t wrote: Why this response is so belated: <http://groups.google.com/group/misc.misc/msg/cea714440e591dd2> = <news:[EMAIL PROTECTED]> Date: Tue, 24 Jun 2008 18:42:15 -0400 From: John W Kennedy <[EMAIL PROTECTED]> ... the "thunks" w

Problem found in tutorial

2008-06-24 Thread John W. Hamill
20JUN2008 By John W. Hamill Errata found in Python tutorial http://www.python.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Error Found by John W. Hamill

Re: The Importance of Terminology's Quality

2008-06-24 Thread John W Kennedy
David Combs wrote: passing *unnamed* functions as args (could Algol 60 also do something like that, via something it maybe termed a "thunk") No, the "thunks" were necessary at the machine-language level to /implement/ ALGOL 60, but they could not be expressed /in/ ALGOL.

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-11 Thread John W. Kennedy
[EMAIL PROTECTED] wrote: > Do not bluntly contradict me in public. You are in grave need of professional psychiatric help. Seek it now, if you do not wish your life to be ended three or four years down the line by a police sniper. -- John W. Kennedy Read the remains of Shakespeare's l

Re: which language allows you to change an argument's value?

2007-10-06 Thread John W. Kennedy
egant, but hideous to implement, and with bizarre side-effects in certain cases. -- John W. Kennedy Read the remains of Shakespeare's lost play, now annotated! http://pws.prserv.net/jwkennedy/Double%20Falshood/index.html -- http://mail.python.org/mailman/listinfo/python-list

Re: The meaning of a = b in object oriented languages

2007-09-20 Thread John W. Kennedy
in fact, is meaningless. Java has a certain defined behavior. C++ has a certain defined behavior. Smalltalk has a certain defined behavior. LISP has a certain defined behavior. Ada has a certain defined behavior. Object-oriented languages as a class do not. -- John W. Kennedy "The poor ha

Re: Regular expression use

2007-08-25 Thread John W. Krahn
Nick Maclaren wrote: > In article <[EMAIL PROTECTED]>, > Mirco Wahab <[EMAIL PROTECTED]> writes: > |> > |> Using complex regular expressions is like tank destruction > |> with contact charges glued on them. Only a few people > |> will even survive the first "usage", but survivors will > |> then e

Re: Portable general timestamp format, not 2038-limited

2007-07-02 Thread John W. Kennedy
-1980. However, the GPS signal also includes an occasional UTC correction figure, so it can be used to obtain UTC. -- John W. Kennedy "The first effect of not believing in God is to believe in anything" -- Emile Cammaerts, "The Laughing Prophet" -- http://mail.python.org/mailman/listinfo/python-list

Re: MI5 Persecution: Goldfish and Piranha 29/9/95 (5104)

2007-06-18 Thread John W. Kennedy
Mike wrote: > And this is here because ??? He's a broadband-spamming mental case. Plonk him and move on. -- John W. Kennedy If Bill Gates believes in "intelligent design", why can't he apply it to Windows? -- http://mail.python.org/mailman/listinfo/python-list

Re: On Java's Interface (the meaning of interface in computer programing)

2007-03-23 Thread John W. Kennedy
pert on Java and philosopher of programming languages to boot, and who is very eager to bestow upon the world all his brilliant insights. At least, that explanation is consistent with his historic behavior. -- John W. Kennedy "Only an idiot fights a war on two fronts. Only the heir to the th

Re: What is Expressiveness in a Computer Language

2006-06-22 Thread John W. Kennedy
family assembler, yes. 8086-family assembler, not so much. -- John W. Kennedy "The blind rulers of Logres Nourished the land on a fallacy of rational virtue." -- Charles Williams. "Taliessin through Logres: Prelude" -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's Edu Corner: Tech Geekers and their Style

2006-01-01 Thread John W. Kennedy
hat happens to an industry paralyzed by organized crime and a corrupt government. Microsoft delendum est. -- John W. Kennedy "But now is a new thing which is very old-- that the rich make themselves richer and not poorer, which is the true Gospel, for the poor's sake." --

Re: Microsoft Hatred FAQ

2005-11-02 Thread John W. Kennedy
g out competition in the > same way Microsoft has, if I recall correctly. IBM was genuinely innovative, and did their best to provide value for money. Microsoft hasn't been able to produce anything but me-too products since the 80's. (Multiplan, Word for DOS, the QBASIC engine, e

Re: Does Asyncore Send require newline?

2005-10-31 Thread John W
= class TestAppClient:     def __init__( self, server, socket ):     self.server = server     self.socket = socket       self.nomad = Connection( server, socket )     asyncore.loop(count=1) The

Does Asyncore Send require newline?

2005-10-31 Thread John W
Hello, I have a test environment that consists of a server and an application that opens an asyncore socket and communicates with it. In my application, on the handle_write call, if I do not append a "\n" to my message the server never gets the message.  If I do append it, the server can read the

Re: Asyncore Loop Question

2005-10-31 Thread John W
first socket program as well. Thanks, JohnOn 10/31/05, Steve Holden <[EMAIL PROTECTED]> wrote: John W wrote:> Hello,>> I have a gui application where I am trying to use the asyncore module to> gather data from other computers. I am able to connect, but I am getting> constant hand

Asyncore Loop Question

2005-10-31 Thread John W
Hello, I have a gui application where I am trying to use the asyncore module to gather data from other computers.  I am able to connect, but I am getting constant handle_write_event method calls into my application.  It is obviously slowing down the gui processing significantly. My understanding

How to add one month to datetime?

2005-10-21 Thread John W
Hello, I have been trying to figure out how to easily add just one month to a datetime object? For example if my datetime is: 1/31/2005 I want to get 2/28/2005 after adding one month. The max I can specify in a timedelta object is days.  However, since months vary in length, I can't just add 30

Re: Microsoft Hatred FAQ

2005-10-18 Thread John W. Kennedy
Rhino wrote: > "John W. Kennedy" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Rhino wrote: >> >>>Everyone >>>else was still using typewriters - which was IBM's bread and butter in > > those > >>>d

Re: Microsoft Hatred FAQ

2005-10-18 Thread John W. Kennedy
Jeroen Wenting wrote: > And were later forced to rescind. The judge who wrote that opinion is well > known for his anti-Microsoft activism. That's an outright lie. -- John W. Kennedy Read the remains of Shakespeare's lost play, now annotated! http://pws.prserv.net/jwkennedy/D

Re: Microsoft Hatred FAQ

2005-10-18 Thread John W. Kennedy
;s products at the center, using anything short of force or fraud. > > > Wrong. The only obligation Microsoft has is to their shareholders. If you genuinely believe that, you are a psychopath. -- John W. Kennedy "The poor have sometimes objected to being governed badly; the rich have alway

Re: Microsoft Hatred FAQ

2005-10-18 Thread John W. Kennedy
[EMAIL PROTECTED] wrote: > "John W. Kennedy" <[EMAIL PROTECTED]> writes: > > >>Michael Heiming wrote: >> >>>Let's not forget about the Internet, they invented together with >>>Al Gore and of course the wheel! >> >

Re: Microsoft Hatred FAQ

2005-10-18 Thread John W. Kennedy
Michael Heiming wrote: > Let's not forget about the Internet, they invented together with > Al Gore and of course the wheel! No fair picking on Al Gore. All he ever claimed was that he was the Congressional point man for the "Information Superhighway", which he was. -- Joh

Re: Microsoft Hatred FAQ

2005-10-15 Thread John W. Kennedy
lity with IE and compatibility with everybody else. The message -- "co-operate with us, or be punished". -- John W. Kennedy "...if you had to fall in love with someone who was evil, I can see why it was her." -- "Alias" -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-15 Thread John W. Kennedy
BM pulled ahead of them during the year when Univac computers were real and IBM computers weren't, and they never looked back. -- John W. Kennedy "Those in the seat of power oft forget their failings and seek only the obeisance of others! Thus is bad government born! Hold in your hea

Re: Jargons of Info Tech industry

2005-08-26 Thread John W. Kennedy
for web forums: public feedback pages, for example. (Add RSS and/or e-mail and/or NNTP feeds for more advanced users.) -- John W. Kennedy "The grand art mastered the thudding hammer of Thor And the heart of our lord Taliessin determined the war." -- Charles Williams. "Mount Badon" -- http://mail.python.org/mailman/listinfo/python-list

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread John W. Kennedy
alex goldman wrote: > John W. Kennedy wrote: > > >>Strong >>typing has been a feature of mainstream programming languages since the >>late 1950's. > > > Is Fortran a strongly typed language? I don't think so. Strong typing has > been inven

Re: What are OOP's Jargons and Complexities?

2005-05-23 Thread John W. Kennedy
alex goldman wrote: > John W. Kennedy wrote: > > >>Strong >>typing has been a feature of mainstream programming languages since the >>late 1950's. > > > I'm just curious, what do you mean by /strong/ typing, and which strongly > typed langu

Re: What are OOP's Jargons and Complexities?

2005-05-23 Thread John W. Kennedy
. (and if a program later > needs to change from one type of number to another, it is often > cumbersome.) This has nothing to do with object orientation or classes, but with strong typing, which is important for program verification, and an inescapable necessity for compiling to efficient obj

Re: [perl-python] Python documentation moronicities (continued)

2005-04-13 Thread John W. Kennedy
. Most non-trivial applications always use the compiled form UNQUOTE What does a programer who wants to use regex gets out from this piece of motherfucking irrevalent drivel? Until now, I have regarded you as a mildly amusing moron. But now I find you're simply illiterate. Buh-bye. -- John W. Ke