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!

Like this? Share it with your network

Share

Python32 pyhackathon-201011

  • 1,779 views
Uploaded on

Python 3.2 概要

Python 3.2 概要

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,779
On Slideshare
1,779
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Python  3.2     @torufurukawa  #bucho  
  • 2. •  11/13  alpha  4   •  12/04  beta  1   •  12/18  beta  2   •  01/08  RC1   •  01/22  RC2   •  02/05  release
  • 3. Python  Language  Moratorium     Python  3.1   2       [PEP  3003]  
  • 4. 3.2   •  2010/06/27  Python  3.1   •  2011/02/05  Python  3.2   •  2012/06/27    
  • 5. FAQ:  Python  3.2  
  • 6. :   hOp://wiki.python.org/moin/Python2orPython3  
  • 7. •  logging   •  .pyc   •  Japanese  characters    
  • 8. logging   •    •  What’s  New  in  Python  3.2  
  • 9. 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
  • 10. 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"]}}
  • 11. !     JSON     logging   logging  
  • 12. .pyc  
  • 13. Before:  foo.py  à foo.pyc •  .pyc      
  • 14. Ager:  Python   pyc __pycache__/foo.cpython-­‐32.pyc
  • 15.      
  • 16. Before:     •  UTF-­‐8     •  Windows   mbcs   ‘ignore’
  • 17. Ager:   •    •  Windows   mbcs     •  os.fsencode()   •  os.fsdecode()  
  • 18.      
  • 19. •  logging   •  .pyc   •  Japanese  file  names  
  • 20. •    •