Rustom Mody :
> On Wednesday, April 2, 2014 8:28:02 AM UTC+5:30, Rustom Mody wrote:
>> In scheme, in a named-let, the name
>> chosen was very often 'loop'
>
> Umm... I see from your prime number example that there are nested
> loops in which sometimes you restart the inner and sometimes the
> oute
On Wed, Apr 2, 2014 at 3:15 PM, Dan Sommers wrote:
> On Wed, 02 Apr 2014 02:19:38 +1100, Chris Angelico wrote:
>
>> These improvements are absolutely critical to the language, and should
>> be made in Python 2.5.7, 2.6.9, and 3.0.2. Anyone using a newer
>> version of Python is paying the price for
I have a program with several cmd.Cmd instances. I am trying to figure out what
the best way to organize them should be.
I've got my BossCmd, SubmissionCmd, and StoryCmd objects.
The BossCmd object can start either of the other two, and this module allows
the user switch back and forth between
On Wed, 02 Apr 2014 02:19:38 +1100, Chris Angelico wrote:
> These improvements are absolutely critical to the language, and should
> be made in Python 2.5.7, 2.6.9, and 3.0.2. Anyone using a newer
> version of Python is paying the price for early adoption, and should
> back-level immediately to a
On Wednesday, April 2, 2014 8:28:02 AM UTC+5:30, Rustom Mody wrote:
> On Tuesday, April 1, 2014 9:29:27 PM UTC+5:30, Marko Rauhamaa wrote:
> > Chris Angelico :
> > > On Wed, Apr 2, 2014 at 12:16 AM, Marko Rauhamaa wrote:
> > >> I implemented the loops in the scheme way. Recursion is how iteration
On Tuesday, April 1, 2014 9:29:27 PM UTC+5:30, Marko Rauhamaa wrote:
> Chris Angelico :
> > On Wed, Apr 2, 2014 at 12:16 AM, Marko Rauhamaa wrote:
> >> I implemented the loops in the scheme way. Recursion is how iteration
> >> is done by the Believers.
> > Then I'm happily a pagan who uses while l
On Wed, Apr 2, 2014 at 1:15 PM, wrote:
> In Florida, it's still April Fools.
>
In Florida, it's *always* April Fools.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
Take Twisted!
twistedmatrix has all you need!
Am 31.03.2014 13:03, schrieb Wesley:
> Hi all,
> I want to develop a instant message server, simply has user and group
> entity.
>
> Is there any better existing open-source one?
> Thus I can download and have a look.
>
> Thanks.
> Wesley
>
On Tuesday, April 1, 2014 8:58:50 PM UTC-5, Chris Angelico wrote:
> On Wed, Apr 2, 2014 at 12:54 PM, Ryan Gonzalez wrote:
>
> > I have a bunch of ideas I'd like to share for Python 4:
>
> >
>
> > Switch to <> for "not equal" instead of !=.
>
>
>
> PEP 0401 beat you to it five years ago.
>
On Wed, Apr 2, 2014 at 12:54 PM, Ryan Gonzalez wrote:
> I have a bunch of ideas I'd like to share for Python 4:
>
> Switch to <> for "not equal" instead of !=.
PEP 0401 beat you to it five years ago.
> Add multiline lambdas:
>
> my_multiline_lambda = ll { return 7; }
Yeah, you an' everyone else
I have a bunch of ideas I'd like to share for Python 4:
Use -- for comments instead of #.
Switch to <> for "not equal" instead of !=.
Remove indentation requirement:
-- Python 2&3
if x != y:
return 7
-- Python 4
if x <> y:
return 7
;;
Add multiline lambdas:
my_multiline_lambda = ll {
>
> Hi jason thanks for replying.Below is a typical file return.To you I've no
> doubt this is a simple problem but,to a beginner like me it just seems I
> lack the understanding of how to split out the items in a list.Thanks again
> for looking at it.
> Rainfall,duration,TimeStart,windspeed,Date
>
On 4/1/14 4:49 PM, Chris Angelico wrote:
On Wed, Apr 2, 2014 at 8:26 AM, Mark H Harris wrote:
Python3 finally started getting unicode right. The fact that it 'existed'
in some form prior to (3) is not meaningful, nor helpful.
When I said, "python has only really used it since python3, right
On Wed, Apr 2, 2014 at 8:26 AM, Mark H Harris wrote:
>Python3 finally started getting unicode right. The fact that it 'existed'
> in some form prior to (3) is not meaningful, nor helpful.
> When I said, "python has only really used it since python3, right?," I meant
> that unicode in python2 w
On Thursday, March 27, 2014 5:40:52 PM UTC+1, tade@gmail.com wrote:
> hei ,
>
>
>
> I am a newcome to Python.
>
>
>
> I am trying to create a python script which will connect to an SSL URL and
> using the HEAD request will get the status of URL.
>
>
>
> For one the link I am gettin
On 3/31/14 3:46 PM, Rhodri James wrote:
I was using arpanet since the late 1970s.
I was using JANet since the early 80s, and I'm by no means the oldest
person here. I should stop playing that card if I were you.
My point (which you missed) is not how old I am, rather, for some of
us 1
Chris Angelico :
> On Wed, Apr 2, 2014 at 12:16 AM, Marko Rauhamaa wrote:
>> I implemented the loops in the scheme way. Recursion is how iteration
>> is done by the Believers.
>
> Then I'm happily a pagan who uses while loops instead of recursion.
> Why should every loop become a named function?
On Tue, Apr 1, 2014 at 7:44 AM, Chris Angelico wrote:
> On Wed, Apr 2, 2014 at 12:33 AM, Ned Batchelder
> wrote:
>> Maybe I'm misunderstanding the discussion... It seems like we're talking
>> about a hypothetical definition of identifiers based on Unicode character
>> categories, but there's no
> Id like to ask.. do you know any modern looking GUI examples of
> windows software written in python? Something like this maybe:
> http://techreport.com/r.x/asus-x79deluxe/software-oc.jpg (or
> hopefully something like this android look:
> http://chromloop.com/wp-content/uploads/2013/07/Skype-4.0
On Wed, Apr 2, 2014 at 1:32 AM, bob gailer wrote:
> How about a "without" statement?
>
> without ]:
>
>
> Within the Any mention of any identifier in the list raises the
> specified or default (WithoutError) exception.
In the interests of anti-patterns, we should adopt converses to all
the cla
On 4/1/2014 4:20 AM, Skybuck Flying wrote:
April Fools =D
If you thought spaghetti code was bad, ...
in December, 1973 R. Lawrence Clark proposed a new programming
construct: COME FROM. See https://www.fortran.com/come_from.html
What can we do in this new age of GOTOless programming do to m
On Wed, Apr 2, 2014 at 1:14 AM, Damien Touraine
wrote:
> I have a big program with several dependencies (mainly PySide). But,
> sometimes, it fails with :RuntimeError: Can't find converter for
> '\ufffd\ufffd' to call Python meta method. The given string ('\ufffd\ufffd')
> is changing each time. M
Hi,
We use Python 3.2 on standard Ubuntu precise Linux.
I have a big program with several dependencies (mainly PySide). But,
sometimes, it fails with :RuntimeError: Can't find converter for
'\ufffd\ufffd' to call Python meta method. The given string
('\ufffd\ufffd') is changing each time. Mor
On Tuesday, April 1, 2014 7:14:15 PM UTC+5:30, Chris Angelico wrote:
> On Wed, Apr 2, 2014 at 12:33 AM, Ned Batchelder wrote:
> > Maybe I'm misunderstanding the discussion... It seems like we're talking
> > about a hypothetical definition of identifiers based on Unicode character
> > categories, b
On Wed, Apr 2, 2014 at 12:33 AM, Ned Batchelder wrote:
> Maybe I'm misunderstanding the discussion... It seems like we're talking
> about a hypothetical definition of identifiers based on Unicode character
> categories, but there's no need: Python 3 has defined precisely that. From
> the docs
> (
On Tuesday, April 1, 2014 6:38:14 PM UTC+5:30, Chris Angelico wrote:
> On Tue, Apr 1, 2014 at 11:29 PM, Roy Smith wrote:
> >> But I confess that is mostly personal taste, since I find names_like_this
> >> ugly. Names-like-this look better to me but that wouldn't be workable
> >> in python. But mayb
On 4/1/14 9:00 AM, Chris Angelico wrote:
On Tue, Apr 1, 2014 at 10:59 PM, Antoon Pardon
wrote:
On 01-04-14 12:58, Chris Angelico wrote:
But because, in the future, Python may choose to create new operators,
the simplest and safest way to ensure safety is to put a boundary on
what can be operat
On Wed, Apr 2, 2014 at 12:16 AM, Marko Rauhamaa wrote:
> I implemented the loops in the scheme way. Recursion is how iteration is
> done by the Believers. Traditional looping structures are available to
> scheme, but if you felt the need for them, you might as well program in
> Python.
Then I'm h
Chris Angelico :
> I don't find it more readable to cast something as recursive; compare
> these two tight loops:
>
> (let find-divisor ((c 2))
> (cond
> ((= c i)
> (format #t "~S\n" i)
> (display-primes (1+ count) (1+ i)))
>
On Tue, Apr 1, 2014 at 11:29 PM, Roy Smith wrote:
>> But I confess that is mostly personal taste, since I find names_like_this
>> ugly. Names-like-this look better to me but that wouldn't be workable
>> in python. But maybe there is some connector that would be aestetically
>> pleasing and not cau
On Tue, Apr 1, 2014 at 10:59 PM, Antoon Pardon
wrote:
> On 01-04-14 12:58, Chris Angelico wrote:
>> But because, in the future, Python may choose to create new operators,
>> the simplest and safest way to ensure safety is to put a boundary on
>> what can be operators and what can be names; Unicode
On Tue, Apr 1, 2014 at 11:02 PM, Marko Rauhamaa wrote:
>
> #include
>
> int main()
> {
>int n, i = 3, count, c;
>
>printf("Enter the number of prime numbers required\n");
>scanf("%d",&n);
>
>if ( n >= 1 )
>
In article ,
Antoon Pardon wrote:
> On 01-04-14 12:58, Chris Angelico wrote:
> > But because, in the future, Python may choose to create new operators,
> > the simplest and safest way to ensure safety is to put a boundary on
> > what can be operators and what can be names; Unicode character clas
On 01-04-14 12:58, Chris Angelico wrote:
> But because, in the future, Python may choose to create new operators,
> the simplest and safest way to ensure safety is to put a boundary on
> what can be operators and what can be names; Unicode character classes
> are perfect for this. It's also possibl
Ian Kelly :
> Setting aside the fact that C doesn't have anonymous functions, I'll
> approximate it as best I can:
>
> [...]
>
> C: 10
> Scheme: 20
It is true that scheme needs parentheses for operators and assignments
so the ratio is probably in the order of 2:1. Whether that is excess or
not is
>
> I want to plot serial data from Arduino by Chaco. Could you help me and
> guide me about that.
>
I found this:
http://www.blendedtechnologies.com/realtime-plot-of-arduino-serial-data-using-python/231
.
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Apr 1, 2014 at 9:37 PM, Antoon Pardon
wrote:
> Python also uses symbols for names of operations, like '+'. And when
> someone suggested python might consider increasing the number of
> operations and gave some symbols for those extra operations, nobody
> suggested that would make python un
On Tue, Apr 1, 2014 at 8:58 PM, Ian Kelly wrote:
> Setting aside the fact that C doesn't have anonymous functions, I'll
> approximate it as best I can:
>
> static int n = 3;
>
> int f()
> {
> return n;
> }
>
> int main()
> {
> n = 7;
> return f();
> }
>
> C: 10
> Scheme: 20
And the le
On 01-04-14 11:18, Ian Kelly wrote:
> On Tue, Apr 1, 2014 at 2:19 AM, Antoon Pardon
> wrote:
>> On 01-04-14 02:47, Ian Kelly wrote:
>>
>>> Well, this is the path taken by APL. It has its supporters. It's not
>>> known for being readable.
>> No that is not the path taken by APL. AFAICS identifier
On Tue, Apr 1, 2014 at 3:32 AM, Marko Rauhamaa wrote:
> Ian Kelly :
>
>> On Tue, Apr 1, 2014 at 2:19 AM, Antoon Pardon
>>> Which will give me the normal result. Maybe I missed it but I haven't
>>> heard scheme being called an unreadable language.
>>
>> Well, I have, but I think that usually has mo
Ian Kelly :
> On Tue, Apr 1, 2014 at 2:19 AM, Antoon Pardon
>> Which will give me the normal result. Maybe I missed it but I haven't
>> heard scheme being called an unreadable language.
>
> Well, I have, but I think that usually has more to do with an excess
> of parentheses.
If you count braces
On Tue, Apr 1, 2014 at 2:19 AM, Antoon Pardon
wrote:
> On 01-04-14 02:47, Ian Kelly wrote:
>> On Mon, Mar 31, 2014 at 1:31 PM, Antoon Pardon
>> wrote:
>>> Second of all I
>>> think a good chosen symbolic name can be more readable than a
>>> name in a character set you are not familiar with. A goo
在 2014年4月1日星期二UTC+8下午1时06分17秒,Miki Tebeka写道:
> > I want to develop a instant message server, simply has user and group
> > entity.
>
> > Is there any better existing open-source one?
>
> > Thus I can download and have a look.
>
> You can take a look at Twisted Words
> (https://twistedmatrix.
On Tue, Apr 1, 2014 at 7:29 PM, Ian Kelly wrote:
> On Tue, Apr 1, 2014 at 1:59 AM, Ian Kelly wrote:
>> Given that, I have to question your figures:
>>
>>> 177.2133
>>
>>> compared to 177.2652780002 calculated the rough way. That's not bad,
>>> only about 5cm off! Effectively, your rou
On Tue, Apr 1, 2014 at 12:55 AM, Chris Angelico wrote:
> On Tue, Apr 1, 2014 at 5:13 PM, Ian Kelly wrote:
>> Then your computation is incorrect and will systematically
>> underestimate the stopping distance. Assuming for simplicity that the
>> acceleration actually increases linearly until it re
Dears,
I want to plot serial data from Arduino by Chaco. Could you help me and
guide me about that.
If it is possible please send me some example.
Bests
Hamid.
--
Hamidreza Hajimirzaalian
PhD Eng.
Politecnico di Torino
Department of Mechanical and Aerospace Engineering
Cell No : 0039 3298988694
On Tue, Apr 1, 2014 at 1:59 AM, Ian Kelly wrote:
> Given that, I have to question your figures:
>
>> 177.2133
>
>> compared to 177.2652780002 calculated the rough way. That's not bad,
>> only about 5cm off! Effectively, your rough calculation was accurate to
>> one decimal place.
>
> A
April Fools =D
Bye,
Skybuck =D
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Apr 1, 2014 at 2:18 AM, Ian Kelly wrote:
> The reason the velocity is different after 2 seconds is because the
> linear deceleration does not match the constraints of the problem. The
> average deceleration for the first second is not 0.2 m/s, and the
> average deceleration for the second
On 01-04-14 02:47, Ian Kelly wrote:
> On Mon, Mar 31, 2014 at 1:31 PM, Antoon Pardon
> wrote:
>> Op 31-03-14 19:40, Ian Kelly schreef:
>>> That was an exaggeration on my part. It wouldn't affect my job, as I
>>> wouldn't expect to ever actually have to maintain anything like the
>>> above. My gr
On Tue, Apr 1, 2014 at 1:35 AM, Chris Angelico wrote:
> On Tue, Apr 1, 2014 at 6:20 PM, Steven D'Aprano wrote:
>> 177.2133
>>
>> compared to 177.2652780002 calculated the rough way. That's not bad,
>> only about 5cm off! Effectively, your rough calculation was accurate to
>> one decim
On Tue, Apr 1, 2014 at 7:07 PM, Steven D'Aprano wrote:
> On Tue, 01 Apr 2014 18:35:52 +1100, Chris Angelico wrote:
>
>> Although remembering that v is
>> velocity is easier than remembering which of u and v is initial and
>> which is final.
>
> Which comes earlier in the alphabet? :-P
So why isn'
On Tue, 01 Apr 2014 18:35:52 +1100, Chris Angelico wrote:
> Although remembering that v is
> velocity is easier than remembering which of u and v is initial and
> which is final.
Which comes earlier in the alphabet? :-P
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Apr 1, 2014 at 6:29 PM, Steven D'Aprano wrote:
>> Okay. I never studied calculus, so this is beyond my expertise. Is this
>> going to make a majorly significant difference to the end result?
>
> I thought that there was a chance that there might be, but it turns out,
> not so much. There i
Notice that it says that laymans say it has a small state in progress,
instead of a large state of 'progress'...that's arrogance, it's just the
fact that it has a Vo->V1 state of progress. My question, which I haven't
looked up the latest research on, is does it have the conservation of
momentum, i
The link isn't to prove my ideology of what happens, it to show what you
might be thinking about, instead of how I feel about it...nth dimensional
dynamics/hyperspace taken out. Been out of this for a while due to medical
reasons, but try to keep up on the latest measurements/accumulated data
with
On Tue, Apr 1, 2014 at 6:20 PM, Steven D'Aprano wrote:
> On Tue, 01 Apr 2014 16:01:40 +1100, Chris Angelico wrote:
>
> [...]
>>> The scenario you describe has (effectively) infinite rate-of-change-of-
>>> acceleration, often called "jerk". (A jerk is a rapid change in
>>> acceleration.) Human comf
You would be assuming a quantum leap type theory, that the object has no
Vo->V1, it just adjusts to the constant immediately, instead of what I
would call the quantum leap,without other 'theories' involved, that it has
a classical physics type movement in which it can accelerate from a resting
posi
On Tue, 01 Apr 2014 17:55:32 +1100, Chris Angelico wrote:
> On Tue, Apr 1, 2014 at 5:13 PM, Ian Kelly wrote:
>> Then your computation is incorrect and will systematically
>> underestimate the stopping distance. Assuming for simplicity that the
>> acceleration actually increases linearly until it
On Tue, Apr 1, 2014 at 6:21 PM, David Hutto wrote:
> The difference in our opinions, seems to be that there is an initial resting
> state, and not at an already accelerated motion that has reached it's
> maximum capacity.
>
>
> So there is a dynamic in my mind's eye, where the object is at a "rest
On Tue, 01 Apr 2014 16:01:40 +1100, Chris Angelico wrote:
[...]
>> The scenario you describe has (effectively) infinite rate-of-change-of-
>> acceleration, often called "jerk". (A jerk is a rapid change in
>> acceleration.) Human comfort is (within reasonable limits) more
>> affected by jerk than
u is the initial velocity from a starting/resting point, not a static speed
at that point, and begins to accelerate,
over a particular timeframe, in which it's momentum is not stopped by
friction on which the rails/environment it travels upon has, or the similar
properties the object might have dur
62 matches
Mail list logo