Skip to main content

I wasn't following Meta Stack Overflow too closely so maybe something was changed that I'm not aware of. But each time I paste a snippet from a Python console I'm getting wrong formatting. What I'm doing wrong? It seems that '>>>'>>> is confusing for Stack Overflow. I've tried to escape it with backslashes, and it was working fine in preview but doesn't work after the question is rendered.

I was able to observe that problem on: recent Chrome (Windows, Mac), Safari 4 (Mac).

Here is my recent answermy recent answer I wasn't able to make right.

Funny, I think the snippets are rendered just fine on Meta Stack Overflow. Here is one:

>>> def throw(): raise Exception() 
... 
>>> a=1
>>> a=throw()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in throw
Exception
>>> a
1

I wasn't following Meta Stack Overflow too closely so maybe something was changed that I'm not aware of. But each time I paste a snippet from a Python console I'm getting wrong formatting. What I'm doing wrong? It seems that '>>>' is confusing for Stack Overflow. I've tried to escape it with backslashes, and it was working fine in preview but doesn't work after the question is rendered.

I was able to observe that problem on: recent Chrome (Windows, Mac), Safari 4 (Mac).

Here is my recent answer I wasn't able to make right.

Funny, I think the snippets are rendered just fine on Meta Stack Overflow. Here is one:

>>> def throw(): raise Exception() 
... 
>>> a=1
>>> a=throw()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in throw
Exception
>>> a
1

I wasn't following Meta Stack Overflow too closely so maybe something was changed that I'm not aware of. But each time I paste a snippet from a Python console I'm getting wrong formatting. What I'm doing wrong? It seems that >>> is confusing for Stack Overflow. I've tried to escape it with backslashes, and it was working fine in preview but doesn't work after the question is rendered.

I was able to observe that problem on: recent Chrome (Windows, Mac), Safari 4 (Mac).

Here is my recent answer I wasn't able to make right.

Funny, I think the snippets are rendered just fine on Meta Stack Overflow. Here is one:

>>> def throw(): raise Exception() 
... 
>>> a=1
>>> a=throw()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in throw
Exception
>>> a
1
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

I wasn't following Meta Stack Overflow too closely so maybe something was changed that I'm not aware of. But each time I paste a snippet from a Python console I'm getting wrong formatting. What I'm doing wrong? It seems that '>>>' is confusing for Stack Overflow. I've tried to escape it with backslashes, and it was working fine in preview but doesn't work after the question is rendered.

I was able to observe that problem on: recent Chrome (Windows, Mac), Safari 4 (Mac).

Here is my recent answermy recent answer I wasn't able to make right.

Funny, I think the snippets are rendered just fine on Meta Stack Overflow. Here is one:

>>> def throw(): raise Exception() 
... 
>>> a=1
>>> a=throw()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in throw
Exception
>>> a
1

I wasn't following Meta Stack Overflow too closely so maybe something was changed that I'm not aware of. But each time I paste a snippet from a Python console I'm getting wrong formatting. What I'm doing wrong? It seems that '>>>' is confusing for Stack Overflow. I've tried to escape it with backslashes, and it was working fine in preview but doesn't work after the question is rendered.

I was able to observe that problem on: recent Chrome (Windows, Mac), Safari 4 (Mac).

Here is my recent answer I wasn't able to make right.

Funny, I think the snippets are rendered just fine on Meta Stack Overflow. Here is one:

>>> def throw(): raise Exception() 
... 
>>> a=1
>>> a=throw()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in throw
Exception
>>> a
1

I wasn't following Meta Stack Overflow too closely so maybe something was changed that I'm not aware of. But each time I paste a snippet from a Python console I'm getting wrong formatting. What I'm doing wrong? It seems that '>>>' is confusing for Stack Overflow. I've tried to escape it with backslashes, and it was working fine in preview but doesn't work after the question is rendered.

I was able to observe that problem on: recent Chrome (Windows, Mac), Safari 4 (Mac).

Here is my recent answer I wasn't able to make right.

Funny, I think the snippets are rendered just fine on Meta Stack Overflow. Here is one:

>>> def throw(): raise Exception() 
... 
>>> a=1
>>> a=throw()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in throw
Exception
>>> a
1
Dressed a naked link. Using official names of sites, e.g -see http://stackoverflow.com/legal/trademark-guidance, "Proper Use of the Stack Overflow and Stack Exchange Name".
Source Link

What is wrong with code snippets/blocks on stackoverflowStack Overflow?

Hi, II wasn't following meta toMeta Stack Overflow too closely so maybe something was changed that I'm not aware of. But each time I paste a snippet from pythona Python console I'm getting wrong formatting. What I'm doing wrong? It seamsseems that '>>>' is confusing for stackStack Overflow. I've tried to escape it with backslashes, and it was working fine in preview but doesn't work after the question is rendered.

I was able to observe that problem on: recent Chrome (windowsWindows, macMac), safariSafari 4 (macMac).

Here is my recent answermy recent answer I wasn't able to make right What is the state of exception safety in Python?.

Funny, I think is that the snippets are rendered just fine on metaMeta Stack Overflow. Here is one:

>>> def throw(): raise Exception() 
... 
>>> a=1
>>> a=throw()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in throw
Exception
>>> a
1

What is wrong with code snippets/blocks on stackoverflow?

Hi, I wasn't following meta to closely so maybe something was changed that I'm not aware of. But each time I paste snippet from python console I'm getting wrong formatting. What I'm doing wrong? It seams that '>>>' is confusing for stack. I've tried to escape it with backslashes and it was working fine in preview but doesn't work after the question is rendered.

I was able to observe that problem on: recent Chrome (windows, mac), safari 4 (mac).

Here is my recent answer I wasn't able to make right What is the state of exception safety in Python?

Funny think is that the snippets are rendered just fine on meta. Here is one:

>>> def throw(): raise Exception() 
... 
>>> a=1
>>> a=throw()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in throw
Exception
>>> a
1

What is wrong with code snippets/blocks on Stack Overflow?

I wasn't following Meta Stack Overflow too closely so maybe something was changed that I'm not aware of. But each time I paste a snippet from a Python console I'm getting wrong formatting. What I'm doing wrong? It seems that '>>>' is confusing for Stack Overflow. I've tried to escape it with backslashes, and it was working fine in preview but doesn't work after the question is rendered.

I was able to observe that problem on: recent Chrome (Windows, Mac), Safari 4 (Mac).

Here is my recent answer I wasn't able to make right.

Funny, I think the snippets are rendered just fine on Meta Stack Overflow. Here is one:

>>> def throw(): raise Exception() 
... 
>>> a=1
>>> a=throw()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 1, in throw
Exception
>>> a
1
edited tags
Link
Jeff Atwood
  • 311.4k
  • 107
  • 889
  • 1.3k
Loading
added 10 characters in body
Source Link
Loading
Source Link
Loading