Re: [Python-Dev] PEP 376
Sridhar Ratnakumar activestate.com> writes: > > On 09-06-23 02:57 AM, Nick Coghlan wrote: > > Something like DistributionDirectoryMap should cover it. > > > > You could probably get away with shortening "Directory" to "Dir" in the > > class names though: > > > > - Distribution > > - ZippedDistribution > > - DistributionDir > > - ZippedDistributionDir > > - DistributionDirMap > > 'Map' reminds me of an associated hash (or is it the actual map?). Good thing, because it is a dict subclass if you read the PEP :) +1 with Nick's proposal. (we are good at finding bikesheds everywhere aren't we?) ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] ndPython: I NEED TO TALK WITH ONE OF THE PYTHON CORE DEVELOPERS
I need help with an implementation of your interpreter under Nanodesktop PSPE/PSP. I'm working to a version of Stackless Python interpreter (2.5.2) called ndPython. It is able to work under PSPE and PSP and it shall be the most powerful interpreter ever realized before on these platforms. I need to know something about the C functions that are recalled by the interpreter when it executes a .pyc file. Our version of ndPython is very slow in execution respect to Carlos's StackLess Python (another product for PSP). We believe that the trouble is in any routine of our Nanodesktop libc that could be a bottleneck. But we don't know which can be the interested routine (string ? memory allocation ?) Can you tell me which modules provide to decode and execute a .pyc file ? The number of modules that are statically linked in the interpreter can affect its performance ? (for example, for a larger number of strcmp between the keywords). The execution of a .pyc file is a memory allocation intensive task ? I've already enable the PYMEM option and I've see that the speed is improved (but Carlos's StackLess Python remains faster). We've done these tests: http://www.psp-ita.com/forum/viewtopic.php?t=28323&start=20 from ndpsp import * x = time.clock () for i in range(1000): pass print >> clock, "1.", time.clock()-t We've the results: stackless: 0.0037279 ndPython: 0.1015625 We don't understand why ndPython is so slower. Please, help us. The product is complete, but we cannot release cause this problem. Thank you in advance. Filippo Battaglia -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f Sponsor: Vieni in vacanza nei Riccione Family Hotels! Ti aspettano servizi per bambini, mini club e tanto divertimento! Prenota on-line la tua vacanza! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=9206&d=24-6 ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] ndPython: I NEED TO TALK WITH ONE OF THE PYTHON CORE DEVELOPERS
SUBJECT LINES IN ALL CAPS CREATE NEGATIVE IMPRESSION Filippo Battaglia wrote: [snip questions I cannot answer] Question about existing, older Python versions should be directed to python-list, at least for a first try. Stackless Python is not produced by PSF core developers. It has third-party alterations to the core that might affect the answers to your question. http://www.psp-ita.com/forum/viewtopic.php?t=28323&start=20 You should mention that the above is Italian, not English. There once was, and maybe still is, a python discussion list in Italian. from ndpsp import * x = time.clock () for i in range(1000):pass print >> clock, "1.", time.clock()-t When you post code, cut and paste the actual code that you ran. The above code will not run. Line-endings are missing. t is not defined. Perhaps you meant 't = time.clock()'. Good luck with your project. Terry Jan Reedy ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] ndPython: I NEED TO TALK WITH ONE OF THE PYTHON CORE DEVELOPERS
The OP was redirected here from the stackless list since his questions were not stackless specific. Stackless python is in sync with the latest 2.x, 3.x branches as well as the trunk so performance problems he may with performance in general are perhaps best resolved by this lot. Kristján > -Original Message- > From: [email protected] > [mailto:[email protected]] On Behalf > Of Terry Reedy > Sent: 24. júní 2009 16:10 > To: [email protected] > Subject: Re: [Python-Dev] ndPython: I NEED TO TALK WITH ONE OF THE > PYTHON CORE DEVELOPERS > Question about existing, older Python versions should be directed to > python-list, at least for a first try. Stackless Python is not produced > by PSF core developers. It has third-party alterations to the core that > might affect the answers to your question. > ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] Python for Windows??
I downloaded what claims to be Python for Windows (3.01). The tutorial brags a lot about how easy it is to learn, but the tutorials and instruction seem to be for a Linux or Unix version. There are three executable programs in the Python directory and no indication which should be used to start Python. One opens a Dos-like window presumably for "command-line" entry. I can't make anything of it. I did a straight install on a XP system. Any help would be appreciated. Have a good day, David H. Burns ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Python for Windows??
David H. Burns wrote: I downloaded what claims to be Python for Windows (3.01). The tutorial brags a lot about how easy it is to learn, but the tutorials and instruction seem to be for a Linux or Unix version. There are three executable programs in the Python directory and no indication which should be used to start Python. One opens a Dos-like window presumably for "command-line" entry. I can't make anything of it. I'm afraid the mailing list you posted to is for the development *of* Python and not the use of Python. On the Python-tutor or Python-list mailing lists (or their google groups / gmane gateways if you prefer a web interface) you will find people willing and able to answer your questions. All the best, Michael Foord I did a straight install on a XP system. Any help would be appreciated. Have a good day, David H. Burns ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/fuzzyman%40voidspace.org.uk -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/blog ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] ndPython
Filippo Battaglia email.it> writes: > > http://www.psp-ita.com/forum/viewtopic.php?t=28323&start=20 > > from ndpsp import * > x = time.clock () > for i in range(1000): > pass > print >> clock, "1.", time.clock()-t First, it has been noted that your message would better be sent to python-list. You must provide a working code example that doesn't need any "ndpsp" import to work. Also, since it is about porting Python to a particular platform, please enlighten us as to what type of CPU it uses, what compiler, what optimization options were used etc. As a sidenote, a common way of timing small snippets of Python code is by using the "timeit" module. From the command line, you could write: $ python -m timeit "for i in range(1000): pass" 1 loops, best of 3: 87.2 usec per loop If you don't spend at least a bit of time writing your message clearly and giving enough details, nobody will spend their unpaid voluntary time trying to understand what happens. Regards Antoine. ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] ndPython: I NEED TO TALK WITH ONE OF THE PYTHON CORE DEVELOPERS
Kristján Valur Jónsson wrote: The OP was redirected here from the stackless list since his questions were not stackless specific. Ok. He should have said so. Third party directions are not always right. As it turns out, he did post to python-list but ignored the rather strong hint about not shouting in the subject line. Stackless python is in sync with the latest 2.x, 3.x branches as well as the trunk so performance problems he may with performance in general are perhaps best resolved by this lot. He said he is using Stackless with the obsolete 2.5.2 release, not even the final and best 2.5.4 release with whatever bug fixes and speedups it has. Switching to the latter, at least, would be my first suggestion. Terry ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] PEP 376
On Wed, Jun 24, 2009 at 11:18 AM, Antoine Pitrou wrote: > Sridhar Ratnakumar activestate.com> writes: >> >> On 09-06-23 02:57 AM, Nick Coghlan wrote: >> > Something like DistributionDirectoryMap should cover it. >> > >> > You could probably get away with shortening "Directory" to "Dir" in the >> > class names though: >> > >> > - Distribution >> > - ZippedDistribution >> > - DistributionDir >> > - ZippedDistributionDir >> > - DistributionDirMap >> >> 'Map' reminds me of an associated hash (or is it the actual map?). > > Good thing, because it is a dict subclass if you read the PEP :) > > +1 with Nick's proposal. > I've changed using these names. Any other feedback with this PEP or we're good to go ? :) Regards Tarek ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
Re: [Python-Dev] Python for Windows??
David H. Burns wrote: I downloaded what claims to be Python for Windows (3.01). The tutorial brags a lot about how easy it is to learn, but the tutorials and instruction seem to be for a Linux or Unix version. There are three executable programs in the Python directory and no indication which should be used to start Python. One opens a Dos-like window presumably for "command-line" entry. I can't make anything of it. [as pointed out elsewhere, this is the wrong list for this question, but just to get you going...] The Python docs have a section on running Python on Windows. This is the online version: http://docs.python.org/using/windows.html The .chm version should be in c:\python31\doc\python31.chm TJG ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
[Python-Dev] trace module options.
All, I've been looking at the trace module, and although it looks useful, I'm surprised that there aren't a couple of features that I would have thought would be fairly basic. So, does trace support (for the --trace option): - indentation tracking stacklevel (where each function is prefixed by tabs equal to the number of stacklevels deep in the program) - output to something other than sys.stdout (eg. output to a file specified either by environmental variable or by parameter). - mult-threaded programs going to multiple output handles, especially in light of the above - fully qualified python modules in path: (eg: /path/to/module/my_module.py(1): print "HERE" instead of my_module.py(1): print "HERE". Ultimately, I'd like to be able to look at two runs of a program and be able to pinpoint the very first difference between thembased on the output of their trace runs. As it stands, I really can't do this. Of course I could program the above, but I was hoping to avoid duplicated effort if someone has already programmed options like this.. Ed ___ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
