Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Code:
Selected Language:
Show Linenumbers:
Short link for Twitter:
HTML:

HTML view:

Copy Source | Copy HTML
class Example:
  # ÑÑ‚арый Ð²Ð°Ñ€Ð¸Ð°Ð½Ñ‚
  def example(self):
    lock.acquire()
    try:
      ... access shared resource
    finally:
      lock.release() # Ñ€Ð°Ð·Ð±Ð»Ð¾ÐºÐ¸Ñ€Ð¾Ð²Ð°Ñ‚ÑŒ, Ð½ÐµÐ·Ð°Ð²Ð¸ÑÐ¸Ð¼Ð¾ Ð¾Ñ‚ Ð¾Ð±ÑÑ‚оятельств
 
  # Ð½Ð¾Ð²Ñ‹Ð¹ Ð²Ð°Ñ€Ð¸Ð°Ð½Ñ‚
  def example(self):
    with lock:
      ... access shared resource




Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2017