Chris Angelico wrote:
> On Fri, Mar 28, 2014 at 12:44 PM, Dave Angel wrote:
>>> if (array m = Regexp.split2(some_pattern, some_string))
>>> do_something(m);
>>>
>>
>> I don't know for certain about if, but you can declare (in C++) a
>> new variable in for, which is a superset of if. Scope en
On Fri, Mar 28, 2014 at 6:46 PM, Peter Otten <__pete...@web.de> wrote:
> Why would you guess if you can check? Just fire up the interactive
> interpreter^W^W compiler:
Partly because there's a difference between valid C++ and valid input
to the G++ compiler :) Knowing that it works with g++ doesn'
Chris Angelico wrote:
> On Fri, Mar 28, 2014 at 6:46 PM, Peter Otten <__pete...@web.de> wrote:
>> Why would you guess if you can check? Just fire up the interactive
>> interpreter^W^W compiler:
>
> Partly because there's a difference between valid C++ and valid input
> to the G++ compiler :) Know
On Fri, Mar 28, 2014 at 7:26 PM, Peter Otten <__pete...@web.de> wrote:
> One of the most elegant applications of these two principles is to
> declare a variable in a condition. Consider:
>
> if (double d = prim(true)) {
> left /= d;
> break;
> }
Okay! Then I withdraw the "or, to my knowled
Hi to all. I'm using sqlite3 with python 2.7 on windows.
I use the query substitution parameters in my query but I need to pass
part of the query to a function, something like (it's not the real
examples, just to clarify the question):
def loadAll(cursor, id, queryAdd = None):
if queryAdd
On Fri, 28 Mar 2014 14:57:11 +1100, Chris Angelico wrote:
> On Fri, Mar 28, 2014 at 2:44 PM, Rustom Mody
> wrote:
>> [BTW I consider the windows registry cleaner than the linux /etc for
>> the same reason]
>
> And if I felt like trolling, I'd point out that there are a lot more
> search engine h
Daniele Forghieri wrote:
> Hi to all. I'm using sqlite3 with python 2.7 on windows.
>
> I use the query substitution parameters in my query but I need to pass
> part of the query to a function, something like (it's not the real
> examples, just to clarify the question):
>
> def loadAll(cursor, i
On Thu, 27 Mar 2014 20:29:17 -0400, Roy Smith wrote:
> In article <5334b747$0$29994$c3e8da3$54964...@news.astraweb.com>,
> Steven D'Aprano wrote:
>
>> On Thu, 27 Mar 2014 08:52:24 -0400, Roy Smith wrote:
>>
>> > In article ,
>> > Chris Angelico wrote:
>> >> It's not "equally braindead", it f
Il 28/03/2014 10:16, Peter Otten ha scritto:
Daniele Forghieri wrote:
Hi to all. I'm using sqlite3 with python 2.7 on windows.
I use the query substitution parameters in my query but I need to pass
part of the query to a function, something like (it's not the real
examples, just to clarify the
On Friday, March 28, 2014 2:34:07 PM UTC+5:30, alister wrote:
> On Fri, 28 Mar 2014 14:57:11 +1100, Chris Angelico wrote:
> > wrote:
> >> [BTW I consider the windows registry cleaner than the linux /etc for
> >> the same reason]
> > And if I felt like trolling, I'd point out that there are a lot m
Rustom Mody :
> On the other hand in linux I find that when something is upgraded and
> needs to upgrade *its own* config files in /etc it can often have
> trouble.
Linux (service) configuration has given me a lot of grief as well.
However, I don't thing anything should need to upgrade config fil
On Friday, March 28, 2014 5:44:48 PM UTC+5:30, Marko Rauhamaa wrote:
> Rustom Mody wrote:
> > On the other hand in linux I find that when something is upgraded and
> > needs to upgrade *its own* config files in /etc it can often have
> > trouble.
> Linux (service) configuration has given me a lot
On 3/27/2014 4:56 PM, Sells, Fred wrote:
I'm trying to use python classes and members to define complex data entry forms
as a meta language
The idea is to use a nice clean syntax like Python to define form content, then
render it as HTML but only as a review tool for users, The actual render
In article <533558fa$0$29994$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
> > Yes. The whole idea of OOD is to decouple internal representation from
> > external behavior.
>
> The *whole* idea? You don't think that encapsulation and inheritance
> might also be involved? *wink*
Rustom Mody :
> On Friday, March 28, 2014 5:44:48 PM UTC+5:30, Marko Rauhamaa wrote:
>> I don't thing anything should need to upgrade config files.
>
> Strange thing to say.
> There may be new config options.
The missing options should default to the old behavior.
> The defaults may be altered w
In article ,
Chris Angelico wrote:
> On Sat, Mar 29, 2014 at 12:10 AM, Marko Rauhamaa wrote:
> > If encapsulation exists outside OO and inheritance is not key to it,
> > what is OO then, a marketing term?
> >
>
> Yep, OO is a marketing term. So's programming - after all, it's just
> flipping b
On Sat, Mar 29, 2014 at 12:22 AM, Roy Smith wrote:
> In article ,
> Chris Angelico wrote:
>
>> On Sat, Mar 29, 2014 at 12:10 AM, Marko Rauhamaa wrote:
>> > If encapsulation exists outside OO and inheritance is not key to it,
>> > what is OO then, a marketing term?
>> >
>>
>> Yep, OO is a market
Hey
Sorry, I should make it more clear. We had a 3rd party that was serving stub
builds and they have their URLs on various pages(random sites). We control the
sub-domain, so i can send that traffic to wherever I want. I am looking to
create logic that takes that incoming parameter and serves a
In article <871txmwjt4@elektro.pacujo.net>,
Marko Rauhamaa wrote:
> what is OO then, a marketing term?
Sometimes, I think it must be :-)
> (It's a different thing, then, that encapsulation and inheritance are
> mutually exclusive principles.)
There're certainly not mutually exclusive. Mu
On Friday, March 28, 2014 6:52:15 PM UTC+5:30, Roy Smith wrote:
> Chris Angelico wrote:
> > On Sat, Mar 29, 2014 at 12:10 AM, Marko Rauhamaa wrote:
> > > If encapsulation exists outside OO and inheritance is not key to it,
> > > what is OO then, a marketing term?
> > Yep, OO is a marketing term.
On Sat, Mar 29, 2014 at 1:35 AM, Steven D'Aprano
wrote:
> It's difficult to pin-point exactly what characteristics of OOP are
> fundamental, but inheritance is surely one of them.
I've always understood OOP to be all about binding code and data
together (methods as part of an object, rather than
Roy Smith :
> There're certainly not mutually exclusive. Mutually exclusive means if
> you have one, you can't have the other.
Correct.
The classic inheritance diamond:
class A(B, C):
def add_bean(self):
??? # how to implement
class B(D): pass
class C(D): pass
cl
Il 28/03/2014 14:53, Peter Otten ha scritto:
Daniele Forghieri wrote:
Il 28/03/2014 10:16, Peter Otten ha scritto:
Daniele Forghieri wrote:
Hi to all. I'm using sqlite3 with python 2.7 on windows.
I use the query substitution parameters in my query but I need to pass
part of the query to a
Roy Smith :
> I'm not sure how "decoupling internal representation from external
> behavior" is substantially different from encapsulation.
Yes, that's encapsulation. The idea of encapsulation is older than OO.
> And, no, I don't think inheritance is a fundamental characteristic of
> OOD, nudge
On 2014-03-28, Daniele Forghieri wrote:
> The worse is the contrary, when I must use C and I think 'Here
> I use a dictionary, at the end convert it in a list that I sort
> with that key ...' only to realize that I don't have dictionary
> and the list I can use are very less manageable that the on
Michael Torrie schrieb:
> I should add, that the only correct way to package Python 3 on RHEL 6 is
> by making the package called "python3" or something that won't collide
> with the system Python 2.x package.
Another option for Fedora and RHEL6: Software Collections
http://developerblog.redh
On Sat, Mar 29, 2014 at 12:10 AM, Marko Rauhamaa wrote:
> If encapsulation exists outside OO and inheritance is not key to it,
> what is OO then, a marketing term?
>
Yep, OO is a marketing term. So's programming - after all, it's just
flipping bits in memory... we only pretend it means anything.
On Fri, 28 Mar 2014 08:30:11 -0400, Roy Smith wrote:
> In article <533558fa$0$29994$c3e8da3$54964...@news.astraweb.com>,
> Steven D'Aprano wrote:
>
>> > Yes. The whole idea of OOD is to decouple internal representation
>> > from external behavior.
>>
>> The *whole* idea? You don't think that
On Thu, Mar 27, 2014, at 11:10, Rustom Mody wrote:
> Just out of curiosity how do/did you type that?
> When I see an exotic denizen from the unicode-universe I paste it into
> emacs and ask "Who are you?"
>
> But with your 'def' my emacs is going a bit crazy!
Your emacs probably is using UCS-2 or
Daniele Forghieri wrote:
> Il 28/03/2014 10:16, Peter Otten ha scritto:
>> Daniele Forghieri wrote:
>>
>>> Hi to all. I'm using sqlite3 with python 2.7 on windows.
>>>
>>> I use the query substitution parameters in my query but I need to pass
>>> part of the query to a function, something like (it
On 3/27/14 7:34 PM, Steven D'Aprano wrote:
> As for enormous number of users who will have
> difficulty typing √ in their source code, they certainly don't count!
> It's good enough that *you* have a solution to that problem, you can type
> alt-v, and anyone who can't simply doesn't matter.
You h
On Fri, Mar 21, 2014 at 1:42 PM, vasudevram wrote:
>> Can anyone - maybe one of the Python language core team, or someone
>> with knowledge of the internals of Python - can explain why this
>> code works, and whether the different occurrences of the name x in
>> the expression, are in differen
On 3/27/14 6:45 PM, Dan Stromberg wrote:
On Fri, Mar 21, 2014 at 1:42 PM, vasudevram wrote:
Can anyone - maybe one of the Python language core team,
or someone with knowledge of the internals of Python - can
explain why this code works, and whether the different
occurrences of the name x in the
On 3/27/14 6:45 PM, Dan Stromberg wrote:
x = [[1,2], [3,4], [5,6]]
[x for x in x for x in x]
I'll give this +1 for playfulness, and -2 for lack of clarity.
I hope no one thinks this sort of thing is good to do in real-life code.
You might try this to flatten a list of lists:
>>> from
On 28/03/2014 21:56, Mark H Harris wrote:
On Fri, Mar 21, 2014 at 1:42 PM, vasudevram wrote:
>> Can anyone - maybe one of the Python language core team, or someone
>> with knowledge of the internals of Python - can explain why this >>
code works, and whether the different occurrences of the na
On 3/28/14 5:12 PM, Mark Lawrence wrote:
No. This has to be a better way to flatten lists:
>>> from functools import reduce
>>> import operator as λ
>>> reduce(λ.add, l)
[1, 2, 3, 4, 5, 6, 7, 8, 9]
Why reinvent yet another way of flattening lists, particulary one that
doesn't use the fa
On Fri, 28 Mar 2014 17:05:15 -0500, Mark H Harris wrote:
> You might try this to flatten a list of lists:
We got that the first four times you posted it. No need for a fifth.
> >>> from functools import reduce
> >>> L = [[1,2,3],[4,5,6],[7],[8,9]]
> >>> import operator as λ
Why would you n
Mark, please stop posting to the newsgroup comp.lang.python AND the
mailing list python-list@python.org. They mirror each other. Your posts
are not so important that we need to see everything twice.
--
Steven D'Aprano
http://import-that.dreamwidth.org/
--
https://mail.python.org/mailman/listi
On Sat, Mar 29, 2014 at 8:18 AM, Mark H Harris wrote:
> We have a unicode system [1] capable of zillions of characters, and most of
> [us] have some qwerty system keyboard [104 keys?] with meta key mappings for
> a few more. Talk about the cart before the horse.
>
> We need a standard input system
On 3/28/14 9:33 PM, Steven D'Aprano wrote:
Mark, please stop posting to the newsgroup comp.lang.python AND the
mailing list python-list@python.org. They mirror each other. Your posts
are not so important that we need to see everything twice.
Its not my fault, Steven. Something goofy is going on
On Sat, 29 Mar 2014 13:45:12 +1100, Chris Angelico wrote:
> Considering that we have ten fingers, having 1114112 keys would be quite
> impractical. The smallest number of keys to render that many characters
> would probably be 21, but it'd be toggling data into a computer, rather
> than typing; *e
On 3/28/14 9:45 PM, Chris Angelico wrote:
On Sat, Mar 29, 2014 at 8:18 AM, Mark H Harris wrote:
We have a unicode system [1] capable of zillions of characters, and most of
[us] have some qwerty system keyboard [104 keys?] with meta key mappings for
a few more. Talk about the cart before the hor
On Sat, Mar 29, 2014 at 2:04 PM, Mark H Harris wrote:
> Its not my fault, Steven. Something goofy is going on. My address says only
> comp.lang.python
Well, something's causing your messages to come out multiple times and
with different subject lines :)
ChrisA
--
https://mail.python.org/mailman
On Saturday, March 29, 2014 8:34:19 AM UTC+5:30, Mark H. Harris wrote:
> On 3/28/14 9:33 PM, Steven D'Aprano wrote:
> > Mark, please stop posting to the newsgroup comp.lang.python AND the
> > mailing list (...). They mirror each other. Your posts
> > are not so important that we need to see everyth
On 3/28/14 9:31 PM, Steven D'Aprano wrote:
On Fri, 28 Mar 2014 17:05:15 -0500, Mark H Harris wrote:
>>> from functools import reduce
>>> L = [[1,2,3],[4,5,6],[7],[8,9]]
>>> import operator as λ
>>> reduce(λ.add, L)
[1, 2, 3, 4, 5, 6, 7, 8, 9]
Furthermore, this is a very inefficien
On 3/28/14 10:21 PM, Chris Angelico wrote:
Well, something's causing your messages to come out multiple times and
with different subject lines :)
I changed the subject line ( which I did twice because the first
post said it had an error and did not post; which apparently was a lie).
Th
On Sat, Mar 29, 2014 at 2:18 PM, Mark H Harris wrote:
> On 3/28/14 9:45 PM, Chris Angelico wrote:
>> ... uhh... how does the QWERTY system demonstrate Microsoft's
>> control?? There's more than a hundred years of gap between them, and
>> in the wrong order.
>
>
>You know the answer to this que
On Fri, 28 Mar 2014 16:18:25 -0500, Mark H Harris wrote:
> We need a standard input system not controlled by Microsoft where-by
> everyone in the entire world can enter unicode (with customization)
> easily and inexpensively. A unicode keyboard would be nice.
Under what circumstances do you see y
On 3/28/14 10:51 PM, Steven D'Aprano wrote:
Why must
everyone in the world be stuck with a U.S. Royal typewriter keyboard for
two or three hundred years?
You are being patronising to the 94% of the world that is not from the
USA. Do you honestly think that people all over the world have been u
Mark H Harris writes:
> > On Sat, Mar 29, 2014 at 8:18 AM, Mark H Harris
> > wrote:
> >> We need a standard input system not controlled by Microsoft...
>
> […] Does your keyboard have the "Windows" emblem|logo on the meta
> key(s) on lower right, lower left?
No, mine has a Tux logo, because it
On 3/28/14 11:07 PM, Mark H Harris wrote:
Think, virtual keyboard, on a keytoplayout... but separate from any
touchable screen. And, think mac keytops (or flatter) not the plastic
IBM typewriter like keyboards of today. Think beyond.
What if~ when I select my UK standard keytop mappings (from
On 3/28/14 11:16 PM, Mark H Harris wrote:
I am able to type in Greek, well I've been doing it for about 12 years,
but it would be s much better if the keytopsection actually morphed.
What if, when you opened your new computer in Botswana, and you selected
your language in gnu/linux lang s
On 3/28/14 11:18 PM, Ben Finney wrote:
On the inexpensive end, Think Penguin will also happily ship Tux logo
stickers to go on top of the Super key
https://www.thinkpenguin.com/gnu-linux/tux-super-key-keyboard-sticker>.
That's ~cool. I can now remove that nasty M$ meta key. Actually, I got
so
On 3/28/14 10:51 PM, Steven D'Aprano wrote:
You are being patronising to the 94% of the world that is not from the
USA. Do you honestly think that people all over the world have been using
computers for 30 or 40 years without any way to enter their native
language?
uh, pretty much. That's why
On Sat, Mar 29, 2014 at 3:07 PM, Mark H Harris wrote:
> You think ~sooo three dimensionally.
Yeah Doc, I have a real problem with that. -- Marty McFly
> Picture this ~a unicode keyboard with morphing keytops (digital ink, light
> emitting); a standard layout of keys that are touch sensitive, ar
On Saturday, March 29, 2014 12:25:45 AM UTC+5:30, rand...@fastmail.us wrote:
> On Thu, Mar 27, 2014, at 11:10, Rustom Mody wrote:
> > Just out of curiosity how do/did you type that?
> > When I see an exotic denizen from the unicode-universe I paste it into
> > emacs and ask "Who are you?"
> > But w
On Sat, Mar 29, 2014 at 3:40 PM, Mark H Harris wrote:
> On 3/28/14 10:51 PM, Steven D'Aprano wrote:
>>
>> You are being patronising to the 94% of the world that is not from the
>> USA. Do you honestly think that people all over the world have been using
>> computers for 30 or 40 years without any
On Sat, Mar 29, 2014 at 4:00 PM, Rustom Mody wrote:
> My current diagnosis (with the help of more knowledgeable folks than myself)
> is that its a font problem.
>
> There simply doesn't exist a font (or more likely I dont know of) that
> - is readable
> - is scaleable
> - spans the whole 17*65536
On Sat, Mar 29, 2014 at 3:26 PM, Mark H Harris wrote:
> On 3/28/14 11:18 PM, Ben Finney wrote:
>
>> On the inexpensive end, Think Penguin will also happily ship Tux logo
>> stickers to go on top of the Super key
>>
>> https://www.thinkpenguin.com/gnu-linux/tux-super-key-keyboard-sticker>.
>
>
> Th
On Saturday, March 29, 2014 10:38:47 AM UTC+5:30, Chris Angelico wrote:
> On Sat, Mar 29, 2014 at 3:40 PM, Mark H Harris wrote:
> > On 3/28/14 10:51 PM, Steven D'Aprano wrote:
> >> You are being patronising to the 94% of the world that is not from the
> >> USA. Do you honestly think that people all
Rustom Mody writes:
> At least out here:
> - gnu-unifont does not cover things outside BMP
That implies the GNU Unifont contains no characters from outside the
BMP, which is untrue.
Rather, the GNU Unifont's claim to fame is that it covers all characters
in the BMP. But it does contain many cha
On 3/29/14 12:13 AM, Chris Angelico wrote:
When I first met Windows keys, I just popped 'em off and left a gap.
Worked fine.
ha! see.. it popped you off too! :-)) I found it arrogant to the
max to place their stupid logo on (my) keyboard. What if every company
out there wanted "their" o
On 3/29/14 12:08 AM, Chris Angelico wrote:
Okay. History lesson time.
Tell me what is the lingua franka today?
Is it, E n g l i s h ?
For many many many years people all over the earth were using
English and ASCII to communicate with early computers... they still are.
Almost e
On Sat, Mar 29, 2014 at 4:51 PM, Mark H Harris wrote:
> On 3/29/14 12:08 AM, Chris Angelico wrote:
>
>>
>> Okay. History lesson time.
>>
>
>Tell me what is the lingua franka today?
>
>Is it, E n g l i s h ?
>
>For many many many years people all over the earth were using English and
On Saturday, March 29, 2014 11:21:17 AM UTC+5:30, Mark H. Harris wrote:
> On 3/29/14 12:08 AM, Chris Angelico wrote:
> > Okay. History lesson time.
> Tell me what is the lingua franka today?
> Is it, E n g l i s h ?
I wonder Mark, if because you are communicating with your mailing sof
65 matches
Mail list logo