> From: steve+comp.lang.pyt...@pearwood.info
> Subject: Re: Short-circuit Logic
> Date: Fri, 31 May 2013 05:13:51 +
> To: python-list@python.org
>
> On Fri, 31 May 2013 00:03:13 +0300, Carlos Nepomuceno wrote:
>
>> ---
On 30May2013 21:54, bhk...@gmail.com wrote:
| One final question, Is there a way to edit the message once it has been
posted?
Essentially, no. If there's some error in a post, reply to it
yourself with a correction. Transparency is a good thing. Revisionist
history pretty much is not.
--
Camer
On Fri, 31 May 2013 00:03:13 +0300, Carlos Nepomuceno wrote:
>
>> From: steve+comp.lang.pyt...@pearwood.info Subject: Re: Short-circuit
>> Logic
>> Date: Thu, 30 May 2013 05:42:17 + To: python-list@python.org
> [...]
>> Here's another way, mathematicall
Got It!!!, Finally. Thanks Dave
So, the control goes back to the place after the recursive function is called
once the no. of element is equal to one and starts merging after which it will
again start to split the remaining items.
Thank you Chris for your multiple explanations.
One final q
Got It!!!, Finally. Thanks Dave
So, the control goes back to the place after the recursive function is called
once the no. of element is equal to one and starts merging after which it will
again start to split the remaining items.
Thank you Chris for your multiple explanations. It was also ve
On 05/30/2013 07:10 PM, Nobody wrote:
> This is why technical drawings which include regularly-spaced features
> will normally specify the positions of features relative to their
> neighbours instead of (or as well as) relative to some origin.
If I am planting trees, putting in fence posts, or dri
Steven D'Aprano於 2013年5月30日星期四UTC+8上午10時28分57秒寫道:
> On Wed, 29 May 2013 10:50:47 -0600, Ian Kelly wrote:
>
>
>
> > On Wed, May 29, 2013 at 8:33 AM, rusi wrote:
>
> >> 0.0 == 0.0 implies 5.4 == 5.4
>
> >> is not a true statement is what (I think) Steven is saying. 0 (or if
>
> >> you prefer 0
On May 31, 12:36 am, Steven D'Aprano wrote:
>
> But even if only a minority of programmers can master languages like
> Lisp, Haskell, or Scheme, doesn't mean that *all* programmers can't learn
> something from them. Functional programming is at least 50% a philosophy:
>
> * pass arguments to funct
On Fri, May 31, 2013 at 10:13 AM, Rick Johnson
wrote:
> What if you need to perform operations on a sequence (more than once) in a
> non-linear fashion? What if you need to modify the sequence whilst looping?
> In many cases your simplistic "for loop" will fail miserably.
What has this to do w
Hello Python developers
I have learnt python and used it for various purposes for scietific
computing using sage and GUI development using Tkinter and lots more. I
want to start web development using python My goal is to learn the web
development in python from the basic level and understand the b
In article ,
Nobody wrote:
> On Thu, 30 May 2013 19:38:31 -0400, Dennis Lee Bieber wrote:
>
> > Measuring 1 foot from the 1000 foot stake leaves you with any error
> > from datum to the 1000 foot, plus any error from the 1000 foot, PLUS any
> > azimuth error which would contribute to shorte
On Thu, 30 May 2013 19:38:31 -0400, Dennis Lee Bieber wrote:
> Measuring 1 foot from the 1000 foot stake leaves you with any error
> from datum to the 1000 foot, plus any error from the 1000 foot, PLUS any
> azimuth error which would contribute to shortening the datum distance.
First, let's
> On Fri, May 31, 2013 at 2:58 AM, rusi wrote:
> > On May 30, 5:58 pm, Chris Angelico wrote:
> > > The alternative would be an infinite number of iterations, which is far
> > > far worse.
> >
> > There was one heavyweight among programming teachers -- E.W. Dijkstra
> > -- who had some rather extre
> To: python-list@python.org
> From: wlfr...@ix.netcom.com
> Subject: Re: Short-circuit Logic
> Date: Thu, 30 May 2013 19:38:31 -0400
>
> On Thu, 30 May 2013 08:48:59 -0400, Roy Smith declaimed
> the following in gmane.comp.python.general:
>
>>
>> Analysis
>
> I would expect io.StringIO to be a match for the io.* stuff in Python
> 3. So it should care whether it is a binary stream or a text stream.
> Whereas StringIO.StringIO is your good old Python 2 StringIO, which expects
> strs.
>
> On that basis, io.StringIO is a text stream, expecting Unicode
>
On 30May2013 17:54, Wolfgang Maier
wrote:
| Antoine Pitrou wrote:
| >The Linux version of "man posix_fadvise" probably holds the answer:
[...]
|
| Hi Antoine,
| you're right and thanks a lot for this great piece of information.
[...]
| P.S.: Maybe these new os module features could use a bit mor
On 05/30/2013 12:18 AM, Steven D'Aprano wrote:
> In some ways, Python is a more pure OOP language than Java: everything in
> Python is an object, including classes themselves.
>
> In other ways, Python is a less pure and more practical language. You
> don't have to wrap every piece of functional
On Wednesday, May 29, 2013 7:24:48 PM UTC-5, Dan Stromberg wrote:
> About the only thing I don't like is:
>
> var = 1,
>
> That binds var to a tuple (singleton) value, instead of 1.
I don't understand why Python needs tuples anyway; at least not tuple
literals!. I mean, i like the idea of a
io.StringIO only accepts Unicode input (i.e. u"multibyte string"),
while StringIO.StringIO accepts either 8 bit input or unicode input.
As you can see in the following excerpt from your traceback, the
'print_list' function creates an 8-bit string, which is then
(probably) passed to 'file.write' as
On 30May2013 15:46, Skip Montanaro wrote:
| Consider this quick session (Python 2.7 using the tip of the 2.7
| branch in Mercurial):
|
| % python2.7
| Python 2.7.5+ (2.7:93eb15779050, May 30 2013, 15:27:39)
| [GCC 4.4.6 [TWW]] on linux2
[...]
| >>> import io
| >>> s2 = io.StringIO()
[...]
| Fil
On Thu, 30 May 2013 12:07:40 +0300, Jussi Piitulainen wrote:
> I suppose this depends on the complexity of the process and the amount
> of data that produced the numbers of interest. Many individual
> floating point operations are required to be within an ulp or two of
> the mathematically correct
On 30May2013 15:48, inq1ltd wrote:
| python help,
Please do not make new discussions by replying to an old discussion.
It is not enough to change the subject line; unless you also remove
any References: and In-Reply-To: header lines your message is still
considered part of the old discussion.
|
Hi Matthew! I'm on a similar quest!
I'm still learning the basics of Python so I may not be a good source of
information.
I'm reading a lot of stuff about how to use Python for the parallelization of
code and data and found BSP[1] to be very interesting and perhaps worth the
time to learn it!
On Wednesday, May 29, 2013 3:19:42 PM UTC-7, Cameron Simpson wrote:
> On 29May2013 13:14, Ian Kelly wrote:
>
> | On Wed, May 29, 2013 at 12:33 PM, alcyon wrote:
>
> | > This notation displays hex values except when they are 'printable', in
> which case it displays that printable character. Ho
On Fri, May 31, 2013 at 5:48 AM, inq1ltd wrote:
> python help,
>
> I've tried this code which I got from:
>
> http://www.tutorialspoint.com/python/python_sending_email.htm
>
> I build this file and run it
>
> After running the the file and I get
>
> "Successfully sent email"
>
> My question is why
On Thursday, May 30, 2013 11:36:54 AM UTC-7, Ian wrote:
> I don't object to changing the join method (one of the more
> shoe-horned string methods) back into a function, but to my eyes
> you've got the arguments backward. It should be:
>
> def join(sep, iterable): return sep.join(iterable)
>
>
On Fri, May 31, 2013 at 5:22 AM, Steven D'Aprano
wrote:
> On Thu, 30 May 2013 16:40:52 +, Steven D'Aprano wrote:
>
>> On Fri, 31 May 2013 01:56:09 +1000, Chris Angelico wrote:
>
>>> You're assuming you can casually hit Ctrl-C to stop an infinite loop,
>>> meaning that it's trivial. It's not. N
> From: nob...@nowhere.org
> Subject: Python toplevel in a Web page
> Date: Thu, 30 May 2013 14:20:18 +0200
> To: python-list@python.org
>
> Hello,
> I wonder if I can find some source code example
> of a Python 3 toplevel box in a Web page.
> Something simp
On Fri, May 31, 2013 at 4:51 AM, Ian Kelly wrote:
> On Thu, May 30, 2013 at 12:44 PM, Chris Angelico wrote:
>> On Fri, May 31, 2013 at 4:36 AM, Ian Kelly wrote:
>>> I don't object to changing the join method (one of the more
>>> shoe-horned string methods) back into a function, but to my eyes
>>
> From: steve+comp.lang.pyt...@pearwood.info
> Subject: Re: Short-circuit Logic
> Date: Thu, 30 May 2013 05:42:17 +
> To: python-list@python.org
[...]
> Here's another way, mathematically equivalent (although not necessarily
> equivalent using floating p
Consider this quick session (Python 2.7 using the tip of the 2.7
branch in Mercurial):
% python2.7
Python 2.7.5+ (2.7:93eb15779050, May 30 2013, 15:27:39)
[GCC 4.4.6 [TWW]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import traceback
>>>
>>> import StringIO
python help,
I've tried this code which I got from:
http://www.tutorialspoint.com/python/python_sending_email.htm
I build this file and run it
---//---
#!/usr/bin/python
import smtplib
sender = "inq1...@inqvista.com"
receivers = ["webmas...@inqvista.com"]
message = """From: jol
To: webmaste
On Thu, May 30, 2013 at 1:30 PM, Neil Cerutti wrote:
> On 2013-05-30, Chris Angelico wrote:
>> On Thu, May 30, 2013 at 3:10 PM, Steven D'Aprano
>> wrote:
>>> # Wrong, don't do this!
>>> x = 0.1
>>> while x != 17.3:
>>> print(x)
>>> x += 0.1
>>
>> Actually, I wouldn't do that with integers
On Thu, 30 May 2013 18:14:36 +, Ana Marija Sokovic wrote:
> Hi,
>
> Can somebody explain to me how would you proceed in releasing the GIL
> and whether you think it will have consequences?
In pure Python code, you don't need to worry about the GIL, and in fact
you cannot control it. Python
On Thu, 30 May 2013 10:12:22 -0700, rusi wrote:
> On Thu, May 30, 2013 at 9:34 AM, Ma Xiaojun
> wrote:
>> Wait a minute! Isn't the most nature way of doing/thinking "generating
>> 9x9 multiplication table" two nested loop?
>
> Thats like saying that the most natur(al) way of using a car is to
>
On 30/05/2013 19:44, Chris Angelico wrote:
On Fri, May 31, 2013 at 4:36 AM, Ian Kelly wrote:
On Wed, May 29, 2013 at 8:49 PM, rusi wrote:
On May 30, 6:14 am, Ma Xiaojun wrote:
What interest me is a one liner:
print '\n'.join(['\t'.join(['%d*%d=%d' % (j,i,i*j) for i in
range(1,10)]) for j in
On 2013-05-30, Chris Angelico wrote:
> On Thu, May 30, 2013 at 3:10 PM, Steven D'Aprano
> wrote:
>> # Wrong, don't do this!
>> x = 0.1
>> while x != 17.3:
>> print(x)
>> x += 0.1
>
> Actually, I wouldn't do that with integers either.
I propose borrowing the concept of significant digits f
On Thu, 30 May 2013 16:40:52 +, Steven D'Aprano wrote:
> On Fri, 31 May 2013 01:56:09 +1000, Chris Angelico wrote:
>> You're assuming you can casually hit Ctrl-C to stop an infinite loop,
>> meaning that it's trivial. It's not. Not everything lets you do that;
>> or possibly halting the proce
On 5/30/2013 2:26 PM, Mok-Kong Shen wrote:
Am 27.05.2013 17:30, schrieb Ned Batchelder:
On 5/27/2013 10:45 AM, Mok-Kong Shen wrote:
From an int one can use to_bytes to get its individual bytes,
but how can one reconstruct the int from the sequence of bytes?
The next thing in the docs after i
I use openMp in a C-extension that has an interface with Python.
In its simplest form I do this:
== code ==
#pragma omp parallel
{
#pragma omp for
for(int i=0; i<10; i++)
{
// multiply some matrices in C
On 30 mai, 20:42, Ian Kelly wrote:
> On Thu, May 30, 2013 at 12:26 PM, Mok-Kong Shen
>
> wrote:
> > Am 27.05.2013 17:30, schrieb Ned Batchelder:
>
> >> On 5/27/2013 10:45 AM, Mok-Kong Shen wrote:
>
> >>> From an int one can use to_bytes to get its individual bytes,
> >>> but how can one reconstru
On Thu, May 30, 2013 at 12:44 PM, Chris Angelico wrote:
> On Fri, May 31, 2013 at 4:36 AM, Ian Kelly wrote:
>> I don't object to changing the join method (one of the more
>> shoe-horned string methods) back into a function, but to my eyes
>> you've got the arguments backward. It should be:
>>
>>
On May 30, 11:36 pm, Ian Kelly wrote:
> On Wed, May 29, 2013 at 8:49 PM, rusi wrote:
> > On May 30, 6:14 am, Ma Xiaojun wrote:
> >> What interest me is a one liner:
> >> print '\n'.join(['\t'.join(['%d*%d=%d' % (j,i,i*j) for i in
> >> range(1,10)]) for j in range(1,10)])
>
> > Ha,Ha! The join me
On Fri, May 31, 2013 at 4:36 AM, Ian Kelly wrote:
> On Wed, May 29, 2013 at 8:49 PM, rusi wrote:
>> On May 30, 6:14 am, Ma Xiaojun wrote:
>>> What interest me is a one liner:
>>> print '\n'.join(['\t'.join(['%d*%d=%d' % (j,i,i*j) for i in
>>> range(1,10)]) for j in range(1,10)])
>>
>> Ha,Ha! The
On Thu, May 30, 2013 at 12:26 PM, Mok-Kong Shen
wrote:
> Am 27.05.2013 17:30, schrieb Ned Batchelder:
>>
>> On 5/27/2013 10:45 AM, Mok-Kong Shen wrote:
>>>
>>> From an int one can use to_bytes to get its individual bytes,
>>> but how can one reconstruct the int from the sequence of bytes?
>>>
>> T
On Wed, May 29, 2013 at 8:49 PM, rusi wrote:
> On May 30, 6:14 am, Ma Xiaojun wrote:
>> What interest me is a one liner:
>> print '\n'.join(['\t'.join(['%d*%d=%d' % (j,i,i*j) for i in
>> range(1,10)]) for j in range(1,10)])
>
> Ha,Ha! The join method is one of the (for me) ugly features of python
On Fri, May 31, 2013 at 4:14 AM, Ana Marija Sokovic
wrote:
> Hi,
>
> Can somebody explain to me how would you proceed in releasing the GIL and
> whether you think it will have consequences?
You release the GIL in C-level code when you don't need to work with
Python objects for a while. Simple exa
Am 27.05.2013 17:30, schrieb Ned Batchelder:
On 5/27/2013 10:45 AM, Mok-Kong Shen wrote:
From an int one can use to_bytes to get its individual bytes,
but how can one reconstruct the int from the sequence of bytes?
The next thing in the docs after int.to_bytes is int.from_bytes:
http://docs.py
On Fri, May 31, 2013 at 3:59 AM, rusi wrote:
> On May 30, 10:28 pm, Chris Angelico wrote:
>> On Fri, May 31, 2013 at 3:12 AM, rusi wrote:
>> > You associate the primal (f)act of thinking about programming with
>> > *doing* the generating.
>> > By contrast the functional programmer thinks about w
Hi,
Can somebody explain to me how would you proceed in releasing the GIL and
whether you think it will have consequences?
Thanks
Ana
--
http://mail.python.org/mailman/listinfo/python-list
functional VS imperative?
mechanical thinking VS mathematical thinking?
Sounds interesting.
--
http://mail.python.org/mailman/listinfo/python-list
On May 30, 10:28 pm, Chris Angelico wrote:
> On Fri, May 31, 2013 at 3:12 AM, rusi wrote:
> > You associate the primal (f)act of thinking about programming with
> > *doing* the generating.
> > By contrast the functional programmer thinks about what *is* the
> > result.
>
> I wish you'd explain th
Antoine Pitrou wrote:
>Hi,
>Wolfgang Maier biologie.uni-freiburg.de> writes:
>>
>> Dear all,
>> I was just experimenting for the first time with os.posix_fadvise(), which
>> is new in Python3.3 . I'm reading from a really huge file (several GB) and I
>> want to use the data only once, so I don'
On Fri, May 31, 2013 at 3:46 AM, Ma Xiaojun wrote:
> On Fri, May 31, 2013 at 1:28 AM, Chris Angelico wrote:
>> for (int i=0;i> {
>> //do something with foo[i]
>> }
>
> This is interesting!
Yeah, but that's C++. It won't work in Python without this directive:
from __future__ import braces
C
On Fri, May 31, 2013 at 1:28 AM, Chris Angelico wrote:
> for (int i=0;i {
> //do something with foo[i]
> }
This is interesting!
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, May 31, 2013 at 3:01 AM, Michael Torrie wrote:
> On 05/30/2013 08:40 AM, Chris Angelico wrote:
>> but if he's actively using the module, he probably knows where to
>> find its docs.
>
> One would hope, but alas one probably hopes in vain. I'm not sure he
> wants to spend the time to read
On Fri, May 31, 2013 at 3:12 AM, rusi wrote:
> You associate the primal (f)act of thinking about programming with
> *doing* the generating.
> By contrast the functional programmer thinks about what *is* the
> result.
I wish you'd explain that to my boss :) He often has trouble
understanding why s
On Fri, May 31, 2013 at 2:58 AM, rusi wrote:
> On May 30, 5:58 pm, Chris Angelico wrote:
>> The alternative would be an infinite number of iterations, which is far far
>> worse.
>
> There was one heavyweight among programming teachers -- E.W. Dijkstra
> -- who had some rather extreme views on th
THRINAXODON HAS JUST ENTERED THE WORLD OF REASON-RALLY. SUCH WILD
BEASTS AS PETER NYIKOS, PZ MYERS, RICHARD DAWKINS, DR. EVIL, JOHN S.
WILKINS, JERRY COYNE, MARK ISAAK, SKYEYES, BUDIKKA666, FIDEL TUBARE,
SBAELNAVE, BOB CASANOVA, JOHN HARSHMAN, DAVID IAIN GREIG, AND JILLERY
WERE THERE. THEY WERE MIS
On Thu, May 30, 2013 at 9:34 AM, Ma Xiaojun
wrote:
>
> On Thu, May 30, 2013 at 10:49 AM, rusi wrote:
> > Ha,Ha! The join method is one of the (for me) ugly features of python.
> > You can sweep it under the carpet with a one-line join function and
> > then write clean and pretty code:
> >
> > #jo
On 05/30/2013 08:40 AM, Chris Angelico wrote:
> but if he's actively using the module, he probably knows where to
> find its docs.
One would hope, but alas one probably hopes in vain. I'm not sure he
wants to spend the time to read the code he's using and understand.
He's in too much of a hurry t
On 05/30/2013 08:56 AM, Chris Angelico wrote:
On Fri, May 31, 2013 at 1:02 AM, Ethan Furman wrote:
On 05/30/2013 05:58 AM, Chris Angelico wrote:
If you iterate from 1000 to 173, you get nowhere. This is the expected
behaviour; this is what a C-style for loop would be written as, it's
what rang
On May 30, 5:58 pm, Chris Angelico wrote:
> The alternative would be an infinite number of iterations, which is far far
> worse.
There was one heavyweight among programming teachers -- E.W. Dijkstra
-- who had some rather extreme views on this.
He taught that when writing a loop of the form
i
On Fri, May 31, 2013 at 2:40 AM, Wolfgang Keller wrote:
> A GUI that can not be used without taking the ten fingers off the
> keyboard is indeed entirely unusable for any half-proficient
> screenworker. And anyone doing actual productive screenwork every day
> for more than just a few months will
Is there a way to use pdb to debug Google apps written in Python?
When I start the development system to run the app "test" like this -
'./google_appengine/dev_appserver.py' './test'
- I'd like to send the program into debug. I couldn't see anything in
the documentation how to do this. If I do
> >> suppose I now want the app natively on my phone (because that's all
> >> the rage). It's an iPhone. Oh. Apple doesn't support Python.
> >> Okay, rewrite the works, including business logic, in Objective C.
> >> Now I want it on my android phone.
> >
> > Those are gadgets, not work tools.
On Fri, 31 May 2013 01:56:09 +1000, Chris Angelico wrote:
> On Fri, May 31, 2013 at 1:02 AM, Ethan Furman
> wrote:
>> On 05/30/2013 05:58 AM, Chris Angelico wrote:
>>> If you iterate from 1000 to 173, you get nowhere. This is the expected
>>> behaviour; this is what a C-style for loop would be wr
On Fri, May 31, 2013 at 1:02 AM, Ethan Furman wrote:
> On 05/30/2013 05:58 AM, Chris Angelico wrote:
>> If you iterate from 1000 to 173, you get nowhere. This is the expected
>> behaviour; this is what a C-style for loop would be written as, it's
>> what range() does, it's the normal thing. Going
On 05/30/2013 05:58 AM, Chris Angelico wrote:
On Thu, May 30, 2013 at 10:40 PM, Roy Smith wrote:
if somebody were to accidentally drop three zeros into the source code:
x = 1000
while x < 173:
print(x)
x += 1
should the loop just quietly not execute (which is what it will do
here)
On 30/05/2013 02:32, Ma Xiaojun wrote:
I've already mailed the author, waiting for reply.
For Windows people, downloading a exe get you pySerial 2.5, which
list_ports and miniterm feature seems not included. To use 2.6,
download the tar.gz and use standard "setup.py install" to install it
(assum
Thanks a lot, Sir. Just what I was looking for. This is a fantastic library for
python.
--
http://mail.python.org/mailman/listinfo/python-list
On 30 May 2013 15:47, Eternaltheft wrote:
>> And perhaps you meant for your function to CALL drawBoard(), rather than
>> returning the function object drawBoard.
>>
>> DaveA
>
> do you think it would be better if i call drawBoard?
Please read http://www.catb.org/esr/faqs/smart-questions.html, or
> And perhaps you meant for your function to CALL drawBoard(), rather than
> returning the function object drawBoard.
> DaveA
do you think it would be better if i call drawBoard?
--
http://mail.python.org/mailman/listinfo/python-list
> And perhaps you meant for your function to CALL drawBoard(), rather than
>
> returning the function object drawBoard.
>
> DaveA
do you think it would be better if i call drawBoard?
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, May 31, 2013 at 12:35 AM, Michael Torrie wrote:
> On 05/30/2013 05:47 AM, Νίκος Γκρ33κ wrote:
>> The moen i switched "charset = 'utf-8'" => "charset = 'utf8'" all
>> started to work properly!
>
> Glad you have it working.
>
> Perhaps this should be a lesson to you, Nick. Chris was able to
On 05/30/2013 05:47 AM, Νίκος Γκρ33κ wrote:
> The moen i switched "charset = 'utf-8'" => "charset = 'utf8'" all
> started to work properly!
Glad you have it working.
Perhaps this should be a lesson to you, Nick. Chris was able to spot
your problem by READING THE DOCUMENTATION, which he probably
On 30/05/2013 15:03, Eternaltheft wrote:
do you think ti would be better if i call drawBoard?
How would I know if you don't quote any context?
--
If you're using GoogleCrap™ please read this
http://wiki.python.org/moin/GoogleGroupsPython.
Mark Lawrence
--
http://mail.python.org/mailman/li
do you think ti would be better if i call drawBoard?
--
http://mail.python.org/mailman/listinfo/python-list
Τη Πέμπτη, 30 Μαΐου 2013 4:36:11 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:
> Lemme guess, he's next going to ask on the PostgreSQL mailing list. I
> mean, that's unrelated to Python, right?
Well Chris, i'am not that stupid :)
I intend to ask questions unrelated to Python to a list unrelated t
On 05/30/2013 09:10 AM, Eternaltheft wrote:
yeah i found out why it wasn't defined before because i tried to put it into a
function.
That's not a sentence, and it doesn't make sense in any permutation I
can do on it.
this is my drawBoard function:
import turtle as Turtle
Turtle.title("Ch
On Thu, May 30, 2013 at 11:05 PM, Mark Lawrence wrote:
> Please ask questions unrelated to Python on a list that is unrelated to
> Python.
Lemme guess, he's next going to ask on the PostgreSQL mailing list. I
mean, that's unrelated to Python, right?
ChrisA
--
http://mail.python.org/mailman/list
Τη Πέμπτη, 30 Μαΐου 2013 4:05:00 μ.μ. UTC+3, ο χρήστης Mark Lawrence έγραψε:
> Please ask questions unrelated to Python on a list that is unrelated to
> Python.
Okey, i will.
--
http://mail.python.org/mailman/listinfo/python-list
On 05/30/2013 08:42 AM, bhk...@gmail.com wrote:
http://wiki.python.org/moin/GoogleGroupsPython >
In the above output, the control goes to "HERE AFTER SPLIT" after the "Merging"
statement which is of-course the last statement in the function.On what condition this is happening.
Ideally
On 30/05/2013 13:31, Νίκος Γκρ33κ wrote:
This is my last question, everythign else is taken care of.
i cant test thjis coe online because i receive this
[Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] suexec failure: could
not open log file
[Thu May 30 15:29:33 2013] [error] [client 46
Τη Πέμπτη, 30 Μαΐου 2013 3:59:21 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:
> On Thu, May 30, 2013 at 10:31 PM, Νίκος Γκρ33κ wrote:
>
> > This is my last question, everythign else is taken care of.
>
> >
>
> > i cant test thjis coe online because i receive this
>
> >
>
> > [Thu May 30 15:29
On Thu, May 30, 2013 at 10:37 PM, Eternaltheft wrote:
> sorry about that, i got confused xD. yeah it works good now.
> what i meant to say was can i return a function that i made, if the user
> inputs nothing?
Sure! Anything you want to do, you can do :)
ChrisA
--
http://mail.python.org/mailma
yeah i found out why it wasn't defined before because i tried to put it into a
function.
this is my drawBoard function:
import turtle as Turtle
Turtle.title("Checkers")
b = 75
def drawBoard(b):
Turtle.speed(0)
Turtle.up()
Turtle.goto(-4 * b, 4 * b)
Turtle.down()
for i
On Thu, May 30, 2013 at 10:31 PM, Νίκος Γκρ33κ wrote:
> This is my last question, everythign else is taken care of.
>
> i cant test thjis coe online because i receive this
>
> [Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] suexec failure: could
> not open log file
> [Thu May 30 15:29:33
Thanks Chris, Wolfgang and Joshua for your replies.
In step 2b, all the steps from 1 through 3 are executed again (twice).
Soon, those calls will just output "Splitting" followed by "Merging";
and then we go back to 2c. That's why it *seems* that the code goes
from
On 05/30/2013 08:37 AM, Eternaltheft wrote:
sorry about that, i got confused xD. yeah it works good now.
what i meant to say was can i return a function that i made, if the user inputs
nothing?
There wouldn't be anything to stop you. However, if you have multiple
returns from the same funct
On Thu, May 30, 2013 at 10:40 PM, Roy Smith wrote:
> if somebody were to accidentally drop three zeros into the source code:
>
>> x = 1000
>> while x < 173:
>> print(x)
>> x += 1
>
> should the loop just quietly not execute (which is what it will do
> here)? Will that make your program co
On Thu, May 30, 2013 at 10:39 PM, wrote:
> Chris, Can you please let me know what makes the control of the program code
> go to 2c after the output "Merging".
It goes like this:
1. [eight element list]
2a. [eight element list]
2b. 1. [four element list]
2b. 2a. [four element list]
2b.
Τη Πέμπτη, 30 Μαΐου 2013 3:34:09 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε:
> On Thu, May 30, 2013 at 10:25 PM, Νίκος Γκρ33κ wrote:
>
> > #!/usr/bin/python3
>
> > # coding=utf-8
>
> > (chomp a whole lot of code without any indication of what it ought to do)
>
>
>
> Why not run it and see?
On Thursday, May 30, 2013 6:09:20 PM UTC+5:30, bhk...@gmail.com wrote:
> Thanks Chris, Wolfgang and Joshua for your replies.
>
>
>
> ---
>
> In step 2b, all the steps from 1 through 3 are executed again (twice).
>
> Soon, those calls will just output "Splitting" followed by "Merging";
>
> a
In article ,
Jussi Piitulainen wrote:
> I wonder why floating-point errors are not routinely discussed in
> terms of ulps (units in last position).
Analysis of error is a complicated topic (and is much older than digital
computers). These sorts of things come up in the real world, too. For
In article ,
Chris Angelico wrote:
> On Thu, May 30, 2013 at 3:10 PM, Steven D'Aprano
> wrote:
> > # Wrong, don't do this!
> > x = 0.1
> > while x != 17.3:
> > print(x)
> > x += 0.1
> >
>
> Actually, I wouldn't do that with integers either. There are too many
> ways that a subsequent e
On Thursday, May 30, 2013 6:09:20 PM UTC+5:30, bhk...@gmail.com wrote:
> Thanks Chris, Wolfgang and Joshua for your replies.
>
>
>
> ---
>
> In step 2b, all the steps from 1 through 3 are executed again (twice).
>
> Soon, those calls will just output "Splitting" followed by "Merging";
>
> a
Thanks Chris, Wolfgang and Joshua for your replies.
---
In step 2b, all the steps from 1 through 3 are executed again (twice).
Soon, those calls will just output "Splitting" followed by "Merging";
and then we go back to 2c. That's why it *seems* that the code goes
from 3 to 2c. You'll notice th
sorry about that, i got confused xD. yeah it works good now.
what i meant to say was can i return a function that i made, if the user inputs
nothing?
--
http://mail.python.org/mailman/listinfo/python-list
This is my last question, everythign else is taken care of.
i cant test thjis coe online because i receive this
[Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] suexec failure: could
not open log file
[Thu May 30 15:29:33 2013] [error] [client 46.12.46.11] fopen: Permission denied
[Thu Ma
1 - 100 of 133 matches
Mail list logo