python / cpython

The Python programming language
https://www.python.org/
Other
59.72k stars 28.94k forks source link

Start of a bgen tutorial #35102

Closed theller closed 21 years ago

theller commented 22 years ago
BPO 458383
Nosy @loewis, @theller, @jackjansen
Files
  • tut.py: Start of a tutorial (tut.py)
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields: ```python assignee = 'https://github.com/jackjansen' closed_at = created_at = labels = [] title = 'Start of a bgen tutorial' updated_at = user = 'https://github.com/theller' ``` bugs.python.org fields: ```python activity = actor = 'loewis' assignee = 'jackjansen' closed = True closed_date = None closer = None components = ['None'] creation = creator = 'theller' dependencies = [] files = ['3580'] hgrepos = [] issue_num = 458383 keywords = ['patch'] message_count = 4.0 messages = ['37476', '37477', '37478', '37479'] nosy_count = 3.0 nosy_names = ['loewis', 'theller', 'jackjansen'] pr_nums = [] priority = 'normal' resolution = 'rejected' stage = None status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue458383' versions = [] ```

    theller commented 22 years ago

    Jack,

    this is (maybe) a start of a bgen tutorial. It explains some of the things I understand now from bgen.

    It is not finished, also it uses windows specific examples. I'm requesting comments on the general approach. I have also sent it to you via email, but probably you have not seen it.

    jackjansen commented 22 years ago

    Logged In: YES user_id=45365

    Thomas, I'm leaving your tutorial in the patch section for now.

    My reason for this is that you give a nice explanation of how bgen generates code, and how you can then build the module (nifty, that one!), but you skip the whole "front end" bit: how bgen parses your C header files, and how you add support for the various C objects to Python. And in my opinion that is the biggest stumbling block for people starting to work with bgen.

    I'll try and come up with a framework for a tutorial, if I have something I'll let you know so you can shine your light on it.

    61337411-43fc-4a9c-b8d5-4060aede66d0 commented 21 years ago

    Logged In: YES user_id=21627

    If there is no action on this patch by Nov 1, 2002, I recommend to reject it.

    61337411-43fc-4a9c-b8d5-4060aede66d0 commented 21 years ago

    Logged In: YES user_id=21627

    Closing it as rejected.