Re: ANN: Intro+Intermediate Python, San Francisco, Aug 1-3

2012-07-10 Thread wesley chun
hello everyone, hope some of you enjoyed #EuroPython this past
week/end, and perhaps i'll see some of you at OSCON next week!

as promised, here's the one and only FINAL REMINDER of the hardcore
intro+intermediate Python course i'm offering 2012 Aug 1-3 near the
San Francisco airport. reach out to me directly with any questions and
let other folks know who may be interested.

best regards,
--wesley


On Thu, May 10, 2012 at 2:07 PM, wesley chun  wrote:
> Greetings!
>
> I'll be doing another hardcore Python course this summer in the San
> Francisco area. If you're somewhat new to Python or have tinkered but
> want to fill-in the holes, this course is for you. It's somewhat true
> you can learn Python online, watching videos, or reading books, but it
> still takes time and experience to master... I help accelerate this
> process. The course is based on my bestselling "Core Python" books and
> is made up of 3 full days complete with lectures and three hands-on
> coding labs per day.
>
> Please pass on this message to your colleagues who also need to learn
> Python. It's also a great excuse to coming to beautiful Northern
> California for a summer vacation! More details at http://goo.gl/uW4oF
> as well as the links in my .signature below.


-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A computer never does what you want... only what you tell it."
   +wesley chun : wescpy at gmail : @wescpy
Python training & consulting : http://CyberwebConsulting.com
"Core Python" books : http://CorePython.com
Python blog: http://wescpy.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: Intro+Intermediate Python, San Francisco, Aug 1-3

2012-05-10 Thread wesley chun
Greetings!

I'll be doing another hardcore Python course this summer in the San
Francisco area. If you're somewhat new to Python or have tinkered but
want to fill-in the holes, this course is for you. It's somewhat true
you can learn Python online, watching videos, or reading books, but it
still takes time and experience to master... I help accelerate this
process. The course is based on my bestselling "Core Python" books and
is made up of 3 full days complete with lectures and three hands-on
coding labs per day.

Please pass on this message to your colleagues who also need to learn
Python. It's also a great excuse to coming to beautiful Northern
California for a summer vacation! More details at http://goo.gl/uW4oF
as well as the links in my .signature below.

Since I hate spam, I'll only send out one more reminder as the date
gets closer... probably around OSCON's timeframe.

Hope to meet some of you soon!
--Wesley Chun
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A computer never does what you want... only what you tell it."
    wesley chun : wescpy at gmail : @wescpy/+wescpy
    Python training & consulting : http://CyberwebConsulting.com
    "Core Python" books : http://CorePython.com
    Python blog: http://wescpy.blogspot.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: Intro+Intermediate Python course, SF, Oct 18-20

2011-07-25 Thread wesley chun
Need to get up-to-speed with Python as quickly and as in-depth as
possible? Already coding Python but still have areas of uncertainty
you need to fill? Then come join me, Wesley Chun, author of
Prentice-Hall's bestseller "Core Python" for a comprehensive
intro/intermediate course coming up this May in Northern California,
then enjoy a beautiful Fall weekend afterwards in San Francisco, the
beautiful city by the bay.

Please pass on this note to whomever you think may be interested. I
look forward to meeting you and your colleagues! Feel free to pass
around the PDF flyer linked down below. Write if you have questions.

Since I hate spam, I'll only send out one reminder as the date gets
closer.

(Comprehensive) Intro+Intermediate Python
Tue-Thu, 2011 Oct 18-20, 9am-5pm

Hope to meet you soon!
-Wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON

Although this course may appear to those new to Python, it is also
perfect for those who have tinkered with it and want to "fill in the
gaps" and/or want to get more in-depth formal training.  It combines
the best of both an introduction to the language as well as a "Python
Internals" training course.

We will immerse you in the world of Python in only a few days, showing
you more than just its syntax (which you don't really need a book to
learn, right?). Knowing more about how Python works under the covers,
including the relationship between data objects and memory management,
will make you a much more effective Python programmer coming out of
the gate. 3 hands-on labs each day will help hammer the concepts home.

Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware,
NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or
jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine,
Jython, IronPython, and Mailman will also benefit!

PREVIEW 1: you will find (and can download) a video clip of a
class session recorded live to get an idea of my lecture style and
the interactive classroom environment (as well as sign-up) at:

http://cyberwebconsulting.com

PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books
Online has asked me to deliver a 1-hour webcast a couple of years ago
called "What is Python?". This was an online seminar based on a
session that I've delivered at numerous conferences in the past. It
will give you an idea of lecture style as well as an overview of the
material
covered in the course.

info:http://www.safaribooksonline.com/events/WhatIsPython.html
download (reg req'd):
http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA

WEB:   http://cyberwebconsulting.com

FLYER: http://cyberwebconsulting.com/flyerPP1.pdf

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and regular evening receptions; fully-equipped suites

See website for costs, venue info, and registration. There is a
significant discounts available for full-time students, secondary
teachers, and others.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
    http://corepython.com

wesley.chun : wescpy-gmail.com : @wescpy
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: Intro+Intermediate Python course, SF, May 24-26

2011-02-25 Thread wesley chun
Need to get up-to-speed with Python as quickly and as in-depth as
possible? Already coding Python but still have areas of uncertainty
you need to fill? Then come join me, Wesley Chun, author of
Prentice-Hall's bestseller "Core Python" for a comprehensive
intro/intermediate course coming up this May in Northern California,
then enjoy the Memorial Day weekend afterwards in San Francisco, the
beautiful city by the bay.

Please pass on this note to whomever you think may be interested. I
look forward to meeting you and your colleagues! feel free to pass
around the PDF flyer linked down below.

(Comprehensive) Introduction to Python
Tue-Thu, 2010 May 24-26, 9am-5pm

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON

Although this course may appear to those new to Python, it is also
perfect for those who have tinkered with it and want to "fill in the
gaps" and/or want to get more in-depth formal training.  It combines
the best of both an introduction to the language as well as a "Python
Internals" training course.

We will immerse you in the world of Python in only a few days, showing
you more than just its syntax (which you don't really need a book to
learn, right?). Knowing more about how Python works under the covers,
including the relationship between data objects and memory management,
will make you a much more effective Python programmer coming out of
the gate. 3 hands-on labs each day will help hammer the concepts home.

Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware,
NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or
jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine,
Jython, IronPython, and Mailman will also benefit!

PREVIEW 1: you will find (and can download) a video clip of a
class session recorded live to get an idea of my lecture style and
the interactive classroom environment (as well as sign-up) at:

http://cyberwebconsulting.com

PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books
Online has asked me to deliver a 1-hour webcast a couple of years ago
called "What is Python?". This was an online seminar based on a
session that I've delivered at numerous conferences in the past. It
will give you an idea of lecture style as well as an overview of the
material
covered in the course.

info:http://www.safaribooksonline.com/events/WhatIsPython.html
download (reg req'd):
http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA

WEB:   http://cyberwebconsulting.com

FLYER: http://cyberwebconsulting.com/flyerPP1.pdf

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and regular evening receptions; fully-equipped suites

See website for costs, venue info, and registration. There is a
significant discounts available for full-time students, secondary
teachers, and others.

Hope to see you there!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
    http://corepython.com

wesley.chun : wescpy-gmail.com : @wescpy
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: Python training, 2005 Aug 29-31, San Francisco

2005-08-17 Thread Wesley Chun
hi all,

just a reminder that our next Python training course is less than
2 weeks away!  details can be found at http://cyberwebconsulting.com
(click "Python training").  if you're interested in joining us near
San Francisco, sign up soon as there's only room for 9 more people!!
contact us at cyberweb-at-rocketmail.com with any questions.

thanks,
-wesley


> Newsgroups: comp.lang.python
> From: [EMAIL PROTECTED]
> Date: 28 Jul 2005 09:49:31 -0700
> Subject: ANN: Python training, 2005 Aug 29-31, San Francisco
> 
> What:   Python Programming I: Introduction to Python
> When:   August 29-31, 2005
> Where:  San Francisco, CA, USA
> 
> Already know Java, Perl, C/C++, JavaScript, PHP, or TCL/Tk, but want to
> learn Python because you've been hearing about how Google, Yahoo!,
> Industrial Light & Magic, Red Hat, Zope, and NASA are using this
> object-oriented, open source applications and systems development
> language?  Python is rapidly gaining momentum worldwide and seeing more
> new users each year. While similar to those other languages, Python
> differentiates itself with a robust yet simple-as-VB syntax which allows
> for shorter development time and improved group collaboration.
> 
> Need to get up-to-speed with Python as quickly as possible?  Come join
> us in beautiful Northern California the week before Labor Day.  We are
> proud to announce another rigorous Python training event taught by
> software engineer and "Core Python Programming" author, Wesley Chun.
> This is an intense introduction to Python programming geared towards
> those who have some proficiency in another high-level language.  Topics
> include:
> 
> * Python's Objects and Memory Model
> * Data Types, Operators, and Methods
> * Errors and Exception Handling
> * Files and Input/Output
> * Functions and Functional Programming
> * Modules and Packages
> * Classes, Methods, and Class Instances
> * Callable and Executable Objects
> 
> This course will take place daily August 29-31, 2005 (Monday through
> Wednesday, 9am - 5pm) in San Bruno, CA, right near the San Francisco
> International Airport at the:
> 
> Staybridge Suites
> San Francisco Airport
> 1350 Huntington Ave
> San Bruno, CA  94066
> 650-588-0770
> 
> This venue provides free shuttles to/from the airport and has easy
> access to public transit (BART, CalTrain, SamTrans) to help you get all
> over the Bay Area.  Afterwards, feel free to enjoy the holiday weekend
> in the greatest city by the Bay... bring your families!!
> 
> Sign up quickly as we can only take 15-20 enrollees!  For more infor-
> mation and registration, just go to http://cyberwebconsulting.com and
> click on the "Python Training" link.  If you have any questions, feel
> free to contact us at cyberweb-at-rocketmail.com.
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: Intro+Intermediate Python, San Francisco, Jul 30-31, Aug 1

2014-05-13 Thread wesley chun
Greetings!

I'll be offering another hardcore Python course this summer near the
San Francisco airport. If you're somewhat new to or have some Python
experience under your belt already but want to fill-in the holes,
this course is for you. Why take a real course when you can learn
Python online or by reading books?

Well, my goal isn't to teach Python syntax, which you can from any
teacher, live or online, or from giant books. My job is to create
great Python developers and removing the roadblocks that impede
your path to getting there. This intensive course is based on my
"Core Python" (http://corepython.com) books and is made up of 3
full days complete with lectures and several hands-on coding labs
per day. t's also a great excuse to coming to beautiful Northern
California for a summer vacation!

Groups and development teams are welcome as well as individuals. I do
more private gigs and fewer of these public courses lately, so please
come join if you can... my next public intro/intermediate course may
not be for awhile, so I'm hoping to meet some of you this time around!

Sign up soon... there's a special earlybird rate for the rest of this
month before going up to the regular rate after that. More details and
registration at http://cyberwebconsulting.com as well as in the ad:
http://goo.gl/pyJseQ

I'm no fan of spam, so I'll only send out one last reminder as the
date gets closer... say around the end of June.

Cheers,
-- Wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"A computer never does what you want... only what you tell it."
+wesley chun <http://google.com/+WesleyChun> : wescpy at gmail :
@wescpy<http://twitter.com/wescpy>
Python training & consulting : http://CyberwebConsulting.com
"Core Python" books : http://CorePython.com
Python blog: http://wescpy.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ANN: Intro+Intermediate Python course, SF, Oct 18-20

2011-09-27 Thread wesley chun
** FINAL CALL **

http://sfbay.craigslist.org/sfc/cls/2495963854.html


-- Forwarded message --
From: wesley chun 
Date: Mon, Jul 25, 2011 at 12:32 PM
Subject: ANN: Intro+Intermediate Python course, SF, Oct 18-20

Need to get up-to-speed with Python as quickly and as in-depth as
possible? Already coding Python but still have areas of uncertainty
you need to fill? Then come join me, Wesley Chun, author of
Prentice-Hall's bestseller "Core Python" for a comprehensive
intro/intermediate course coming up this May in Northern California,
then enjoy a beautiful Fall weekend afterwards in San Francisco, the
beautiful city by the bay.

Please pass on this note to whomever you think may be interested. I
look forward to meeting you and your colleagues! Feel free to pass
around the PDF flyer linked down below. Write if you have questions.

Since I hate spam, I'll only send out one reminder as the date gets
closer.

(Comprehensive) Intro+Intermediate Python
Tue-Thu, 2011 Oct 18-20, 9am-5pm

Hope to meet you soon!
-Wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON

Although this course may appear to those new to Python, it is also
perfect for those who have tinkered with it and want to "fill in the
gaps" and/or want to get more in-depth formal training.  It combines
the best of both an introduction to the language as well as a "Python
Internals" training course.

We will immerse you in the world of Python in only a few days, showing
you more than just its syntax (which you don't really need a book to
learn, right?). Knowing more about how Python works under the covers,
including the relationship between data objects and memory management,
will make you a much more effective Python programmer coming out of
the gate. 3 hands-on labs each day will help hammer the concepts home.

Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware,
NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or
jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine,
Jython, IronPython, and Mailman will also benefit!

PREVIEW 1: you will find (and can download) a video clip of a
class session recorded live to get an idea of my lecture style and
the interactive classroom environment (as well as sign-up) at:

http://cyberwebconsulting.com

PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books
Online has asked me to deliver a 1-hour webcast a couple of years ago
called "What is Python?". This was an online seminar based on a
session that I've delivered at numerous conferences in the past. It
will give you an idea of lecture style as well as an overview of the
material
covered in the course.

info:http://www.safaribooksonline.com/events/WhatIsPython.html
download (reg req'd):
http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA

WEB:   http://cyberwebconsulting.com

FLYER: http://cyberwebconsulting.com/flyerPP1.pdf

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and regular evening receptions; fully-equipped suites

See website for costs, venue info, and registration. There is a
significant discounts available for full-time students, secondary
teachers, and others.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

wesley.chun : wescpy-gmail.com : @wescpy
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


LinuxJournal Readers' Choice Awards 2011 Best {Programming, Scripting} Language

2011-12-04 Thread wesley chun
in recent news...

Python wins LinuxJournal's Readers' Choice Awards 2011 as Best
Programming Language:
http://www.linuxjournal.com/slideshow/readers-choice-2011?page=27

yee-haw!! it's even more amazing that Python has won this title 3
straight years. let's celebrate and get back to building great things.

wait, in other news...

Python wins LinuxJournal's Readers' Choice Awards 2011 as Best
Scripting Language:
http://www.linuxjournal.com/slideshow/readers-choice-2011?page=28

interestingly enough, this happened last year as well:
http://www.linuxjournal.com/content/readers-choice-awards-2010

in fact, Python has nearly won this one 6 straight years, from
2006-2011, except bash won in 2009. is it the same people who are
voting (practically) every year? :-)

cheers,
--wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
    http://corepython.com

wesley.chun : wescpy-gmail.com : @wescpy
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [OT] Book authoring

2012-01-03 Thread wesley chun
fwiw, i've given a related talk a couple of times on this subject, the
most recent of which was at EuroPython this summer:
http://ep2011.europython.eu/conference/talks/writing-books-using-python-open-source-software

the content includes a couple of the tools mentioned in this thread as
well as some author case studies. slide deck's available there too.

cheers,
--wesley


On Dec 9 2011, 7:43 am, Nick Dokos  wrote:
> Grant Edwards  wrote:
> > On 2011-12-09, Miki Tebeka  wrote:
> > > Greetings,
>
> > > Any recommendations for abook authoringsystem that supports the following:
> > > 1. Code examples (with syntax highlighting and line numbers)
> > > 2. Output HTML, PDF, ePub ...
> > > 3. Automatic TOC and index
> > > 4. Search (in HTML) - this is a "nice to have"
>
> >http://en.wikipedia.org/wiki/Lightweight_markup_language
>
> > I've used asciidoc extensively and reStructuredText a little. Asciidoc
> > will produce all the formats you mentioned (though I've only refularly
> > used HTML and PDF). reStructuredText is what's used for Python docs
> > isn't it?
>
> > > Can I somehow use Sphinx?
>
> > Don't know what Sphinx is.
>
> I think Sphinx is used for the python docs: it sits atop rST and does
> all the transformations/processing to produce the desired output
> (http://sphinx.pocoo.org)
>
> > And there's always the old stand-by LaTeX, but it's a bit more
> > heavyweight with more of a learning curve.  OTOH, it does produce
> > text-book quality output.
>
> There is also orgmode, which has been used for a few books
> (http://orgmode.org). I know it does HTML and PDF (the latter through
> latex), but I'm not sure about ePub: ISTR somebody actually did ePub for
> his book but I don't remember details. The indexing is manual:
> add #+index: foo entries as required.  But in general, imo, automatic
> indexing for books sucks raw eggs (it works much better for highly
> regular source code like the python source base).
>
> Nick


-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
    http://corepython.com

wesley.chun : wescpy-gmail.com : @wescpy/+wescpy
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: first book about python

2006-08-01 Thread wesley chun
gene tani wrote:
> IOANNIS MANOLOUDIS wrote:
> > I want to learn python.
> > I plan to buy a book. I always find printed material more convenient than
> > reading on-line tutorials.
> > I don't know PERL or any other scripting language. I only know some BASH
> > programming. I am looking for a book which will help me get started and
> > should contain the foundations. I am not looking for the Python bible.
> > Any recommendations?
> > Ioannis
>
> Printed: Magnus Hetland's latest book, the Wrox book and OReilly
> Learning Python are all good.  Chun's "Core Python" will be updated and
> released soon, that will be good too.


thanks for the plug.  the book has indeed been fully updated plus a
few brand new chapters as well... release date's about the 1st-2nd
week of Sep 2006.

"Core Python" target audience is comprised of those who know how to
program in any other high-level language, i.e., C/C++, Java, Perl,
Tcl/Tk, PHP, etc., who want to learn Python as quickly and as
comprehensively as possible, then be introduced to a variety of
specialized topics with which to continue to develop your Python
skills with.  it is not the bible, as that would be the docs that
already come with Python.

i'd say it's about 40% beginner, 40% intermediate/advanced, and 20%
reference. if you're looking for a pure reference, check out Beazley's
PER or Martelli's Nutshell. if you're absolutely new to programming,
check out Dawson's Absolute Beginner or Downey/Eklner's How to Think
like a Computer Scientist.  if you want a large case study (tons of
examples, i.e., everything *plus* the kitchen sink), look for Lutz'
massive Programming Python.

if you only know shell scripting, you should still be able to pick up
much of the material in Core Python, esp. if you have done looping
and/or conditionals in the shell language.  it is a large book and is
pretty comprehensive though, so if you're looking for a lighter intro,
the books gene's suggested should work -- i would also add Dive into
Python to that group.  if possible, try to find sample chapters from
any book you're interested in before buying to make sure that it will
suit your needs.

when you start delving into Python, come over to the Python Tutor
mailing list.  if you have a question that no book seems to be able to
answer or seems to be taking forever to look up, you'll find that you
can get just about any answer from the helpful tutors on that list.

yiassoo!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: first book about python

2006-08-02 Thread wesley chun
(double feature)

> From: "Ray" <[EMAIL PROTECTED]>
> Date: Tues, Aug 1 2006 2:10 am
>
> Hi Wesley, which edition of Python will your latest Core Python cover?
> Will it cover 2.5?

ray: thanks for asking.  one of my goals for the book is to really cover
the *core* parts of the language, meaning that, like Python, i try to keep
it version independent.  if you write an app using 2.3, it should pretty much
run unmodified in 2.4, etc. in other words, regardless of which Python
release you use, the book will have relevant material.  it is not too often
that something about the core part of the language changes enough to
make a significant impact on the applications that people write.

with that said, i can tell you that the book has been updated to 2.5, as
well as includes some features already set for 2.6 and 2.7, and also
presumably 3.0.  in the book, we've placed markers or logos that *tag*
when an important feature was added to Python, so if you're still using
2.4 say, you can skip over stuff from newer versions, or at least read
about them so that you know what's possible if you migrate.

so far, the book has been pretty well received after speaking with some
(OSCON) conference attendees who saw the rough draft last week at
the convention bookstore.

hope this helps!
-wesley


> From: John Salerno <[EMAIL PROTECTED]>
> Date: Tues, Aug 1 2006 6:48 am
>
> wesley chun wrote:
>> if you want a large case study (tons of
>> examples, i.e., everything *plus* the kitchen sink), look for Lutz'
>> massive Programming Python.
>
> which is also coming out in a new edition soon.

i believe that mark's book will be released around the same time
as Aahz' Python for Dummies (another possible first book for
newbies), and Core Python will come around several weeks later
-- i know is that we are hitting the printers sometime this week,
followed by the binding, distribution, shipping, etc.

once the publisher or amazon has some sample text, i'll be glad
to share it with you.  there is a sample chapter from the 1st ed at
the book's website (link below) if you want to get a taste of my
writing style -- that hasn't changed between editions.  ;-)

cheers,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How do I put % in a format sting?

2006-10-05 Thread wesley chun
as fredrik and others have mentioned, '%%' in a format string gives
you the single '%' in the string as desired.

however, in your specific application (database), it's best to avoid
using Python's string formatting unless that is the default provided
by your database adapter for the reasons that carsten mentioned,
namely the possibility of a SQL injection attack.  when dealing with
databases, it's always safest to let the adapter code format your
string for you.

good luck!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: building strings from variables

2006-10-05 Thread wesley chun
> Following a discussion with an associate at work about various ways to
build strings from variables in python, I'd like to hear your opinions
and preferred methods.


from the performance standpoint, i believe that #4 (list join) from
scott is the fastest. #1 (string formatting) is next preferred only
because #3 (string concat) is the worst [think "realloc()"].  #2 is
useful for when you have users who aren't as comfortable with #1.

however, #3 is good for real newbies or those coming from other
languages since conceptually, it's the easiest to comprehend. bottom
line is that it depends on your requirements.

i'm constantly thinking performance, so that's why i answered in the
manner above.

hope this helps!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: Advanced Python training course, Nov 8-10, San Francisco

2006-10-11 Thread wesley chun
FINAL REMINDER... we still have some seats left!

What:  Advanced Python Programming
When:  Nov 8-10 2006
Where: San Francisco (SFO/San Bruno), CA, USA

http://cyberwebconsulting.com (click on "Python Training")

This course, meant to follow our in-depth introduction class, adds new
tools to the Python programmer's toolkit. We explore advanced topics
such as: network programming with sockets, Internet clients, GUI
development, Web/CGI, databases/SQL, Extending Python with C, threads,
etc. Lectures and lab will get attendees comfortable developing
applications in these areas.

Come join us in beautiful Northern California for another rigorous
Python training event taught by software engineer, "Core Python
Programming" author, and technical instructor, Wesley Chun. This
course will take place in San Bruno right near the San Francisco
International Airport at the:

Staybridge Suites
San Francisco Airport
1350 Huntington Ave
San Bruno, CA  94066 USA
+1-650-588-0770

LOCALS: accessible from the entire Bay Area: parking + easy
101/280/380 access, across the street from San Bruno BART and up the
street from San Bruno CalTrain stations

VISITORS: free shuttle to/from the airport, lots of free food and wireless

The cost is $1295 per attendee. Discounts available. For more
information and registration, go to the website above.

2007 CALENDAR: Feb 7-9 (Intro), May 16-18 (Advanced), Aug 20-22 (Intro)

hope to see you in class!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Adding Worksheets to an Excel Workbook

2006-10-11 Thread wesley chun
> From: [EMAIL PROTECTED]
> Date: Tues, Oct 10 2006 2:08 pm
>
> I'm a Python newbie, and I'm just getting to the wonders of COM
> programming.


welcome to Python!!  i too, have (recently) been interested in COM
programming, so much so that i added some material on Microsoft Office
(Win32 COM Client) Programming to the 2nd ed of my book, "Core Python
Programming" (see link below).  it's only introductory material, but i
think you may find it useful as i have, and shows you how to create
simple applications for Excel, Word, PowerPoint, and Outlook.

in addition to greg's code snippet, here's a snippet based on one from
the book (the code is under a CC license) -- it doesn't add a new
sheet, but does let you grab the "active" one (the one that is tabbed
and facing the user):

# based on excel.pyw in Core Python Programming, 2nd ed

from time import sleep
import win32com.client as win32

def excel():
xl = win32.gencache.EnsureDispatch('Excel.Application')
ss = xl.Workbooks.Add() # add a new spreadsheet/workbook
sh = ss.ActiveSheet  # grab the active sheet of the workbook
xl.Visible = True# make Excel show up on the desktop
sleep(1)

sh.Cells(1,1).Value = 'Python-to-Excel Demo'
sleep(1)
for i in range(3, 8):
sh.Cells(i,1).Value = 'Line %d' % i
sleep(1)
sh.Cells(i+2,1).Value = "Th-th-th-that's all folks!"

sleep(5)
ss.Close(False) # close the workbook and don't save
xl.Application.Quit() # quit Excel

if __name__=='__main__':
excel()

hope this helps!
-wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Adding Worksheets to an Excel Workbook

2006-10-11 Thread wesley chun
> just a small OT question coming from a linux openoffice
> system...
>
> Does there exist something similar for powerpoint? Would be
> nice, if anybody can direct me to more examples...


fabian,

see below for a PP example.  you mentioned you were coming from a
linux OOo system... are you trying to do COM stuff with OOo?  i'm not
familiar with it, but since they do support
some level of VB-like scripting, i don't believe it's out of the question.

one thing that i did forget to mention in my earlier message is that i
use static dispatch for these apps.  if you did not go and run the
makepy utility, you would have to use dynamic dispatch, start your
apps with win32com.client.Dispatch(), or, using the same import
statement as below, win32.Dispatch().

anyway, here is pretty much the same script as i sent earlier but for
PowerPoint instead of Excel (the book has small examples for each of
Excel, Word, PowerPoint, and Outlook):

# based on ppoint.pyw in Core Python Programming, 2nd ed

from time import sleep
import win32com.client as win32

def ppoint():
ppoint = win32.gencache.EnsureDispatch('PowerPoint.Application')
pres = ppoint.Presentations.Add()
ppoint.Visible = True

s1 = pres.Slides.Add(1, win32.constants.ppLayoutText)
sleep(1)
s1a = s1.Shapes[0].TextFrame.TextRange
s1a.Text = 'Python-to-PowerPoint Demo'
sleep(1)
s1b = s1.Shapes[1].TextFrame.TextRange
for i in range(3, 8):
s1b.InsertAfter("Line %d\r\n" % i)
sleep(1)
s1b.InsertAfter("\r\nTh-th-th-that's all folks!")

sleep(5)
pres.Close()
ppoint.Quit()

if __name__=='__main__':
ppoint()

HTH!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: BayPIGgies, Oct 12, 7:30pm, Google, Mtn View

2006-10-12 Thread wesley chun
Final REMINDER:

Tonight, the Silicon Valley/San Francisco Bay Area Python users group
meets at Google in Mountain View from 7:30-9p.

the featured speaker is Alex Martelli, author of O'Reilly's Python in
a Nutshell and editor of the Python Cookbook(s).  the topic is Python
2.5.

for more info and directions, see http://baypiggies.net

for information on meeting for dinner before the meeting (6pm):
http://mail.python.org/pipermail/baypiggies/2006-October/001228.html

hope to see you there!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Adding Worksheets to an Excel Workbook

2006-10-18 Thread wesley chun
> From: Tom Plunket
> Date: Tues, Oct 17 2006 6:34 pm
>
> You've got a lot of sleep calls in there- did you find that things
> behaved erratically without them?  I haven't done any Office
> automation with Python, but my DevStudio stuff has always worked a
> treat without the sleep calls.


sorry, i forgot to explain this in my previous post. the sleep()s are
not required and are used purely for demonstration purposes, to slow
things down so that you can see things happen live in the application.
 it's no fun if Excel opens and everything is already there!

cheers,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Observation on "Core Python Programming"

2006-10-30 Thread wesley chun
(warning: LONG reply)

thanks to those above for the kind remarks.  tackling comments
and questions, not quite in chronological order.  :-)


> Who would you say the book is aimed at? Advanced programmers?

this book is targeted towards technical professionals already
literate in another high-level language who wants to pick up
Python as quickly as possible.  it is not a topical coverage
of a programming language's features.  you know how after
learning a new language, it takes a few months to really "feel
comfortable" enough to *not* pick up a book in order to commence
writing code?  my goal is to reduce that time period while
provide the reader a comprehensive understanding of how the
standard types work, esp. in their relationship to Python's
memory model.  it is my belief that a solid foundation here
will reduce or eliminate any potential bugs you would've
written had you read a more conventional introductory text.


> What really jumped out at me is an interesting feature about how
> it sequences its topics, namely, (user-defined) functions are not
> introduced until chapter 11, fully 400 pages into the book.

i guess i found this post quite interesting because there is
such a focus on "what should be introduced when."  the purpose
of chapter 2 (getting started) is to proxy for the standard
"introduction to programming X" book.  if you read it, you
should be able to "get started in Python" immediately. you
have enough info on functions to start coding and probably
don't need var args, decorators, or any of that stuff yet. the
chapter on functions occur later because most of the time, what
we've shown you in "getting started" is enough to, ummm..., get
you started, and that all successive chapters are meant to dive
more deeply into each area.


> seems to confirm the "batteries are included" philosophy of
> Python. Perhaps there is less need to learn how to roll your
> own batteries as soon as possible.

this is definitely one of the hallmarks of the language. the
current user base already knows this... it's just more difficult
to get this out there to the general programming populus, esp.
when there are already so many languages starting with "P".  :-)


> The revenge of lambdas. Will they stay or will they go?"  ;-)

they will stay.  ;-)


> am interested in seeing the extend to which Python is genuinely
> "multi-paradigm" - able to blend the functional and imperative
> (and OO) paradigms together.

this comes from guido himself.  he "wants you to be able to see
the forest through the trees."  i see Python as a "greatest hits"
of many computer programming languages.  for our benefit, he's
given us the best stuff.


> I cant' exactly figure out why yet, but he has a way of explaining
> something, like, say, decorators, that in minimal words elucidates
> for me the intent behind why they are useful. That helps me
> understand how they work.

"Python fits your brain." (bruce eckel) i don't see why python
should have a monopoly on your brain.  i want me share too.  ;-)
the thing that makes writing a pleasurable is when the language
has so much to offer.  i use this book in teaching my python
courses, and the book mirrors my lecturing style.  i suppose that
rather than a dry college textbook, i'd rather write in a way as
if i was having a conversation with you, or if you were actually
sitting there attending one of my courses.  readers (as well as
course attendees) have remarked how questions they may come up
with as they are learning a topic are answered in the next section
or chapter (or 3-4 presentation slides) as the case may be.


> The second edition site doesn't give a sample chapter (but
> does give the complete preface)

ahhh, the secret here is that you need to look in the right place.
"prentice hall"s web page doesn't have it, but PHPTR's does, even
if they are the same publishing house.  for some reason, we've got
the featured book of the month!!  just go to http://phptr.com and
click the book's link there. you'll find:

- book's description
- table of contents
- preface
- sample chapter (getting started, chapter 2!)
- index

the last three are in PDF format.  if for some reason, october
ends and it's gone from the front page, here is a direct link:

http://phptr.com/title/0132269937

thanks to everyone for their support, esp. my excellent technical
reviewers for keeping me honest!  please send comments, suggestions,
corrections, and other feedback to me. i am happy to hear about any
issues you find in the book -- everything.  it doesn't matter if it
is the smallest grammatical edit, errors in the code, or just plain
wrong or misleading information.  don't believe everything you read!
(sometimes writing at 2, 3, and 4a in the morning does something to
your writing when you're trying to tackle a publisher's deadlines.)
keep checking the book's errata page at http://corepython.com
all book correspondence should go to corepython at yahoo dot com.

cheers!
-- wesley
- - - - - - - - - - - - - - - -

Re: opening excel

2006-11-09 Thread wesley chun
> has anybody got any experience opening and manilpulating excel
> spreedsheets via python? it seems pythoncom allows this to happen


i posted a couple of snippets along with others in this earlier thread:

http://groups.google.com/group/comp.lang.python/browse_thread/thread/a7ed60067ca5a8d4

the XLRD package is a platform-independent non-COM way to *extract*
Excel data. you mentioned opening and manipulating spreadsheets
*using* COM, so there are more examples targeted towards what you were
asking for at that link.

i added a small section on Win32 COM client programming to the Core
Python book, and although it doesn't go extremely in-depth, it's
perfectly targeted to "newbs" coming from the Unix world, as was i.

hope this helps!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: BayPIGgies, Thu Nov 9 @ 7:30p, Air Traffic Control

2006-11-09 Thread wesley chun
the silicon valley-san francisco bay area python users group meets at
the Googleplex once a month in mountain view, CA.
more info and directions available at http://baypiggies.net


-- Forwarded message --
From: Dennis Reinhardt
Date: Nov 2, 2006 9:03 PM
To: Python <[EMAIL PROTECTED]>

Thursday Nov. 9, 2006

7:30-8:50 p.m.   Technical Program

Title  Python for Prototyping in Air Traffic Control
Presenter  Russ Paielli (NASA Ames Research)
About the talk The talk will start with a high-level overview of the US air
traffic control system, then it will focus on tactical (i.e., short range)
conflict alerting and describe the prototype software that we are
developing to replace the legacy software that currently performs that
function. Examples of actual "operational errors" will be presented, and
the alerting performance of our system will be tested and compared with the
legacy system. The rationale for using Python for the prototype and its
testing will be briefly discussed.

8:50 p.m-...Mapping and Random Access
--
Mapping Moderator  Dennis Reinhardt (DAIR Computer Systems)
Mapping is a rapid-fire audience announcement open to all of topic headings
(one speaker at a time). Random Access session (everyone breaks up into
self-organized small-group discussion) follows immediately after Mapping.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Colorado Python seminar in November

2006-09-14 Thread wesley chun
in parallel to Mark's week-long Python seminar (Nov 6-10), we are
offering an alternative session focusing only on advanced topics. it is
3-days long (Nov 8-10) and will be held in San Francisco.

course description:
http://roadkill.com/~wesc/cyberweb/pp2dsc.html

general information:
http://cyberwebconsulting.com (click "Python training" link)

november sure seems like "back to school" month for those in the Python
community, and these are two great ways to develop, polish, and hone
your Python skills!

cheers,
-wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Timeline for Python?

2006-09-23 Thread wesley chun
> In article <[EMAIL PROTECTED]>,
>> crystalattice <[EMAIL PROTECTED]> wrote:
>>
>>> From: "Sebastian Bassi" <[EMAIL PROTECTED]>
>>> Date: Thurs, Aug 31 2006 7:51 am
>>> Subject: Re: Timeline for Python?
>>> Groups: comp.lang.python
>>>
>>> I am working on a Python book, since it could be completed in about a
>>> year (writing time + edition + publishing) or more, I would like to
>>> know what version to target since I don't want to release a book that
>>> will be outdated just after is printed.
>>>   :
>>> So, if the book is published in October 2007, should feature Python 3
>>> or Python 2.5?
> >
> >I'd write for 2.4, even though 2.5 should be coming out "shortly".
> >There aren't many significant changes to the whole language between 2.4
> >and 2.5.  Probably the best thing is write for 2.4 and have a sidenote
> >stating where 2.5 operates differently.
>
> Speaking as the co-author of _Python for Dummies_:
>
> That's bad advice -- there are three Python books already out (or out
> within the next couple of weeks) that target 2.5: _Python in a Nutshell_,
> _Core Python_, and _Python for Dummies_.
>   :
> OTOH, I do agree that any book written should include diferences between
> 2.5 and earlier versions for the benefit of people needing to target
> earlier or multiple versions.


sorry to chime in 2 weeks late here, but i second aahz's opinion here,
as well as have some thoughts of my own:

1. never write against older versions of Python... you will only
obsolete your book even faster (well, "sooner")

2. with respect to 2.4 vs. 2.5, there are some significant changes
as aahz has pointed out; otherwise it would be 2.4.4.

3. personally speaking, i'm against targeting versions altogether.
i guess i am a bit biased because in "Core Python Programming",
the focus is the "core" part of the Python language, hence it
should be as generic to specific versions as possible. i've
made serious attempts to avoid being locked-in to any particular
release. yes, i cover through 2.5, but also include stuff that have
already been slated for 2.6 and 2.7.  what, if you can discuss, is
the topic of *your* book?

4. with that said, i have taken aahz's final remark above quite
seriously... i've gone to great lengths to add "tags" all over
Core Python which state things like, "2.2", "2.5-2.7", "2.0", etc.
to indicate when certain features were added, removed, or changed
in the language.  this will support readers who are users of "any"
version of Python.

and with a sigh of relief, i can happily tell everyone that Core
Python did finally hit the streets this week!  (more info at the link
below)

cheers,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help

2006-09-23 Thread wesley chun
> From: "Rrajal" <[EMAIL PROTECTED]>
> Date: Mon, Sep 18 2006 9:50 am
> Subject: Re: Help
> Groups: comp.lang.python
>
> Hi there, I am new in this subject so could you please tell
> me from  where I can get help (or good e-book) of python?


do you have some kind of programming background? if so,
good intro books include Hetland's "Beginning Python",
Pilgrim's "Dive into Python", and O'Reilly's "Learning Python".
there is an online version of Dive at http://diveintopython.org
if you're looking for something more comprehensive, i wrote
"Core Python Programming", but it is much longer than the
others, so if you want a quick intro, it would not be for you.

here's a nice list and description of most Python books:
http://wiki.python.org/moin/PythonBooks

for those are are new to programming altogether, you can
try Dawson's "Absolute Beginner" or the "Learn to Program"
by Gauld, but since it's dated, it's best to check out Alan's
tutorial at:http://www.freenetpages.co.uk/hp/alan.gauld/

cheers!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Timeline for Python?

2006-09-25 Thread wesley chun
> From: Fredrik Lundh <[EMAIL PROTECTED]>
> Date: Sat, Sep 23 2006 12:03 pm
>
>> i cover through 2.5, but also include stuff that have
>> already been slated for 2.6 and 2.7.
>
> and what would that be?  target versions in the PEP:s are usually just
> wild guesses...


true, and it's obviously a *bad* idea to be wrong.
i don't have easy access to where in the manuscript
i've made such annotations, however, there are some
minor things which i'm reasonably sure will be in 2.6:

- 'as' becomes a keyword
- catching of string exceptions generates a warning (in 2.5, raising
of string exceptions generates a warning)
- the 'with' statement, introduced under __future__ in 2.5, becomes standard
- intra-package imports not using the relative import syntax will
generate a warning

i'm sure all you dev folks will let me know where
i've hung myself.  i can always make an errata
correction on the book's website as with any other
problems that people find.

however, the main point of my reply is really that
i've tried hard to make the book to be as version-
independent as much as possible.  the added bonus
is for those who *are* locked into specific (pre-
sumably older) versions to know about features that
were added to, altered in, or removed from Python
and for which releases those updates were first
introduced to the public.

cheers,
-wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: does anybody earn a living programming in python?

2006-09-26 Thread wesley chun
since 1997, i've been pretty much working full-time in Python:
- at yahoo, we developed yahoo!mail in python (and some C++)
- at synarc, i wrote software for doctors in python (and some C)
- at ironport, most everything is in python (and some C, PyRex). we
have a million lines in python (http://www.python.org/about/quotes/)

for the forseeable future, i plan on keeping it this way. i took a
contract which led me back to C, but as i was doing this, most of the
time i felt like i was "wasting my time," e.g., char **x =
(char**)malloc(...)... *x++ = (char*)malloc(...) ... free()...
free()... (segmentation fault)... bus error... gdb... blah blah, led
to thoughts such as, "i have better things to do with my time," "when
does this contract end?", etc. it did, however, make me more
appreciative of the C code which comprises the Python interpreter. i
sense that because i had done that (C) before and realized how Python
makes me more efficient, that i've become "spoiled" by it and am more
picky about my opportunities... anyone else feel the same way? I saw
the +1 from Aahz already.  ;-)

however, i can understand the original posters inquiry... you just
don't see too many FT positions offered that list Python as the sole
or major development language. i'm sure folks on the list either get
"found" by companies that need Python skills, or, we want to keep
those jobs to ourselves and spend time hacking sites to remove those
listings. :-)

it is also worthy to note that in general, the number of job listings
which have the word "Python" in them have risen steadily over the past
few years.  i guess the "secret" is getting out. just subscribing to
dice and monster have let me see this growth on a weekly basis.  if
you're lucky, one or two of the listings in these weekly lists will
contain positions that are pretty much Python-only.

cheers,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Surprise using the 'is' operator

2006-09-26 Thread wesley chun
as a side note, the ints that are cached (for current versions of
Python) are in range(-1, 100)... is this documented somewhere? i know
it's subject to change.  and as already mentioned, you probably
wouldn't use "is" this way in real code... i know you are just
reinforcing your learning of the difference between object *value*
comparison vs. object *identity* comparison. what you've discovered,
however, is important in learning Python... i have material in my
intro course and the book dedicated to this subject.

cheers,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Surprise using the 'is' operator

2006-09-26 Thread wesley chun
> "Terry Reedy" <[EMAIL PROTECTED]> wrote:
> > as a side note, the ints that are cached (for current versions of
> > Python) are in range(-1, 100)... is this documented somewhere?
> Not true for at least 2.4 and 2.5.  The cached range has expanded

oops, apologies to all... it really *is* subject to change. ;-) it's
now range(-5, 257).

-wesley
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: does anybody earn a living programming in python?

2006-09-27 Thread wesley chun
> From: "OKB (not okblacke)" <[EMAIL PROTECTED]>
> Date: Wed, 27 Sep 2006 04:04:02 GMT
>
>> - at yahoo, we developed yahoo!mail in python (and some C++)
>> - at synarc, i wrote software for doctors in python (and some C)
>> - at ironport, most everything is in python (and some C, PyRex)
>
>   This is interesting to me in that all these jobs also involve C.
> I'm not the original poster, but I'd be interested to hear about people
> who make a living programming Python WITHOUT knowing C.


you make a good point, however, when you have to write an extension
(performance, protect source code, library interface, etc.), you must
write it in the natively-supported language in which the
implementation of Python you're using is compiled in. for (C)Python,
it's C/C++, Java for Jython, and C#/VB.NET for IronPython.

if you have been successful at building projects completely in pure
Python, that's great, but you're limited in that you won't be able to
take advantage of the benefits of extensions or necessarily be able to
hook up to native libraries that don't already have a Python adapter
written for them. for the past employment i listed, the primary use of
C was either an extension or a library adapter. of course, i never
claimed above to have written any of that C code. ;-)

my final thought is that you cannot truly appreciate a tool like
Python until you've been in the trenches with C and done all that
stuff that is now a "waste of time."

cheers,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python/UNO/OpenOffice?

2006-09-30 Thread wesley chun
as others have said, that project provides a working interface to OOo
(OpenOffice 2 on Ubuntu Breezy and Dapper).  i've made several posts
to this regard over the summer here on CLP.  i was mostly using it to
"mess around" with documents in StarWriter.

cheers,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: BayPIGgies, Thu 12/14 7:30-9p, Mtn View

2006-12-12 Thread wesley chun
reminder that we have a "lite" meeting this thursday evening at
Google.  it is a meet-n-greet event, almost a "long random access"
session where folks introduce themselves, mingle/network, discuss
common interests, and get to know one another in the community. we may
discuss any number of current topics such as Python 2.5, the upcoming
PyCon conference at Dallas at the end of Feb, the latest Python books
and reviews, future meeting coordination, etc.

more info and directions at http://baypiggies.net

pre-register here to avoid the long security lines:
http://wiki.python.org/moin/BayPiggiesGoogleMeetings

hope to see some of you there!
-wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


FYA: python cell phone is ruby-less

2006-12-21 Thread wesley chun
(mostly off-topic)

vertu makes a $310,000US cell phone which has rubies on it. i thought
it was quite interesting that they have a "cheaper" phone ($115,000)
called Python which *doesn't* have rubies:

http://money.cnn.com/popups/2006/biz2/cellphone

better order yours now since only 26 will be made.  ;-)

happy holidays everyone!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


[ANN] Python courses this Fall

2007-08-23 Thread wesley chun
Folks, I'd like to announce my final Python courses for 2007:

Need to get up-to-speed with Python as quickly as possible? Come join
me, Wesley Chun, author of Prentice-Hall's well-received "Core Python
Programming," for another set of courses this Fall in beautiful
Northern California! This will be the final set for 2007... if you
miss these, you'll have to wait until next year. I look forward to
meeting you!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(COMPREHENSIVE) INTRODUCTION TO PYTHON: Mon-Wed, 2007 Oct 8-10

This is course is meant for those new to Python and/or want to get
more in-depth formal training. We will immerse you in the world of
Python in only a few days.  We will show you more than just its syntax
(which you don't really need a book to learn, right?). Knowing more
about how Python works under the covers, including the relationship
between data objects and memory management, will make you a much more
effective Python programmer coming out of the gate.  3 hands-on labs
each day will help hammer the concepts home.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INTERNET PROGRAMMING WITH PYTHON: Sat, 2007 Oct 13

This 1-day course will introduce current Python programmers to 3
distinct areas of Internet programming, each in self-contained modules
with a set of lab exercises following each lecture topic:

Network Programming using Sockets -- Underneath all of today's network
protocols, i.e., HTTP, FTP, RDBMS, IM, e-mail, etc., lies the main
communication mechanism, sockets. Here, we introduce client/server
architecture and how to program sockets using Python.

Internet Client Programming -- One level above the socket layer are
well-known Internet protocols such as FTP, NNTP, POP3, and SMTP.  In
this section, we learn how to create Internet clients of these
protocols to transfer files, send and receive e-mail, and read Usenet
newsgroup postings.

Web/CGI Programming -- Yes, pure CGI is "sooo yesterday," but before
you jump on all the web framework bandwagons, it's a good idea to
learn basics and the basis of how all web servers deliver dynamic
content back to the client browser so that you can appreciate all the
work that is done on your behalf by a more fully-featured frame- work.
Time-permitting, we will also give a high-level overview of one of the
more popular Python web frameworks, Django.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA

WEB:   http://cyberwebconsulting.com (click "Python Training")

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and regular evening receptions; fully-equipped suites

See website for costs, venue info, and registration.  Discounts are
available for multiple registrations as well as for teachers/students.

Hope to see you there!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [ANN] Python courses this Fall

2007-08-23 Thread wesley chun
$1295/pp for the intro course and $495/ for the 1-day course (but $395
if you take the intro course too).

http://cyberwebconsulting.com (click "Python Training") for more details

-wesley


On 8/23/07, Jeff Pang <[EMAIL PROTECTED]> wrote:
> Sounds good.How about the costs for those lessons?thanks.
>
>> WEB:   http://cyberwebconsulting.com (click "Python Training")
>> See website for costs, venue info, and registration.  Discounts are
> available for multiple registrations as well as for teachers/students.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python books?

2007-03-09 Thread wesley chun
On Mar 8, 7:06 pm, Tommy Nordgren <[EMAIL PROTECTED]> wrote:
> Could some kind soul please recommend a few textbooks on Python 2.5
> and it's class library?


it's not necessary to have a 2.5 book that can introduce you to the
modules of the Python Standard Library (not all modules are [or have]
classes so "class library" perhaps is too restrictive a term).

the most significant additions to the std library in 2.5 are:
ctypes, sqlite3, xml.etree (ElementTree), wsgiref, cProfile

altho they provide new functionality, there are plenty of existing
modules in the standard library that are worth learning.  the main
reference guides to the standard library modules and their attributes
include: Python in a Nutshell and Python Essential Reference, both in
addition to the online library reference.

my book, Core Python Programming, is revised to 2.5, but focuses on
teaching you the core part of the language, features, objects, memory
management, development, good practices, some advanced topic coverage,
and presents lots of exercises.  however, it is not an exhaustive
guide to the standard library.  to find out more about it, check out
the reviews and notes on amazon as well as the book's website (see
below).

hope this helps!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: difference between urllib2.urlopen and firefox view 'page source'?

2007-03-20 Thread wesley chun
On Mar 20, 8:33 am, [EMAIL PROTECTED] wrote:
> On Mar 20, 1:56 am, Tina I <[EMAIL PROTECTED]> wrote:
> > > I am trying to screen scrape some stock data from yahoo, so I am
> > > trying to use urllib2 to retrieve the html and beautiful soup for the
> > > parsing.
>
> You can do this fairly easily. I found a similar program in the book Core
> PythonProgramming. It actually sticks the stocks into an Excel
> spreadsheet.


i'd like to add that the solution that mike proposes from the book is
an *alternative* to what the OP wanted, which was to parse the actual
stock quote web page.  instead of doing that, the code snippet
actually uses Yahoo!'s CSV interface which you can read more about
from their help pages:

http://search.cc.yahoo.com/search?property=finance&question_box=csv

if the data is all that's important to you, then this is a good proxy
for what you proposed, and will be simpler to implement.  however, if
you're looking for a screen-scraping and HTML-parsing exercise, i'd
stick with your original idea and use the generic output that you get.
 as a previous poster has already mentioned, it's probably the
"cleanest" output, filtering out some of the extra browser-specific JS
and stuff that you don't need.

cheers,
-wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


[ANN] Python courses this Spring

2007-03-22 Thread wesley chun
I'll be giving a variety of Python courses this Spring.  Daytime
courses are for visitors and locals who need Python training in the
shortest amount of time possible via consecutive workdays.  Python is
certainly gaining momentum as our February course filled up
completely!  Although I had planned on scheduling the same set to be
taught in November, it is likely that these May daytime sessions are
the last ones of 2007.

In contrast, I'm experimenting with a *weekly evening* course in
Silicon Valley designed mainly for locals.  It represents a viable
alternative to those who cannot take time off during the week as well
as being more budget-friendly, as I am partnering with a local
community college (Foothill) to offer this course.  Class takes place
on the main campus and you must register through the college to
attend.

For more information, such as cost and other course details, see the
corresponding websites below. Contact me privately if you have any
more questions.

cheers,
-wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

DAYTIME
===
- (Intensive) Introduction to Python (Mon-Wed, May 14-16)
- Advanced Python Programming (Wed-Fri, May 16-18)
- Advanced Python (short course; Thu-Fri, May 17-18)
- Core Python (Intro+Advanced combo; Mon-Fri, May 14-18)

These courses run daily 9a-5p and will take place in San Bruno right
near the San Francisco International Airport at the:

Staybridge Suites - San Francisco Airport
1350 Huntington Ave
San Bruno, CA  94066 USA
http://www.ichotelsgroup.com/h/d/sb/1/en/hd/sfobr

Discounts are available for students and teachers, as well as multiple
registrations from those working at the same company.  For more info
and registration, go to http://cyberwebconsulting.com (click on
"Python Training")

LOCALS: free parking and 101/280/380 access, BART across the street
and CalTrain down the road (San Bruno stations)

VISITORS: free hotel shuttle to/from the San Francisco airport, lots
of free food and wireless, 2-bedroom suites w/private baths and a
common work/living area available for traveling coworkers, and of
course, The City by the Bay
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

EVENING
===
- Intermediate Python Programming (Tues, Apr 10-Jun 26)

This course will cover the same topics as the advanced course above as
well as critical portions of the intensive introductory course. It
will be held once a week on Tuesday evenings from 6-9:40p.

Foothill College
12345 El Monte Road
Los Altos Hills, CA  94022 USA
(right off 280, just south of Stanford)

http://www.foothill.edu/schedule/schedule.php
search for CIS 68L for Spring Quarter 2007
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Need help to learn Python

2007-03-24 Thread wesley chun
> From: [EMAIL PROTECTED]
> Date: 23 Mar 2007 06:20:15 -0700
>
> Core Python Programming is mostly theory and very little code. It's
> good for reference and digging deeper into the language...


let me clarify here that mike's statement refers to the total number
of large applications in the book.  Core Python *does* have a lot of
code in it, but they are mostly snippets and bits using the
interactive interpreter.  i chose this model instead of many large
applications because:

1) i feel that small snippets that people can follow along with in the
interpreter is more valuable... in fact, many readers *don't* have the
interpreter in front of them, but they can see what it does so that
once they *are* in front of it, it does what they expect

2) providing smallish to medium-sized applications allows for maximum
absorption by the reader

3) i didn't have time to develop lots of large applications... if you
learn with lots of large applications with lots of code, then this
book is not for you.

with that said, i would still like to state that the book's target
audience is for people who know how to program but need to pick up
Python as quickly as possible.  the "theory" that's in the book is
really more explanation of how the Python interpreter works,
especially the relationship between objects and memory management.
the goal is to give you enough of an understanding of how Python works
"under the covers" that you will write very effective code, even as a
beginner to the language.

you can read more of my "manifesto" on Amazon's page for the book as
well as at the book's website below.

cheers!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: Advanced Python training course, Nov 8-10, San Francisco

2007-01-12 Thread wesley chun
FINAL REMINDER... we still have some seats left!

What:   (Intensive) Intro to Python
When:  February 7-9, 2007
Where: San Francisco (SFO/San Bruno), CA, USA
Web:http://cyberwebconsulting.com (click "Python Training" link)

Need to get up-to-speed with Python as quickly as possible?  Come join
us in beautiful Northern California for another one of our rigorous
Python training events! This is an intense introduction to Python
directed towards those who have some proficiency in another high-level
language. This course will take place in San Bruno right near the San
Francisco International Airport.

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and evening reception daily

The cost is only $1095 (reg $1295) per attendee.  Discounts are
available for multiple registrations as well as teachers/students.
Registration will be opening soon for the next Intro and Advanced
courses both taking place back-to-back in May 2007. See website for
more details.

hope to meet you soon!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: Python training course, Feb 7-10, San Francisco

2007-01-12 Thread wesley chun
apologies to all... this is the Intro course, not Advanced as the orig
subject line stated, and it takes place Feb 7-9, 2007.


On 1/12/07, wesley chun  wrote:
> FINAL REMINDER... we still have some seats left!
>
> What:   (Intensive) Intro to Python
> When:  February 7-9, 2007
> Where: San Francisco (SFO/San Bruno), CA, USA
> Web:http://cyberwebconsulting.com (click "Python Training" link)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Learning Python book, new edition?

2007-01-14 Thread wesley chun
Robert Hicks wrote:
> I would get "Core Python Programming" by Wesley Chun. It covers just
> about everything under the sun and includes version 2.5.


Robert, thanks for the plug.  if the OP wants to learn more about my
book and its philosophy, feel free to check out my comments on the
Amazon product page and/or the book's website at http://corepython.com
to see if it's right for you.

more on topic, here's a summary of Python books which are rev'd up to
2.5, categorized but not in any particular order:

Python learning:
- Python for Dummies, Maruch, Sep 2006
- Core Python Programming, Chun, Sep 2006

Python pure reference:
- Python Essential Reference, Beazley, Feb 2006
- Python in a Nutshell, Martelli, Jul 2006

Python case study reference:
- Programming Python, Lutz, Aug 2006

Enjoy!
-wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Core Python Programming . . .

2008-01-22 Thread wesley chun
> > 6-11 Conversion.
> >   (a) Create a program that will convert from an integer to an
> > Internet Protocol (IP) address in the four-octet format of WWW.XXX.YYY.ZZZ
> >   (b) Update your program to be able to do the vice verse of the above.
>
> I think it's is asking to convert a 32-bit int to the dotted form.
>
> It's a little known fact, but IP addresses are valid in non-dotted
> long-int form.  Spammers commonly use this trick to disguise their IP
> addresses in emails from scanners.


that is correct.  don't read too much into it.  i'm not trying to
validate anything or any format, use old or new technology.  it is
simply to exercise your skills with numbers (specifically 32-bit/4-
byte integers), string manipulation, and bitwise operations.  if you
wish to use different sizes of numbers, forms of addressing, IPv6,
etc., that's up to you. don't forget about part (b), which is to take
an IP address and turn it into a 32-bit integer.

enjoy!
-- wesley

ps. since you're on p. 248, there is also a typo in the piece of code
right above this exercise, Example 6.4, which is tied to exercise
6-7.  "'fac_list'" should really be "`fac_list`", or even better,
"repr(fac_list)".  see the Errata at the book's website http://corepython.com
for more details.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/205183 idiom

2008-03-18 Thread wesley chun
> > You're mixing two completely different approaches of building a
> > property. If that code is actually in the book like that, that's a typo
> > that you should mention to the author.
> >   :
> > The recipe you're referring to uses a magical function that returns a
> > dictionary of getter function, setter function, deleter function, and
> > docstring, with suitable key names so that the dictionary can be passed
> > as a keyword argument dictionary into the property() constructor.
> > However, that requires the magical foo=property(**foo()) invocation, not
> > the regular decorator invocation foo=property(foo).
>
> Ah, ok, I'll send him an email then, thanks for the explanation!


this well-known error was discovered pretty early... apologies to all
readers.  please checkout the Errata at the book's website --
http://corepython.com -- and keep it as a companion in case you find
anything else like this.  i appreciate all constructive feedback...
don't trust everything you read!  send any other corrections to me at
corepython at yahoo... including suggestions for future editions,
ideas for exercises, new material that you think should be covered,
etc.

best regards,
-- wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
 http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


What Programming Languages Should You Learn Next?

2008-03-18 Thread wesley chun
http://it.slashdot.org/it/08/03/18/1633229.shtml

it was surprising and disappointing that Python was not mentioned
*anywhere* in that article but when someone replied, it sparked a long
thread of post-discussion.

-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
 http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [ANN] final 2008 Python courses, San Francisco

2008-10-15 Thread wesley chun
*** FINAL REMINDER

also, the course begins on monday immediately following the *free* CodeCamp
conference http://siliconvalley-codecamp.com (click Program =>
Sessions to see all the talks)... 5 straight days of learning in the
San Francisco Bay Area!!
***

-- Forwarded message --
From: wesley chun <[EMAIL PROTECTED]>
Date: Fri, Sep 5, 2008 at 1:21 AM
Subject: [ANN] final 2008 Python courses, San Francisco
To: python-list@python.org, [EMAIL PROTECTED]

Need to get up-to-speed with Python as quickly as possible? Come join
me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python
Programming," for another comprehensive intro course plus a 1-day
Internet programming course coming up in November in beautiful
Northern California! I look forward to meeting you!

(Comprehensive) Introduction to Python
Mon-Wed, 2008 Nov 10-12, 9am-5pm

Internet Programming with Python
Sat, 2008 Nov 15, 9am-5pm

courses can be taken separately or combined for a discounted price.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(COMPREHENSIVE) INTRODUCTION TO PYTHON

Although this course may appear to those new to Python, it is also
perfect for those who have tinkered with it and want to "fill in the
gaps" and/or want to get more in-depth formal training.  It combines
the best of both an introduction to the language as well as a "Python
Internals" training course.

We will immerse you in the world of Python in only a few days, showing
you more than just its syntax (which you don't really need a book to
learn, right?). Knowing more about how Python works under the covers,
including the relationship between data objects and memory management,
will make you a much more effective Python programmer coming out of
the gate. 3 hands-on labs each day will help hammer the concepts home.

Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA,
Ubuntu, YouTube, and Red Hat all use Python. Users supporting or
jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine,
Jython, IronPython, and Mailman will also benefit!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INTERNET PROGRAMMING WITH PYTHON

This is a one-day course with lecture and lab exposing attendees to
FOUR distinct areas of Internet programming:

* Network Programming using Sockets -- we introduce client/server
architecture and how to program sockets using Python.

* Internet Client Programming -- we learn how to use Python's standard
library to create FTP, NNTP, POP3, and SMTP clients

* Web Programming -- before you jump on all the web framework
bandwagons, it's a good idea to learn basics and the basis of how all
web servers deliver dynamic content back to the client browser to
prepare you better when jumping to a full-stack web framework

* Intro to Django -- a lightweight introduction to the Django web
framework including whipping up a very simple blog application in
20min!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA

WEB:   http://cyberwebconsulting.com (click "Python Training")

FLYER: http://starship.python.net/crew/wesc/flyerPP1combo.pdf

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and regular evening receptions; fully-equipped suites

See website for costs, venue info, and registration.  Discounts are
available for multiple registrations as well as for teachers/students.

Hope to see you there!
-- wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
 http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
--
http://mail.python.org/mailman/listinfo/python-list


Re: [Tutor] Accessing callers context from callee method

2009-02-24 Thread wesley chun
> when i call a method foo from another method func. can i access func context
> variables or locals() from foo
> so
> def func():
>   i=10
>   foo()
>
> in foo, can i access func's local variables


A. python has statically-nested scoping, so you can do it as long as you:

1. define foo() as an inner function -- its def is contained within
func()'s def:
def func():
i = 10
def foo():
print i

2. you don't define a variable with the same name locally. in other
words, you do have access to func()'s 'i' as long as you don't create
another 'i' within foo() -- if you do, only your new local 'i' will be
within your scope.

B. another alterative is to pass in all of func()'s local variables to foo():

foo(**locals())

this will require you to accept the incoming dictionary in foo() and
access the variables from it instead of having them be in foo()'s
scope.

C. in a related note, your question is similar to that of global vs.
local variables. inside a function, you have access to the global as
long as you don't define a local using the same name. should you only
wish to manipulate the global one, i.e. assign a new value to it
instead of creating a new local variable with that name, you would
need to use the "global" keyword to specify that you only desire to
use and update the global one.

i = 0
def func():
i = 10

in this example, the local 'i' in func() hides access to the global
'i'. in the next code snippet, you state you only want to
access/update the global 'i'... IOW, don't create a local one:

i = 0
def func():
global i
i = 10

D. this doesn't work well for inner functions yet:

i = 0
def func():
i = 10
def foo():
i = 20

the 'i' in foo() shadows/hides access to func()'s 'i' as well as the
global 'i'. if you issue the 'global' keyword, that only gives you
access to the global one:

i = 0
def func():
i = 10
def foo():
global i
i = 20

you cannot get access to func()'s 'i' in this case.

E. however, starting in Python 3.x, you'll be able to do somewhat
better with the new 'nonlocal' keyword:

i = 0
print('globally, i ==', i)
def func():
i = 10
print('in func(), i ==', i)
def foo():
nonlocal i
i = 20
print('in foo(), i ==', i)
foo()
print('in func() after calling foo(), i ==', i)
func()

in this case, foo() modified func()'s 'i'.

hope this helps!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
--
http://mail.python.org/mailman/listinfo/python-list


[ANN] Introduction to Python course, San Francisco, Jun 2009

2009-04-09 Thread wesley chun
Need to get up-to-speed with Python as quickly as possible? Come join
me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python
Programming," for a comprehensive intro course coming up this June in
beautiful Northern California! Please pass on this note to whomever
you think may be interested. I look forward to meeting you and your
colleagues!

(Comprehensive) Introduction to Python
Mon-Wed, 2009 Jun 15-17, 9am-5pm

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(COMPREHENSIVE) INTRODUCTION TO PYTHON

Although this course may appear to those new to Python, it is also
perfect for those who have tinkered with it and want to "fill in the
gaps" and/or want to get more in-depth formal training.  It combines
the best of both an introduction to the language as well as a "Python
Internals" training course.

We will immerse you in the world of Python in only a few days, showing
you more than just its syntax (which you don't really need a book to
learn, right?). Knowing more about how Python works under the covers,
including the relationship between data objects and memory management,
will make you a much more effective Python programmer coming out of
the gate. 3 hands-on labs each day will help hammer the concepts home.

Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA,
Ubuntu, YouTube, Slide, and Red Hat all use Python. Users supporting
or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App
Engine, Jython, IronPython, and Mailman will also benefit!

FREE PREVIEW 1: you will find (and can download) a video clip of a
live lesson that was delivered recently to get an idea of the lecture
style and interactive classroom environment at:

http://cyberwebconsulting.com (click "Python Training")

FREE PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books
Online has asked me to deliver a 1-hour webcast on Wednesday morning
2009 Apr 29 @ 10:30a PDT/1:30p EDT called What is
Python?. This will be an online seminar based on a session
that I've delivered at numerous conferences in the past. It will give
you an idea of lecture style as well as an overview of the material
covered in the course. Plus the first 10 registrants will receive an
autographed copy of Core Python Programming! For more
information:

http://www.safaribooksonline.com/events/WhatIsPython.html

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA

WEB:   http://cyberwebconsulting.com (click "Python Training")

FLYER: http://starship.python.net/crew/wesc/flyerPP1jun09.pdf

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and regular evening receptions; fully-equipped suites

See website for costs, venue info, and registration.  Discounts are
available for multiple registrations as well as for teachers/students.

Hope to see you there!
-- wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

"Python Web Development with Django", Addison Wesley, (c)2009
http://withdjango.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
--
http://mail.python.org/mailman/listinfo/python-list


Re: [ANN] Introduction to Python course, San Francisco, Jun 2009

2009-05-14 Thread wesley chun
* FINAL REMINDER *

we have about 10-15 spaces remaining for our June course coming up in
about a month. if you have coworkers or colleagues that need to learn
Python, the weather is great up here in northern california in the
city by the bay.

there are discounts for students and teachers, as well as for
companies sending more than one attendee. finally, in this economic
crisis, if you can show you've been laidoff and collecting
unemployment, we can offer you financial aid as well.

the course will NOT be cancelled so you can make your travel
arrangements as well. hope to see you in class!

cheers,
-wesley


On Thu, Apr 9, 2009 at 3:45 PM, wesley chun  wrote:
> Need to get up-to-speed with Python as quickly as possible? Come join
> me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python
> Programming," for a comprehensive intro course coming up this June in
> beautiful Northern California! Please pass on this note to whomever
> you think may be interested. I look forward to meeting you and your
> colleagues!
>
> (Comprehensive) Introduction to Python
> Mon-Wed, 2009 Jun 15-17, 9am-5pm
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> (COMPREHENSIVE) INTRODUCTION TO PYTHON
>
> Although this course may appear to those new to Python, it is also
> perfect for those who have tinkered with it and want to "fill in the
> gaps" and/or want to get more in-depth formal training.  It combines
> the best of both an introduction to the language as well as a "Python
> Internals" training course.
>
> We will immerse you in the world of Python in only a few days, showing
> you more than just its syntax (which you don't really need a book to
> learn, right?). Knowing more about how Python works under the covers,
> including the relationship between data objects and memory management,
> will make you a much more effective Python programmer coming out of
> the gate. 3 hands-on labs each day will help hammer the concepts home.
>
> Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA,
> Ubuntu, YouTube, Slide, and Red Hat all use Python. Users supporting
> or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App
> Engine, Jython, IronPython, and Mailman will also benefit!
>
> FREE PREVIEW 1: you will find (and can download) a video clip of a
> live lesson that was delivered recently to get an idea of the lecture
> style and interactive classroom environment at:
>
> http://cyberwebconsulting.com (click "Python Training")
>
> FREE PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books
> Online has asked me to deliver a 1-hour webcast on Wednesday morning
> 2009 Apr 29 @ 10:30a PDT/1:30p EDT called What is
> Python?. This will be an online seminar based on a session
> that I've delivered at numerous conferences in the past. It will give
> you an idea of lecture style as well as an overview of the material
> covered in the course. Plus the first 10 registrants will receive an
> autographed copy of Core Python Programming! For more
> information:
>
> http://www.safaribooksonline.com/events/WhatIsPython.html
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA
>
> WEB:   http://cyberwebconsulting.com (click "Python Training")
>
> FLYER: http://starship.python.net/crew/wesc/flyerPP1jun09.pdf
>
> LOCALS: easy freeway (101/280/380) with lots of parking plus public
> transit (BART and CalTrain) access via the San Bruno stations, easily
> accessible from all parts of the Bay Area
>
> VISITORS: free shuttle to/from the airport, free high-speed internet,
> free breakfast and regular evening receptions; fully-equipped suites
>
> See website for costs, venue info, and registration.  Discounts are
> available for multiple registrations as well as for teachers/students.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

"Python Web Development with Django", Addison Wesley, (c) 2009
http://withdjango.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


FYA: visualizing repository commits

2008-06-16 Thread wesley chun
have you guys seen this on Slashdot yet? (i did a quick search in the
archives and haven't seen any posts yet so hopefully this isn't a
duplicate msg!)

http://developers.slashdot.org/developers/08/06/16/1855209.shtml

this video is a visualization of the commits to the source base (and
made by whom) over Python's lifetime:

http://www.vimeo.com/1093745

the visualization project's home page is at:

http://vis.cs.ucdavis.edu/~ogawa/codeswarm/

-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
--
http://mail.python.org/mailman/listinfo/python-list


[ANN] Python course, May 2008

2008-04-01 Thread wesley chun
*** my apologies... this training course is next month, not this Fall! ***

contact me privately off-list for further details.  thanks!


> FINAL ANNOUNCEMENT
>
> Need to get up-to-speed with Python as quickly as possible? Come join
> me, Wesley Chun, author of Prentice-Hall's well-received "Core Python
> Programming," for another comprehensive intro course next month in
> beautiful Northern California! I look forward to meeting you!
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> (COMPREHENSIVE) INTRODUCTION TO PYTHON: Mon-Wed, 2008 May 5-7
>
> Although this course may appear to those new to Python, it is also
> perfect those who have tinkered with it and want to "fill in the gaps"
> and/or want to get more in-depth formal training.  It combines the
> best of both an introduction to the language as well as a "Python
> Internals" training course.
>
> We will immerse you in the world of Python in only a few days.  We
> will show you more than just its syntax (which you don't really need a
> book to learn, right?). Knowing more about how Python works under the
> covers, including the relationship between data objects and memory
> management, will make you a much more
> effective Python programmer coming out of the gate. 3 hands-on labs
> each day will help hammer the concepts home.
>
> Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, OLPC,
> NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or
> jumping to Plone, Zope, TurboGears, Django, Pylons, Jython,
> IronPython, and Mailman will also benefit!
>
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA
>
> WEB:   http://cyberwebconsulting.com (click "Python Training")
>
> LOCALS: easy freeway (101/280/380) with lots of parking plus public
> transit (BART and CalTrain) access via the San Bruno stations, easily
> accessible from all parts of the Bay Area
>
> VISITORS: free shuttle to/from the airport, free high-speed internet,
> free breakfast and regular evening receptions; fully-equipped suites
>
> See website for costs, venue info, and registration.  Discounts are
>  available for multiple registrations as well as for teachers/students.
>
> Hope to see you there!
> -- wesley
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "Core Python Programming", Prentice Hall, (c)2007,2001
>   http://corepython.com
>
> wesley.j.chun :: wescpy-at-gmail.com
> python training and technical consulting
> cyberweb.consulting : silicon valley, ca
> http://cyberwebconsulting.com
>



-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
 http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: [ANN] Python courses this Fall

2008-04-01 Thread wesley chun
FINAL ANNOUNCEMENT

Need to get up-to-speed with Python as quickly as possible? Come join
me, Wesley Chun, author of Prentice-Hall's well-received "Core Python
Programming," for another comprehensive intro course next month in
beautiful Northern California! I look forward to meeting you!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(COMPREHENSIVE) INTRODUCTION TO PYTHON: Mon-Wed, 2008 May 5-7

Although this course may appear to those new to Python, it is also
perfect those who have tinkered with it and want to "fill in the gaps"
and/or want to get more in-depth formal training.  It combines the
best of both an introduction to the language as well as a "Python
Internals" training course.

We will immerse you in the world of Python in only a few days.  We
will show you more than just its syntax (which you don't really need a
book to learn, right?). Knowing more about how Python works under the
covers, including the relationship between data objects and memory
management, will make you a much more
effective Python programmer coming out of the gate. 3 hands-on labs
each day will help hammer the concepts home.

Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, OLPC,
NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or
jumping to Plone, Zope, TurboGears, Django, Pylons, Jython,
IronPython, and Mailman will also benefit!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA

WEB:   http://cyberwebconsulting.com (click "Python Training")

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and regular evening receptions; fully-equipped suites

See website for costs, venue info, and registration.  Discounts are
 available for multiple registrations as well as for teachers/students.

Hope to see you there!
-- wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
   http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


[ANN] final 2008 Python courses, San Francisco

2008-09-05 Thread wesley chun
Need to get up-to-speed with Python as quickly as possible? Come join
me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python
Programming," for another comprehensive intro course plus a 1-day
Internet programming course coming up in November in beautiful
Northern California! I look forward to meeting you!

(Comprehensive) Introduction to Python
Mon-Wed, 2008 Nov 10-12, 9am-5pm

Internet Programming with Python
Sat, 2008 Nov 15, 9am-5pm

courses can be taken separately or combined for a discounted price.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(COMPREHENSIVE) INTRODUCTION TO PYTHON

Although this course may appear to those new to Python, it is also
perfect for those who have tinkered with it and want to "fill in the
gaps" and/or want to get more in-depth formal training.  It combines
the best of both an introduction to the language as well as a "Python
Internals" training course.

We will immerse you in the world of Python in only a few days, showing
you more than just its syntax (which you don't really need a book to
learn, right?). Knowing more about how Python works under the covers,
including the relationship between data objects and memory management,
will make you a much more effective Python programmer coming out of
the gate. 3 hands-on labs each day will help hammer the concepts home.

Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA,
Ubuntu, YouTube, and Red Hat all use Python. Users supporting or
jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine,
Jython, IronPython, and Mailman will also benefit!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
INTERNET PROGRAMMING WITH PYTHON

This is a one-day course with lecture and lab exposing attendees to
FOUR distinct areas of Internet programming:

* Network Programming using Sockets -- we introduce client/server
architecture and how to program sockets using Python.

* Internet Client Programming -- we learn how to use Python's standard
library to create FTP, NNTP, POP3, and SMTP clients

* Web Programming -- before you jump on all the web framework
bandwagons, it's a good idea to learn basics and the basis of how all
web servers deliver dynamic content back to the client browser to
prepare you better when jumping to a full-stack web framework

* Intro to Django -- a lightweight introduction to the Django web
framework including whipping up a very simple blog application in
20min!

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA

WEB:   http://cyberwebconsulting.com (click "Python Training")

FLYER: http://starship.python.net/crew/wesc/flyerPP1combo.pdf

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and regular evening receptions; fully-equipped suites

See website for costs, venue info, and registration.  Discounts are
available for multiple registrations as well as for teachers/students.

Hope to see you there!
-- wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
 http://corepython.com

"Python Web Development with Django", Addison Wesley, (c) 2008
http://withdjango.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
--
http://mail.python.org/mailman/listinfo/python-list


Re: Python book

2009-09-30 Thread wesley chun
>>On Sep 30, 4:58 am, "lallous"  wrote:
>>
>> Can anyone suggest a good book Python book for advancing from beginner level?
>> (I started with Learning Python 3rd ed)
>
> From: James Matthews 
> Date: Wed Sep 30 18:47:58 CEST 2009
>
> I like core python programming and dive into python.


hi Elias, and welcome to Python! thanks for the plug james! this
question is asked somewhat regularly. i addressed it a few years but
most of my reply still applies:
http://www.mail-archive.com/python-list@python.org/msg109993.html

one big difference is that Alan Gauld's tutorial is now located at
http://www.alan-g.me.uk ... another difference is that a good number
of ultra-beginner (new to programming not just Python) books have come
on the market as well. finally, i created a DVD + PowerPoint version
of Core Python called "Python Fundamentals" if you want to watch video
presentations on topics in addition to reading.

if you're also looking to take an intensive Python training course
that will take you beyond beginner status, i'm offering one in about
6-7 weeks (near San Francisco) where i'll *give* you a copy of Core
Python :-) ... and speaking of which, i'm actually starting to
research what it would take to bring the book to a 3rd edition and
soliciting assistance from the community. more info on both the course
and the next edition here:

http://mail.python.org/pipermail/baypiggies/2009-September/005483.html

hope this helps!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: Python course, San Francisco, Nov 9-11

2009-10-27 Thread wesley chun
*FINAL REMINDER*

come join us for another hardcore Python training course in San
Francisco coming up in a few weeks! we have a few more slots
available. bring your co-workers to take advantage of our multiple
registration discount. we also feature a steeper discount for those
who are primary/secondary teachers, students, as well as to those who
have been more severely impacted by the economy. here is my original
announcement for more info:

http://mail.python.org/pipermail/python-list/2009-September/196228.html

hope to meet you soon!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: Intro+Intermediate Python course, SF, May 10-12

2010-03-31 Thread wesley chun
Need to get up-to-speed with Python as quickly as possible? Come join
me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python
Programming," for a comprehensive intro course coming up this May in
beautiful Northern California! Please pass on this note to whomever
you think may be interested. I look forward to meeting you and your
colleagues! feel free to pass around the PDF flyer linked down below.

(Comprehensive) Introduction to Python
Mon-Wed, 2010 May 10-12, 9am-5pm

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON

Although this course may appear to those new to Python, it is also
perfect for those who have tinkered with it and want to "fill in the
gaps" and/or want to get more in-depth formal training.  It combines
the best of both an introduction to the language as well as a "Python
Internals" training course.

We will immerse you in the world of Python in only a few days, showing
you more than just its syntax (which you don't really need a book to
learn, right?). Knowing more about how Python works under the covers,
including the relationship between data objects and memory management,
will make you a much more effective Python programmer coming out of
the gate. 3 hands-on labs each day will help hammer the concepts home.

Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware,
NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting
or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App
Engine, Jython, IronPython, and Mailman will also benefit!

PREVIEW 1: you will find (and can download) a video clip of a
class session recorded live to get an idea of my lecture style and
the interactive classroom environment at:

http://cyberwebconsulting.com

PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books
Online has asked me to deliver a 1-hour webcast last Spring called
"What is Python?". This was an online seminar based on a session
that I've delivered at numerous conferences in the past. It will give
you an idea of lecture style as well as an overview of the material
covered in the course.

info:http://www.safaribooksonline.com/events/WhatIsPython.html
download (reg req'd):
http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA

WEB:   http://cyberwebconsulting.com

FLYER: http://starship.python.net/crew/wesc/flyerPP1may10.pdf

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and regular evening receptions; fully-equipped suites

See website for costs, venue info, and registration. There is a significant
discounts available for full-time students, secondary teachers, and others.

Hope to see you there!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: Intro+Intermediate Python course, SF, May 10-12

2010-04-27 Thread wesley chun
*** FINAL REMINDER ***

Need to get up-to-speed with Python as quickly as possible? Come join
me, Wesley Chun, author of Prentice-Hall's bestseller "Core Python
Programming," for a comprehensive Python course coming up this May in
beautiful Northern California! I welcome new Python programmers as
well as veterans who may have run into bugs that are difficult to
explain and/or who want to learn more about objects, references, and
Python's memory model. Come join us if you're looking for *more* than
just a vanilla "beginners" class.

Please pass on this note to whomever you think may be interested. I
look forward to meeting you and your colleagues! feel free to pass
around the flyer below.

(Comprehensive) Introduction to Python
Mon-Wed, 2010 May 10-12, 9am-5pm

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON

Although this course may appear to those new to Python, it is also
perfect for those who have tinkered with it and want to "fill in the
gaps" and/or want to get more in-depth formal training.  It combines
the best of both an introduction to the language as well as a "Python
Internals" training course.

We will immerse you in the world of Python in only a few days, showing
you more than just its syntax (which you don't really need a book to
learn, right?). Knowing more about how Python works under the covers,
including the relationship between data objects and memory management,
will make you a much more effective Python programmer coming out of
the gate. 3 hands-on labs each day will help hammer the concepts home.

Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware,
NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting
or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App
Engine, Jython, IronPython, and Mailman will also benefit!

PREVIEW 1: you will find (and can download) a video clip of a
class session recorded live to get an idea of my lecture style and
the interactive classroom environment at:

http://cyberwebconsulting.com

PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books
Online has asked me to deliver a 1-hour webcast last Spring called
"What is Python?". This was an online seminar based on a session
that I've delivered at numerous conferences in the past. It will give
you an idea of lecture style as well as an overview of the material
covered in the course.

info:http://www.safaribooksonline.com/events/WhatIsPython.html
download (reg req'd):
http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA

WEB:   http://cyberwebconsulting.com

FLYER: http://starship.python.net/crew/wesc/flyerPP1may10.pdf

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and regular evening receptions; fully-equipped suites

See website for costs, venue info, and registration.

Hope to see you there!
-- wesley

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Python Web Development with Django", Addison Wesley, (c) 2009
http://withdjango.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: tough-to-explain Python

2009-07-10 Thread Wesley Chun
On Jul 7, 1:04 pm, kj  wrote:
> I'm having a hard time coming up with a reasonable way to explain
> certain things to programming novices.
> :
> How do I explain to rank beginners (no programming experience at
> all) why x and y remain unchanged above, but not z?
> :
> What do you say to that?
>
> I can come up with much mumbling about pointers and stacks and
> heaps and much hand-waving about the underlying this-and-that, but
> nothing that sounds even remotely illuminating.
>
> Your suggestions would be much appreciated!


kj,

i don't have too much to add to everyone else's response except to
describe how i deal with this. i teach Python courses several times a
year and realized long ago that conveying the concept of mutable vs.
immutable is a key to getting up-to-speed quickly with Python as well
as helping beginners.

so, although techically, this is more of an intermediate topic rather
than "beginner" material, i still teach it anyway, with the hopes of
producing better Python programmers out of the gate, and hopefully,
less frustrated ones. in fact, i dedicated an entire chapter (4) in
Core Python Programming just to address this important issue. to top
it all off, i end this module in the class by giving 2 quizzes, just
to make sure they understood what i just told them. i put the 1st one
online, so if you're curious, the PDF is at 
http://roadkill.com/~wesc/cyberweb/introQuiz.pdf
... the 2nd quiz is harder and involves the discussion of the
differences between shallow and deep copies. so yes, not very beginner-
ish stuff, hence the reason why i (re)named my course "Intro
+Intermediate Python".

finally, rather than the "paper tag" or alex's hotel statue analogy, i
just say that variables are like Post-It® or sticky notes on
objects. i can tag objects anytime, tag objects more than once, remove
tags, or switch them to another object, etc.

just my $0.02,
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python docs disappointing

2009-08-06 Thread Wesley Chun
On Jul 31, 1:10 pm, kj  wrote:
> I'm pretty new to Python, and I like a lot overall, but I find the
> documentation for Python rather poor, overall.
>
> I'm sure that Python experts don't have this problem:


kj,

welcome to Python! i'm sorry that you find the documentation lacking.
the one thing about the docs is that they're just pointers to get you
started and aren't very comprehensive. there are plenty of good online
tutorials out there as well as books. in fact, one of my main
motivations for writing "Core Python Programming" was because when i
learned Python 13 years ago, the online docs were enough to get me
started but did not have enough info to help me become an intermediate
Python programmer. there were only *2*(!) Python books out there, and
they were special-topic oriented, not ones to learn the language from.
it took almost a year and a half to write, but from what i hear from
readers and what has been said in reviews, it's pretty comprehensive,
and is a good book to learn Python from. i only wish that *i* had it
when i was learning!

Most "Python experts" do not have the entire language memorized, so
everyone has to look at the docs from time-to-time, not just
beginners. i'll either hit up http://docs.python.org/library/MODULE.html
or flip open my Nutshell or PER references, and finally, i'll google
if i have to (rare). the Python docs are the language manuals and not
necessarily full reference texts, so you have to just take them for
what they are.

hope this helps!
-- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007,2001
"Python Fundamentals", Prentice Hall, (c)2009
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list


[ANN] Intro+Intermediate Python course, San Francisco, Nov 2009

2009-09-14 Thread wesley chun
(COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON
Mon-Wed, 2009 Nov 9-11, 9AM - 5PM

If you have been in the Python community for some time, you may be
familiar with my introductory (and advanced) courses. Many new Python
intro courses have been added over the past few years, so aren't all
classes the same? Most introductory courses focus on teaching you the
syntax and giving you an idea of a language's flow control and data
types.

However, this can only get your so far. Although our course may appear
to be for those new to Python, it is also perfect for those who have
tinkered with it and want to "fill in the gaps" or desire more
in-depth formal training. It combines the best of both an introduction
to the language as well as covering intermediate language fundamentals
that can make you more effective, even as a beginner.

We will immerse you in the world of Python in only a few days, showing
you more than just its syntax (which you don't really need a book to
learn, right?). Knowing more about how Python works under the covers,
including the relationship between data objects and memory management,
will make you a much more effective Python programmer coming out of
the gate. Daily hands-on labs will help hammer the concepts home.

Come join me, Wesley Chun, author of Prentice-Hall's bestseller "Core
Python Programming," for a comprehensive course coming up this Fall in
beautiful Northern California to get up-to-speed with Python as
quickly and as in-depth as possible!

WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA
INFO:  http://cyberwebconsulting.com (click "Python Training")
FLYER: http://starship.python.net/crew/wesc/flyerPP1nov09.pdf

LOCALS: easy freeway (101/280/380) with lots of parking plus public
transit (BART and CalTrain) access via the San Bruno stations, easily
accessible from all parts of the Bay Area

VISITORS: free shuttle to/from the airport, free high-speed internet,
free breakfast and regular evening receptions; fully-equipped suites

FREE PREVIEW: at the website below, you will find (and can download) a
video clip of a live lesson that was delivered recently to get an idea
of the lecture style and interactive classroom environment.

FREE PREVIEW 2: Partnering with O'Reilly and Pearson, I delivered a
one-hour introductory webcast at Safari Books Online earlier this year
called What is Python?. You will get both my lecture
style as well as an overview of the material covered in the course.

http://www.safaribooksonline.com/events/WhatIsPython.html (event announcement)
http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython
(free download with registration)

See website for costs, venue info, and registration; various discounts
available.

Hope to see you there!
- wesley
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"Core Python Programming", Prentice Hall, (c)2007, 2001
"Python Fundamentals" DVD, Prentice Hall, (c)2009
http://corepython.com

wesley.j.chun :: wescpy-at-gmail.com
python training and technical consulting
cyberweb.consulting : silicon valley, ca
http://cyberwebconsulting.com
-- 
http://mail.python.org/mailman/listinfo/python-list