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")
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
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
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
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
=
class TestAppClient:
def __init__( self, server, socket ):
self.server = server
self.socket = socket
self.nomad = Connection( server, socket )
asyncore.loop(count=1)
The
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
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
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
[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!
>>
>
;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
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
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
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
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
. 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
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."
--
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
. (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
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
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
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
-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
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
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
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
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
[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
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
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.
20JUN2008
By John W. Hamill
Errata found in Python tutorial
http://www.python.org
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
Error Found by John W. Hamill
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
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"
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
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
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
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
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
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
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.
--
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
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
42 matches
Mail list logo