New York - On Tuesday markets were staring at a global economic debacle because of the US budget and debt ceiling showdown.
By Thursday it was a new record for the S&P 500, and another on Friday.
It took Wall Street only a few hours to get past the political brinkmanship in Washington that had stirred worries of a US debt default and havoc in the global financial system.
After the government went through 16 days of partial shutdown, and on the eve of the day the Treasury said it would run out of cash to pay the country's bills, politicians late on Wednesday finally struck a deal to fund the government and raise the borrowing ceiling.
Investors were quick to buy the good news, and continued to buy through Friday, sending the S&P to another record, with the help of a huge rise in Google shares.
But some disappointments in blue chip third quarter earnings reports kept a damper on the more narrow Dow Jones Industrial Average.
For the week, the Dow added 1.1% to 15 399.65 points.
The S&P put on 2.4%, setting the closing record on Friday of 1 744.50 points, and an intra-day high of 1 745.31.
The Nasdaq, which had fallen the most during the political crisis, surged 4.3%, reaching its highest since September 2000.
The return of the bulls seemed to exculpate the Republican politicians that held the government and the US credit rating hostage for goals never achieved.
Wall Street figures berated Washington through the crisis for sending shivers into the markets, but forgot quickly.
"Talk about rewarding bad behavior," said Douglas Porter, chief economist at BMO Capital Markets.
"Perhaps the most remarkable aspect to the whole sorry spectacle surrounding the debt ceiling debacle is how well behaved markets were, seemingly confident that the adults would ultimately save the day."
There were varied opinions over the impact. Most economists said the shutdown, which took an estimated $25bn out of the economy, would trim around 0.5 percentage points from fourth quarter growth, leaving it at a sluggish annual pace of about 2.0%.
Some expect a bounceback in the first quarter of 2014, but others noted the same issues and the same political standoff over the budget could return in January, when the interim fiscal 2014 funding runs out again.
"Although the US dodged a bullet this week, this month's events dealt a blow to fourth-quarter GDP," said economists IHS Global Insight in a client note.
"But with the next fiscal deadline only three months away, yields on 3- and 6-month Treasury bills remain somewhat elevated compared to September levels.
"If policymakers in Washington decide to reprise this month's performance in January, the US runs the risk of a credit downgrade."
Such a prospect though would likely see the Federal Reserve continuing its huge bond-buying stimulus to shore up economic growth - sustaining the easy-money flow that Wall Street likes.
Attention will be on third quarter results and the release of delayed data next week, including the September jobs report.
So far company results have been a mixed bag, with notable disappointments from Goldman Sachs and United Health, among others, the reason the Dow is lagging.
On the other hand, Google's stellar report drove Friday's market surge, its own stock gaining 13.8% to soar past the $1 000 mark, pulling Facebook and Amazon up in its wake.
Analysts expect next week's data releases be less than indicative of where the economy lies, given the turmoil of the past weeks that they will not cover.
The September employment report will be released on Tuesday, with expectations that the jobless rate will remain at 7.3% on a modest number of jobs created.
There will also be data on home sales and durable goods orders.