Return-Path: Delivered-To: apmail-hadoop-avro-dev-archive@minotaur.apache.org Received: (qmail 97126 invoked from network); 4 Nov 2009 22:20:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 22:20:00 -0000 Received: (qmail 65604 invoked by uid 500); 4 Nov 2009 22:19:56 -0000 Delivered-To: apmail-hadoop-avro-dev-archive@hadoop.apache.org Received: (qmail 65547 invoked by uid 500); 4 Nov 2009 22:19:56 -0000 Mailing-List: contact avro-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: avro-dev@hadoop.apache.org Delivered-To: mailing list avro-dev@hadoop.apache.org Received: (qmail 65387 invoked by uid 99); 4 Nov 2009 22:19:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 22:19:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 22:19:53 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 756CA234C04C for ; Wed, 4 Nov 2009 14:19:32 -0800 (PST) Message-ID: <128446783.1257373172463.JavaMail.jira@brutus> Date: Wed, 4 Nov 2009 22:19:32 +0000 (UTC) From: "Jeff Hammerbacher (JIRA)" To: avro-dev@hadoop.apache.org Subject: [jira] Commented: (AVRO-161) Add test to Python bindings for opening a non-empty file object container and successfully adding new elements In-Reply-To: <1669367191.1256074019442.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AVRO-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773666#action_12773666 ] Jeff Hammerbacher commented on AVRO-161: ---------------------------------------- Hey, Could a Python committer please take a look at this patch? To address Philip's comments: bq. You should add pydoc to _init_, create_new, and create_for_append, since it's not clear which one one is supposed to use. Sure, can do that. More generally, do we need a "create_new", or should __init__ default to new? bq. You should move the "from avro.genericio import DatumReader" up to the top of the file. Can't due to some fun circular importing. bq. In create_for_append and create_enw, the existence of the kwargs variable seems unnecessary Sure, I can do that. I thought kwargs was cleaner, but happy to have constructors with seven arguments if folks like them. > Add test to Python bindings for opening a non-empty file object container and successfully adding new elements > -------------------------------------------------------------------------------------------------------------- > > Key: AVRO-161 > URL: https://issues.apache.org/jira/browse/AVRO-161 > Project: Avro > Issue Type: Test > Components: python > Reporter: Jeff Hammerbacher > Attachments: AVRO-161.patch > > > Avro file object container are mutable and we should test that fact. testio.py currently just tests open a file for writing, writing a few records, closing the file, then reading the file back in. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.