Refuel Extreme helps control bloodflow in the body and so it helps determine
mental performance, lungs, and also other important organs. This is one of
many Best Bodybuilding Supplements you're able to take. It works within the
skeletal muscles and will help communications are sent by the human bod
On 1/19/2015 5:06 PM, Zachary Gilmartin wrote:
Why aren't there trees in the python standard library?
Sequences nested withing sequences can be regarded as trees, and Python
has these. I regard Lisp as a tree processing languages, as it must be
to manipulate, for example, code with nested st
Mark Lawrence :
> On 19/01/2015 22:06, Zachary Gilmartin wrote:
>> Why aren't there trees in the python standard library?
>
> Probably because you'd never get agreement as to which specific tree
> and which specific implementation was the most suitable for inclusion.
Most programming languages pr
On Mon, Jan 19, 2015 at 11:21 PM, Dan Stromberg wrote:
> On Mon, Jan 19, 2015 at 6:46 PM, Mark Lawrence
> wrote:
> > On 20/01/2015 00:49, Dan Stromberg wrote:
> >>
>
apropos of nothing, I went to stonybrook too. beee 1978
> >> On Mon, Jan 19, 2015 at 2:06 PM, Zachary Gilmartin
> >> wrote:
>
On Mon, Jan 19, 2015 at 6:46 PM, Mark Lawrence wrote:
> On 20/01/2015 00:49, Dan Stromberg wrote:
>>
>> On Mon, Jan 19, 2015 at 2:06 PM, Zachary Gilmartin
>> wrote:
>>>
>>> Why aren't there trees in the python standard library?
>>
>>
>> Trees are kind of specialized datastructures; no one type of
On Monday, January 19, 2015 at 8:16:01 PM UTC-6, Ben Finney wrote:
> Freedom of expression entails an obligation on the state
> to not quash anyone's expression. It does not affect
> anyone who is not the state; it imposes no obligation on
> the PSF. [...] So a forum such as this can block obnoxiou
On Tue, Jan 20, 2015 at 2:50 PM, Rick Johnson
wrote:
> Of course the "kill file" has such a gloriously revengeful
> sound to it though! ;-)
http://bofh.ntk.net/BOFH//bastard-sm2.php
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, January 19, 2015 at 7:55:11 PM UTC-6, Chris Angelico wrote:
> On Tue, Jan 20, 2015 at 11:38 AM, Rick Johnson wrote:
> > That's the beauty of free speech: "We have right to be
> > annoyed, and the author has the right not to give a damn".
> > The only alternative is fascist censorship, an
On 20/01/2015 00:15, Luke Tomaneng wrote:
Has anyone noticed these? There have been about three of them recently and they
don't seem to have anything to do with Python at all. Does anyone know if there
is a good reason they are here?
I've never seen any of these reading gmane.comp.python.gen
On 20/01/2015 00:49, Dan Stromberg wrote:
On Mon, Jan 19, 2015 at 2:06 PM, Zachary Gilmartin
wrote:
Why aren't there trees in the python standard library?
Trees are kind of specialized datastructures; no one type of tree
solves all tree-related problems suitably well.
I think probably the mo
> Hello i have trying to store information in arff file but i has been really.
> Any ideas of how can i do that?
>
>
> with open('fileids3.txt', 'r') as f:
>
> genres=[word.strip() for word in f.next().split(',')]
>
> with open('adjectifs2.txt', 'r') as g:
> adj = [word.strip() for
Chris Angelico writes:
> On Tue, Jan 20, 2015 at 11:38 AM, Rick Johnson
> wrote:
> > That's the beauty of free speech: "We have right to be annoyed, and
> > the author has the right not to give a damn". The only alternative
> > is fascist censorship, and I'll happily endure these annoyances to
>
On Tue, Jan 20, 2015 at 11:38 AM, Rick Johnson
wrote:
> That's the beauty of free speech: "We have right to be
> annoyed, and the author has the right not to give a damn".
> The only alternative is fascist censorship, and I'll happily
> endure these annoyances to prevent that!
Free speech also gi
On Mon, Jan 19, 2015 at 2:06 PM, Zachary Gilmartin
wrote:
> Why aren't there trees in the python standard library?
Trees are kind of specialized datastructures; no one type of tree
solves all tree-related problems suitably well.
I think probably the most common need for a tree is implementing a
On Mon, Jan 19, 2015 at 4:12 PM, Luke Tomaneng wrote:
> I have been having a bit of trouble with the things mentioned in the title. I
> have written the following script for a Codecademy course:
> stock = {
> "banana": 6,
> "apple": 0,
> "orange": 32,
> "pear": 15
> }
>
> prices =
On Tue, Jan 20, 2015 at 11:34 AM, Luke Tomaneng wrote:
> Thanks Chris / Mr. Angelico / whatever you prefer. I attempted to post a
> reply to you before but it could not be viewed even after refreshing several
> times. You've been helpful.
>
My pleasure! Your earlier email did come through; some
Luke Tomaneng wrote:
> Has anyone noticed these? There have been about three of them recently and
> they don't seem to have anything to do with Python at all. Does anyone
> know if there is a good reason they are here?
They're spam, and depending on how you are accessing this group you may or
ma
In article ,
zacharygilmar...@gmail.com says...
>
> Why aren't there trees in the python standard library?
I don't know much about python development process and strategies, but I
suspect it shouldn't be much different from any other language I know
of. So here's my tentative answer:
Once gen
On Monday, January 19, 2015 at 6:16:13 PM UTC-6, Luke Tomaneng wrote:
> Has anyone noticed [uppercase post content]? There have
> been about three of them recently and they don't seem to
> have anything to do with Python at all. Does anyone know
> if there is a good reason they are here?
A "good r
Thanks Chris / Mr. Angelico / whatever you prefer. I attempted to post a reply
to you before but it could not be viewed even after refreshing several times.
You've been helpful.
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, January 19, 2015 at 4:21:58 PM UTC-8, Chris Angelico wrote:
> On Tue, Jan 20, 2015 at 11:12 AM, Luke Tomaneng wrote:
> > def compute_bill(food):
> > total = 0
> > for item in food:
> > if stock[item] > 0:
> > total += prices[item]
> > stock[item] =
On Tuesday, January 20, 2015 at 5:52:54 AM UTC+5:30, Chris Angelico wrote:
> On Tue, Jan 20, 2015 at 11:15 AM, Luke Tomaneng wrote:
> > Has anyone noticed these? There have been about three of them recently and
> > they don't seem to have anything to do with Python at all. Does anyone know
> > i
On 2015-01-20 00:12, Luke Tomaneng wrote:
I have been having a bit of trouble with the things mentioned in the title. I
have written the following script for a Codecademy course:
stock = {
"banana": 6,
"apple": 0,
"orange": 32,
"pear": 15
}
prices = {
"banana": 4,
On Tue, Jan 20, 2015 at 11:15 AM, Luke Tomaneng wrote:
> Has anyone noticed these? There have been about three of them recently and
> they don't seem to have anything to do with Python at all. Does anyone know
> if there is a good reason they are here?
>
I haven't seen them. My guess is they're
On Tue, Jan 20, 2015 at 11:12 AM, Luke Tomaneng wrote:
> def compute_bill(food):
> total = 0
> for item in food:
> if stock[item] > 0:
> total += prices[item]
> stock[item] = stock[item] - 1
> return total
> Whenever I run this script, "4" is ret
Has anyone noticed these? There have been about three of them recently and they
don't seem to have anything to do with Python at all. Does anyone know if there
is a good reason they are here?
--
https://mail.python.org/mailman/listinfo/python-list
I have been having a bit of trouble with the things mentioned in the title. I
have written the following script for a Codecademy course:
stock = {
"banana": 6,
"apple": 0,
"orange": 32,
"pear": 15
}
prices = {
"banana": 4,
"apple": 2,
"orange": 1.5,
"pear": 3
}
On 2015-01-19 16:19, Michael Torrie wrote:
> On 01/19/2015 04:08 PM, Steven D'Aprano wrote:
> > Zachary Gilmartin wrote:
> >> Why aren't there trees in the python standard library?
> >
> > Possibly because they aren't needed? Under what circumstances
> > would you use a tree instead of a list or a
On Mon, Jan 19, 2015 at 3:08 PM, Steven D'Aprano
wrote:
> Zachary Gilmartin wrote:
>
>> Why aren't there trees in the python standard library?
>
> Possibly because they aren't needed? Under what circumstances would you use
> a tree instead of a list or a dict or combination of both?
>
> That's not
On 01/19/2015 04:08 PM, Steven D'Aprano wrote:
> Zachary Gilmartin wrote:
>
>> Why aren't there trees in the python standard library?
>
> Possibly because they aren't needed? Under what circumstances would you use
> a tree instead of a list or a dict or combination of both?
>
> That's not a rhet
Zachary Gilmartin wrote:
> Why aren't there trees in the python standard library?
Possibly because they aren't needed? Under what circumstances would you use
a tree instead of a list or a dict or combination of both?
That's not a rhetorical question. I am genuinely curious, what task do you
have
On 19/01/2015 22:06, Zachary Gilmartin wrote:
Why aren't there trees in the python standard library?
Probably because you'd never get agreement as to which specific tree and
which specific implementation was the most suitable for inclusion.
--
My fellow Pythonistas, ask not what our languag
On Tue, Jan 20, 2015 at 9:16 AM, Ben Finney wrote:
> If you're asking because you think all data structures magically appear
> in the standard library by wishing it so, I think you over-estimate the
> powers of the standard library maintainers.
Oh come on Ben. Guido has a time machine; TimSort is
Zachary Gilmartin writes:
> Why aren't there trees in the python standard library?
What sort of answer are you looking for? There are many ways that
question could be intended.
If you're asking about what could be keeping a particular tree
implementation out of the standard library: that depend
Why aren't there trees in the python standard library?
--
https://mail.python.org/mailman/listinfo/python-list
> If you want an sql-like interface, you can simply create an in-memory
> sqlite3 database.
>
> import sqlite3
> db = sqlite3.Connection(':memory:')
>
> You can create indexes as you need, and query using SQL. Later, if you
> find the data getting too big to fit in memory, you can switch to us
> Why not take a look at pandas as see if there's anything there you could
> use? Excellent docs here http://pandas.pydata.org/pandas-docs/stable/
> and the mailing list is available at gmane.comp.python.pydata amongst
> other places.
Mark,
Actually it was the first thing that came to mind. I did
> The IDs of the objects prove that they're actually all the same
> object. The memory requirement for this is just what the dictionaries
> themselves require; their keys and values are all shared with other
> usage.
Chris,
I would have never imagined that, much appreciated for that!
jlc
--
http
"Joseph L. Casale" writes:
>> So presumably your data's small enough to fit into memory, right? If
>> it isn't, going back to the database every time would be the best
>> option. But if it is, can you simply keep three dictionaries in sync?
>
> Hi Chris,
> Yeah the data can fit in memory and henc
On 19/01/2015 17:09, Joseph L. Casale wrote:
This is actually far simpler than I had started imagining, however the row data
is duplicated. I am hacking away at an attempt with references to one copy of
the row.
Its kind of hard to recreate an sql like object in Python with indexes and the
inhe
On Tue, Jan 20, 2015 at 4:09 AM, Joseph L. Casale
wrote:
>> row = (foo, bar, quux) # there could be duplicate quuxes but not foos or bars
>> foo_dict = {}
>> bar_dict = {}
>> quux_dict = collections.defaultdict(set)
>>
>> foo_dict[row[0]] = row
>> bar_dict[row[1]] = row
>> quux_dict[row[2]].add(ro
> So presumably your data's small enough to fit into memory, right? If
> it isn't, going back to the database every time would be the best
> option. But if it is, can you simply keep three dictionaries in sync?
Hi Chris,
Yeah the data can fit in memory and hence the desire to avoid a trip here.
>
On 19/01/2015 09:01, contro opinion wrote:
In the python3 console:
>>> a=18
>>> b='18'
>>> str(a) == b
True
>>> int(b) == a
True
Now how to change a1,a2,a3 into b1,b2,b3 and vice versa?
a1=0xf4
a2=0o36
a3=011
b1='0xf4'
b2='0o36'
b3='011'
Giving a completely
On Tue, Jan 20, 2015 at 1:13 AM, Joseph L. Casale
wrote:
> No surprise the data originates from a database however the data is utilized
> in
> a recursive processing loop where the user accessing the data benefits from a
> simplified and quick means to access it. Currently its done with classes t
I have some tabular data for example 3 tuples that I need to build a container
for where lookups into any one of the three fields are O(1). Does something
in the base library exist, or if not is there an efficient implementation of
such
a container that has been implemented before I give it a go?
On 1/16/15 10:03 AM, Chris Angelico wrote:
Scenario: You're introducing someone to Python for the first time.
S/he may have some previous programming experience, or may be new to
the whole idea of giving a computer instructions. You have a couple of
minutes to show off how awesome Python is. What
Jussi Piitulainen wrote:
> Peter Otten writes:
>> >>> "{:o}".format(0xf4)
>> '364'
>> To add a prefix just put it into the format string.
> There's also these (in Python 3.2.3):
>
> >>> hex(0xf4)
> '0xf4'
D'oh!
--
https://mail.python.org/mailman/listinfo/python-list
ANNOUNCING
eGenix Talks & Videos
"Advanced Database Programming"
This announcement is also available on our web-site for online reading:
http://www.egenix.com/company/news/EuroPy
Hello i have trying to store information in arff file but i has been really.
Any ideas of how can i do that?
with open('fileids3.txt', 'r') as f:
genres=[word.strip() for word in f.next().split(',')]
with open('adjectifs2.txt', 'r') as g:
adj = [word.strip() for word in g.
Peter Otten writes:
> contro opinion wrote:
> > Now how to change a1,a2,a3 into b1,b2,b3 and vice versa?
> > a1=0xf4
> > a2=0o36
> > a3=011
> >
> > b1='0xf4'
> > b2='0o36'
> > b3='011'
>
> Python 3.4.0 (default, Apr 11 2014, 13:05:11)
> [GCC 4.8.2] on linux
> Type "help", "copyright", "credits
"contro opinion" wrote in message
news:ca+ydq_651x0ndpw1j203wgbedtxy_mw7g0w3vh1woagr1iv...@mail.gmail.com...
> In the python3 console:
>
>>>> a=18
>>>> b='18'
>>>> str(a) == b
>True
>>>> int(b) == a
>True
>
>
> Now how to change a1,a2,a3 into b1,b2,b3 and vice versa?
> a
contro opinion wrote:
> In the python3 console:
>
> >>> a=18
> >>> b='18'
> >>> str(a) == b
> True
> >>> int(b) == a
> True
>
>
> Now how to change a1,a2,a3 into b1,b2,b3 and vice versa?
> a1=0xf4
> a2=0o36
> a3=011
>
> b1='0xf4'
> b2='0o36'
> b3='011'
Python 3.4.0 (d
In the python3 console:
>>> a=18
>>> b='18'
>>> str(a) == b
True
>>> int(b) == a
True
Now how to change a1,a2,a3 into b1,b2,b3 and vice versa?
a1=0xf4
a2=0o36
a3=011
b1='0xf4'
b2='0o36'
b3='011'
--
https://mail.python.org/mailman/listinfo/python-list
53 matches
Mail list logo