Source Code for Me (

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

HTML view:

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

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