On Sat, Aug 23, 2014 at 3:56 PM, dieter wrote:
> Chris Angelico writes:
>> Frankly, I wouldn't write OO in anything, because I think the entire
>> concept of a WYSIWYG editor is flawed.
>
> That would limit (so called) office applications to experts only.
> But the success of these applications r
Chris Angelico writes:
> Frankly, I wouldn't write OO in anything, because I think the entire
> concept of a WYSIWYG editor is flawed.
That would limit (so called) office applications to experts only.
But the success of these applications relies on the fact, that
even a complete novice can immedi
Christian Gollwitzer writes:
> ...
> * Java: I don't see that it is much higher level than C++. It has a
> GC, but that's all, and you can have that in C++, too, if you want. On
> the other hand, you loose the metaprogramming facilities provided by
> C++ templates (needs a guru to make a library,
On Friday, August 22, 2014 9:25:02 AM UTC+8, luofeiyu wrote:
> class C(object):
>
Well, in python class is treated
as onte of the first class built in
operations.
class "new_class_ame" ( parentclasses)
Please check this syntax first in Python.
> a = 'abc'
>
> def __getattri
On Thu, Aug 21, 2014 at 7:25 PM, luofeiyu wrote:
> >>> c2.d.a
> __get__() is called <__main__.C2 object at 0x0297BE10> C2'>
> __getattribute__() is called
> 'abc'
>
> Why the result of c2.d.a is not :
>
> __get__() is called <__main__.C2 object at 0x0297BE10> C2'>
> __getattribu
On 8/22/2014 9:09 PM, Y@i$el wrote:
A mi si me ha dado problemas. No tengo forma de decirle que se ejecute como
usuario www-data y cuando lo intento deja de funcionar abruptamente.
I can almost, but not really understand and translate the question.
Possiblemente debe visitar un grupo in espan
On 8/22/2014 7:28 PM, Ben Finney wrote:
Terry Reedy writes:
By posting code with an extra indent, you make it imposible to run by
just cutting and pasting. You should already know that.
I commonly do that,
It is unnecessary and extra work on both ends. It is also ambiguous in
that there m
On 22Aug2014 12:27, Travis Griggs wrote:
I’m curious if there’s a technique one could use to get half way there.
Basically, with minimal modifications, I’d like to get it running at startup.
So I can put a line like this in rc.local
nohup python3 myMain.py 2>&1 > /var/log/mylog.log &
Just
A mi si me ha dado problemas. No tengo forma de decirle que se ejecute como
usuario www-data y cuando lo intento deja de funcionar abruptamente. Saludos.
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Aug 21, 2014 at 12:55 AM, wrote:
> Hi, just wanting to do a shot in the dark,but maybe this syntax is Pythonic
> (in a "we-are-all-grown-ups" fashion, ahem)enough to get its way into the
> language
> this is what yours truly thinks: don't we all know that ":" means the next
> token mus
On Thu, Aug 21, 2014 at 12:55 AM, wrote:
> Hi, just wanting to do a shot in the dark,but maybe this syntax is Pythonic
> (in a "we-are-all-grown-ups" fashion, ahem)enough to get its way into the
> language
> this is what yours truly thinks: don't we all know that ":" means the next
> token mus
One final version:
class Contact(object):
def __init__(self, email="haha@haha"):
self.email = email
def _get_email(self):
return self._the_secret_private_email
def _set_email(self, value):
self.self._the_secret_private_email = value
email = property(_get_em
Terry Reedy writes:
> By posting code with an extra indent, you make it imposible to run by
> just cutting and pasting. You should already know that.
I commonly do that, as I do with most block quotes in plain text.
I think it's a reasonable expectation that programmers, reading a forum
about p
On 8/22/2014 10:26 AM, luofeiyu wrote:
System:win7+python34.
class Contact(object):
def __init__(self, first_name=None, last_name=None,
display_name=None, email=None):
self.first_name = first_name
self.last_name = last_name
On Sat, Aug 23, 2014 at 1:46 AM, Jiafan Zhou wrote:
> Another separate question in relation, do I really need to install the
> python-nose in ubuntu. Can I not just go directly to pip and install the nose
> library?
>
If you're going to use pip to install nose, I recommend not having it
install
On Sat, Aug 23, 2014 at 7:56 AM, Michael Torrie wrote:
> On 08/22/2014 03:49 PM, Chris Angelico wrote:
>> My main issue with callbacks in either C or C++ is that functions
>> aren't first-class objects. You can pass function pointers around (and
>> you don't need (void *) to do it, you can use typ
On 08/22/2014 03:49 PM, Chris Angelico wrote:
> My main issue with callbacks in either C or C++ is that functions
> aren't first-class objects. You can pass function pointers around (and
> you don't need (void *) to do it, you can use typed function pointers
> just fine), but you can't actually con
On Sat, Aug 23, 2014 at 7:38 AM, Michael Torrie wrote:
> On 08/22/2014 02:06 PM, Marko Rauhamaa wrote:
>> I tend to think the opposite: C++ barely has a niche left. I definitely
>> wouldn't want to use C++ very far from its (very narrow) sweet spot.
>
> I agree that it's niche is narrowing. But i
On 08/22/2014 02:06 PM, Marko Rauhamaa wrote:
> I tend to think the opposite: C++ barely has a niche left. I definitely
> wouldn't want to use C++ very far from its (very narrow) sweet spot.
I agree that it's niche is narrowing. But it's still pretty wide and
widely used. Many adobe products are
On Fri, Aug 22, 2014 at 1:16 PM, Neil D. Cerutti wrote:
>> Emacs and vim both have huge learning curves that I've decided aren't
>> worth climbing. Notepad++ is an excellent GUI text editor for Windows.
>> Geany is nearly as good, and runs on anything.
>
>
> They do have a very long learning incl
On 22/08/2014 21:20, Chris Angelico wrote:
On Sat, Aug 23, 2014 at 5:46 AM, Seymore4Head
wrote:
On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head
wrote:
Is there a way to indent everything again?
Say I have a while statement with several lines of code and I want to
add a while outside that.
On Sat, Aug 23, 2014 at 5:27 AM, Travis Griggs wrote:
> I’m curious if there’s a technique one could use to get half way there.
> Basically, with minimal modifications, I’d like to get it running at startup.
Okay, hold on a minute there. There are two quite separate things
here: daemonization, a
On Sat, Aug 23, 2014 at 5:46 AM, Seymore4Head
wrote:
> On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head
> wrote:
>
>>Is there a way to indent everything again?
>>
>>Say I have a while statement with several lines of code and I want to
>>add a while outside that. That means indenting everything.
On 8/22/2014 3:54 PM, Rob Gaddi wrote:
On Fri, 22 Aug 2014 15:46:33 -0400
Seymore4Head wrote:
On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head
wrote:
Is there a way to indent everything again?
Say I have a while statement with several lines of code and I want to
add a while outside that.
Rob Gaddi :
> Emacs and vim both have huge learning curves
Really now?
When you start emacs, it advises you to start the builtin tutorial.
That's how I learned it in the 1980's and didn't experience any learning
curve.
Nowadays, emacs has a GUI that makes you productive immediately without
any
>> assembly
>> C
>>C++
>>Go
>> Java/C#
>> Python
>> Scheme
>> Bash
>
>
> My point is that this picture is incomplete: it shows the programming
> languages as *poi
On Aug 21, 2014, at 12:55 AM, icefap...@gmail.com wrote:
> Hi, just wanting to do a shot in the dark,but maybe this syntax is Pythonic
> (in a "we-are-all-grown-ups" fashion, ahem)enough to get its way into the
> language
> this is what yours truly thinks: don't we all know that ":" means the n
On 22 August 2014 19:44:39 BST, "Neil D. Cerutti" wrote:
>This sort of simple task [indenting blocks of text] is why fancy text editors
>were invented.
>
>I use and recommend gvim (press > in select mode using the standard
>python plugin), but there are plenty of options out there.
Even with
If you want to add Cython to that (overly simplified) graph, you might get
something like this:
Christian Gollwitzer schrieb am 22.08.2014 um 21:25:
> as |--|
> c ||
> c++ |---|
Cython ||
> python|---
On Fri, 22 Aug 2014 15:46:33 -0400
Seymore4Head wrote:
> On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head
> wrote:
>
> >Is there a way to indent everything again?
> >
> >Say I have a while statement with several lines of code and I want to
> >add a while outside that. That means indenting ever
On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head
wrote:
>Is there a way to indent everything again?
>
>Say I have a while statement with several lines of code and I want to
>add a while outside that. That means indenting everything. Is there
>a global way to do that?
Ok.so the answer is no
Travis Griggs :
> nohup python3 myMain.py 2>&1 > /var/log/mylog.log &
I don't recommend this (ubiquitous) technique. You should keep your
daemon in the foreground until it has reserved and initialized all the
resources it needs and daemonize only then. That way the caller does not
have to guess w
Am 22.08.14 11:29, schrieb Marko Rauhamaa:
So my advise is, use as high-level programming language as you can. If
you can't, deal with it, but often you can break your system into parts
where only a small corner needs to be implemented at the low level.
Agreed. This is called Ousterhout's dicho
I have a python3 program that performs a long running service on a semi
embedded linux device. I've been in the prototyping stage. I just run it from
the command line and use print() statements to let me know the thing is making
acceptable process.
At some point, I need to properly daemonize i
On Fri, Aug 22, 2014 at 11:44 AM, Neil D. Cerutti wrote:
> On 8/22/2014 2:19 PM, Seymore4Head wrote:
>>
>> Is there a way to indent everything again?
>>
>> Say I have a while statement with several lines of code and I want to
>> add a while outside that. That means indenting everything. Is there
On Friday, August 22, 2014 8:26:00 AM UTC+8, Chris Angelico wrote:
> On Fri, Aug 22, 2014 at 4:05 AM, Joseph Martinot-Lagarde
>
> wrote:
>
> > For information, Cython works with C++ now:
>
> > http://docs.cython.org/src/userguide/wrapping_CPlusPlus.html.
>
>
>
> Now isn't that cool!
>
>
>
On 8/22/2014 2:19 PM, Seymore4Head wrote:
Is there a way to indent everything again?
Say I have a while statement with several lines of code and I want to
add a while outside that. That means indenting everything. Is there
a global way to do that?
This sort of simple task is why fancy text e
On Fri, Aug 22, 2014 at 1:19 PM, Seymore4Head
wrote:
> Say I have a while statement with several lines of code and I want to
> add a while outside that. That means indenting everything. Is there
> a global way to do that?
Depends on your text editor/IDE. In Emacs using either python-mode.el
or
Is there a way to indent everything again?
Say I have a while statement with several lines of code and I want to
add a while outside that. That means indenting everything. Is there
a global way to do that?
--
https://mail.python.org/mailman/listinfo/python-list
Robin Becker schrieb am 22.08.2014 um 17:50:
> I'm trying to build a bunch of extensions in a 2.7 virtual environment on a
> centos 7 VM. I don't know centos very well and I understand centos 7 is
> quite new
>
>> building 'lxml.etree' extension
>>
>> creating build/temp.linux-x86_64-2.7
>>
>> cre
Skip Montanaro :
> On Fri, Aug 22, 2014 at 7:51 AM, Neil D. Cerutti wrote:
>> But I contend you do need to be a Medieval Scholar to compile and link it.
>
> That's only because whoever wrote your Makefile wasn't skilled in the
> art of make recipes. :-)
Make shouldn't be involved in any serious
Le 22/08/2014 02:26, Chris Angelico a écrit :
On Fri, Aug 22, 2014 at 4:05 AM, Joseph Martinot-Lagarde
wrote:
For information, Cython works with C++ now:
http://docs.cython.org/src/userguide/wrapping_CPlusPlus.html.
Now isn't that cool!
Every time Cython gets discussed, I get a renewed desir
On 08/22/2014 09:46 AM, Jiafan Zhou wrote:
> I guess it must be the 1.3.3 version being used in the system, but
> why apt-get still reports 1.1.2-3 and this worries me a little.
>
> Another separate question in relation, do I really need to install
> the python-nose in ubuntu. Can I not just go di
I'm trying to build a bunch of extensions in a 2.7 virtual environment on a
centos 7 VM. I don't know centos very well and I understand centos 7 is quite new
building 'lxml.etree' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
creating build/temp.linu
Hi all,
Need some explanation on my already done python library installation.
I was informed to work on a python project which requires a number of python
libraries.
One of them is the python-nose unit testing framework
Since I am in Ubuntu 12.04 lts, the first thing I did was to issue the bel
Luofeiyu, you are getting stuck on basic questions. Before working with
advanced features like properties, you should learn the simply features.
luofeiyu wrote:
> >>> class Contact(object):
> ... def __init__(self, first_name=None, last_name=None,
> ... display_name=None, em
>>> class Contact(object):
... def __init__(self, first_name=None, last_name=None,
... display_name=None, email="haha@haha"):
... self.first_name = first_name
... self.last_name = last_name
... self.display_name = display_name
... self.email = e
On Fri, Aug 22, 2014 at 10:58 AM, luofeiyu wrote:
class Contact(object):
> ... def __init__(self, first_name=None, last_name=None,
> ... display_name=None, email="haha@haha"):
> ... self.first_name = first_name
> ... self.last_name = last_name
> ...
On 08/22/2014 05:51 AM, FreddieH wrote:
> I am having trouble installing Python on my Windows 7 (x64) Laptop.
> The MSI file for Python 3.4.1 that I have downloaded got to the set up page
> containing 'Please wait while the Installer installs Python 3.4.1' and asks
> for administrator permission
On 08/21/2014 06:54 AM, David Palao wrote:
> Hello,
> I consider myself a python programmer, although C++ was one of the
> first languages I learned (not really deeply and long time ago).
>
> Now I decided to retake C++, to broaden my view of the business.
> However, as I progress in learning C++,
On Fri, Aug 22, 2014 at 10:42 AM, luofeiyu wrote:
> how to fix the code then?
>
> On 8/22/2014 10:36 PM, Larry Martell wrote:
>>
>> The 'in' operator requires an iterable. When you do 'self.email = email'
>> set_email gets called and value is None.
>
>
You might want to set your default values to
how to fix the code then?
On 8/22/2014 10:36 PM, Larry Martell wrote:
The 'in' operator requires an iterable. When you do 'self.email =
email' set_email gets called and value is None.
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, Aug 22, 2014 at 10:26 AM, luofeiyu wrote:
> System:win7+python34.
>
> class Contact(object):
> def __init__(self, first_name=None, last_name=None,
> display_name=None, email=None):
> self.first_name = first_name
> self.last_name = la
System:win7+python34.
class Contact(object):
def __init__(self, first_name=None, last_name=None,
display_name=None, email=None):
self.first_name = first_name
self.last_name = last_name
self.display_name = display_name
On Fri, Aug 22, 2014 at 10:51 PM, Neil D. Cerutti wrote:
> C itself is very simple (albeit not simple to use). But I contend you do
> need to be a Medieval Scholar to compile and link it. My mind boggles
> watching a ./configure vomit ASCII all over my screen. I have to avert my
> eyes, make a wis
On Fri, Aug 22, 2014 at 7:51 AM, Neil D. Cerutti wrote:
> But I contend you do need to be a Medieval Scholar to compile and link it.
That's only because whoever wrote your Makefile wasn't skilled in the art
of make recipes. :-)
Skip
--
https://mail.python.org/mailman/listinfo/python-list
On 8/22/2014 5:29 AM, Marko Rauhamaa wrote:
C is readily supported by all extension APIs. Its calling conventions
are stable and well-understood. Its runtime requirements are trivial.
Plus, you don't have to be a Medieval Scholar to program in it.
C itself is very simple (albeit not simple to u
I am having trouble installing Python on my Windows 7 (x64) Laptop.
The MSI file for Python 3.4.1 that I have downloaded got to the set up page
containing 'Please wait while the Installer installs Python 3.4.1' and asks for
administrator permission to continue the installation.
After I give admin
Chris Angelico :
> On Fri, Aug 22, 2014 at 6:05 PM, Christian Gollwitzer wrote:
>> I'm not even convinced that the development time is significantly
>> lower in Python within this overlap.
>
> It usually will be, though not always.
Even more to the point, it is far easier to program correctly in
On Fri, Aug 22, 2014 at 6:05 PM, Christian Gollwitzer wrote:
> I'm not even convinced that the development time is significantly lower in
> Python within this overlap.
It usually will be, though not always.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
Am 21.08.14 14:54, schrieb David Palao:
I consider myself a python programmer, although C++ was one of the
first languages I learned (not really deeply and long time ago).
Now I decided to retake C++, to broaden my view of the business.
However, as I progress in learning C++, I cannot take out o
Luofeiyu, you are asking very advanced questions. How experienced with
Python are you? Asking about __get__ is nearly never needed. __get__ is
used internally by built-ins like property, classmethod and staticmethod.
99.99% of Python programmers will never need to write a __get__ method, and
of the
luofeiyu wrote:
> class C(object):
> a = 'abc'
> def __getattribute__(self, *args, **kwargs):
> print("__getattribute__() is called")
> return object.__getattribute__(self, *args, **kwargs)
> def __getattr__(self, name):
> print("__getattr__() is called ")
class C(object):
a = 'abc'
def __getattribute__(self, *args, **kwargs):
print("__getattribute__() is called")
return object.__getattribute__(self, *args, **kwargs)
def __getattr__(self, name):
print("__getattr__() is called ")
return name + " from getatt
64 matches
Mail list logo