Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/PIL/JpegImagePlugin.py   antisocial(Download)
    # The exif info needs to be written as one block, + APP1, + one spare byte.
    # Ensure that our buffer is big enough
    bufsize = max(ImageFile.MAXBLOCK, bufsize, len(info.get("exif",b"")) + 5 )
 
    ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)], bufsize)

src/p/i/Pillow-2.4.0/PIL/JpegImagePlugin.py   Pillow(Download)
    # The exif info needs to be written as one block, + APP1, + one spare byte.
    # Ensure that our buffer is big enough
    bufsize = max(ImageFile.MAXBLOCK, bufsize, len(info.get("exif",b"")) + 5 )
 
    ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)], bufsize)

src/p/i/Pillow-HEAD/PIL/JpegImagePlugin.py   Pillow(Download)
    # The exif info needs to be written as one block, + APP1, + one spare byte.
    # Ensure that our buffer is big enough
    bufsize = max(ImageFile.MAXBLOCK, bufsize, len(info.get("exif",b"")) + 5 )
 
    ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)], bufsize)

src/v/e/veil-HEAD/src/veil/utility/pillow/pillow.py   veil(Download)
        except IOError:
            # max block is not enough for saving this image, then use the square of max value in image's size
            old_max_block = PIL.ImageFile.MAXBLOCK
            try:
                PIL.ImageFile.MAXBLOCK = max(image.size) ** 2

src/d/j/django-tint-0.1/tint/imageprocs/default.py   django-tint(Download)
        except IOError:
            if im.info.get('progression'):
                orig_MAXBLOCK = ImageFile.MAXBLOCK
                temp_MAXBLOCK = 1048576
                if orig_MAXBLOCK >= temp_MAXBLOCK:

src/d/j/django-tint-HEAD/tint/imageprocs/default.py   django-tint(Download)
        except IOError:
            if im.info.get('progression'):
                orig_MAXBLOCK = ImageFile.MAXBLOCK
                temp_MAXBLOCK = 1048576
                if orig_MAXBLOCK >= temp_MAXBLOCK:

src/d/j/django-images-0.4.1/django_images/models.py   django-images(Download)
            except IOError:
                if img.info.get('progression'):
                    orig_MAXBLOCK = PIL.ImageFile.MAXBLOCK
                    temp_MAXBLOCK = 1048576
                    if orig_MAXBLOCK >= temp_MAXBLOCK:

src/d/j/django-images-HEAD/django_images/models.py   django-images(Download)
            except IOError:
                if img.info.get('progression'):
                    orig_MAXBLOCK = PIL.ImageFile.MAXBLOCK
                    temp_MAXBLOCK = 1048576
                    if orig_MAXBLOCK >= temp_MAXBLOCK:

src/d/j/django-imagewallet-HEAD/__init__.py   django-imagewallet(Download)
                try:
                    # Try save image with big block size
                    OLD_MAXBLOCK = PIL.ImageFile.MAXBLOCK
                    PIL.ImageFile.MAXBLOCK = MAXBLOCK
                    image.save(file, format=image_type, **save_params)

src/p/i/Pillow-HEAD/Tests/test_imagefile.py   Pillow(Download)
 
# save original block sizes
MAXBLOCK = ImageFile.MAXBLOCK
SAFEBLOCK = ImageFile.SAFEBLOCK
 

  1 | 2  Next