1. Conversions between classes in Python

    My future colleague, Bill Punch at MSU, is teaching Python to intro CS students. He asks (slightly edited):


    In C++, you can write multiple constructors, each one taking a different type and/or number of arguments. Let's say we are writing a RationalNumber class. I could write 2 constructors:

    class …
    read more

    There are comments.

  2. Coming up with GHOP tasks at your Python Interest Group meetings

    If anyone is having a Python Interest Group meeting this month, please consider devoting 15-30 minutes to coming up with random task ideas for the Google Highly Open Participation Contest.

    Briefly,

    • tasks must involve Python and Open Source;
    • non-core pet projects are welcome;
    • building screencasts, updating documentation, and adding unit …
    read more

    There are comments.

  3. Two entertaining quotes

    I'm going through some of my saved up e-mail from the last few months, and found these two gems.

    Noah Gift on grokking threads, from the testing-in-python list:

    Trying to understand what massive pools of threads that spawn other
    massive spools of threads, that spawn other massive pools of threads …
    read more

    There are comments.

  4. Naive Lazyweb Question: Programmatic Form Editing

    Dear lazyweb,

    I would like to be able to write Python code like the following:

    page_obj = parse(html_code)
    
    form_obj = page_obj.forms[0]
    
    form_obj.my_name = 'bob'
    form_obj.my_select.choose('option2')
    
    new_html_code = page_obj.emit_html()
    

    That is, we have an existing HTML form, and I would like to be able to parse it …

    read more

    There are comments.

« Page 14 / 27 »

social