Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Python32 pyhackathon-201011

on

  • 1,743 views

Python 3.2 概要

Python 3.2 概要

Statistics

Views

Total Views
1,743
Views on SlideShare
1,743
Embed Views
0

Actions

Likes
1
Downloads
2
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Python32 pyhackathon-201011 Python32 pyhackathon-201011 Presentation Transcript

    • Python  3.2     @torufurukawa  #bucho  
    • •  11/13  alpha  4   •  12/04  beta  1   •  12/18  beta  2   •  01/08  RC1   •  01/22  RC2   •  02/05  release
    • Python  Language  Moratorium     Python  3.1   2       [PEP  3003]  
    • 3.2   •  2010/06/27  Python  3.1   •  2011/02/05  Python  3.2   •  2012/06/27    
    • FAQ:  Python  3.2  
    • :   hOp://wiki.python.org/moin/Python2orPython3  
    • •  logging   •  .pyc   •  Japanese  characters    
    • logging   •    •  What’s  New  in  Python  3.2  
    • Before:  API  or  .ini   my_logger  =   [handlers]          logging.getLogger('MyLogger')   keys=consoleHandler   my_logger.setLevel(logging.DEBUG)   [formaOers]   handler  =   keys=simpleFormaOer          logging.handlers.RotaangFileHandler(                  LOG_FILENAME,  maxBytes=20,   [logger_root]                  backupCount=5)   level=DEBUG   handlers=consoleHandler   my_logger.addHandler(handler)   [logger_simpleExample]   level=DEBUG   handlers=consoleHandler   qualname=simpleExample   propagate=0
    • Ager:   {"version":  1,    "formaOers":  {"brief":  {"format":  "%(levelname)-­‐8s:  %(name)-­‐15s:  %(message)s"},                                  "full":  {"format":  "%(ascame)s  %(name)-­‐15s  %(levelname)-­‐8s  %(message)s"},                                  },    "handlers":  {"console":  {                                        "class":  "logging.StreamHandler",                                        "formaOer":  "brief",                                        "level":  "INFO",                                        "stream":  "ext://sys.stdout"},                              "console_priority":  {                                        "class":  "logging.StreamHandler",                                        "formaOer":  "full",                                        "level":  "ERROR",                                        "stream":  "ext://sys.stderr"},                              },    "root":  {"level":  "DEBUG",  "handlers":  ["console",  "console_priority"]}}
    • !     JSON     logging   logging  
    • .pyc  
    • Before:  foo.py  à foo.pyc •  .pyc      
    • Ager:  Python   pyc __pycache__/foo.cpython-­‐32.pyc
    •      
    • Before:     •  UTF-­‐8     •  Windows   mbcs   ‘ignore’
    • Ager:   •    •  Windows   mbcs     •  os.fsencode()   •  os.fsdecode()  
    •      
    • •  logging   •  .pyc   •  Japanese  file  names  
    • •    •