Re: who moved reload?

2011-04-07 Thread harrismh777
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

Re: who moved reload?

2011-04-07 Thread geremy condra
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

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-07 Thread John Ladasky
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

Re: Python benefits over Cobra

2011-04-07 Thread Steven D'Aprano
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

Re: python 3 - instantiating class from user input

2011-04-07 Thread Steven D'Aprano
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

Hack SkyPe Account 2.1

2011-04-07 Thread John Carenal
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

Re: [OT] Free software versus software idea patents

2011-04-07 Thread Steven D'Aprano
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

Re: [OT] Free software versus software idea patents (was: Python benefits over Cobra)

2011-04-07 Thread Steven D'Aprano
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

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-07 Thread John Ladasky
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__.

Re: Sandboxed Python: memory limits?

2011-04-07 Thread Martin v. Loewis
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

Re: [OT] Free software versus software idea patents (was: Python benefits over Cobra)

2011-04-07 Thread Chris Angelico
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

How to use optparse without the command line?

2011-04-07 Thread markolopa
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

Re: Trapping the segfault of a subprocess.Popen

2011-04-07 Thread Pierre GM
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,

Re: Trapping the segfault of a subprocess.Popen

2011-04-07 Thread Pierre GM
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 =

Spam on the mailing list

2011-04-07 Thread Chris Angelico
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 --

who moved reload?

2011-04-07 Thread harrismh777
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

Re: Free software versus software idea patents (was: Python benefits over Cobra)

2011-04-07 Thread flebber
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

Why is __root checked for in OrderedDict?

2011-04-07 Thread andrew cooke
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

Re: How to program in Python to run system commands in 1000s of servers

2011-04-07 Thread Anssi Saari
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

Re: Incompatible _sqlite3.so

2011-04-07 Thread Anssi Saari
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

Re: Spam on the mailing list

2011-04-07 Thread eryksun ()
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

Re: Behaviour of subprocess.Popen, ssh and nohup I don't understand

2011-04-07 Thread Adriaan Renting
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

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-07 Thread Philip Semanchuk
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__.

fighting game made with python

2011-04-07 Thread neil harper
is there any fighting games(street fighter, mortal kombat, etc) made in python? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python benefits over Cobra

2011-04-07 Thread eryksun ()
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

Re: logging module usage

2011-04-07 Thread mennis
Thank you. This has been very helpful. Ian -- http://mail.python.org/mailman/listinfo/python-list

Re: who moved reload?

2011-04-07 Thread Brian Curtin
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

Re: How to program in Python to run system commands in 1000s of servers

2011-04-07 Thread Chris Angelico
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

Re: fighting game made with python

2011-04-07 Thread harrismh777
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

Re: fighting game made with python

2011-04-07 Thread Littlefield, Tyler
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,

Re: [OT] Free software versus software idea patents

2011-04-07 Thread harrismh777
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

Re: [OT] Free software versus software idea patents

2011-04-07 Thread Benjamin Kaplan
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

Re: [OT] Free software versus software idea patents

2011-04-07 Thread harrismh777
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

Re: fighting game made with python

2011-04-07 Thread harrismh777
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

job for python lead

2011-04-07 Thread srinivas hn
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

Re: Python and DDE

2011-04-07 Thread eryksun ()
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

feedparser vs. network errors - something remembers that net was down.

2011-04-07 Thread John Nagle
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,

Re: [OT] Free software versus software idea patents

2011-04-07 Thread Mel
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

Re: fighting game made with python

2011-04-07 Thread Neil Cerutti
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

Re: fighting game made with python

2011-04-07 Thread Littlefield, Tyler
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

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-07 Thread Robert Kern
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

Re: fighting game made with python

2011-04-07 Thread geremy condra
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

Re: Amazon Simple Queue Service Worker

2011-04-07 Thread Rafael Durán Castañeda
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

Literate Programming

2011-04-07 Thread Hans Georg Schaathun
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

Re: Spam on the mailing list

2011-04-07 Thread Nobody
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

Re: [OT] Free software versus software idea patents

2011-04-07 Thread Adam Tauno Williams
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

Re: [OT] Free software versus software idea patents (was: Python benefits over Cobra)

2011-04-07 Thread Ross Ridge
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

Re: Sandboxed Python: memory limits?

2011-04-07 Thread David Bolen
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

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-07 Thread John Ladasky
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,

Re: fighting game made with python

2011-04-07 Thread eryksun ()
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.

Re: Sandboxed Python: memory limits?

2011-04-07 Thread Chris Angelico
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

Re: fighting game made with python

2011-04-07 Thread Chris Angelico
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

Re: How to program in Python to run system commands in 1000s of servers

2011-04-07 Thread Anssi Saari
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

Re: Why is __root checked for in OrderedDict?

2011-04-07 Thread Raymond Hettinger
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

Re: Literate Programming

2011-04-07 Thread jkn
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 --

Re: [OT] Free software versus software idea patents

2011-04-07 Thread harrismh777
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

Re: [OT] Free software versus software idea patents

2011-04-07 Thread Chris Angelico
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

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-07 Thread Robert Kern
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

Re: Spam on the mailing list

2011-04-07 Thread Grant Edwards
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

Re: How to program in Python to run system commands in 1000s of servers

2011-04-07 Thread Thomas Rachel
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

Re: Literate Programming

2011-04-07 Thread Robert Kern
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

Re: Why is __root checked for in OrderedDict?

2011-04-07 Thread andrew cooke
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

Confused about __prepare__

2011-04-07 Thread andrew cooke
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

Re: Confused about __prepare__

2011-04-07 Thread andrew cooke
Sorry I should probably have made clear that this is Python 3.2 -- http://mail.python.org/mailman/listinfo/python-list

Re: Confused about __prepare__

2011-04-07 Thread Chris Rebert
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

Re: Confused about __prepare__

2011-04-07 Thread andrew cooke
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

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-07 Thread sturlamolden
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

Replacing *instance* dict

2011-04-07 Thread andrew cooke
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)

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-07 Thread sturlamolden
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,

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-07 Thread sturlamolden
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

RE: multiprocessing

2011-04-07 Thread Kerensa McElroy
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:

Re: multiprocessing

2011-04-07 Thread Philip Semanchuk
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

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-07 Thread sturlamolden
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

Re: multiprocessing

2011-04-07 Thread Dan Stromberg
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,

Re: [OT] Free software versus software idea patents

2011-04-07 Thread Steven D'Aprano
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

Re: Why is __root checked for in OrderedDict?

2011-04-07 Thread Raymond Hettinger
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

Re: fighting game made with python

2011-04-07 Thread Dan Stromberg
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

How to re import a module

2011-04-07 Thread hidura
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

Chances in Management careers.

2011-04-07 Thread gaurav
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 --

[issue11771] hashlib object cannot be pickled

2011-04-07 Thread Gregory P. Smith
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

[issue11771] hashlib object cannot be pickled

2011-04-07 Thread Raymond Hettinger
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 ___

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-04-07 Thread Stefan Krah
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

[issue11791] python -m doctest has a -v flag that it ignores

2011-04-07 Thread Devin Jeanpierre
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

[issue11777] Executor.map does not submit futures until iter.next() is called

2011-04-07 Thread ysj.ray
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()*** --

[issue11777] Executor.map does not submit futures until iter.next() is called

2011-04-07 Thread Brian Quinlan
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 ___

[issue11771] hashlib object cannot be pickled

2011-04-07 Thread STINNER Victor
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 ___

[issue11792] asyncore module print to stdout

2011-04-07 Thread Samuele Kaplun
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.

[issue11793] raw strings

2011-04-07 Thread chaos
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

[issue11794] Backport new logging docs to 2.7

2011-04-07 Thread Nick Coghlan
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

[issue11793] raw strings

2011-04-07 Thread chaos
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

[issue1690608] email.utils.formataddr() should be rfc2047 aware

2011-04-07 Thread Torsten Becker
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

[issue11793] raw strings

2011-04-07 Thread Amaury Forgeot d'Arc
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

[issue11762] Ast doc: warning and version number

2011-04-07 Thread Georg Brandl
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

[issue11789] Extend upon metaclass/type class documentation, here: zope.interface and usage of instances of classes as base classes

2011-04-07 Thread 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

[issue11792] asyncore module print to stdout

2011-04-07 Thread Antoine Pitrou
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

[issue11792] asyncore module print to stdout

2011-04-07 Thread Giampaolo Rodola'
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

[issue2736] datetime needs an epoch method

2011-04-07 Thread Velko Ivanov
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,

[issue11792] asyncore module print to stdout

2011-04-07 Thread Samuele Kaplun
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

[issue11792] asyncore module print to stdout

2011-04-07 Thread Giampaolo Rodola'
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,

[issue11793] raw strings

2011-04-07 Thread chaos
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   2   3   >