On 3 Apr 2011, at 15:30, harrismh777 wrote:
Brian Quinlan wrote:
I suspect that this debate is a sink hole that I won't be able to
escape
from alive but...
... live long and prosper my friend.
Something to consider is that OOP philosophy is technically one of
the most aesthetic concepts
On 3 Apr 2011, at 16:22, geremy condra wrote:
I think we're talking at cross purposes. The point I'm making is that
there are lots of issues where popularity as a third party module
isn't really a viable test for whether a feature is sufficiently
awesome to be in core python. As part of determini
On Sat, Apr 2, 2011 at 4:01 AM, Steven D'Aprano
wrote:
> On Fri, 01 Apr 2011 18:22:01 -0700, geremy condra wrote:
> [...]
I don't have a horse in this race, but I do wonder how much of Python
could actually survive this test. My first (uneducated) guess is "not
very much"- we would
On Sat, Apr 2, 2011 at 10:30 PM, harrismh777 wrote:
> Brian Quinlan wrote:
>>
>> I suspect that this debate is a sink hole that I won't be able to escape
>> from alive but...
>
> ... live long and prosper my friend.
>
> Something to consider is that OOP philosophy is technically one of the most
>
Dennis Lee Bieber wrote:
> On Sat, 02 Apr 2011 14:12:38 +0930, Adrian Casey
> declaimed the following in gmane.comp.python.general:
>
>> Can someone please explain why this simple PyQt4 application never exits?
>>
>> #!/usr/bin/env python
>> from PyQt4 import QtCore
>> import sys
>> class foo(Q
Brian Quinlan wrote:
I suspect that this debate is a sink hole that I won't be able to escape
from alive but...
... live long and prosper my friend.
Something to consider is that OOP philosophy is technically one of the
most aesthetic concepts in all of computer science--- with pure
function
Terry Reedy wrote:
In other words, does the PSF have a responsibility to maintain the
L.sort(cmp= key= reverse=) interface for strictly *philosophical*
principle based on established norms for *any* OOP language?
No.
I say this based on the philosophical principle that obligations are
recipr
Steven D'Aprano wrote:
> It cannot be denied that we are talking exclusively about OOP. End of
> story.
Yes it can be denied.
All data structures and primitives in Python are objects, but the
language is not exclusively object-oriented.
Yeah, I know, Steven. The discussion, from which my q
"David Bernier" wrote in message
news:in7cs201...@news6.newsguy.com...
Joe Snodgrass wrote:
On Apr 1, 10:54 am, David Bernier wrote:
haha doh wrote:
On Mar 31, 3:15 pm, Joe Snodgrasswrote:
[...]
As to which crime was being committed, I'm going with numbers running
or loan sharki
On Sat, Apr 2, 2011 at 8:50 PM, Gnarlodious wrote:
> I get it, you instantiate an object, call a method and get a tuple in
> response. However, here is what I see:
>
process.communicate()
> (b'~/Library/Preferences/iCab/iCab 4 Bookmarks: Permission denied\n',
> b'')
>
> So all I get is the s
On Sat, Apr 2, 2011 at 9:03 PM, Benjamin Kaplan
wrote:
> On Sat, Apr 2, 2011 at 11:50 PM, Gnarlodious wrote:
>> I get it, you instantiate an object, call a method and get a tuple in
>> response. However, here is what I see:
>>
> process.communicate()
>> (b'~/Library/Preferences/iCab/iCab 4 Bo
On Sat, 02 Apr 2011 23:06:52 +0100, BartC wrote:
> However, wasn't there a Python version that used JVM? Perhaps that might
> run on a Java CPU, and it would be interesting to see how well it works.
Not only *was* there one, but there still is: Jython. Jython is one of
the "Big Three" Python imp
On Sun, 03 Apr 2011 12:10:35 +1200, Gregory Ewing wrote:
> Brad wrote:
>
>> I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL or
>> Verilog?
>
> Not that I know of.
>
> I've had thoughts about designing one, just for the exercise.
>
> It's doubtful whether such a thing would
On Apr 2, 9:29 pm, Chris Rebert wrote:
> if proc.returncode: # non-zero exit status, indicating error
> print("Encountered error:")
> print(error_output) # output the error message
>
Like in my previous post, this only outputs an empty string.
Apparently plutil doesn't communicate well.
On Sat, Apr 2, 2011 at 11:50 PM, Gnarlodious wrote:
> I get it, you instantiate an object, call a method and get a tuple in
> response. However, here is what I see:
>
process.communicate()
> (b'~/Library/Preferences/iCab/iCab 4 Bookmarks: Permission denied\n',
> b'')
>
> So all I get is the s
I get it, you instantiate an object, call a method and get a tuple in
response. However, here is what I see:
>>> process.communicate()
(b'~/Library/Preferences/iCab/iCab 4 Bookmarks: Permission denied\n',
b'')
So all I get is the string and no error message, which is the same
thing I get with the
OK I get it, and that seems like it should work. But when I simulate a
permissions error by setting the file to unwritable I get an error:
outdata, errdata = process.communicate()
Traceback (most recent call last):
File "", line 1, in
File "/Library/Frameworks/Python.framework/Versions/3.1/li
On Sat, Apr 2, 2011 at 8:07 PM, Gnarlodious wrote:
> I'm running a shell command like:
> plutil -convert xml1 "~/Library/Preferences/iCab/iCab 4 Bookmarks"
>
> Getting error:
> ~/Library/Preferences/iCab/iCab 4 Bookmarks: Permission denied
>
> How would I capture this error using a method of subpr
On Sat, Apr 2, 2011 at 11:07 PM, Gnarlodious wrote:
> I'm running a shell command like:
> plutil -convert xml1 "~/Library/Preferences/iCab/iCab 4 Bookmarks"
>
> Getting error:
> ~/Library/Preferences/iCab/iCab 4 Bookmarks: Permission denied
>
> How would I capture this error using a method of subp
>
>
> That's quite an interesting idea. I do think a lot of production Python
> code implicitly depends on the GIL and would need rework for multicore.
> For example, code that expects "n += 1" to be atomic, because the
> CPython bytecode interpreter won't switch threads in the middle of it.
> --
On Saturday, April 2, 2011 12:48:44 PM UTC-4, Alex van der Spek wrote:
>
> I can start a windows program on Vista with:
>
> >>> import subprocess
> >>> dva=subprocess.Popen(DVAname,stdin=subprocess.PIPE)
>
> Unfortunately sending keystrokes with communicate() does not appear to work:
>
> >>> dva
I'm running a shell command like:
plutil -convert xml1 "~/Library/Preferences/iCab/iCab 4 Bookmarks"
Getting error:
~/Library/Preferences/iCab/iCab 4 Bookmarks: Permission denied
How would I capture this error using a method of subprocess?
I read the doc at
http://docs.python.org/release/3.0.1/l
On Sat, Apr 2, 2011 at 5:24 PM, Chris Angelico wrote:
> On Sun, Apr 3, 2011 at 9:58 AM, Mag Gam wrote:
> > I suppose I can do something like this.
> > (pseudocode)
> >
> > d={}
> > try:
> > d[key]+=1
> > except KeyError:
> > d[key]=1
> >
> >
> > I was wondering if there is a pythonic way of do
On 4/2/2011 4:29 AM, harrismh777 wrote:
I am responding to both this and a previous post of yours.
Python is not a thing, but an abstraction of multiple parts. It is a
name, a trademark of the Python Software Foundation. It is a Platonic
ideal in the mind of Guido and others. It is a series* o
Sorry, ignore that. I just realised that "return" will be a reserved word, so
that can't happen. Andrew
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Apr 2, 2011 at 5:10 PM, Gregory Ewing
wrote:
> Brad wrote:
>
> I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL
>> or Verilog?
>>
>
> Not that I know of.
>
> I've had thoughts about designing one, just for the exercise.
>
> It's doubtful whether such a thing would ever
On Sat, 02 Apr 2011 17:15:52 -0700, andrew cooke wrote:
> This conflicts with any parameter named "return". Wouldn't it have been
> better to use "->" as the key? Is there any way this can be changed?
Can you give an example of a function with a parameter named return?
--
Steven
--
http://m
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, Apr 3, 2011 at 9:58 AM, Mag Gam wrote:
> I suppose I can do something like this.
> (pseudocode)
>
> d={}
> try:
> d[key]+=1
> except KeyError:
> d[key]=1
>
>
> I was wondering if there is a pythonic way of doing this? I plan on
> doing this many times for various files. Would the python
This conflicts with any parameter named "return". Wouldn't it have been better
to use "->" as the key? Is there any way this can be changed?
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
Brad wrote:
I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL
or Verilog?
Not that I know of.
I've had thoughts about designing one, just for the exercise.
It's doubtful whether such a thing would ever be of practical
use. Without as much money as Intel has to throw at CPU
On 4/2/11 2:05 PM, John Nagle wrote:
There's no easy way to speed up Python; that's been tried.
It needs either a very, very elaborate JIT system, more complex
than the ones for Java or Self, or some language restrictions.
The main restriction I would impose is to provide a call that says:
"OK,
I have a file like this,
cat file
aaa
bbb
aaa
aaa
aaa
awk '{x[$1]++}END { for (i in x) {print i,x[i]} } ' test
bbb 1
aaa 4
I suppose I can do something like this.
(pseudocode)
d={}
try:
d[key]+=1
except KeyError:
d[key]=1
I was wondering if there is a pythonic way of doing this? I plan on
On Sat, Apr 2, 2011 at 3:06 PM, BartC wrote:
>
> However, wasn't there a Python version that used JVM? Perhaps that might
> run on a Java CPU, and it would be interesting to see how well it works.
>
Jython's still around - in fact, it had a new release not too long ago.
Also, Pypy formerly work
On Apr 2, 1:16 am, Robert Kern wrote:
>
> In order to support pickling and its %run feature, IPython makes a fake
> __main__
> module. It looks like profile.run() explicitly imports __main__ to try to run
> the statement there. Honestly, it's been a thorn in our side for a long time,
> but it's a
On Apr 1, 7:11 pm, "eryksun ()" wrote:
> Try this instead:
>
> profile.runctx('timer.test(100, settime.setops, set.Set)', globals=globals(),
> locals=locals())
It works! Thanks a lot
--
http://mail.python.org/mailman/listinfo/python-list
"Brad" wrote in message
news:01bd055b-631d-45f0-90a7-229da4a9a...@t19g2000prd.googlegroups.com...
Hi All,
I've heard of Java CPUs. Has anyone implemented a Python CPU in VHDL
or Verilog?
For what purpose, improved performance? In that case, there's still plenty
of scope for that on conven
QOTW: "Let us cease to nourish those fabled ones who dwell under
bridges." -
Tom Zych
http://groups.google.com/group/comp.lang.python/msg/c1052c962becfc26
Look for "Python Insider" below. Then read through everything
there.
You'll want to know about this one.
Once again, the PSF sp
John Nagle writes:
> There's no easy way to speed up Python; that's been tried.
> It needs either a very, very elaborate JIT system, more complex
> than the ones for Java or Self, or some language restrictions.
Is it worse than Javascript? Tracemonkey and its descendants produce
pretty fast
On 2 Απρ, 19:50, MRAB wrote:
> On 02/04/2011 17:26, Íéêüëáïò Êïýñáò wrote:
>
>
>
>
>
>
>
>
>
> > Hello, after inserting this line if "@" in mail and comment not in
> > ("Ó÷ïëéÜóôå Þ ñùôÞóôå ìå ó÷åôéêÜ", ""):
>
> > iam getting the following error which i dont understand
>
> > **
On Sun, Apr 3, 2011 at 2:48 AM, Alex van der Spek wrote:
> I can start a windows program on Vista with:
>
import subprocess
dva=subprocess.Popen(DVAname,stdin=subprocess.PIPE)
>
> Unfortunately sending keystrokes with communicate() does not appear to work:
>
dva.communicate('F2')
>
On Sat, Apr 2, 2011 at 12:05 PM, John Nagle wrote:
> On 4/2/2011 3:30 AM, Stefan Behnel wrote:
>
>> Cython actually supports most Python language features now (including
>> generators in the development branch), both from Python 2 and Python 3.
>> Chances are that the next release will actually c
On Sun, Apr 3, 2011 at 2:48 AM, Alex van der Spek wrote:
> I can start a windows program on Vista with:
>
import subprocess
dva=subprocess.Popen(DVAname,stdin=subprocess.PIPE)
>
> Unfortunately sending keystrokes with communicate() does not appear to work:
>
dva.communicate('F2')
>
2011/4/3 MRAB :
> I can't see what the "mail = None, comment = None" is meant to be.
If this is to reset the two variables after inserting into the
database, you may want to use either:
mail = None; comment = None # semicolon not comma
or
mail = comment = None # chaining assignment
Is that the
On 4/2/2011 3:30 AM, Stefan Behnel wrote:
Cython actually supports most Python language features now (including
generators in the development branch), both from Python 2 and Python 3.
Chances are that the next release will actually compile most of your
Python code unchanged, or only with minor ad
Hi.
Gtk tutorial on who was in this direction was excellent:
http://www.learnpygtk.org/pygtktutorial/index.html. Does anyone know by
chance if you are in pdf or moved to another site?
Regards.
Cristian Abarzúa F.
--
http://mail.python.org/mailman/listinfo/python-list
Hi.
Does anyone know if pyclutter has a mailing list?
Regards.
Cristian Abarzúa
--
http://mail.python.org/mailman/listinfo/python-list
On 02/04/2011 17:26, Νικόλαος Κούρας wrote:
Hello, after inserting this line if "@" in mail and comment not in
("Σχολιάστε ή ρωτήστε με σχετικά", ""):
iam getting the following error which i dont understand
**
163 # insert
I can start a windows program on Vista with:
import subprocess
dva=subprocess.Popen(DVAname,stdin=subprocess.PIPE)
Unfortunately sending keystrokes with communicate() does not appear to work:
dva.communicate('F2')
this does not produce any result but it does make IDLE become really idle.
Hello, after inserting this line if "@" in mail and comment not in
("Σχολιάστε ή ρωτήστε με σχετικά", ""):
iam getting the following error which i dont understand
**
163 # insert guest comments into database if form was
submi
Santhosh Kumar wrote:
> Hi all,
> I am new to gammu. I did the cofiguration with gammu very
> successfully
> and if I try to send sms with command mode ( sudo echo "sms test from
> santhos pc probably yo vl call me" | /usr/bin/gammu --sendsms TEXT
> +919840411410 ) its working fine. So,
Hi all,
I am new to gammu. I did the cofiguration with gammu very successfully
and if I try to send sms with command mode ( sudo echo "sms test from
santhos pc probably yo vl call me" | /usr/bin/gammu --sendsms TEXT
+919840411410 ) its working fine. So, I try to extend the code along with
pyth
Joe Snodgrass wrote:
On Apr 1, 10:54 am, David Bernier wrote:
haha doh wrote:
On Mar 31, 3:15 pm, Joe Snodgrasswrote:
[...]
As to which crime was being committed, I'm going with numbers running
or loan sharking. There's no reason for any crook to keep any record
of any other crime,
Candide,
Perhaps the Python Babel project has something that might help out?
http://babel.edgewall.org/
If this works out for you can you share your learning with the rest of
us? :)
Thanks and good luck!
Malcolm
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 1, 10:54 am, David Bernier wrote:
> haha doh wrote:
> > On Mar 31, 3:15 pm, Joe Snodgrass wrote:
>
> [...]
>
>
>
> >> As to which crime was being committed, I'm going with numbers running
> >> or loan sharking. There's no reason for any crook to keep any record
> >> of any other crime, ex
Le 02/04/2011 01:10, Chris Rebert a écrit :
"Word" presumably/intuitively; hence the non-standard "[:word:]"
POSIX-like character class alias for \w in some environments.
OK
Are you intentionally excluding CJK ideographs (as not "letters"/alphabetic)?
Yes, CJK ideographs don't belong to t
Le 01/04/2011 22:55, candide a écrit :
How to retrieve the list of all characters defined as alphabetic for the
current locale ?
Thanks for the responses. Alas, neither solution works.
Under Ubuntu :
# --
import string
import locale
print locale.getdefaultlocale()
print
Le 02/04/2011 00:42, Ian Kelly a écrit :
You could use a look-ahead assertion with a captured group:
regexp = r'\b(?P\w+)\b(?=.+\b(?P=dup)\b)'
c = re.compile(regexp, re.IGNORECASE | re.DOTALL)
c.findall(text)
It works fine, lookahead assertions in action is what exatly i was
looking for, ma
I'm pleased to announce the 0.2.1 release of emacs-for-python
*What is emacs-for-python?*
It's a collection of emacs extensions and settings to quickly setup the
editor for python development.
*Main features included:*
- snippets
- pymacs
- ropemacs
- auto-completion
- on the fly
On Fri, 01 Apr 2011 19:29:59 -0700, Paul Rubin wrote:
> Steven D'Aprano writes:
>> What I'm saying is this: cmp is already removed from sorting, and we
>> can't change the past. Regardless of whether this was a mistake or not,
>
> No it's not already removed, I just tried it (in Python 2.6, whic
I suspect that this debate is a sink hole that I won't be able to
escape from alive but...
On 2 Apr 2011, at 19:29, harrismh777 wrote:
In other words, does the PSF have a responsibility to maintain the
L.sort(cmp= key= reverse=) interface for strictly *philosophical*
principle based on e
On Fri, 01 Apr 2011 18:22:01 -0700, geremy condra wrote:
[...]
>>> I don't have a horse in this race, but I do wonder how much of Python
>>> could actually survive this test. My first (uneducated) guess is "not
>>> very much"- we would almost certainly lose large pieces of the string
>>> API and ot
Steven D'Aprano, 02.04.2011 12:04:
On Fri, 01 Apr 2011 17:45:39 +0200, Stefan Behnel wrote:
Steven D'Aprano, 01.04.2011 14:57:
I suggest you check out the competitors:
Shedskin is a Python to C++ compiler; Psyco is a JIT specialising
compiler; Nuitka claims to be a C++ implementation that com
On Fri, 01 Apr 2011 15:37:34 -0400, Terry Reedy wrote:
> On 4/1/2011 3:45 AM, Paul Rubin wrote:
>
>> What happens then is you define a new interface. In Microsoft-speak if
>> the IWhatever interface needs an incompatible extension like new
>> parameters, they introduce IWhatever2 which supports
On Fri, 01 Apr 2011 17:45:39 +0200, Stefan Behnel wrote:
> Steven D'Aprano, 01.04.2011 14:57:
>> I suggest you check out the competitors:
>>
>> Shedskin is a Python to C++ compiler; Psyco is a JIT specialising
>> compiler; Nuitka claims to be a C++ implementation that compiles to
>> machine code;
On Fri, 01 Apr 2011 23:54:53 -0500, harrismh777 wrote:
> It cannot be denied that we are talking exclusively about OOP. End of
> story.
Yes it can be denied. You are categorically *wrong*. Python is a multi-
paradigm language that happens to use objects exclusively as its
fundamental data type,
Chris Angelico wrote:
I've been a C++ programmer for nearly twenty years. I think I know a
few things about OOP. Actually, I've done OOP in non-OO languages;
most notably, plain old C. The OS/2 Presentation Manager class
hierarchy (SOM) is primarily implemented in C, for instance. My point
is tha
[V N]
I tried all your suggestions. No success.
don't forget to run:
make distclean
before you rerun configure
nirinA
--
http://mail.python.org/mailman/listinfo/python-list
Alden Meneses wrote:
> YuyYYyYyUuyuuiaAku. UUuqsuiuiuiui
Please post the complete traceback, throw your phone over the right shoulder
and clap your hands just before it hits the ground. That'll fix your
problem.
--
http://mail.python.org/mailman/listinfo/python-list
69 matches
Mail list logo