On Tue, 10 Jun 2014 13:39:50 +0100, Carlos Anselmo Dias wrote:
> On 06/10/2014 01:10 PM, Ben Finney wrote:
>> Carlos Anselmo Dias writes:
>>
>>> Following my post Copy/paste of python team(...) + script
>>> attachment(...)
>> I find those screeds very difficult to read. One significant
>> improve
On Tue, 10 Jun 2014 14:09:52 +0100, Carlos Anselmo Dias wrote:
>>> Hi ...
>>>
>>> English is not my maternal language ... I wrote what I consider the
>>> most appropriated taking in consideration that the summary of the
>>> description might be enough to help people think about it ...
>>> If those
On Tue, 10 Jun 2014 11:53:38 +0100, Robin Becker wrote:
> On 10/06/2014 11:14, alister wrote:
>> On Mon, 09 Jun 2014 21:54:25 +0100, Carlos Anselmo Dias wrote:
>
>>
>> I'm sorry What does all this relate to?
>>
>>
>>
> Turing test?
I
On Tue, 10 Jun 2014 14:59:09 +0100, Carlos Anselmo Dias wrote:
> On 06/10/2014 02:47 PM, Grant Edwards wrote:
>> On 2014-06-10, Carlos Anselmo Dias wrote:
>>
>>> English is not my maternal language ...
>> And stringing together a bunch of phrases with elipses without every
>> completing a sentenc
On Tue, 10 Jun 2014 19:14:18 +0100, Mark Lawrence wrote:
> On 10/06/2014 08:27, Thomas Rachel wrote:
>> Am 08.06.2014 05:58 schrieb Rustom Mody:
>>
>>> Some people¹ think that gotos are a code-smell.
>>> ¹ I am not exactly those people.
>>> A chap called E W Dijkstra made the statement: "Goto sta
On Tue, 10 Jun 2014 12:27:26 -0700, wxjmfauth wrote:
> Le samedi 7 juin 2014 04:20:22 UTC+2, Tim Chase a écrit :
>> On 2014-06-06 09:59, Travis Griggs wrote:
>>
>> > On Jun 4, 2014, at 4:01 AM, Tim Chase wrote:
>>
>> > > If you use UTF-8 for everything
>>
>>
>> >
>> > It seems to me, that inc
On Wed, 11 Jun 2014 08:29:06 +1000, Tim Delaney wrote:
> On 11 June 2014 05:43, alister wrote:
>
>
>> Your error reports always seem to resolve around benchmarks despite
>> speed not being one of Pythons prime objectives
>>
>>
> By his own admission, jmf
On Tue, 10 Jun 2014 22:15:29 +0100, Carlos Anselmo Dias wrote:
> Hi...
>
> I don't understand the 'problem' of several people ...
>
> I created one post because I've several projects, I'm looking for one
> team of experienced experts in Python to work in my projects ... asap
> ... I provided one
On Wed, 11 Jun 2014 00:00:49 +, Steven D'Aprano wrote:
> On Wed, 11 Jun 2014 06:37:01 +1000, Chris Angelico wrote:
>
>> I don't know a single piece of programming advice which, if taken as an
>> inviolate rule, doesn't at some point cause suboptimal code.
>
> "Don't try to program while your
On Thu, 12 Jun 2014 09:06:50 +, Steven D'Aprano wrote:
> On Thu, 12 Jun 2014 12:16:08 +1000, Chris Angelico wrote:
>
>> On Thu, Jun 12, 2014 at 12:08 PM, Steven D'Aprano
>> wrote:
>>> I'm just pointing out that our computational technology uses over a
>>> million times more energy than the t
On Fri, 13 Jun 2014 02:16:13 -0700, satishguptajaipur wrote:
> I was thinking of connecting the database to access for some custom
> reports.
> What is the location of erpnext database?
>
> Regards Satish
How on earth should we know?
It is your database server you should know.
--
If you're c
On Tue, 17 Jun 2014 08:34:13 +1000, Chris Angelico wrote:
>
> Partly that. But also, people want to know how long that will *really*
> last. For instance, 10 hours of battery life... doing what? Can I really
> hop on a plane for ten hours and write code the whole way without
> external power? Or
On Wed, 18 Jun 2014 00:36:29 -0700, cutey Love wrote:
> No it's still paused after selection and only excutes when the window is
> closed.
>
> On Tuesday, June 17, 2014 6:34:41 PM UTC+1, MRAB wrote:
>> On 2014-06-17 17:49, cutey Love wrote:
>>
>> > My first attempt at Python,
>> > I'm using Tkin
On Fri, 20 Jun 2014 14:28:52 +, Grant Edwards wrote:
> On 2014-06-20, Mark Lawrence wrote:
>
>> For the OP a very important rule of thumb is never use a bare except,
>> so this is right out.
>>
>> try:
>> doSomething()
>> except:
>> WTF()
>
> IMO, that sort of depends on WTF() doe
On Mon, 23 Jun 2014 19:40:24 -0700, Larry Hudson wrote:
> On 06/23/2014 01:12 PM, kenak...@gmail.com wrote:
>> What package do I need to install to get thread support (import thread)
>> for Python 3 running under ubuntu 3?
>>
>>
> Just curious... Ubuntu 3 -- Are you really running a version that
On Wed, 25 Jun 2014 20:54:29 -0700, CM wrote:
> I occasionally hear about performance improvements for Python by various
> projects like psyco (now old), ShedSkin, Cython, PyPy, Nuitka, Numba,
> and probably many others. The benchmarks are out there, and they do
> make a difference, and sometimes
On Thu, 26 Jun 2014 20:53:35 +0200, Martin S wrote:
> Hi,
>
> I've been following the tutorial here
> http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/
> But when I get to section 1.10 there is
>
> person = input('Enter your name: ')
>
> However this generates an error
>
>
person =
On Fri, 27 Jun 2014 08:18:24 -0700, Paul McNett wrote:
> On 6/27/14, 2:19 AM, suburb4nfi...@gmail.com wrote:
>> Hello I finished the codeacademy python course a week ago and my goal
>> is to start developing websites (both back and front end) ,my question
>> is do i start the web dev tuts and lear
On Fri, 27 Jun 2014 12:39:49 -0700, suburb4nfilth wrote:
> Thank you for the fast response guys, what if I go with django instead
> of flask and is javascript hard to learn considering that I have no
> knoledge of any other language beside Python?
I guess it depends on what you want it to do
Per
On Sat, 05 Jul 2014 20:57:14 +1200, Gregory Ewing wrote:
> Rick Johnson wrote:
>> Why is a handheld light called a flashlight? It does not flash,
>
> According to Wikipedia, originally it did:
>
> "Early flashlights ran on zinc–carbon batteries, which could not provide
> a steady electric curren
On Wed, 09 Jul 2014 23:09:36 +0200, Anders J. Munch wrote:
> Ethan Furman:
>> I would suggest you ask for this on the numerical mailing lists instead
>> of here -- and you may not want to offer a beer to everyone that has an
>> anecdote for NaN behavior being useful.
> I don't have time to start t
On Thu, 10 Jul 2014 23:33:27 -0400, Roy Smith wrote:
> In article ,
> Tim Chase wrote:
>
>> On 2014-07-10 22:18, Roy Smith wrote:
>> > > Outside this are \( and \): these are literal opening and closing
>> > > bracket characters. So:
>> > >
>> > >\(\([^)]+\)\)
>> >
>> > although, even bett
>
> Image, for a moment, a world WITHOUT the great USA! Yes, i know you
> little commies love to curse the USA, and yes,
> there are many dark sins committed within AND beyond her borders, but
> try to tell me you bass-turds, what nation in modern history has
> contributed more technological achie
On Mon, 14 Jul 2014 21:18:05 -0700, Rick Johnson wrote:
> On Monday, July 14, 2014 9:11:47 PM UTC-5, Chris Angelico wrote:
>> I dunno. It's not like Great Britain, Australia, or New Zealand did
>> anything significant in either war, is it.
>
> Most of Europe occupied, London bombed into the stone
On Tue, 15 Jul 2014 15:50:46 +0100, MRAB wrote:
> On 2014-07-15 13:19, alister wrote:
>>>
>>> Image, for a moment, a world WITHOUT the great USA! Yes, i know you
>>> little commies love to curse the USA, and yes, there are many dark
>>> sins committed wi
On Wed, 16 Jul 2014 09:32:31 -0800, Deb Wyatt wrote:
> Can you all stop already with the non python US bashing? Please?
>
> Deb in WA, USA
>
> Protect
> your computer files with professional cloud backup.
> Get PCRx Backup and upload
On Thu, 17 Jul 2014 02:59:11 -0700, Nicholas Cannon wrote:
> Ok I would say I am almost a intermediate python programer. I have made
> 2 programs(with GUI). And basically they are quite boring(a text editor
> and calculator). I love programming but i am lost of ideas i actually
> suck at finding g
On Fri, 18 Jul 2014 12:10:02 -0700, memilanuk wrote:
> Given the ongoing hub-bub about Google Groups and some recent long
> threads where I *really* wanted to be able to mute/ignore certain
> individuals/subjects... I started looking into other choices for Usenet
> reader software again. I use ne
On Wed, 06 Aug 2014 10:34:04 +1200, Gregory Ewing wrote:
> Grant Edwards wrote:
>> Did I miss a news story? Have the parentesis mines all exploded
>> causing the price of parenthesis to skyrocket?
>
> The Unicode Consortium has been secretly buying them up for some time
> now. Pretty soon you wo
On Tue, 05 Aug 2014 12:39:18 -0700, Christian Calderon wrote:
> I have been using python for 4 years now, and I just started learning
> ruby.
> I like that in ruby I don't have to type parenthesis at the end of each
> function call if I don't need to provide extra arguments. I just
> realized righ
On Fri, 08 Aug 2014 23:58:56 +1000, Steven D'Aprano wrote:
>
>> (for instance, on all my Linux systems, I can hit Ctrl-Alt-F1 to switch
>> away from the GUI altogether).
>
> Does that work when xscreensaver or equivalent has locked the system? If
> so,
> that's a security vulnerability.
I have n
On Mon, 11 Aug 2014 11:08:43 +0200, Wolfgang Keller wrote:
>> By the way, you keep replying to people, and quoting them, but deleting
>> their name. Please leave the attribution in place, so we know who you
>> are replying to.
>
> That's what the "References:"-Header is there for.
>
> Sincerely,
On Mon, 11 Aug 2014 12:56:59 +0100, Robert Kern wrote:
> On 2014-08-11 03:04, Steven D'Aprano wrote:
>> Rustom Mody wrote:
>>
>>> Its when we have variables that are assigned in multiple places that
>>> we start seeing mathematical abominations like x = x+1
>>
>> That's not a mathematical abominat
On Tue, 12 Aug 2014 00:21:28 -0700, wxjmfauth wrote:
> Math:
>
> Try to formalize with mathematics the Flexible String Representation.
> You should quickly realize, it is a logical mathematical absurdity.
> Unbelievable.
>
> jmf
Mathematicians work with numbers (Algebra is a abstraction of nume
On Tue, 12 Aug 2014 23:39:42 +1000, Chris Angelico wrote:
> On Tue, Aug 12, 2014 at 8:40 PM, alister
> wrote:
>> On Tue, 12 Aug 2014 00:21:28 -0700, wxjmfauth wrote:
>> [ chomp ]
>>
>> Mathematicians work with numbers (Algebra is a abstraction of numerical
>>
On Tue, 12 Aug 2014 19:57:14 -0400, Frank Scafidi wrote:
> I just acquired a Raspberry Pi and want to program in Python. I was a
> PL/1 programmer back in the 60's & 70's and Python is similar. I am
> struggling with some very fundamental things that I am not finding in
> the documentation. Can so
On Wed, 13 Aug 2014 15:13:34 +0200, Mok-Kong Shen wrote:
> Am 13.08.2014 13:55, schrieb alister:
> [snip]
>
> A related question: How could one write a Python program and have it run
> on a mobile phone in general (independent of a PC)?
>
> M. K. Shen
you would need a p
On Wed, 13 Aug 2014 07:39:20 -0400, Eric S. Johansson wrote:
> On 8/12/2014 9:46 PM, Chris Angelico wrote:
>> On Wed, Aug 13, 2014 at 11:36 AM, Wesley wrote:
>>> If my questions make you guys not so happy, I am sorry and please just
>>> ignore.
>>> I just wanna a general suggestion here in the be
On Wed, 13 Aug 2014 15:31:37 -0400, Terry Reedy wrote:
> On 8/13/2014 7:55 AM, alister wrote:
>>
>> I am not in the same league as many of the posters here when it comes
>> to Python but fortunately i do have two Raspberry Pi's :-)
>
> Great! We really someone w
On Thu, 14 Aug 2014 08:09:11 -0700, Simon Evans wrote:
> Dear Programmers, I want to access a html file on my C drive, in the
>
> Python 27 prompt, all the examples I come across seem to require for
>
> access for the html file be on a server, rather than on the same
>
> computer's C drive. I
On Fri, 15 Aug 2014 20:10:25 +0200, Dominique Ramaekers wrote:
> Hi,
>
> I've got a little script:
>
> #!/usr/bin/env python3 print("Content-Type: text/html")
> print("Cache-Control: no-cache, must-revalidate")# HTTP/1.1
> print("Expires: Sat, 26 Jul 1997 05:00:00 GMT") # Date in the past
>
On Mon, 18 Aug 2014 23:53:49 +0300, Marko Rauhamaa wrote:
> "ElChino" :
>
>> A newbie question to you; what is the difference between statements
>> like:
>> if x is not None:
>> and if x != None:
>
> Do the following: take two $10 bills. Hold one bill in the left hand,
> hold the other bill in
On Wed, 20 Aug 2014 00:11:24 +0200, Alex Murray wrote:
> Hi,
>
>
>
> I've discovered some very strange behaviour when trying to
> delete a QWidget from a QGridLayout. The following code demonstrates
> this behaviour:
>
>
>
> >>> from PyQt4 import QtGui
>
> >>> import sys
>
> >>> app = Qt
On Sat, 23 Aug 2014 18:19:21 +1000, Steven D'Aprano wrote:
> Rob Gaddi wrote:
>
>> Emacs and vim both have huge learning curves that I've decided aren't
>> worth climbing.
>
> In my opinion, they are designed for people willing and able to commit
> to memory dozens, even hundreds, of obscure key
On Mon, 25 Aug 2014 21:10:47 -0400, Joel Goldstick wrote:
> you should try python-tudor mailing list
>
Oh Wow I didn't know Python was that old - it even pre-dates
Electricity :-)
--
Hand, n.:
A singular instrument worn at the end of a human arm and
commonly thrust into somebod
On Tue, 26 Aug 2014 12:32:14 +0300, Marko Rauhamaa wrote:
> alister :
>
>> Oh Wow I didn't know Python was that old - it even pre-dates
>> Electricity :-)
>
> Electricity arose already before the Great Inflation.
>
>
> Marko
but it was not in
On Mon, 01 Sep 2014 15:06:04 -0500, Tim Chase wrote:
> On 2014-09-02 04:23, Steven D'Aprano wrote:
>> Read $VISUAL, if it exists, otherwise $EDITOR, if it exists, otherwise
>> fall back on something hard coded. Or read it from an ini file. Or
>> create an entry in the register. Whatever. That's up
On Tue, 02 Sep 2014 18:45:54 +1000, Chris Angelico wrote:
> On Tue, Sep 2, 2014 at 6:35 PM, alister
> wrote:
>> if edlin is your only option then it would be better to spend you time
>> writhing your own text editor!
>
> Heh!
>
> Considering how easy it is to depl
On Wed, 03 Sep 2014 19:33:41 -0700, Rustom Mody wrote:
> On Thursday, September 4, 2014 7:56:31 AM UTC+5:30, Chris Angelico
> wrote:
>> On Thu, Sep 4, 2014 at 12:10 PM, Rustom Mody wrote:
>> > On Thursday, September 4, 2014 7:26:56 AM UTC+5:30, Chris Angelico
>> > wrote:
>> >> On Thu, Sep 4, 2014
On Thu, 04 Sep 2014 11:13:16 -0700, sohi.khushi7 wrote:
> Hello group members,
>
> I have worked with languages like C, C++, C#, Java and Objective C
> before.
>
> Now I want to learn Python. Most of the resources that I have seen
> online are oriented mainly towards beginners to programming. Is
On Fri, 19 Sep 2014 21:56:05 +1000, Chris Angelico wrote:
> On Fri, Sep 19, 2014 at 9:46 PM, Steven D'Aprano
> wrote:
>> Chris Angelico wrote:
>>
>>> On Fri, Sep 19, 2014 at 8:59 PM, Steven D'Aprano
>>> wrote:
Here's a proof of concept of what would be allowed:
>> [...]
>>> Also, this can't
On Mon, 22 Sep 2014 16:32:27 +0200, Jean-Michel Pichavant wrote:
> - Original Message -
>> From: "Chris Angelico"
>> Cc: python-list@python.org Sent: Saturday, 20 September, 2014 4:58:44
>> PM Subject: Re: Love to get some feedback on my first python app!!!
> [snip]
>>
>> #search API
On Mon, 29 Sep 2014 00:36:47 -0700, norman.ives wrote:
> Hello list
>
> Python 3.4 applies.
>
> I have a project that involves distributing Python code to users in an
> organisation. Users do not interact directly with the Python code; they
> only know this project as an Excel add-in.
>
> Now,
On Sat, 04 Oct 2014 11:09:58 +1000, Steven D'Aprano wrote:
> Chris Angelico wrote:
>
>> On Sat, Oct 4, 2014 at 8:54 AM, Seymore4Head
>> wrote:
>
>>> for i in range(1,10):
>>> print (str(i)*i)
>>
>> Seymour, please don't do this. When you "help" someone by just giving
>> him the answer to a
On Thu, 09 Oct 2014 17:57:03 +1300, Gregory Ewing wrote:
> Seymore4Head wrote:
>> I want to toggle between color="Red" and color="Blue"
>
> toggle = {"Red": "Blue", "Blue": "Red"}
> color = toggle[color]
How about a simple
colour = 'red' if colour == 'blue' else 'blue'
--
The light at the e
On Mon, 06 Oct 2014 22:06:09 -0400, Seymore4Head wrote:
> On Tue, 7 Oct 2014 01:46:37 + (UTC), Denis McMahon
> wrote:
>
>>On Sun, 05 Oct 2014 19:02:31 -0400, Seymore4Head wrote:
>>
>>> For the record, I don't want a hint. I want the answer.
>>> I see a practice question is similar to this.
On Thu, 09 Oct 2014 23:48:36 +0300, Marko Rauhamaa wrote:
> Tim Delaney :
>
>> It's very annoying to have some methods use "z" and others "s" in the
>> same package.
>
> "-ize" is standard everywhere in the English-speaking world.
Not in England!
>
> Americans insist on "analyze," "paralyze" a
On Fri, 10 Oct 2014 22:01:58 +0300, Marko Rauhamaa wrote:
> alister :
>
>> On Thu, 09 Oct 2014 23:48:36 +0300, Marko Rauhamaa wrote:
>>
>>> "-ize" is standard everywhere in the English-speaking world.
>>
>> Not in England!
>
> http:
On Mon, 13 Oct 2014 05:43:10 +1100, Chris Angelico wrote:
> On Mon, Oct 13, 2014 at 5:38 AM, Tony the Tiger
> wrote:
>>> colour = 'red' if colour == 'blue' else 'blue'
>>
>> I call that a subtle bug that most likely will jump up and bite your
>> behind when you least expect it.
>
> More generall
On Wed, 22 Oct 2014 12:41:49 +0100, Mark Lawrence wrote:
> On 22/10/2014 10:27, Chris Angelico wrote:
>> On Wed, Oct 22, 2014 at 8:16 PM, Mark Lawrence
>> wrote:
without not:
j = [j+1, 3][j>=10]
with not:
j = [3, j+1][not (j>=10)]
>>> The death penalty should be rein
On Thu, 23 Oct 2014 02:18:42 +1100, Chris Angelico wrote:
> On Thu, Oct 23, 2014 at 2:12 AM, alister
> wrote:
>>> Perhaps you're correct. Is there anything worse than looking at a
>>> dreadful piece of code that makes no sense at all and knowing that
>>&g
On Thu, 08 Dec 2011 18:10:17 +, Grant Edwards wrote:
> On 2011-12-08, Roy Smith wrote:
>> On Thursday, December 8, 2011 10:03:38 AM UTC-5, Jean-Michel Pichavant
>> wrote:
>>> string are iterable, considering this, the error is correct.
>>
>> Yes, I understand that the exception is correct. I
On Mon, 25 Feb 2013 23:46:11 +0100, leonardo wrote:
> hi everyone,
>
> i have the following program:
>
> import time count_timer = int(raw_input('how many seconds?: '))
> for i in range(count_timer, 0, -1):
> print i time.sleep(1)
> print 'blast off!'
>
>
> this is the result:
>
> how ma
On Fri, 01 Mar 2013 19:35:14 +0100, leonardo selmi wrote:
> hi guys
>
> i typed the following program:
>
> class ball:
> def _init_(self, color, size, direction):
> self.color = color self.size = size self.direction = direction
>
> def _str_(self):
> msg = 'hi, i am a '
On Mon, 04 Mar 2013 07:07:53 -0800, Bryan Devaney wrote:
> On Sunday, March 3, 2013 6:45:26 PM UTC, Kwpolska wrote:
>> On Sun, Mar 3, 2013 at 7:46 AM, Michael Torrie
>> wrote:
>>
>> > On 02/21/2013 03:18 AM, leonardo wrote:
>>
>> >> thanks, problem solved
>>
>>
>> >
>> > Apparently not. The
On Wed, 20 Mar 2013 16:52:00 +0100, Peter Otten wrote:
> Ana Dionísio wrote:
>
>> So, I have this script that puts in a list every minute in 24 hours
>>
>> hour=[]
>> i=0 t=-(1.0/60.0)
>> while i<24*60:
>> i = i+1 t = t+(1.0/60.0)
>> hour.append([t])
>
> In many cases you can write
>
>
On Wed, 20 Mar 2013 20:00:38 +, Grant Edwards wrote:
> On 2013-03-20, Alister wrote:
>
>> and a list comprehension would streamline things further
>>
>> t=[round(x*1.0/60),4 for x in range(1440)] #compatible with V2.7 &
>> V3.0)
>
> There'
On Sun, 31 Mar 2013 14:32:21 -0700, gerrymcgovern wrote:
> On Sunday, March 31, 2013 5:27:06 PM UTC-4, Roy Smith wrote:
>> In article <4455829d-5b4a-44ee-b65f-5f72d429b...@googlegroups.com>,
>>
>> jojo wrote:
>>
>>
>>
>> > Thanks for your replies. Just to be clear this is for a interview and
On Tue, 16 Apr 2013 12:10:09 -0700, Chris Rebert wrote:
> On Tue, Apr 16, 2013 at 7:14 AM, PEnergy wrote:
>> Greetings,
>>
>> I am trying to write a python script that, when called from the DOS
>> prompt, will call another python script and pass it input variables.
>> My current code will open t
On Thu, 18 Apr 2013 23:24:29 +0200, Tracubik wrote:
> Hi all!
> I'm trying to make a simple program that essentially do this:
>
> 1) open a html file (extracted epub file)
> 2) search for occurrences like "ita-ly"
> 3) put them on a simple GUI: 1 text field and two buttons: keepy it and
> correct
On Fri, 03 May 2013 00:36:48 +1000, Chris Angelico wrote:
> One of my younger brothers, still school age, is to be studying some
> aspect of computing for the next term or two. I strongly recommended he
> learn Python (it has a bit more future than studying the internals of
> OS/2), and my/his fat
On Sun, 16 May 2010 12:07:08 +0300, Tuomas Vesterinen wrote:
> I am testing an application GUI with Python 2.4, 2.5 and 2.6. The native
> Python (in Fedora 12) is 2.6. Versions 2.4 and 2.5 are alt-installed.
>
> Aplication GUI uses:
> import pygtk
> pygtk.require('2.0')
> import gtk
> import gobj
On Mon, 24 May 2010 13:15:01 -0700, joy99 wrote:
> Dear Group,
>
> I have a small question on function.
>
> If I write two functions like the following:
>
> IDLE 2.6.5
def function1(n):
> element1=5
> element2=6
> add=element1+element2
> print "PRINT THE ADDITION",a
On Mon, 24 May 2010 22:56:34 +0200, Vlastimil Brom wrote:
> 2010/5/24 joy99 :
>>
>>
>> Dear Group,
>>
>> I have a small question on function.
>>
>> If I write two functions like the following:
>>
>> IDLE 2.6.5
> def function1(n):
>> element1=5
>> element2=6
>> add=element1
On Wed, 26 May 2010 11:09:58 -0700, Chris Rebert wrote:
> On Wed, May 26, 2010 at 10:48 AM, William Miner
> wrote:
>> I’m relative new to python and I puzzled by the following strange (to
>> me) behavior. I was taking pieces from two old scripts to build a new
>> one. When I began to debug it I g
On Wed, 26 May 2010 12:43:29 -0700, John Nagle wrote:
> Kushal Kumaran wrote:
>> On Tue, 2010-05-25 at 14:45 -0400, Victor Subervi wrote:
>>> Hi;
>>> I have this code:
>>>
>>> clientCursor.execute('select ID from %s' % (personalDataTable))
>>> upds = [itm[0] for itm in clientCursor] print
On Wed, 26 May 2010 15:30:16 -0700, John Nagle wrote:
> Alister wrote:
>> I think you should probably also write your execute differently:
>>
>>>>> clientCursor.execute('select ID from %s' , (personalDataTable,))
>>
>> this ensures t
On Wed, 09 Jun 2010 02:45:36 +, Deadly Dirk wrote:
> On Tue, 08 Jun 2010 18:52:44 -0700, alex23 wrote:
>
>
>> Unless you have a clear need for 3rd party libraries that currently
>> don't have 3.x versions, starting with Python 3 isn't a bad idea.
>
> From what I see, most of the people are
On Thu, 10 Jun 2010 13:14:01 -0700, bolega wrote:
> Which is the best implementation of LISP family of languages for real
> world programming ?
>
> http://wiki.alu.org/Implementation
>
> Kindly pick one from commercial and one from open-source .
>
> The criteria is :
>
> libraries, gui interfa
On Sat, 12 Jun 2010 10:04:02 +, Phil H wrote:
> On Sat, 12 Jun 2010 09:03:43 +, Phil H wrote:
>
>> Hi,
>> Trying my hand with Python but have had a small hiccup. Reading 'A
>> byte of Python' and created helloworld.py as directed.
>>
>> Any help appreciated
>> Phil
>
> Thanks Peter & Ch
On Mon, 13 Feb 2017 10:08:11 -0800, Lauren Fugate wrote:
> So I tried both of these and they didn't change anything, the python
> shell printed the same things...
No answers (answering you homework for you will not teach you anything
useful) but some hints to help you think about the problem
1)
On Wed, 15 Feb 2017 19:08:59 -0800, Paul Rubin wrote:
> Antoon Pardon writes:
>> On reason to use this is for some easy "logging"
>
> I think it's better to use the actual logging module. I generally start
> a new program with print statements but convert them to logging after
> there's enough
On Thu, 16 Feb 2017 12:00:36 +0100, Cecil Westerhof wrote:
> On Thursday 16 Feb 2017 10:43 CET, alister wrote:
>
>> On Wed, 15 Feb 2017 19:08:59 -0800, Paul Rubin wrote:
>>
>>> Antoon Pardon writes:
>>>> On reason to use this is for some easy "log
On Sat, 18 Feb 2017 11:55:34 -0600, boB Stepp wrote:
> On Sat, Feb 18, 2017 at 11:38 AM, TTaglo wrote:
>> i = 1 f = open ('rosalind_ini5(1).txt')
>> for line in f.readlines():
>> if i % 2 == 0:
>> print line
>> i += 1
>>
>>
>> How do i get output without breaks between the lines?
On Wed, 22 Feb 2017 22:33:31 +0530, Ganesh Pal wrote:
> Hello Friends,
>
> I need suggestion on the if statement in the below code , all that I
> was trying to do was to add a check i.e if any one of the functions
> return True then break the loop.
>
>
> end_time = time.time() + 300
>
On Thu, 16 Mar 2017 11:03:56 +1300, Gregory Ewing wrote:
> Steve D'Aprano wrote:
>> You probably can't make a whale fly just by changing the class to bird.
>> It will need wings, and feathers, at the very least.
>
> Some things succeed in flying with neither wings nor feathers.
> Helicopters, for
On Wed, 15 Mar 2017 19:10:17 -0700, Deborah Swanson wrote:
> MRAB wrote, on Wednesday, March 15, 2017 3:19 PM
>>
>> On 2017-03-15 22:03, Gregory Ewing wrote:
>> > Steve D'Aprano wrote:
>> >> You probably can't make a whale fly just by changing the class to
>> >> bird. It will need wings, and feat
On Thu, 16 Mar 2017 03:12:32 +, Stefan Ram wrote:
> The syntax
>
> a if c else b
>
> looks as if Guido made it intentionally ugly so that it will not be
> used?
>
> Being able to detect patterns that are in widespread use among
> programming languages enhances readability.
>
> II
On Thu, 16 Mar 2017 14:04:19 +, Jon Ribbens wrote:
> On 2017-03-16, Robin Becker wrote:
>> On 15/03/2017 13:53, Steve D'Aprano wrote:
>>> You probably can't make a whale fly just by changing the class to
>>> bird. It will need wings, and feathers, at the very least.
>>
>> the whale in the Hit
On Mon, 20 Mar 2017 10:49:39 -0700, Xristos Xristoou wrote:
> Τη Δευτέρα, 20 Μαρτίου 2017 - 7:05:33 μ.μ. UTC+2, ο χρήστης Xristos
> Xristoou έγραψε:
>> i have a little confused problem. i want to store some paths from
>> images using python 2.7 in windows 10.
>> i have some relative path like this
On Sun, 19 Mar 2017 23:01:22 +, Erik wrote:
> On 19/03/17 22:29, Jon Ribbens wrote:
>> On 2017-03-19, breamore...@gmail.com wrote:
>>> On Sunday, March 19, 2017 at 9:54:52 PM UTC, Larry Hudson wrote:
A trivial point (and irrelevant)... The thing I find annoying about
an editor set
On Tue, 21 Mar 2017 06:04:12 +1100, Chris Angelico wrote:
> On Tue, Mar 21, 2017 at 5:57 AM, alister
> wrote:
>> I have just tested this with geany & it works a charm,
>>
>> personally I prefer tabs for setting my indent levels, it feels more
>> logical &
On Sun, 26 Mar 2017 07:24:49 -0700, Νίκος Βέργος wrote:
> Τη Κυριακή, 26 Μαρτίου 2017 - 5:19:27 μ.μ. UTC+3, ο χρήστης Ian έγραψε:
>
>> You need to change the placeholders back. The poster who told you to
>> replace them was misinformed.
>
> okey altered them back to
>
> cur.execute('''UPDATE vi
On Sun, 26 Mar 2017 07:43:51 -0700, Νίκος Βέργος wrote:
> Τη Κυριακή, 26 Μαρτίου 2017 - 5:38:57 μ.μ. UTC+3, ο χρήστης alister
> έγραψε:
>> On Sun, 26 Mar 2017 07:24:49 -0700, Νίκος Βέργος wrote:
>>
>> > Τη Κυριακή, 26 Μαρτίου 2017 - 5:19:27 μ.μ. UTC+3, ο χρήστης Ian
&
On Wed, 12 Apr 2017 01:08:07 -0700, jfong wrote:
> I have a list of list and like to expand each "list element" by
> appending a 1 and a 0 to it. For example, from "lr = [[1], [0]]" expand
> to "lr = [[1,1], [0,1], [1,0], [0,0]]".
>
> The following won't work:
>
> Python 3.4.4 (v3.4.4:737efcadf5
On Tue, 11 Apr 2017 16:31:16 -0700, Rick Johnson wrote:
> On Tuesday, April 11, 2017 at 9:56:45 AM UTC-5, Steve D'Aprano wrote:
>> On Tue, 11 Apr 2017 07:56 pm, Brecht Machiels wrote:
>> > On 2017-04-11 08:19:31 +, Steven D'Aprano said:
>> >
>> > I understand that high performance was never a
On Thu, 13 Apr 2017 01:42:01 +0200, Mikhail V wrote:
> On 12 April 2017 at 02:44, Nathan Ernst wrote:
>> goto is a misunderstood and much misaligned creature. It is a very
>> useful feature, but like nearly any programming construct can be
>> abused.
>>
>> Constructs like 'break', 'continue' or '
On Sun, 16 Apr 2017 14:27:28 +1000, Steve D'Aprano wrote:
> On Sat, 15 Apr 2017 11:55 am, Rick Johnson wrote:
>
>> apparently, the py-devs believe we only deserve type declarations that
>> do nothing to speed up code execution (aka: type-hints), instead of
>> type declarations that could actually
On Sun, 16 Apr 2017 09:48:15 +, alister wrote:
> On Sun, 16 Apr 2017 14:27:28 +1000, Steve D'Aprano wrote:
>
>> On Sat, 15 Apr 2017 11:55 am, Rick Johnson wrote:
>>
>>> apparently, the py-devs believe we only deserve type declarations that
>>> d
On Fri, 21 Apr 2017 12:58:52 -0700, Mohammed Ahmed wrote:
> Write a function sorting(L) that takes a list of numbers and returns the
> list with all elements sorted in ascending order.
> Note: do not use the sort built in function
>
> it is a python question
& the reason for this question is wha
501 - 600 of 770 matches
Mail list logo