harrismh777 wrote:
You guys want one more...?
... we can't import tkconstants any longer nope.
import tkinter.tkconstants
oops... so upset I finger-checked... long day...
This works:
import tkinter
from tkinter.constants import *
This used to work:
import Tkinter
from Tkconstants
On Wed, Apr 6, 2011 at 10:57 PM, harrismh777 harrismh...@charter.net wrote:
harrismh777 wrote:
You guys want one more...?
... we can't import tkconstants any longer nope.
import tkinter.tkconstants
oops... so upset I finger-checked... long day...
This works:
import tkinter
from
Hello again, Philip,
I really appreciate you sticking with me. Hopefully this will help
someone else, too. I've done some more reading, and will offer some
minimal code below.
I've known about this page for a while, and it describes some of the
unconventional things one needs to consider when
On Thu, 07 Apr 2011 00:25:46 -0500, harrismh777 wrote:
The gnu suite of tools and the linux kernel were the keys to unlocking
Microsoft lock-in... brilliant technologies for innovation and freedom.
I used to believe this too, but then I found I was relying on Linux and
GNU software so much
On Wed, 06 Apr 2011 21:04:44 -0700, Brad Bailey wrote:
I dont understand why this is such a big deal. Nor do i understand why
google can't find a reasonable answer. If one can't figure out from the
title what I'm trying to do, then a look at code should firmly plant the
intent. The general
Hi EveryBody This Program To Hack Sky Pe Account
Just Paste A Email For Sky Pe And Click (Get Pass) Yeah Its True Try
It Its Free From Here
http://www.4shared.com/file/wFtoiI7z/Promar_Hack_Skype_21.html
Download Now
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 07 Apr 2011 00:03:54 -0500, harrismh777 wrote:
Ben Finney wrote:
It's difficult to take a claim of “free” seriously for a technology
(Mono) that knowingly implements techniques (the “C#” language, the
“.NET” platform, etc.) covered by specific idea patents held by an
entity that
On Thu, 07 Apr 2011 07:50:56 +1000, Ben Finney wrote:
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes:
Mono is free, open source software that is compatible with .NET
[…]
It's difficult to take a claim of “free” seriously for a technology
(Mono) that knowingly implements
Following up to my own post...
On Apr 6, 11:40 pm, John Ladasky lada...@my-deja.com wrote:
What's up with that?
Apparently, what's up is that I will need to implement a third
method in my ndarray subclass -- namely, __reduce__.
Am 07.04.2011 02:06, schrieb Chris Angelico:
On Thu, Apr 7, 2011 at 6:38 AM, Martin v. Loewis mar...@v.loewis.de wrote:
You can adjust the implementations of PyMem_Malloc and PyObject_Malloc.
This would catch many allocations, but not all of them. If you adjust
PyMem_MALLOC instead of
On Thu, Apr 7, 2011 at 5:39 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Do you want to know who scares me? Google and Apple. Google, because
they're turning software from something you run on your own computer to
something you use on a distant server you have no control
Hello,
Is there support/idioms/suggestions for using optparse without a
command line?
I have a code which used to be called through subprocess. The whole
flow of the code is based on what 'options' object from optparse
contains.
Now I want to call this code without subprocessing. What I did
On Apr 7, 1:58 am, Nobody nob...@nowhere.com wrote:
On Wed, 06 Apr 2011 02:20:22 -0700, Pierre GM wrote:
I need to run a third-party binary from a python script and retrieve
its output (and its error messages). I use something like
process = subprocess.Popen(options, stdout=subprocess.PIPE,
On Apr 7, 5:12 am, Terry Reedy tjre...@udel.edu wrote:
On 4/6/2011 7:58 PM, Nobody wrote:
On Wed, 06 Apr 2011 02:20:22 -0700, Pierre GM wrote:
I need to run a third-party binary from a python script and retrieve
its output (and its error messages). I use something like
process =
I don't know whether it's ironic or in some way Pythonesque, but this
is the only mailing list that I've seen significant amounts of spam
on...
Maybe spam filters have trouble distinguishing between Monty Python
and unsolicited commercial email?
Chris Angelico
Somewhat amused
--
All right... somebody is sacked (er, fired) !
Who moved reload()?
This kinda stuff is driving me bonkers... there was no need to move
reload() anyplace...
... so for those of you who haven't found out yet, if you want to reload
a module in 3.x you have to import reload() first from module
On Apr 7, 7:17 pm, Chris Angelico ros...@gmail.com wrote:
On Thu, Apr 7, 2011 at 5:39 PM, Steven D'Aprano
steve+comp.lang.pyt...@pearwood.info wrote:
Do you want to know who scares me? Google and Apple. Google, because
they're turning software from something you run on your own computer to
If you look at the code in
http://hg.python.org/cpython/file/6adbf5f3dafb/Lib/collections/__init__.py#l49
the attribute __root is checked for, and only created if missing. Why?
I ask because, from what I understand, the __init__ method will only be called
when the object is first being
Roy Smith r...@panix.com writes:
I'm not sure how to parse:
We cannot use ssh as root remote connectivity as well.
but with 1000's of servers, I really don't see any alternative to ssh,
with key authentication. You don't really propose to type passwords at
1000's of machines, do you?
I
Tim Johnson t...@johnsons-web.com writes:
I have python 2.6.5 on my main workstation with ubuntu 10.04. I am
attempting to set up a temporary test platform on an asus netbook
with slax running from an SD card. I have installed a python 2.7
module on the slax OS. (I can't find a python 2.6.5
On Wednesday, April 6, 2011 11:03:31 AM UTC-4, Chris Angelico wrote:
I don't know whether it's ironic or in some way Pythonesque, but this
is the only mailing list that I've seen significant amounts of spam
on...
My impression is that there is much more spam on comp.lang.python than on the
Thanks, that explains a lot.
Adriaan Renting.
On 4/6/2011 at 07:43 PM, Dan Stromberg drsali...@gmail.com wrote:
On Wed, Apr 6, 2011 at 12:47 AM, Adriaan Renting rent...@astron.nl
wrote:
This solves the problem using stdin=open(os.devnull, 'rb') instead
of
stdin=None makes it run even if
On Apr 7, 2011, at 3:41 AM, John Ladasky wrote:
Following up to my own post...
On Apr 6, 11:40 pm, John Ladasky lada...@my-deja.com wrote:
What's up with that?
Apparently, what's up is that I will need to implement a third
method in my ndarray subclass -- namely, __reduce__.
is there any fighting games(street fighter, mortal kombat, etc) made in
python?
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday, April 7, 2011 2:43:09 AM UTC-4, Steven D#39;Aprano wrote:
On Thu, 07 Apr 2011 00:25:46 -0500, harrismh777 wrote:
The gnu suite of tools and the linux kernel were the keys to unlocking
Microsoft lock-in... brilliant technologies for innovation and freedom.
I used to believe
Thank you. This has been very helpful.
Ian
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Apr 7, 2011 at 00:45, harrismh777 harrismh...@charter.net wrote:
All right... somebody is sacked (er, fired) !
Who moved reload()?
This kinda stuff is driving me bonkers... there was no need to move
reload() anyplace...
... so for those of you who haven't found out yet, if you
On Thu, Apr 7, 2011 at 9:27 PM, Anssi Saari a...@sci.fi wrote:
Roy Smith r...@panix.com writes:
We cannot use ssh as root remote connectivity as well.
but with 1000's of servers, I really don't see any alternative to ssh,
with key authentication. You don't really propose to type passwords
neil harper wrote:
is there any fighting games(street fighter, mortal kombat, etc) made in
python?
yep, if somebody moves one more thing. there's going to be a fight...
:)
--
http://mail.python.org/mailman/listinfo/python-list
yep, if somebody moves one more thing. there's going to be a fight...
bitch in your own thread, please? We've already heard you complain
plenty, no need to take it to other threads too.
On 4/7/2011 9:10 AM, harrismh777 wrote:
neil harper wrote:
is there any fighting games(street fighter,
Steven D'Aprano wrote:
Let's reword your concern slightly:
It's difficult to take a claim of “free” seriously for
technologies (including, but not limited to, HTML, CSS, C++,
XML, Public Key Cryptography, packet-based multimedia, IPv6)
that knowingly or unknowingly [the
On Thu, Apr 7, 2011 at 11:31 AM, harrismh777 harrismh...@charter.net wrote:
Steven D'Aprano wrote:
Let's reword your concern slightly:
It's difficult to take a claim of “free” seriously for
technologies (including, but not limited to, HTML, CSS, C++,
XML, Public Key
Steven D'Aprano wrote:
In my view, Mono encourages .NET; and that's bad. Idea patents and
particularly idea patents covering mathematics
Do you have an example of a patent covering mathematics that applies
to .NET?
Therein lies *the* problem. The point that gets missed over and
over is
Littlefield, Tyler wrote:
yep, if somebody moves one more thing. there's going to be a fight...
bitch in your own thread, please? We've already heard you complain
plenty, no need to take it to other threads too.
uh, that was humor... like, get a sense of...
lighten up... sometimes
Hi ,
There is a opening for the position of python lead in a company called TEK
systems global services for bangalore location.Interested candidates can
send in their profiles to snara...@teksystems.com.
CHEERS
CNA
9986229891
--
http://mail.python.org/mailman/listinfo/python-list
On Wednesday, April 6, 2011 3:37:34 PM UTC-4, Robert Upton wrote:
Dear Pythoners,
I am attempting to get the DDE module to import into Python and am
having some trouble. I have downloaded and installed the pywin32
extensions for Python 2.6, which is the version of python I am running
on
I have an application which uses feedparser (Python 2.6, of course),
on a Linux laptop. If the network connection is up at startup, it
works fine. If the network connection is down, feedparser reports
a network error. That's fine.
However, if the network is down, including access to DNS,
harrismh777 wrote:
Steven D'Aprano wrote:
At this point Microsoft has absolutely nothing to offer the computer
science community at large except bzillions of euros ( or dollars ) of
wasteful litigation and head-ache.
Do you have an example of this wasteful litigation?
You have
On 2011-04-07, harrismh777 harrismh...@charter.net wrote:
Littlefield, Tyler wrote:
yep, if somebody moves one more thing. there's going to
be a fight...
bitch in your own thread, please? We've already heard you
complain plenty, no need to take it to other threads too.
uh, that was
Python would b ea bad choice for most of any fighting game, but
could see use as a configuration or internal scripting engine.
Python's objects are rather large, which sort of makes for some slow
work. Maybe a configuration setup, but Lua and Angelscript are better
suited to high-end games
On 4/7/11 1:40 AM, John Ladasky wrote:
On Apr 5, 10:43 am, Philip Semanchukphi...@semanchuk.com wrote:
And as Robert Kern pointed out, numpy arrays are also pickle-able.
OK, but SUBCLASSES of numpy.ndarray are not, in my hands, pickling as
I would expect. I already have lots of code that
On Thu, Apr 7, 2011 at 10:41 AM, Littlefield, Tyler ty...@tysdomain.com wrote:
Python would b ea bad choice for most of any fighting game, but
could see use as a configuration or internal scripting engine.
Python's objects are rather large, which sort of makes for some slow work.
Maybe a
I'm not sure about what you want to do, but you could check
http://www.openstack.org/ web and look for ideas for using with Amazon.
2011/4/7 Joseph Ziegler j...@lounginghound.com
Hi all,
Little new to the python world, please excuse the Noobness.
We are writing a server which will subscribe
Has anyone found a good system for literate programming in python?
I have been trying to use pylit/sphinx/pdflatex to generate
technical documentation. The application is scientific/numerical
programming, so discussing maths in maths syntax in between
python syntax is important.
While I like
On Thu, 07 Apr 2011 01:03:31 +1000, Chris Angelico wrote:
I don't know whether it's ironic or in some way Pythonesque, but this
is the only mailing list that I've seen significant amounts of spam
on...
Bear in mind that the mailing list has a bidirectional gateway to the
comp.lang.python
On Thu, 2011-04-07 at 11:50 -0400, Benjamin Kaplan wrote:
On Thu, Apr 7, 2011 at 11:31 AM, harrismh777 harrismh...@charter.net wrote:
Steven D'Aprano wrote:
...n Mono, which
is an open source implementation of the ECMA-334 and ECMA-335
standards. The only difference between it and Python is
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote:
Perhaps what you mean is, none of the licences granted are *irrevocable*.
But the same applies to the GPL -- break the GPL's (generous) terms, and
you too could find that your licence is revoked.
Actually, you could argue since the
Chris Angelico ros...@gmail.com writes:
So I'm hoping to restrict the script's ability to
consume all of memory, without (preferably) ulimit/rlimiting the
entire process (which does other things as well). But if it can't be,
it can't be.
Just wondering, but rather than
On Apr 7, 10:44 am, Robert Kern robert.k...@gmail.com wrote:
On 4/7/11 1:40 AM, John Ladasky wrote:
On Apr 5, 10:43 am, Philip Semanchukphi...@semanchuk.com wrote:
And as Robert Kern pointed out, numpy arrays are also pickle-able.
OK, but SUBCLASSES of numpy.ndarray are not, in my hands,
On Thursday, April 7, 2011 9:51:05 AM UTC-4, neil harper wrote:
is there any fighting games(street fighter, mortal kombat, etc) made in
python?
I found a 2D pygame (SDL) fighter called fighter framework, which is
basically karate sparring.
On Fri, Apr 8, 2011 at 4:36 AM, David Bolen db3l@gmail.com wrote:
Just wondering, but rather than spending the energy to cap Python's
allocations internally, could similar effort instead be directed at
separating the other things the same process is doing? How tightly
coupled is it? If
On Thu, Apr 7, 2011 at 11:51 PM, neil harper neilalt300...@gmail.com wrote:
is there any fighting games(street fighter, mortal kombat, etc) made in
python?
I'd say there are some around. Depends how good you want them, though,
because of the performance issues already mentioned.
Someone has
Chris Angelico ros...@gmail.com writes:
Depending on what exactly is needed, it might be easier to run a
separate daemon on the computers, one whose sole purpose is to do the
task / get the statistics needed and return them. Then the Python
script need only collect each program's returned
On Apr 7, 4:13 am, andrew cooke and...@acooke.org wrote:
If you look at the code
inhttp://hg.python.org/cpython/file/6adbf5f3dafb/Lib/collections/__init...the
attribute __root is checked for, and only created if missing. Why?
I ask because, from what I understand, the __init__ method will
Without fully answering your question ... I suggest you have a look at
Leo
http://webpages.charter.net/edreamleo/front.html
and ask your question at the (google) groups page devoted to that
editor.
http://groups.google.com/group/leo-editor
HTH
J^n
--
Adam Tauno Williams wrote:
Please read
http://www.jprl.com/Blog/archive/development/mono/2009/Jan-19.html
If you still do not understand why this is a bogus issue then just go
away.
Good blog--- off the point, but a nice rant none-the-less.
= block quote
With all this in mind, you
On Fri, Apr 8, 2011 at 2:33 AM, harrismh777 harrismh...@charter.net wrote:
Therein lies *the* problem. The point that gets missed over and over is
that there CAN BE NO PATENT COVERING MATHEMATICS ... period.
Yes, C# and .NET are covered by hundreds of software patents. Its an
insane
On 4/7/11 1:39 PM, John Ladasky wrote:
On Apr 7, 10:44 am, Robert Kernrobert.k...@gmail.com wrote:
On 4/7/11 1:40 AM, John Ladasky wrote:
On Apr 5, 10:43 am, Philip Semanchukphi...@semanchuk.comwrote:
And as Robert Kern pointed out, numpy arrays are also pickle-able.
OK, but
On 2011-04-07, Nobody nob...@nowhere.com wrote:
On Thu, 07 Apr 2011 01:03:31 +1000, Chris Angelico wrote:
I don't know whether it's ironic or in some way Pythonesque, but this
is the only mailing list that I've seen significant amounts of spam
on...
Bear in mind that the mailing list has a
Am 07.04.2011 21:14, schrieb Anssi Saari:
Chris Angelicoros...@gmail.com writes:
Depending on what exactly is needed, it might be easier to run a
separate daemon on the computers, one whose sole purpose is to do the
task / get the statistics needed and return them. Then the Python
script need
On 4/7/11 1:09 PM, Hans Georg Schaathun wrote:
Has anyone found a good system for literate programming in python?
I have been trying to use pylit/sphinx/pdflatex to generate
technical documentation. The application is scientific/numerical
programming, so discussing maths in maths syntax in
Is that normal? I mean, OK, it's possible (and yes I forgot it could be called
directly), but is there any usual reason to do so?
I guess what I'm asking is: if I'm writing library code should I be this
careful? (I've written quite a lot of Python code without this ever biting
me, but maybe
In the code below I use __prepare__ to change the class dictionary so that a
tuple is stored in __setitem__(). Since __getitem__() removes the tuple I
wasn't expecting any problems, but it seems that __init__ is being retrieved
via some other mechanism. Why? Is a copy of the dict being made
Sorry I should probably have made clear that this is Python 3.2
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Apr 7, 2011 at 3:31 PM, andrew cooke and...@acooke.org wrote:
In the code below I use __prepare__ to change the class dictionary so that a
tuple is stored in __setitem__(). Since __getitem__() removes the tuple I
wasn't expecting any problems, but it seems that __init__ is being
Yes, I think you're right, thanks. Makes sense from an efficiency POV.
Luckily, it turns out I don't need to do that anyway :o)
Cheers,
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
On 5 apr, 02:05, Robert Kern robert.k...@gmail.com wrote:
PicklingError: Can't pickle class
'multiprocessing.sharedctypes.c_double_Array_10': attribute lookup
multiprocessing.sharedctypes.c_double_Array_10 failed
Hehe :D
That is why programmers should not mess with code they don't
Related to the above, Is there anything wrong with the following code to
replace the *instance* rather than the class dict? It seems very crude, but
appears to work.
Thanks,
Andrew
class TupleSuper:
def __new__(cls):
print('in new')
instance = object.__new__(cls)
On 4 apr, 22:20, John Ladasky lada...@my-deja.com wrote:
https://bitbucket.org/cleemesser/numpy-sharedmem/src/3fa526d11578/shm...
I've added a few lines to this code which allows subclassing the
shared memory array, which I need (because my neural net objects are
more than just the array,
On 8 apr, 02:03, sturlamolden sturlamol...@yahoo.no wrote:
http://folk.uio.no/sturlamo/python/sharedmem-feb13-2009.zip
Known issues/bugs: 64-bit support is lacking, and os._exit in
multiprocessing causes a memory leak on Linux.
I should probably fix it for 64-bit now. Just recompiliong with
Hi,
thanks for your response.
I checked out multiprocessing.value, however from what I can make out, it works
with object of only a very limited type. Is there a way to do this for more
complex objects? (In reality, my object is a large multi-dimensional numpy
array).
Thanks,
Elsa.
Date:
On Apr 7, 2011, at 8:57 PM, Kerensa McElroy wrote:
Hi,
thanks for your response.
I checked out multiprocessing.value, however from what I can make out, it
works with object of only a very limited type. Is there a way to do this for
more complex objects? (In reality, my object is a
On 8 apr, 02:38, sturlamolden sturlamol...@yahoo.no wrote:
I should probably fix it for 64-bit now. Just recompiliong with 64-bit
integers will not work, because I intentionally hardcoded the higher
32 bits to 0.
That was easy, 64-bit support for Windows is done :-)
Now I'll just have to fix
I'm afraid I've not heard of a way of putting more complex objects into
shared memory with multiprocessing. That is, not without using a queue
along the lines of
http://docs.python.org/library/multiprocessing.html#exchanging-objects-between-processes,
which isn't quite the same thing.
On Thu,
On Thu, 07 Apr 2011 14:37:27 -0500, harrismh777 wrote:
The reason Mono gets hit (from others besides me) is that they are in
partnership and collaboration with Microsoft, consciously and
unconsciously. This must be punished.
Just like Python, Apache, and the Linux kernel. What are you going
On Apr 7, 2:40 pm, andrew cooke and...@acooke.org wrote:
Is that normal? I mean, OK, it's possible (and yes I forgot it could be
called directly), but is there any usual reason to do so?
It's common for subclasses to call their parent's __init__ method, so
that should emulate dict as nearly
On Thu, Apr 7, 2011 at 6:51 AM, neil harper neilalt300...@gmail.com wrote:
is there any fighting games(street fighter, mortal kombat, etc) made in
python? http://mail.python.org/mailman/listinfo/python-list
I talked to a guy from Blizzard about Python in their games once.
He said that not
Hello i want to know the best way to re import a module, because i have a
web server with just one Apache session for all my domains and
applications, and i if i need to make some changes on one application
restart the server will affect the others, so i was thinking in 2 ways the
first
Careers for fresher. Great earning in Management careers.
http://topcareer.webs.com/index.htm http://jobshunter.webs.com/index.htm
Government Vacancies for all graduates earn in salary.
http://rojgars1.webs.com/gov.htmhttp://rojgars.webs.com/bankingjobs.htm
--
Gregory P. Smith g...@krypto.org added the comment:
heh yeah. while all hash functions do have internal state and someone
could conceivably want to store such a state (it basically amounts to
queued up partial block of input data if any and the current starting
IV) there are not consistent APIs
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I also recommend closing this one.
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11771
___
Stefan Krah stefan-use...@bytereef.org added the comment:
The FreeBSD and Solaris bots are failing:
dpkg-architecture: not found
error: build/temp.freebsd-8.2-RELEASE-amd64-3.3-pydebug/multiarch: No such file
or directory
[62607 refs]
*** Error code 1
find_executable.patch should solve the
New submission from Devin Jeanpierre jeanpierr...@gmail.com:
The usage string details a -v option, but python -m doctest doesn't use a -v
option.
The attached patch adds that.
--
files: doctest_verbosity.diff
keywords: patch
messages: 133195
nosy: Devin Jeanpierre
priority: normal
ysj.ray ysj@gmail.com added the comment:
Got it. Seems the behavior is not consist with the Executor.map() function:
The returned iterator raises a TimeoutError if __next__() is called and the
result isn't available after timeout seconds from ***the original call to
map()***
--
Brian Quinlan br...@sweetapp.com added the comment:
Nice catch. I hadn't noticed that the docs are lying :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11777
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11771
___
New submission from Samuele Kaplun samuele.kap...@cern.ch:
The method log_info of the dispatcher class of the asyncore.py module, uses
print statement to print to stdout.
This lead to conflicts when asyncore is used within e.g. mod_wsgi, as writing
to stdout is not supposed to be valid.
New submission from chaos 846909...@qq.com:
print(r'\')
SyntaxError: EOL while scanning string literal
print(r'\'')
\'
--
messages: 133199
nosy: chaos
priority: normal
severity: normal
status: open
title: raw strings
type: compile error
versions: Python 3.2
New submission from Nick Coghlan ncogh...@gmail.com:
Vinay did some great work on the logging documentation for 3.2
(http://docs.python.org/py3k/library/logging).
However, a lot of people will currently miss it, since they land on the
existing 2.7 documentation
chaos 846909...@qq.com added the comment:
I think it should be
print(r'\')
\
print(r'\'')
SyntaxError: EOL while scanning string literal
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11793
Torsten Becker torsten.bec...@gmail.com added the comment:
Hi David, thank you for polishing up the patch and committing it. :)
I am glad I could help and I was actually about to ask you if you knew
any follow-up issues. I'll definitely continue contributing as time
allows. I did not submit
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This is by design and documented:
http://docs.python.org/reference/lexical_analysis.html
String quotes can be escaped with a backslash, but the backslash remains in the
string; for example, r\ is a valid string literal consisting of
Georg Brandl ge...@python.org added the comment:
Sounds good to me, except for Use *ast.__version__* to work across versions.
which is not quite clear.
While talking about version numbers, we should probably also document *what
changed* between those versions.
--
nosy: +georg.brandl
Georg Brandl ge...@python.org added the comment:
This doesn't work as you show. What you probably meant was something like this:
class InterfaceBase(type):
...
Interface = InterfaceBase('Interface', (), {})
class IFoo(Interface):
...
which you can just as well do by using normal
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - giampaolo.rodola
nosy: +giampaolo.rodola
stage: - needs patch
versions: +Python 3.2, Python 3.3 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11792
Giampaolo Rodola' g.rod...@gmail.com added the comment:
What change are you proposing exactly?
Btw, overriding log_info() in such cases seems reasonable to me, without
changing anything in asyncore.
--
___
Python tracker rep...@bugs.python.org
Velko Ivanov viva...@ivanov-nest.com added the comment:
On 04/05/2011 18:22, Alexander Belopolsky wrote:
The datetime module intended to be an island of relative sanity.
... - Tim Peters
Refusing to cooperate with the rest of the world is not sane by my books.
On 04/05/2011 21:06,
Samuele Kaplun samuele.kap...@cern.ch added the comment:
Thanks for looking into it.
Indeed that's the workaround I implemented in our application. On the other
hand it would be nice if either:
* the log_info method would print to stderr,
* would use warning.warn()
* would use the logging
Giampaolo Rodola' g.rod...@gmail.com added the comment:
asyncore is a minimalistic and generic framework; as such it should not
privilege a specific application such as mod_wsgi or make any other
assumption.
I'd say it's fine to let user decide what to do in its own subclass.
Furthermore,
chaos 846909...@qq.com added the comment:
Sorry for my poor english and thank you for the answer.
Since I'm a perler, I think this is counterintuitive.
(In perl:
print '\'; #print \
print '\''; #error
print \; #print
print \; #error
)
--
1 - 100 of 209 matches
Mail list logo