Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30744 > unrolled thread
| Started by | mike20007@gmail.com |
|---|---|
| First post | 2012-10-04 13:52 -0700 |
| Last post | 2012-10-05 14:19 -0700 |
| Articles | 8 on this page of 28 — 7 participants |
Back to article view | Back to comp.lang.python
sum function mike20007@gmail.com - 2012-10-04 13:52 -0700
Re: sum function Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-04 15:04 -0600
Re: sum function Mike <mike20007@gmail.com> - 2012-10-04 14:31 -0700
Re: sum function Mike <mike20007@gmail.com> - 2012-10-04 14:31 -0700
Re: sum function Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-04 15:05 -0600
Re: sum function Mike <mike20007@gmail.com> - 2012-10-04 14:29 -0700
Re: sum function Dave Angel <d@davea.name> - 2012-10-04 17:39 -0400
Re: sum function Mike <mike20007@gmail.com> - 2012-10-04 17:40 -0700
Re: sum function Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-04 18:59 -0600
Re: sum function Mike <mike20007@gmail.com> - 2012-10-04 19:01 -0700
Re: sum function Ramchandra Apte <maniandram01@gmail.com> - 2012-10-05 01:31 -0700
Re: sum function Ramchandra Apte <maniandram01@gmail.com> - 2012-10-05 01:31 -0700
Re: sum function Mike <mike20007@gmail.com> - 2012-10-04 19:01 -0700
Re: sum function Mike <mike20007@gmail.com> - 2012-10-04 17:40 -0700
Re: sum function Chris Angelico <rosuav@gmail.com> - 2012-10-05 07:34 +1000
Re: sum function Mike <mike20007@gmail.com> - 2012-10-04 14:29 -0700
Re: sum function Mike <mike20007@gmail.com> - 2012-10-05 06:39 -0700
Re: sum function Ramchandra Apte <maniandram01@gmail.com> - 2012-10-05 06:41 -0700
Re: sum function Mike <mike20007@gmail.com> - 2012-10-05 06:47 -0700
Re: sum function Terry Reedy <tjreedy@udel.edu> - 2012-10-05 14:52 -0400
Re: sum function Mike <mike20007@gmail.com> - 2012-10-05 13:09 -0700
Re: sum function Dave Angel <d@davea.name> - 2012-10-05 16:26 -0400
Re: sum function Ramchandra Apte <maniandram01@gmail.com> - 2012-10-06 05:38 -0700
Re: sum function Mike <mike20007@gmail.com> - 2012-10-05 13:09 -0700
Re: sum function Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-05 13:29 -0600
Re: sum function Mike <mike20007@gmail.com> - 2012-10-05 13:03 -0700
Re: sum function Ian Kelly <ian.g.kelly@gmail.com> - 2012-10-05 14:10 -0600
Re: sum function Mike <mike20007@gmail.com> - 2012-10-05 14:19 -0700
Page 2 of 2 — ← Prev page 1 [2]
| From | Mike <mike20007@gmail.com> |
|---|---|
| Date | 2012-10-05 13:09 -0700 |
| Message-ID | <397c5421-e28b-482e-82ce-6bf693056d51@googlegroups.com> |
| In reply to | #30829 |
Terry, I am not using the mail client. I am just posting on the site. Something wrong with this site. When you do individual reply, it does the double posting which it shouldn't. See "Ramachandra Apte's" reply. It is posted twice too. Thanks
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <d@davea.name> |
|---|---|
| Date | 2012-10-05 16:26 -0400 |
| Message-ID | <mailman.1872.1349469566.27098.python-list@python.org> |
| In reply to | #30835 |
On 10/05/2012 04:09 PM, Mike wrote: > Terry, > > I am not using the mail client. I am just posting on the site. And which site would that be (that you're using)? There are a few. I'm guessing you use google-groups. And all of them get gatewayed to the actual list, with differing numbers of bugs. I use email to access it directly. I solve one of the duplicate-message problems with google groups by automatically deleting any message addressed to google-groups. There are about 100 such messages each month. Another problem is that lots of these gateways post to both the newsgroup and to the python-list. > > Something wrong with this site. When you do individual reply, it does the double posting which it shouldn't. See "Ramachandra Apte's" reply. It is posted twice too. > > Thanks > > > -- DaveA
[toc] | [prev] | [next] | [standalone]
| From | Ramchandra Apte <maniandram01@gmail.com> |
|---|---|
| Date | 2012-10-06 05:38 -0700 |
| Message-ID | <36bb20b7-d2cf-489d-b7af-8efc56cbb4c0@googlegroups.com> |
| In reply to | #30839 |
On Saturday, 6 October 2012 02:09:56 UTC+5:30, Dave Angel wrote: > On 10/05/2012 04:09 PM, Mike wrote: > > > Terry, > > > > > > I am not using the mail client. I am just posting on the site. > > > > And which site would that be (that you're using)? There are a few. I'm > > guessing you use google-groups. And all of them get gatewayed to the > > actual list, with differing numbers of bugs. > > > > I use email to access it directly. I solve one of the duplicate-message > > problems with google groups by automatically deleting any message > > addressed to google-groups. There are about 100 such messages each month. > > > > Another problem is that lots of these gateways post to both the > > newsgroup and to the python-list. > I found out earlier that this was why my posts was being double-posted in Google Groups. > > > > > > > Something wrong with this site. When you do individual reply, it does the double posting which it shouldn't. See "Ramachandra Apte's" reply. It is posted twice too. > > > > > > Thanks > > > > > > > > > > > > > > > -- > > > > DaveA
[toc] | [prev] | [next] | [standalone]
| From | Mike <mike20007@gmail.com> |
|---|---|
| Date | 2012-10-05 13:09 -0700 |
| Message-ID | <mailman.1870.1349467760.27098.python-list@python.org> |
| In reply to | #30829 |
Terry, I am not using the mail client. I am just posting on the site. Something wrong with this site. When you do individual reply, it does the double posting which it shouldn't. See "Ramachandra Apte's" reply. It is posted twice too. Thanks
[toc] | [prev] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2012-10-05 13:29 -0600 |
| Message-ID | <mailman.1864.1349465378.27098.python-list@python.org> |
| In reply to | #30814 |
On Fri, Oct 5, 2012 at 7:39 AM, Mike <mike20007@gmail.com> wrote: > Sorry about that. Here you go > > Traceback (most recent call last): > File "test.py", line 17, in <module> > total = sum(float(col.value) for r in iter(next_r, None) for col in r[0].columns.itervalues()) > File "test.py", line 17, in <genexpr> > total = sum(float(col.value) for r in iter(next_r, None) for col in r[0].columns.itervalues()) > IndexError: list index out of range Maybe the sentinel value is not None as I assumed, and it's overrunning the end of the data? What does client.scannerGet return when there is no more data?
[toc] | [prev] | [next] | [standalone]
| From | Mike <mike20007@gmail.com> |
|---|---|
| Date | 2012-10-05 13:03 -0700 |
| Message-ID | <9cfb599a-31c2-486f-95c9-d60e1d29f730@googlegroups.com> |
| In reply to | #30744 |
I added the print command. It prints [] when there is no data. Thanks
[toc] | [prev] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2012-10-05 14:10 -0600 |
| Message-ID | <mailman.1871.1349467868.27098.python-list@python.org> |
| In reply to | #30833 |
On Fri, Oct 5, 2012 at 2:03 PM, Mike <mike20007@gmail.com> wrote: > I added the print command. > > It prints [] when there is no data. Change "iter(next_r, None)" to "iter(next_r, [])"
[toc] | [prev] | [next] | [standalone]
| From | Mike <mike20007@gmail.com> |
|---|---|
| Date | 2012-10-05 14:19 -0700 |
| Message-ID | <48ef35fb-89c4-4d4a-8eb6-b8ae5286db47@googlegroups.com> |
| In reply to | #30837 |
That worked, Ian. Thanks
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.python
csiph-web