theguy wrote:
If I could get it to actually
calculate the "points" for AUTHOR_SCOREBOARD properly, then all my problems
would be solved.
Have you tried getting it to print out the values
it's getting for the scores, and comparing them
with what you calculate by hand?
--
Greg
--
https://mail.py
On Sat, Jan 25, 2014 at 6:18 PM, Frank Millman wrote:
> I have realised that we unlikely to come to an agreement on this in the near
> future, as our philosophies are completely different.
>
> You have stated that your objective is to express as much as possible in
> Python code.
>
> I have stated
theguy wrote:
I so far have
three different authors in the program and have already put in the example
text but for some reason, the program always leans toward one specific
author, Suzanne Collins, no matter what insane number I try to put in or how
much I tinker with the coding.
It's obvious
"Chris Angelico" wrote in message
news:CAPTjJmpi-kvJAVs2gK+nH5n6q3REkJaKR=czerfzugdk8_v...@mail.gmail.com...
> On Fri, Jan 24, 2014 at 11:49 PM, Frank Millman
> wrote:
>>
>
[...]
I have realised that we unlikely to come to an agreement on this in the near
future, as our philosophies are com
On Fri, 24 Jan 2014 22:37:37 -0800, seaspeak wrote:
> take the following as an example, which could work well. But my concern
> is, will list 'l' be deconstructed after function return? and then
> iterator point to nowhere?
That would be a pretty awful bug for Python, since it would like lead to
On Sat, Jan 25, 2014 at 5:37 PM, wrote:
> take the following as an example, which could work well.
> But my concern is, will list 'l' be deconstructed after function return? and
> then iterator point to nowhere?
>
> def test():
> l = [1, 2, 3, 4, 5, 6, 7, 8]
> return iter(l)
> def main()
take the following as an example, which could work well.
But my concern is, will list 'l' be deconstructed after function return? and
then iterator point to nowhere?
def test():
l = [1, 2, 3, 4, 5, 6, 7, 8]
return iter(l)
def main():
for i in test():
print(i)
--
https://m
kvxde...@gmail.com Wrote in message:
> Alright. I have the code here. Now, I just want to note that the code was not
> designed to work "quickly" or be very well-written. It was rushed, as I only
> had a few days to finish the work, and by the time I wrote the program, I
> hadn't worked with Py
On Sat, Jan 25, 2014 at 3:37 PM, Steven D'Aprano
wrote:
> But using Python 2.7, I get a really bad case of moji-bake:
>
> [steve@ando ~]$ python2.7 -c "print u'ñøλπйж'"
> ñøλÏйж
What's 2.7's default source code encoding? I thought it was ascii, but
maybe it's assuming (in the absence of a ma
On 25Jan2014 04:37, Steven D'Aprano
wrote:
> I have an unexpected display error when dealing with Unicode strings, and
> I cannot understand where the error is occurring. I suspect it's not
> actually a Python issue, but I thought I'd ask here to start.
>
> Using Python 3.3, if I print a unico
Vincent Davis wrote:
True, the "all you want is a mapping" is not quite true. I actually
plan to plot frequency (the number of times an observed sub sequence
overlaps a value in the De Bruijn sequence) The way the sub sequences
overlap is important to me and I don't see a way go from base-k (or
On Friday, January 24, 2014 7:06:55 PM UTC-8, Rustom Mody wrote:
> On Saturday, January 25, 2014 8:12:41 AM UTC+5:30, kvxd...@gmail.com wrote:
>
> > Alright. I have the code here. Now, I just want to note that the code was
> > not designed to work "quickly" or be very well-written. It was rushed,
I have an unexpected display error when dealing with Unicode strings, and
I cannot understand where the error is occurring. I suspect it's not
actually a Python issue, but I thought I'd ask here to start.
Using Python 3.3, if I print a unicode string from the command line, it
displays correctly
On Saturday, January 25, 2014 8:12:41 AM UTC+5:30, kvxd...@gmail.com wrote:
> Alright. I have the code here. Now, I just want to note that the code was not
> designed to work "quickly" or be very well-written. It was rushed, as I only
> had a few days to finish the work, and by the time I wrote t
Alright. I have the code here. Now, I just want to note that the code was not
designed to work "quickly" or be very well-written. It was rushed, as I only
had a few days to finish the work, and by the time I wrote the program, I
hadn't worked with Python (which I never had TOO much experience wi
On 2014-01-25, Roy Smith wrote:
> In article ,
> Grant Edwards wrote:
>
>> On 2014-01-24, Roy Smith wrote:
>> > In article ,
>> > Chris Angelico wrote:
>> >
>> >> On Fri, Jan 24, 2014 at 1:22 PM, Roy Smith wrote:
>> >> >> Python 2.8j?
>> >> >
>> >> > You're imagining things.
>> >>
>> >> Get
In article ,
Ben Finney wrote:
> bob gailer writes:
>
> > On 1/24/2014 5:05 AM, theguy wrote:
> > > I would post the code, but I don't know if it's fine to put it here,
> > > as it contains pieces from books. I do believe that would go against
> > > copyright laws.
>
> > AFAIK copyright laws
On 1/24/2014 7:34 PM, Chris Angelico wrote:
On Sat, Jan 25, 2014 at 10:38 AM, bob gailer wrote:
On 1/24/2014 5:05 AM, theguy wrote:
I have a science project that involves designing a program which can
examine a bit of text with the author's name given, then figure out who the
author is if ano
On 1/24/2014 3:45 PM, Chris Angelico wrote:
On Sat, Jan 25, 2014 at 7:32 AM, Asaf Las wrote:
On Friday, January 24, 2014 6:37:29 PM UTC+2, Chris Angelico wrote:
On Sat, Jan 25, 2014 at 3:31 AM, Asaf Las wrote:
Hi
Is there way to get list of instances of particular
class through class itself?
On 2014-01-24 19:56, Roy Smith wrote:
> In article ,
> Grant Edwards wrote:
>
> > On 2014-01-24, Roy Smith wrote:
> > > In article
> > > , Chris
> > > Angelico wrote:
> > >
> > >> On Fri, Jan 24, 2014 at 1:22 PM, Roy Smith
> > >> wrote:
> > >> >> Python 2.8j?
> > >> >
> > >> > You're imaginin
bob gailer writes:
> On 1/24/2014 5:05 AM, theguy wrote:
> > I would post the code, but I don't know if it's fine to put it here,
> > as it contains pieces from books. I do believe that would go against
> > copyright laws.
> AFAIK copyright laws apply to reproducing something for profit.
That's
In article ,
Grant Edwards wrote:
> On 2014-01-24, Roy Smith wrote:
> > In article ,
> > Chris Angelico wrote:
> >
> >> On Fri, Jan 24, 2014 at 1:22 PM, Roy Smith wrote:
> >> >> Python 2.8j?
> >> >
> >> > You're imagining things.
> >>
> >> Get real... s'not gonna happen.
> >>
> > I wouldn'
On Sat, Jan 25, 2014 at 10:38 AM, bob gailer wrote:
> On 1/24/2014 5:05 AM, theguy wrote:
>>
>> I have a science project that involves designing a program which can
>> examine a bit of text with the author's name given, then figure out who the
>> author is if another piece of example text without
On 1/24/2014 5:05 AM, theguy wrote:
I have a science project that involves designing a program which can examine a
bit of text with the author's name given, then figure out who the author is if
another piece of example text without the name is given. I so far have three
different authors in th
Asaf Las Wrote in message:
> On Friday, January 24, 2014 10:45:30 PM UTC+2, Chris Angelico wrote:
>> On Sat, Jan 25, 2014 at 7:32 AM, Asaf Las wrote:
>> > On Friday, January 24, 2014 6:37:29 PM UTC+2, Chris Angelico wrote:
>>
>> >> It's possible to unbind the name, but every instance retains a
I had offered to provide some off-line tutoring. My reaction is exactly
what you are saying - he needs to learn the basics. The code he sent me
(after much asking to see some code) was buggy, and a lot of it were the
various suggestions we all made.
I feel for indar. He is in over his head. I
On Friday, January 24, 2014 11:18:08 PM UTC+2, Chris Angelico wrote:
> On Sat, Jan 25, 2014 at 8:03 AM, Asaf Las wrote:
> > Chris, i like answers which open doors to my curiosity :-)
> > yet i should spend my credits very carefully :-)
> Trust me, there is no limit to what you can learn when you h
On Sat, Jan 25, 2014 at 8:03 AM, Asaf Las wrote:
> Chris, i like answers which open doors to my curiosity :-)
> yet i should spend my credits very carefully :-)
Trust me, there is no limit to what you can learn when you have that
kind of curiosity! Ask more questions and you'll get more details.
On Friday, January 24, 2014 10:45:30 PM UTC+2, Chris Angelico wrote:
> On Sat, Jan 25, 2014 at 7:32 AM, Asaf Las wrote:
> > On Friday, January 24, 2014 6:37:29 PM UTC+2, Chris Angelico wrote:
> >> On Sat, Jan 25, 2014 at 3:31 AM, Asaf Las wrote:
> >> > Hi
> >> > Is there way to get list of instan
On 2014-01-24, hottrac...@gmail.com wrote:
> I am doing single object detection and tracking in a video file using
> python & opencv2. As far I know the steps are,
>
> Video to frame conversion
> Grayscale conversion
> Thresholding
> After phase 3, I got sequence of binary images.
>
> My questions
On Sat, Jan 25, 2014 at 7:32 AM, Asaf Las wrote:
> On Friday, January 24, 2014 6:37:29 PM UTC+2, Chris Angelico wrote:
>> On Sat, Jan 25, 2014 at 3:31 AM, Asaf Las wrote:
>> > Hi
>> > Is there way to get list of instances of particular
>> > class through class itself? via metaclass or any other m
Hi Chris
Thanks for answers
On Friday, January 24, 2014 6:37:29 PM UTC+2, Chris Angelico wrote:
> On Sat, Jan 25, 2014 at 3:31 AM, Asaf Las wrote:
> > Hi
> > Is there way to get list of instances of particular
> > class through class itself? via metaclass or any other method?
> Not automatical
Hi again , I'm sorry I dind't reply earlier I still hav enot added myself to
the list (I'm doing this trhough google groups).
Thanks Asaf, but I don't like having the code and the GUI separated.
First,I'm not aiming to not programmers (or people qho don't want to be one)
because they may be ab
On Sat, Jan 25, 2014 at 4:17 AM, Terry Reedy wrote:
> In this case, the explanation is as funny as the joke.
I have to agree. But hey, it passes the time...
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On 1/24/2014 10:57 AM, Chris Angelico wrote:
On Sat, Jan 25, 2014 at 2:36 AM, Grant Edwards wrote:
On 2014-01-24, Roy Smith wrote:
In article ,
Chris Angelico wrote:
On Fri, Jan 24, 2014 at 1:22 PM, Roy Smith wrote:
Python 2.8j?
You're imagining things.
Get real... s'not gonna happ
On Sat, Jan 25, 2014 at 3:31 AM, Asaf Las wrote:
> Hi
>
> Is there way to get list of instances of particular
> class through class itself? via metaclass or any other method?
Not automatically, but you can make a class that keeps track of its
instances with a weak reference system.
> Another que
Hi
Is there way to get list of instances of particular
class through class itself? via metaclass or any other method?
Another question - if class is object is it possible
to delete it? If it is possible then how instances
of that class will behave?
Thanks
Asaf
--
https://mail.python.org/
On Sat, Jan 25, 2014 at 3:28 AM, Matěj Cepl wrote:
> On 2014-01-24, 11:18 GMT, you wrote:
>> Write your rendering engine as a few simple helper functions,
>> and then put all the rest in as code instead of XML. The
>> easiest way to go about it is to write three forms, from
>> scratch, and then lo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 2014-01-24, 11:18 GMT, you wrote:
> Write your rendering engine as a few simple helper functions,
> and then put all the rest in as code instead of XML. The
> easiest way to go about it is to write three forms, from
> scratch, and then look at th
One thing that always reinforced my notion that
issubclass(datetime.datetime, datetime.date) should be False is that
the presence of of date and time methods gives me a mental image of
delegation, not inheritance. That is, it "feels" like a datetime
object is the aggregation of a date object and a
On Sat, Jan 25, 2014 at 2:36 AM, Grant Edwards wrote:
> On 2014-01-24, Roy Smith wrote:
>> In article ,
>> Chris Angelico wrote:
>>
>>> On Fri, Jan 24, 2014 at 1:22 PM, Roy Smith wrote:
>>> >> Python 2.8j?
>>> >
>>> > You're imagining things.
>>>
>>> Get real... s'not gonna happen.
>>>
>> I wo
On 2014-01-24, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> On Fri, Jan 24, 2014 at 1:22 PM, Roy Smith wrote:
>> >> Python 2.8j?
>> >
>> > You're imagining things.
>>
>> Get real... s'not gonna happen.
>>
> I wouldn't bet on that. The situation keeps getting tensor and
> tens
On 24/01/2014 09:33, wxjmfa...@gmail.com wrote:
[double spacing snipped for the 10**infinity time]
Le vendredi 24 janvier 2014 01:42:41 UTC+1, Terry Reedy a écrit :
This will never happen. Python 3 is the escape from several dead-ends in
Python 2. The biggest in impact is the use of un-accente
indar kumar writes:
> On Saturday, January 18, 2014 3:21:42 PM UTC-7, indar kumar wrote:
>> Hi,
>>
>>
>>
>> I want to show a code for review but afraid of plagiarism issues.
>> Kindly, suggest how can I post it for review here without masking it
>> visible for public
>
> Can I do the following
On 2014-01-24, Tharanga Abeyseela wrote:
> manged to fix it. need to add the namespace when checking the
> condition.
I wish there was a rule that if your xml doesn't need a namespace
it doesn't use one. They are a pain when there's just one useless
namespace.
But maybe I'm just naive.
--
Neil
On Fri, Jan 24, 2014 at 11:49 PM, Frank Millman wrote:
>
> "Chris Angelico" wrote in message
> news:captjjmo+euy439wb0c8or+zacyenr844hakwl3i2+55dde8...@mail.gmail.com...
>> On Fri, Jan 24, 2014 at 8:21 PM, Frank Millman wrote:
>>> I find that I am using JSON and XML more and more in my project,
On 01/24/14 11:21, Frank Millman wrote:
> I store database metadata in the database itself. I have a table that
> defines each table in the database, and I have a table that defines each
> column. Column definitions include information such as data type, allow
> null, allow amend, maximum length
On Fri, Jan 24, 2014 at 2:23 AM, Peter Otten <__pete...@web.de> wrote:
> Then, how do you think Python /knows/ that it has to repeat the code 10
> times on my "slow" and 100 times on your "fast" machine? It runs the bench
> once, then 10, then 100, then 1000 times -- until there's a run that takes
On Fri, Jan 24, 2014 at 2:29 AM, Gregory Ewing
wrote:
> If all you want is a mapping between a sequence of
> length n and compact representation of it, there's
> a much simpler way: just convert it to a base-k
> integer, where k is the size of the alphabet.
>
> The resulting integer won't be any l
"Rustom Mody" wrote in message
news:39e1dd33-2162-40ea-8676-d27c8360a...@googlegroups.com...
> On Friday, January 24, 2014 2:51:12 PM UTC+5:30, Frank Millman wrote:
>
Comments welcome.
>
> Of json/XML/yml I prefer yml because it has the terseness of json and the
> structuredness of xml -- well
"Chris Angelico" wrote in message
news:captjjmo+euy439wb0c8or+zacyenr844hakwl3i2+55dde8...@mail.gmail.com...
> On Fri, Jan 24, 2014 at 8:21 PM, Frank Millman wrote:
>> I find that I am using JSON and XML more and more in my project, so I
>> thought I would explain what I am doing to see if othe
On Wednesday, January 15, 2014 7:02:08 PM UTC+2, Sergio Tortosa Benedito wrote:
> Hi I'm developing a sort of language extension for writing GUI programs
> called guilang, right now it's written in Lua but I'm considreing Python
> instead (because it's more tailored to alone applications). My quest
On Fri, Jan 24, 2014 at 8:21 PM, Frank Millman wrote:
> I find that I am using JSON and XML more and more in my project, so I
> thought I would explain what I am doing to see if others think this is an
> acceptable approach or if I have taken a wrong turn.
Please don't take this the wrong way, bu
theguy wrote:
> I have a science project that involves designing a program which can
> examine a bit of text with the author's name given, then figure out who
> the author is if another piece of example text without the name is given.
> I so far have three different authors in the program and have
I have a science project that involves designing a program which can examine a
bit of text with the author's name given, then figure out who the author is if
another piece of example text without the name is given. I so far have three
different authors in the program and have already put in the
On Friday, January 24, 2014 2:51:12 PM UTC+5:30, Frank Millman wrote:
> Incidentally, I would take issue with the comment that 'JSON is easily
> readable by humans (UNLIKE XML)'. Here is a more complete example of my
> 'choices' definition.
> [true, true, [["admin", "System administrator", [],
I am doing single object detection and tracking in a video file using python &
opencv2. As far I know the steps are,
Video to frame conversion
Grayscale conversion
Thresholding
After phase 3, I got sequence of binary images.
My questions are:
How to identify (detect) whether the object is movin
Le vendredi 24 janvier 2014 01:42:41 UTC+1, Terry Reedy a écrit :
>
>
>
> This will never happen. Python 3 is the escape from several dead-ends in
>
> Python 2. The biggest in impact is the use of un-accented latin chars as
>
> text in a global, unicode world.
>
>
>
Three days of discuss
"Chris Angelico" wrote in message
news:CAPTjJmokZUHta7Y3x_=6eujkpv2td2iaqro1su7nulo+gfz...@mail.gmail.com...
> On Thu, Jan 23, 2014 at 8:16 AM, Asaf Las wrote:
>> i am novice in python, but let me suggest you something:
>> it would be beneficial to use json text file to specify
>> your gui so c
Vincent Davis wrote:
I plan to use the sequence as an index to count occurrences of sequences
of length n.
If all you want is a mapping between a sequence of
length n and compact representation of it, there's
a much simpler way: just convert it to a base-k
integer, where k is the size of the al
Vincent Davis wrote:
> Excellent Peter!
> I have a question, the times reported don't make sense to me, for example
> $ python3 -m timeit -s 'from debruijn_compat import debruijn_bytes as d'
> 'd(4, 8)'
> 100 loops, best of 3: 10.2 msec per loop
> This took ~4 secs (stop watch) which is much more
thnx guys.
On 24.01.2014 01:10, Terry Reedy wrote:
Johannes Schneider Wrote in
message:
On 22.01.2014 20:18, Ned Batchelder wrote:
On 1/22/14 11:37 AM, Asaf Las wrote:
Chris is right here, too: modules are themselves singletons, no matter
how many times you import them, they are only exec
On Thu, 23 Jan 2014 19:15:51 -0800, indar kumar wrote:
> What if I want to search for a particular value inside the lists of all
> keys except one that user inputs and also want to print that value.
Then go right ahead and do so. You are learning Python, so this should be
covered in your course.
63 matches
Mail list logo