Development machine is windows7 64 bit machine, now working with either/both
python 2.7 or 3.4 - test purposes, trying to figure out if this was something
like a version incompatibility issue, and tried using both XAMPP and WAMP MySQL
server version 5.0.11 instances thus far.
Now, aside from al
On Wed, 14 Jan 2015 23:23:54 -0800, Andrew Robinson wrote:
[...]
> A subclass is generally backward compatible in any event -- as it is
> built upon a class, so that one can almost always revert to the base
> class's meaning when desired -- but subclassing allows extended meanings
> to be carried.
Dennis Lee Bieber :
> The main thing to consider is that "killing" a thread doesn't
> work well in Python. Instead the thread has to check for some signal
> telling it to quit.
Alas, a thread can't check anything because it's blocked by I/O.
Marko
--
https://mail.python.org/mailman/listi
And, FWIW, if I compile the 2.7 version on the other machine where it works, in
both code and compiled forms, and then copy .exe back to the main machine, same
error message pops up, so must be something to do with machine's configuration,
etc.
Stay well
Jacob Kruger
Blind Biker
Skype: BlindZA
Hello,
I have a program where I read a line input from the keyboard.
If I remove this portion of code after reading the line, I get an error:
line = line.rstrip()
Why is that? Should stripping be always be used after reading an input in
Python?
Thanks.
--
https://mail.python.org/mailman/listi
Jacob Kruger wrote:
> However, if implement similar code - down to just trying to open a
> connection, wait a few seconds, and then close it again, inside a function
> called from a prior function, in the class am implementing in a file
> called/executed from command line, then, the moment I try t
Abdul Abdul wrote:
> I have a program where I read a line input from the keyboard.
>
> If I remove this portion of code after reading the line, I get an error:
>
> line = line.rstrip()
>
> Why is that? Should stripping be always be used after reading an input in
> Python?
What version of Pytho
Hello,
In the Python documentation, when opening the file in write mode, it
mentions the following:
*writing (truncating the file if it already exists)*
What is meant by "truncating" here? Is it simply overwriting the file
already existing?
Thanks.
--
https://mail.python.org/mailman/listinfo/py
Hi,
Thanks for your reply. I just wanted to understand the 'w' mode in Python.
So, when using it, it will overwrite any existing mode, right?
Thanks.
On Thu, Jan 15, 2015 at 12:13 PM, Adnan Sadzak wrote:
> Hi,
>
> Yes, but You also can open an existing file in 'append' mode.
>
> Cheers,
> Adna
Hi,
Yes, but You also can open an existing file in 'append' mode.
Cheers,
Adnan
On Jan 15, 2015 12:08 PM, "Abdul Abdul" wrote:
> Hello,
>
> In the Python documentation, when opening the file in write mode, it
> mentions the following:
>
> *writing (truncating the file if it already exists)*
> W
On Thu, Jan 15, 2015 at 7:13 PM, Jacob Kruger wrote:
> However, if implement similar code - down to just trying to open a
> connection, wait a few seconds, and then close it again, inside a function
> called from a prior function, in the class am implementing in a file
> called/executed from comma
Abdul Abdul wrote:
> Hello,
>
> In the Python documentation, when opening the file in write mode, it
> mentions the following:
>
> *writing (truncating the file if it already exists)*
> What is meant by "truncating" here? Is it simply overwriting the file
> already existing?
Not quite. It means
Hi,
in 'w' mode, if file does not exist it will create new one (if You have
permissions to write in specified location).
If file exist, it will 'truncate' it or like it is specified in
documentation "*(an existing file with the same name will be erased)*".
I'm not sure what You mean by "existing
- Original Message -
From: "Peter Otten" <__pete...@web.de>
To:
Sent: Thursday, January 15, 2015 12:40 PM
Subject: [OT] Re: MySQL connections
Jacob Kruger wrote:
However, if implement similar code - down to just trying to open a
connection, wait a few seconds, and then close it agai
Le mardi 13 janvier 2015 14:56:24 UTC, Novocastrian_Nomad a écrit :
> On Tuesday, January 13, 2015 at 2:03:30 AM UTC-7, brice DORA wrote:
> > i consume a web service that return a element whose the type is "instance".
> > but this element seem be a dictionary but when i want to use it like a
> >
- Original Message -
From: "Chris Angelico"
You've posted your working versions; can you post a non-working version?
Problem is that works fine in interpreter, but, not when executing it as
part of code in file.
Also, I'm seeing a very small hint here that might indicate a huge
Le mardi 13 janvier 2015 16:01:22 UTC, rand...@fastmail.us a écrit :
> On Tue, Jan 13, 2015, at 04:03, brice DORA wrote:
> > i consume a web service that return a element whose the type is
> > "instance". but this element seem be a dictionary but when i want to use
> > it like a dictionary, i got s
On Thursday, January 15, 2015 at 11:35:11 AM UTC+1, Abdul Abdul wrote:
> Hello,
>
> I have a program where I read a line input from the keyboard.
>
> If I remove this portion of code after reading the line, I get an error:
>
> line = line.rstrip()
>
> Why is that? Should stripping be always be
On Thu, Jan 15, 2015 at 10:59 PM, Jacob Kruger wrote:
> Tried generating .exe with both cx_freeze, and pyInstaller, and the code
> itself, and both versions of executable generate errors, same as running it
> from command line - only difference is the source of the error mentioned in
> error messa
yawar.a...@gmail.com wrote:
> I have implemented what I believe is a
> fairly robust, if ugly-looking, native Python module
I don't know which zen this is, but "Beauty is important".
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Jan 16, 2015 at 12:04 AM, Roy Smith wrote:
> I don't know which zen this is, but "Beauty is important".
How about:
Beautiful is better than ugly.
Readability counts.
If the implementation is hard to explain, it's a bad idea.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
We are happy to announce the dates for EuroPython 2015 in Bilbao, Spain,
this year:
Monday, July 20 - Sunday, July 26
Please mark your calendar. We’d love to meet you all in Bilbao - and hey,
it’s summer, so you might want to combine the conference with a holiday :-)
For upda
On Thu, Jan 15, 2015 at 7:04 AM, Roy Smith wrote:
> I don't know which zen this is, but "Beauty is important".
Kinda near the front:
% python -m this
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
...
:-)
Skip
Skip Montanaro :
> Beautiful is better than ugly.
Yes, our job is to increase the Harmony of the Universe. Useful
applications are happy side effects.
> Explicit is better than implicit.
Corollary: Constructors are usually preferable to factories.
> Simple is better than complex.
Corollary: M
Dennis Lee Bieber :
> On Thu, 15 Jan 2015 11:34:54 +0200, Marko Rauhamaa
>>Alas, a thread can't check anything because it's blocked by I/O.
>
> My response to that then is: design the thread's I/O so that it
> is not blocking... On Linux, maybe a timed select(); Windows? short
> sleeps arou
Marko Rauhamaa wrote:
> Corollary: Make sure the complete definition of every function can be
> seen at once without scrolling.
Problem: I like to view code on a smartphone with a 4x4 pixel screen, and
the scroll bars obscure the text.
Solution: Change the editor to a 1pt font.
--
Steven
--
Ian Kelly wrote:
> On Wed, Jan 14, 2015 at 11:06 PM, Steven D'Aprano
> wrote:
>> I have a function, which I put into an expression like this:
>>
>> def func(a, b=None):
>> global spam
>> import math
>> spam = [a, b]*3
>> print spam
>> del spam
>>
>>
>> value = [1, "hello", int
On Thu, Jan 15, 2015 at 8:29 AM, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> Now I shall try very hard to forget I ever saw it.
There are some things, no matter how hard you try, which cannot be
"unseen". :-)
Skip
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Jan 16, 2015 at 1:24 AM, Steven D'Aprano
wrote:
> Marko Rauhamaa wrote:
>
>> Corollary: Make sure the complete definition of every function can be
>> seen at once without scrolling.
>
> Problem: I like to view code on a smartphone with a 4x4 pixel screen, and
> the scroll bars obscure the
Marko Rauhamaa :
> Dennis Lee Bieber :
>> My response to that then is: design the thread's I/O so that it
>> is not blocking... On Linux, maybe a timed select(); Windows? short
>> sleeps around a non-blocking check for available data... (if console
>> I/O, msvcrt.kbhit(); otherwise may need so
- Original Message -
From: "Chris Angelico"
Cc:
Sent: Thursday, January 15, 2015 2:33 PM
Subject: Re: MySQL connections
On Thu, Jan 15, 2015 at 10:59 PM, Jacob Kruger
wrote:
Tried generating .exe with both cx_freeze, and pyInstaller, and the code
itself, and both versions of execut
- Original Message -
From: "Dennis Lee Bieber"
To:
Sent: Thursday, January 15, 2015 4:22 PM
Subject: Re: [OT] Re: MySQL connections
On Thu, 15 Jan 2015 13:48:34 +0200, "Jacob Kruger"
declaimed the following:
Agree with that, but, like said in prior e-mail, just get windows error
m
On Thu, Jan 15, 2015 at 12:23 AM, Andrew Robinson
wrote:
> Can you name any other language that *does* allow subclassing of
> booleans or creation of new boolean values?
>
> Yes. Several off the top of my head -- and I have mentioned these before.
> They generally come with the extra subclasses pr
On 15/01/2015 11:36, Adnan Sadzak wrote:
On Thu, Jan 15, 2015 at 12:19 PM, Abdul Abdul
Would the two of you please stop top posting, thank you. Either
intersperse your answers, snipping stuff that you're not replying to, or
post at the bottom, in order to make your replies readable. Thanks
On Thursday, January 15, 2015 at 11:25:11 AM UTC+5:30, Yawar Amin wrote:
> Hi all,
>
> First off, to each reader--if you believe that 'multi-line' lambdas are
> no good and we can just use functions, decorators, &c. to accomplish
> everything in Python, advance warning: this post will annoy you.
>
On 15/01/2015 06:39, Ian Kelly wrote:
On Wed, Jan 14, 2015 at 11:06 PM, Steven D'Aprano wrote:
I have a function, which I put into an expression like this:
def func(a, b=None):
global spam
import math
spam = [a, b]*3
print spam
del spam
value = [1, "hello", int, func
On Wed, 14 Jan 2015 23:23:54 -0800
Andrew Robinson wrote:
>
> > Boolean algebra has two values: true and false, or 1 and 0, or humpty
> > and dumpty, or whatever you like to call them.
> You're speaking to an Electrical engineer. I know there are 10 kinds of
> people, those who know binary and
- Original Message -
> From: Jean-Michel Pichavant
> To: Albert-Jan Roskam
> Cc: Python
> Sent: Tuesday, January 13, 2015 5:37 PM
> Subject: Re: class-based class decorator
>
> - Original Message -
>> From: "Albert-Jan Roskam"
>> > From: Jean-Michel Pichavant
>> > I don'
In article <87zj9kb2j0@elektro.pacujo.net>,
Marko Rauhamaa wrote:
> Skip Montanaro :
>
> > Beautiful is better than ugly.
>
> Yes, our job is to increase the Harmony of the Universe. Useful
> applications are happy side effects.
>
> > Explicit is better than implicit.
>
> Corollary: Cons
On 01/15/2015 06:34 PM, Roy Smith wrote:
> The ebb and flow of technology has recently brought me someplace I never
> thought I'd be. Java-land. And what I've discovered is that factories
> are so last year. Apparently builders are the new thing.
It's never clear to me whether all these fancy
On 01/15/2015 12:41 AM, Steven D'Aprano wrote:
On Wed, 14 Jan 2015 23:23:54 -0800, Andrew Robinson wrote:
[...]
A subclass is generally backward compatible in any event -- as it is
built upon a class, so that one can almost always revert to the base
class's meaning when desired -- but subclass
On Thursday, January 15, 2015 at 1:40:09 AM UTC-5, Ian wrote:
> On Wed, Jan 14, 2015 at 11:06 PM, Steven D'Aprano
> wrote:
> [...]
> > def func(a, b=None):
> > global spam
> > import math
> > spam = [a, b]*3
> > print spam
> > del spam
> >
> > value = [1, "hello", int, func]
>
On 16/01/2015 01:44, Michael Torrie wrote:
On 01/15/2015 06:34 PM, Roy Smith wrote:
The ebb and flow of technology has recently brought me someplace I never
thought I'd be. Java-land. And what I've discovered is that factories
are so last year. Apparently builders are the new thing.
It's ne
Hi,
On Thursday, January 15, 2015 at 12:19:31 PM UTC-5, Rustom Mody wrote:
> [...]
> Looked at your suggestions...
> And then got distracted by your other project
> https://github.com/yawaramin/vim-cute-python
>
> Reminded me of what I had written some months ago along similar lines
> http://blog
On 16/01/2015 01:45, Andrew Robinson wrote:
[snipped as far too long to bother anybody with]
I hereby congratulate you on having made it to my Dream Team for having
written the longest pile of drivel I've read in the 12 ish years I've
been hanging around here.
--
My fellow Pythonistas, as
We have high quality Replica Panerai Radiomir watches on sale ,cheapest Replica
Panerai Radiomir watches for sale.
Panerai RADIOMIR 1940 3 DAYS MARINA MILITARE ACCIAIO PAM00587
http://www.rep8.com/panerai-radiomir-1940-3-days-marina-militare-acciaio-pam00587-p-4812.html
Panerai RADIOMIR S.L.C. 3
On Friday, January 16, 2015 at 7:48:20 AM UTC+5:30, Yawar Amin wrote:
> Hi,
>
> On Thursday, January 15, 2015 at 12:19:31 PM UTC-5, Rustom Mody wrote:
> > [...]
> > Looked at your suggestions...
> > And then got distracted by your other project
> > https://github.com/yawaramin/vim-cute-python
> >
On 16/01/2015 02:48, Rustom Mody wrote:
The more forks the merrier!
When counting them, or more specifically handles, thou shalt not stop
counting at three, but thou shalt continue to four, and thou shalt not
continue on to five https://www.youtube.com/watch?v=Cz2-ukrd2VQ
--
My fellow Pyt
On Wednesday, January 14, 2015 at 11:55:11 PM UTC-6, Yawar Amin wrote:
> First off, to each reader--if you believe that 'multi-
> line' lambdas are no good and we can just use functions,
> decorators, &c. to accomplish everything in Python,
> advance warning: this post will annoy you.
Well i'm not
On 15/01/2015 16:40, Jacob Kruger wrote:
If you want to check it out, have attached the full code file - might be
a bit messy/large - but, effectively, right at bottom, launch an
instance of the class a2m, passing through arguments, and then from
within __init__ call convertProcess function, whi
On Friday, January 16, 2015 at 8:33:14 AM UTC+5:30, Mark Lawrence wrote:
> On 16/01/2015 02:48, Rustom Mody wrote:
> >
> > The more forks the merrier!
> >
>
> When counting them, or more specifically handles, thou shalt not stop
> counting at three, but thou shalt continue to four, and thou shalt
On Thursday, January 15, 2015 at 10:06:34 PM UTC-5, Rick Johnson wrote:
> [...]
> Well i'm not religious in that way, but i can tell you that
> you'd be hard pressed to find a subject that did *NOT*
> annoy someone in this group. Heck, it might even be
> something like finding a "holy grail" if we
On Fri, Jan 16, 2015 at 12:44 PM, Michael Torrie wrote:
> On 01/15/2015 06:34 PM, Roy Smith wrote:
>> The ebb and flow of technology has recently brought me someplace I never
>> thought I'd be. Java-land. And what I've discovered is that factories
>> are so last year. Apparently builders are th
Yawar Amin wrote:
> To the responders in the 'beauty of the code' subthread: yes, I realise
> that lambdak is not Pythonic, and it will make angels cry, and all that.
> My view is you should actually be happy that it looks like this. If
> anyone ever asks about multi-line lambdas again, you can po
Rustom Mody wrote:
> Let there be a hundred different versions, then people will
> begin to clamor against the non-necessity of the penury-of-ASCII:
>
> http://blog.languager.org/2015/01/unicode-and-universe.html
Almost 30 years ago, Apple's Hypertalk language allowed, and encouraged, the
use of
- Original Message - > functions. When was the last time those
systems had Windows Update and
reboots performed?
Daily basis.
Think, in line with your other message, will just try rewrite code - and,
issue relating to structure etc. is left over from when pulled it out of
wxPython im
On Friday, January 16, 2015 at 9:46:30 AM UTC+5:30, Steven D'Aprano wrote:
> Rustom Mody wrote:
>
> > Let there be a hundred different versions, then people will
> > begin to clamor against the non-necessity of the penury-of-ASCII:
> >
> > http://blog.languager.org/2015/01/unicode-and-universe.ht
On Thu, Jan 15, 2015 at 6:45 PM, Andrew Robinson
wrote:
> Then I look at python development historically and look at the built in
> class's return values for compares; and I notice; they have over time become
> more and more tied to the 'type' bool. I expect sometime in the future that
> python m
Roy Smith wrote:
> The ebb and flow of technology has recently brought me someplace I never
> thought I'd be. Java-land. And what I've discovered is that factories
> are so last year. Apparently builders are the new thing.
I've never really understand why "abstract factory", "factory method"
On Thu, Jan 15, 2015 at 9:00 PM, Chris Angelico wrote:
> My first response was going to be "Well, you can always add another
> layer of indirection to try to solve your problem", but then I went
> and looked up builders on Wikipedia. Now I'm confused. What can you do
> with a builder that you can'
On 01/15/2015 09:29 PM, Ian Kelly wrote:
>
> In Python you just have one initializer with defaults for the optional
> arguments, so it's not an issue.
What, Python makes it easy? That must be a mistake somewhere! ;)
--
~Ethan~
signature.asc
Description: OpenPGP digital signature
--
https:/
On Fri, Jan 16, 2015 at 12:45 PM, Andrew Robinson
wrote:
>>> I don't have a setting on my email to turn off html. Sorry. Can't help.
>>
>> You are using Thunderbird. You certainly do have such a setting.
>
> It's nice to know that you read and believe what you see in an email header.
> Note: Head
Andrew Robinson wrote:
[...much about bools...]
I'll get back to that shortly, but for now I just want to make a couple of
comments about your HTML email.
>> [...]
>>> I don't have a setting on my email to turn off html. Sorry. Can't help.
>> You are using Thunderbird. You certainly do have suc
63 matches
Mail list logo