ANN: GraphTerm - A Graphical Terminal Interface

2012-07-30 Thread Ramalingam Saravanan
GraphTerm is a browser-based graphical terminal interface, that aims to seamlessly blend the command line and graphical user interfaces. The goal is to be fully backwards compatible with xterm, with additional graphical features being accessed only as needed. (GraphTerm builds upon two earlier

Re: Is Python a commercial proposition ?

2012-07-30 Thread Stefan Behnel
Rodrick Brown, 30.07.2012 02:12: On Jul 29, 2012, at 12:07 PM, lipska the kat wrote: I'm trying to understand where Python fits into the set of commonly available, commercially used languages of the moment. Python is a glue language much like Perl was 10 years ago. Until the GIL is fixed

Re: simplified Python parsing question

2012-07-30 Thread Eric S. Johansson
On 7/29/2012 11:33 PM, Steven D'Aprano wrote: On Sun, 29 Jul 2012 19:21:49 -0400, Eric S. Johansson wrote: When you are sitting on or in a name, you look to the left or look to the right what would you see that would tell you that you have gone past the end of that name. For example Have you

Re: Extracting bit fields from an IEEE-784 float

2012-07-30 Thread Ulrich Eckhardt
Am 30.07.2012 02:44, schrieb Steven D'Aprano: I wish to extract the bit fields from a Python float, call it x. First I cast the float to 8-bytes: s = struct.pack('=d', x) i = struct.unpack('=q', s)[0] Then I extract the bit fields from the int, e.g. to grab the sign bit: (i

Linux shell to python

2012-07-30 Thread Vikas Kumar Choudhary
Dear friends, I just joined the group. I was trying porting from bash shell to python. let me know if someone has tried to implement (grep and PIPE)  shell commands in python `lspci | grep Q | grep  $isp_str1 | grep $isp_str2 | cut -c1-7'   I tried to use python subprocess and OS.Popen modules.

Re: Linux shell to python

2012-07-30 Thread Chris Angelico
On Mon, Jul 30, 2012 at 5:05 PM, Vikas Kumar Choudhary vikas.choudh...@yahoo.co.in wrote: I was trying porting from bash shell to python. let me know if someone has tried to implement (grep and PIPE) shell commands in python `lspci | grep Q | grep $isp_str1 | grep $isp_str2 | cut -c1-7'

Re: Is Python a commercial proposition ?

2012-07-30 Thread Chris Angelico
On Mon, Jul 30, 2012 at 4:07 PM, Stefan Behnel stefan...@behnel.de wrote: Still, you may still get away with the above statement by providing a sufficiently narrow definition of standalone. By my definition, there isn't much standalone code out there. Most code I know interfaces with a couple

Re: Extracting bit fields from an IEEE-784 float

2012-07-30 Thread Mark Dickinson
On Monday, July 30, 2012 1:44:04 AM UTC+1, Steven D'Aprano wrote: 1) Are there any known implementations or platforms where Python floats are not C doubles? If so, what are they? Well, IronPython is presumably using .NET Doubles, while Jython will be using Java Doubles---in either case,

Re: simplified Python parsing question

2012-07-30 Thread Dieter Maurer
Eric S. Johansson e...@harvee.org writes: When you are sitting on or in a name, you look to the left or look to the right what would you see that would tell you that you have gone past the end of that name. For example a = b + c if you are sitting on a, the boundaries are beginning of line

Re: PyPI question, or, maybe I'm just stupid

2012-07-30 Thread Dieter Maurer
Chris Gonnerman ch...@gonnerman.org writes: I've been making some minor updates to the PollyReports module I announced a while back, and I've noticed that when I upload it to PyPI, my changelog (CHANGES.txt) doesn't appear to be integrated into the site at all. Do I have to put the changes

Re: simplified Python parsing question

2012-07-30 Thread Laszlo Nagy
I appreciate the help because I believe that once this is working, it'll make a significant difference in the ability for disabled programmers to write code again as well as be able to integrate within existing development team and their naming conventions. Did you try to use pygments?

Re: newbie: write content in a file (server-side)

2012-07-30 Thread Thomas Kaufmann
Am Sonntag, 29. Juli 2012 17:16:11 UTC+2 schrieb Peter Otten: Thomas Kaufmann wrote: I send from a client file content to my server (as bytes). So far so good. The server receives this content complete. Ok. Then I want to write this content to a new file. It works too. But in the

Re: newbie: write content in a file (server-side)

2012-07-30 Thread Thomas Kaufmann
Am Sonntag, 29. Juli 2012 16:16:01 UTC+2 schrieb Thomas Kaufmann: Hi, I send from a client file content to my server (as bytes). So far so good. The server receives this content complete. Ok. Then I want to write this content to a new file. It works too. But in the new file are only

Re: simplified Python parsing question

2012-07-30 Thread Eric S. Johansson
On 7/30/2012 5:25 AM, Laszlo Nagy wrote: Did you try to use pygments? http://pygments.org/docs/api/ thanks, I'll take a look. I would first tokenize the code, then divide it by statement keywords. Finally, you just need to find expression/assignment statements in the remaining

Re: Linux shell to python

2012-07-30 Thread Philipp Hagemeister
On 07/30/2012 09:05 AM, Vikas Kumar Choudhary wrote: `lspci | grep Q | grep $isp_str1 | grep $isp_str2 | cut -c1-7' The rough Python equivalent would be import subprocess [ l.partition(' ')[0] # or l[:7], if you want to copy it verbatim for l in

Re: Is Python a commercial proposition ?

2012-07-30 Thread Tim Chase
On 07/29/12 21:31, Rodrick Brown wrote: Its still not possible to be a pure Python developer and find gainful employment today. I'm not sure where you get your facts, but unless you define pure in a super-narrow way, it's just flat-out wrong. I've been employed doing primarily Python for the

Re: Linux shell to python

2012-07-30 Thread 张少华
you can use commands.getstatusoutput(command), the shell command special charactor (like $ and so on )should be escaped! 在 2012年7月30日星期一UTC+8下午3时40分04秒,Chris Angelico写道: On Mon, Jul 30, 2012 at 5:05 PM, Vikas Kumar Choudhary vikas.choudh...@yahoo.co.in wrote: I was trying porting

Re: Python Error

2012-07-30 Thread Duncan Booth
Jürgen A. Erhard j...@jaerhard.com wrote: Peter's right, but instead of a print before the line, put a try/except around it, like try: set1 = set(list1) except TypeError: print list1 raise This way, only the *actual* error triggers any output. With a general

Re: Linux shell to python

2012-07-30 Thread Jürgen A . Erhard
On Mon, Jul 30, 2012 at 12:35:38PM +0200, Philipp Hagemeister wrote: On 07/30/2012 09:05 AM, Vikas Kumar Choudhary wrote: `lspci | grep Q | grep $isp_str1 | grep $isp_str2 | cut -c1-7' The rough Python equivalent would be import subprocess [ l.partition(' ')[0] # or l[:7], if you

Re: Linux shell to python

2012-07-30 Thread Peter Otten
Vikas Kumar Choudhary wrote: let me know if someone has tried to implement (grep and PIPE) shell commands in python `lspci | grep Q | grep $isp_str1 | grep $isp_str2 | cut -c1-7' I tried to use python subprocess and OS.Popen modules. subprocess is the way to go. I was trying porting

Re: Linux shell to python

2012-07-30 Thread Philipp Hagemeister
On 07/30/2012 01:31 PM, Jürgen A. Erhard wrote: On Mon, Jul 30, 2012 at 12:35:38PM +0200, Philipp Hagemeister wrote: import subprocess [ l.partition(' ')[0] # or l[:7], if you want to copy it verbatim for l in subprocess.check_output(['lspci']).splitlines() if 'Q' in l and isp_str1

Re: [Python] Re: PyPI question, or, maybe I'm just stupid

2012-07-30 Thread Chris Gonnerman
On 07/30/2012 04:20 AM, Dieter Maurer wrote: CHANGES.txt is not automatically presented. If necessary, you must integrate it into the long description. However, personally, I am not interested in all the details (typically found in CHANGES.txt) but some (often implicit) information is

Re: [Python] Re: PyPI question, or, maybe I'm just stupid

2012-07-30 Thread Chris Gonnerman
On 07/29/2012 11:00 PM, Ben Finney wrote: Your post is showing up as a reply to a thread about IEEE-784 floats, because you created your message as a reply. Consequently, it's rather confusing why you suddenly start talking about PollyReports. If you want to attract attention to an unrelated

Re: Is Python a commercial proposition ?

2012-07-30 Thread Roy Smith
In article mailman.2717.1343634778.4697.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: Python's an excellent glue language, but it's also fine for huge applications. Yes, it can't multithread across cores if you use CPython and are CPU-bound. That's actually a pretty specific

py2c - an open source Python to C/C++ is looking for developers

2012-07-30 Thread maniandram01
I created py2c ( http://code.google.com/p/py2c )- an open source Python to C/C++ translator! py2c is looking for developers! To join create a posting in the py2c-discuss Google Group or email me! Thanks PS:I hope this is the appropiate group for this message. --

Re: Is Python a commercial proposition ?

2012-07-30 Thread lipska the kat
On 30/07/12 14:06, Roy Smith wrote: In articlemailman.2717.1343634778.4697.python-l...@python.org, Chris Angelicoros...@gmail.com wrote: Python's an excellent glue language, but it's also fine for huge applications. Yes, it can't multithread across cores if you use CPython and are

Re: Is Python a commercial proposition ?

2012-07-30 Thread Grant Edwards
On 2012-07-30, Stefan Behnel stefan...@behnel.de wrote: Still, you may still get away with the above statement by providing a sufficiently narrow definition of standalone. By my definition, there isn't much standalone code out there. Most code I know interfaces with a couple of external

Re: Extracting bit fields from an IEEE-784 float

2012-07-30 Thread Grant Edwards
On 2012-07-30, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: 1) Are there any known implementations or platforms where Python floats are not C doubles? If so, what are they? And the question you didn't ask: are there any platforms where a C double isn't IEEE-754? The last ones

Re: Extracting bit fields from an IEEE-784 float

2012-07-30 Thread Roy Smith
In article jv64v5$g2n$2...@reader1.panix.com, Grant Edwards invalid@invalid.invalid wrote: The last ones I worked on that where the FP format wasn't IEEE were the DEC VAX According to http://en.wikipedia.org/wiki/Vax#History, the last VAX was produced 7 years ago. I'm sure there's still

Re: Extracting bit fields from an IEEE-784 float

2012-07-30 Thread Mark Lawrence
On 30/07/2012 15:16, Grant Edwards wrote: On 2012-07-30, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: 1) Are there any known implementations or platforms where Python floats are not C doubles? If so, what are they? And the question you didn't ask: are there any platforms where

Re: simplified Python parsing question

2012-07-30 Thread Laszlo Nagy
yeah the problem is also little more complicated than simple parsing of Python code. For example, one example (from the white paper) *meat space blowback = Friends and family [well-meaning attempt] *could that be parsed by the tools you mention? It is not valid Python code. Pygments is

CfP: 5th International Workshop on Multi-Core Computing Systems (MuCoCoS)

2012-07-30 Thread SP
*** Paper submission deadline: September 9, 2012 *** 5th International Workshop on Multi-Core Computing Systems (MuCoCoS) 2012 Focus: Performance Portability

Re: py2c - an open source Python to C/C++ is looking for developers

2012-07-30 Thread andrea crotti
2012/7/30 maniandra...@gmail.com: I created py2c ( http://code.google.com/p/py2c )- an open source Python to C/C++ translator! py2c is looking for developers! To join create a posting in the py2c-discuss Google Group or email me! Thanks PS:I hope this is the appropiate group for this

Re: simplified Python parsing question

2012-07-30 Thread Eric S. Johansson
On 7/30/2012 10:59 AM, Laszlo Nagy wrote: yeah the problem is also little more complicated than simple parsing of Python code. For example, one example (from the white paper) *meat space blowback = Friends and family [well-meaning attempt] *could that be parsed by the tools you mention?

Re: Extracting bit fields from an IEEE-784 float

2012-07-30 Thread Grant Edwards
On 2012-07-30, Mark Lawrence breamore...@yahoo.co.uk wrote: On 30/07/2012 15:16, Grant Edwards wrote: On 2012-07-30, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: 1) Are there any known implementations or platforms where Python floats are not C doubles? If so, what are they?

Re: Extracting bit fields from an IEEE-784 float

2012-07-30 Thread Mark Dickinson
On Monday, July 30, 2012 3:16:05 PM UTC+1, Grant Edwards wrote: The last ones I worked on that where the FP format wasn't IEEE were the DEC VAX and TI's line if 32-bit floating-point DSPs. I don't think Python runs on the latter, but it might on the former. For current hardware, there's

Re: Is Python a commercial proposition ?

2012-07-30 Thread rusi
On Jul 29, 9:01 pm, lipska the kat lip...@yahoo.co.uk wrote: Pythoners Firstly, thanks to those on the tutor list who answered my questions. I'm trying to understand where Python fits into the set of commonly available, commercially used languages of the moment. My most recent experience

Re: py2c - an open source Python to C/C++ is looking for developers

2012-07-30 Thread MaxTheMouse
On Jul 30, 7:27 am, maniandra...@gmail.com wrote: I created py2c (http://code.google.com/p/py2c)- an open source Python to C/C++ translator! py2c is looking for developers! To join create a posting in the py2c-discuss Google Group or email me! Thanks PS:I hope this is the appropiate group

Re: Extracting bit fields from an IEEE-784 float

2012-07-30 Thread Dan Stromberg
On Mon, Jul 30, 2012 at 12:44 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I wish to extract the bit fields from a Python float, call it x. First I cast the float to 8-bytes: s = struct.pack('=d', x) i = struct.unpack('=q', s)[0] Then I extract the bit fields from the

RE: Linux shell to python

2012-07-30 Thread Paul van der Linden
You can do this with one subprocess.Popen and some python commands. The alternative is to pipe some subprocess.Popen commands together. Or for the quick way out (but I think you better stick with bash scripting then): http://pypi.python.org/pypi/sarge/ Don't know about it's stability/ubs/etc,

RE: simplified Python parsing question

2012-07-30 Thread Paul van der Linden
Another possibility is to use the ast module of python: http://docs.python.org/library/ast.html The only problem with that module, is that everything you parse must be correct, otherwise it throws an exception, I don't know if that's a problem for your project?   -Original message-

Re: Is Python a commercial proposition ?

2012-07-30 Thread Emile van Sebille
On 7/29/2012 5:12 PM Rodrick Brown said... Until the GIL is fixed I doubt anyone will seriously look at Python as an option for large enterprise standalone application development. See openERP -- http://www.openerp.com/ -- they've been actively converting SAP accounts and have recently

[ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

2012-07-30 Thread Pedro Kroger
Pyknon is a simple music library for Python hackers. With Pyknon you can generate Midi files quickly and reason about musical proprieties. It works with Python 2.7 and 3.2. Pyknon is very simple to use, here's a basic example to create 4 notes and save into a MIDI file:: from pyknon.genmidi

Re: [ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

2012-07-30 Thread Ethan Furman
Pedro Kroger wrote: Pyknon is a simple music library for Python hackers. Sounds cool. How is 'Pyknon' pronounced? It's available on PyPI and its homepage is http://kroger.github.com/pyknon/ I would suggest you change the theme -- using Firefox 3.6 the page is very difficult to read.

Re: [ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

2012-07-30 Thread Pedro Kroger
On Jul 30, 2012, at 3:33 PM, Ethan Furman et...@stoneleaf.us wrote: Pedro Kroger wrote: Pyknon is a simple music library for Python hackers. Sounds cool. How is 'Pyknon' pronounced? I pronounce it similarly as google translate does: http://translate.google.com/#English|English|Pyknon

RE: Is Python a commercial proposition ?

2012-07-30 Thread Prasad, Ramit
I work in financials and the majority of our apps are developed in C++ and Java yet all the tools that startup, deploy and conduct rigorous unit testing are implemented in Python or Shell scripts that wrap Python scripts. Python definitely has its place in the enterprise however not so much

Re: [ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

2012-07-30 Thread Ethan Furman
Pedro Kroger wrote: On Jul 30, 2012, at 3:33 PM, Ethan Furman et...@stoneleaf.us mailto:et...@stoneleaf.us wrote: Pedro Kroger wrote: Pyknon is a simple music library for Python hackers. Sounds cool. How is 'Pyknon' pronounced? I pronounce it similarly as google translate does: So

RE: [Python] Re: PyPI question, or, maybe I'm just stupid

2012-07-30 Thread Prasad, Ramit
However, personally, I am not interested in all the details (typically found in CHANGES.txt) but some (often implicit) information is sufficient for me: something like major API change, minor bug fixes. Thus, think carefully what you put on the overview page. I see your point. I'm just

RE: [ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

2012-07-30 Thread Prasad, Ramit
I would suggest you change the theme -- using Firefox 3.6 the page is very difficult to read. Thanks for the report. Do you mind if I ask why you are using such an old version? (It looks fine with Firefox 14.0.1) That version works for me -- I don't like upgrading to a new version

Re: Extracting bit fields from an IEEE-784 float

2012-07-30 Thread Roy Smith
In article jv6ab7$jne$1...@reader1.panix.com, Grant Edwards invalid@invalid.invalid wrote: I imagine that VAXes running Unix went extinct in the wild long before VAXes running VMS. Of course they did. VMS is all about vendor lock-in. People who continue to run VAXen don't do so because

[ANN] New paper published (Volume 7 of The Python Papers) - High-Speed Data Shredding using Python

2012-07-30 Thread mauricel...@acm.org
Link: http://ojs.pythonpapers.org/index.php/tpp/article/view/243 Abstract In recent years, backup and restore is a common topic in data storage. However, there’s hardly anybody mention about safe data deletion. Common data destruction methodology requires the wipe operation to fill the disk

[ANN] New paper published (Volume 7 of The Python Papers) - Designing and Testing PyZMQ Applications

2012-07-30 Thread mauricel...@acm.org
Link: http://ojs.pythonpapers.org/index.php/tpp/article/view/242 Abstract PyZMQ is a powerful and easy-to-use network layer. While ZeroMQ and PyZMQ are quite well documented and good introductory tutorials exist, no best-practice guide on how to design and especially to test larger or more

Re: Linux shell to python

2012-07-30 Thread Barry Scott
lspci gets all its information from the files in /sys/bus/pci/devices. You can use os.listdir() to list all the files in the folder and then open the files you want to get the data you need. And of course you can write list comprehensions on as many lines as it take to make the code

Re: Linux shell to python

2012-07-30 Thread Dan Stromberg
On Mon, Jul 30, 2012 at 9:26 PM, Barry Scott ba...@barrys-emacs.org wrote: lspci gets all its information from the files in /sys/bus/pci/devices. You can use os.listdir() to list all the files in the folder and then open the files you want to get the data you need. Gee, wouldn't it be more

Re: Linux shell to python

2012-07-30 Thread Emile van Sebille
On 7/30/2012 3:56 PM Dan Stromberg said... On Mon, Jul 30, 2012 at 9:26 PM, Barry Scott ba...@barrys-emacs.org And of course you can write list comprehensions on as many lines as it take to make the code maintainable. Sigh, and I'm also not keen on multi-line list comprehensions,

Re: Linux shell to python

2012-07-30 Thread Dan Stromberg
On Mon, Jul 30, 2012 at 11:14 PM, Emile van Sebille em...@fenx.com wrote: On 7/30/2012 3:56 PM Dan Stromberg said... On Mon, Jul 30, 2012 at 9:26 PM, Barry Scott ba...@barrys-emacs.org And of course you can write list comprehensions on as many lines as it take to make the code

Re: py2c - an open source Python to C/C++ is looking for developers

2012-07-30 Thread alex23
On Jul 31, 2:42 am, MaxTheMouse maxthemo...@googlemail.com wrote: What is the difference between this and Shedskin? Shedskin being a (restricted) python-to-C++ compiler. (http://code.google.com/p/ shedskin/) Is the goal to be able to handle any python code or a subset? There's also Nuitka,

Re: Is Python a commercial proposition ?

2012-07-30 Thread alex23
On Jul 30, 12:31 pm, Rodrick Brown rodrick.br...@gmail.com wrote: Its still not possible to be a pure Python developer and find gainful employment today. I have been working as a pure Python developer for six+ years now (in that the bulk of my coding is done in Python, with some interface

Re: ANN: visage (interfaces)

2012-07-30 Thread alex23
On Jul 30, 3:18 pm, jwp james@gmail.com wrote: What's c.l.py's perspective on managing interfaces and implementations? I've been working with Plone for the past year and have become a big fan of interfaces. I must admit I _do_ like zope.interface's adaptation, but your's looks lighter in a

Re: ANN: visage (interfaces)

2012-07-30 Thread jwp
On Monday, July 30, 2012 6:09:10 PM UTC-7, alex23 wrote: a side project, so I may have some more concrete feedback soon :) =) BTW I think if you rename the ReStructured Text docs to .rst github will automatically render them. Did not know that. Gonna go do a lot of git mv's now. Thanks.

Re: simplified Python parsing question

2012-07-30 Thread Steven D'Aprano
On Mon, 30 Jul 2012 11:40:50 -0400, Eric S. Johansson wrote: If you have been reading the papers, you would understand what I'm doing. That is the second time, at least, that you have made a comment like that. Understand that most people are not going to follow links to find out whether or

Re: ANN: visage (interfaces)

2012-07-30 Thread Steven D'Aprano
On Mon, 30 Jul 2012 18:41:19 -0700, jwp wrote: BTW I think if you rename the ReStructured Text docs to .rst github will automatically render them. Did not know that. Gonna go do a lot of git mv's now. Do *one* and see if github actually does render it. Then do the rest. -- Steven --

Re: Is Python a commercial proposition ?

2012-07-30 Thread Steven D'Aprano
On Mon, 30 Jul 2012 14:09:38 +, Grant Edwards wrote: On 2012-07-30, Stefan Behnel stefan...@behnel.de wrote: Still, you may still get away with the above statement by providing a sufficiently narrow definition of standalone. By my definition, there isn't much standalone code out there.

Re: simplified Python parsing question

2012-07-30 Thread Eric S. Johansson
On 7/30/2012 9:54 PM, Steven D'Aprano wrote: On Mon, 30 Jul 2012 11:40:50 -0400, Eric S. Johansson wrote: If you have been reading the papers, you would understand what I'm doing. That is the second time, at least, that you have made a comment like that. Actually, it's probably more like

Re: [ANN] pyknon: Simple Python library to generate music in a hacker friendly way.

2012-07-30 Thread Steven D'Aprano
On Mon, 30 Jul 2012 19:32:47 +, Prasad, Ramit wrote: I would suggest you change the theme -- using Firefox 3.6 the page is very difficult to read. Thanks for the report. Do you mind if I ask why you are using such an old version? (It looks fine with Firefox 14.0.1) Firefox 3.6 is

Re: [ANN] New paper published (Volume 7 of The Python Papers) - High-Speed Data Shredding using Python

2012-07-30 Thread Simon Cropper
On 31/07/12 07:36, mauricel...@acm.org wrote: Link: http://ojs.pythonpapers.org/index.php/tpp/article/view/243 Abstract In recent years, backup and restore is a common topic in data storage. However, there’s hardly anybody mention about safe data deletion. Common data destruction methodology

toggle name, With explanations

2012-07-30 Thread Eric S. Johansson
the wonderful responses I received from people like Lazlo, Paul, and Stephen has given me some ideas about a different approach. First, here's explanation of what I'm doing I'm developing a method which will enable hand disabled developers such as myself to create and manipulate symbols

OT: accessibility (was Re: simplified Python parsing question)

2012-07-30 Thread Tim Chase
On 07/30/12 21:11, Eric S. Johansson wrote: the ability for multiple people to work on the same document at the same time is really important. Can't do that with Word or Libre office. revision tracking in traditional word processors are unpleasant to work with especially if your hands are

Re: ANN: visage (interfaces)

2012-07-30 Thread jwp
On Monday, July 30, 2012 7:09:03 PM UTC-7, Steven D'Aprano wrote: Do *one* and see if github actually does render it. Then do the rest. Did it for one project. It does render it. =) Naturally, sphinx autodoc links don't work. =( Come-on github, use dat fundin' --

Re: Is Python a commercial proposition ?

2012-07-30 Thread Paul Rubin
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: And at that level, you aren't going to write your app in Python anyway, and not because of the GIL. (These microcontrollers are unlikely to have multiple cores -- why the hell does your microwave oven need two cores?)

Re: py2c - an open source Python to C/C++ is looking for developers

2012-07-30 Thread Stefan Behnel
alex23, 31.07.2012 02:16: On Jul 31, 2:42 am, MaxTheMouse wrote: What is the difference between this and Shedskin? Shedskin being a (restricted) python-to-C++ compiler. (http://code.google.com/p/ shedskin/) Is the goal to be able to handle any python code or a subset? There's also Nuitka,

Re: Is Python a commercial proposition ?

2012-07-30 Thread Stefan Behnel
Paul Rubin, 31.07.2012 06:45: A real compiler (PyPy) will help Python performance far more than multi-core currently can. That's too general a statement to be meaningful. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python] Re: PyPI question, or, maybe I'm just stupid

2012-07-30 Thread Dieter Maurer
Chris Gonnerman ch...@gonnerman.org writes: On 07/30/2012 04:20 AM, Dieter Maurer wrote: ... I find it very stupid to see several window scrolls of changes for a package but to learn how to install the package, I have to download its source... Not sure I get this. The installation

[issue15494] Move test/support.py into a test.support subpackage

2012-07-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: -1. test.support is not at all too large for a single module; there is no point in refactoring it. Without a specific patch to review which proposes some specific change, I'm rejecting this change request. -- nosy: +loewis resolution: - rejected

[issue13214] Cmd: list available completions from the cmd.Cmd subclass and filter out EOF handler(s)

2012-07-30 Thread Catherine Devlin
Catherine Devlin added the comment: Needed to update the patch slightly for Python 3; now that filter() returns an iterator, ``do_help``'s call to names = self.get_names() followed by names.sort() was throwing an error, so I changed get_names to return a list. -- nosy:

[issue15489] Correct __sizeof__ support for BytesIO

2012-07-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Antoine, it looks like you committed the wrong patch for 3.3. Patches for 3.2 and 3.3 are different, otherwise I would have provided a one patch. -basesize = support.calcobjsize('P2PP2PP') +basesize = support.calcobjsize('P2nN2Pn')

[issue13214] Cmd: list available completions from the cmd.Cmd subclass and filter out EOF handler(s)

2012-07-30 Thread Catherine Devlin
Catherine Devlin added the comment: Change to test_cmd.py to test for help displaying the name of the registered subcommand (as well as a simple test for the basic operation of the registered sub-CLI). -- Added file: http://bugs.python.org/file26594/test_cmd.patch

[issue15496] harden directory removal for tests on Windows

2012-07-30 Thread Tim Golden
Tim Golden added the comment: This is a (near) duplicate of issue7443, I think. -- nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15496 ___

[issue15498] Eliminate the use of deprecated OS X APIs in getpath.c

2012-07-30 Thread Ned Deily
New submission from Ned Deily: getpath.c uses three OS X APIs that have been producing deprecation warnings since at least OS X 10.5: NSModuleForSymbol, NSLookupAndBindSymbol, and NSLibraryNameForModule. We should figure out how to live without them. -- assignee: ronaldoussoren

[issue15494] Move test/support.py into a test.support subpackage

2012-07-30 Thread Nick Coghlan
Nick Coghlan added the comment: Martin, this change has been specifically requested by me to better organise all the support code that ISN'T in test.support. That file is already huge, and I'm not going to make it even bigger with all the test infrastructure needed for generating packaging

[issue15490] Correct __sizeof__ support for StringIO

2012-07-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For the PyAccu, AFAICT, objects cannot leak out of it (except for gc.getobjects in debug mode). Not only in debug mode. import io, gc s=io.StringIO() s.write('12345') 5 s.write('qwerty') 6 for o in gc.get_objects(): ... if '123 in repr(o) and

[issue15495] enable type truncation warnings for gcc builds

2012-07-30 Thread Mark Dickinson
Mark Dickinson added the comment: How many extra warnings do you get by adding these flags (e.g., just by doing 'export CFLAGS= ...' before building)? It might be useful to see a sampling of those warnings. The addition of these flags should be conditional on gcc's version being = 4.3: gcc

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-30 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: patch contains fix and test for 2.7. With this patch, AttibuteError is captured as Tim sujested. -- keywords: +patch nosy: +ishimoto Added file: http://bugs.python.org/file26595/issue15267.patch ___ Python tracker

[issue15490] Correct __sizeof__ support for StringIO

2012-07-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: For the PyAccu, AFAICT, objects cannot leak out of it (except for gc.getobjects in debug mode). Not only in debug mode. I see. I meant sys.getobjects, which is in debug mode only, but I now see that gc.get_objects will get the list (but not the strings)

[issue14018] OS X installer does not detect bad symlinks created by Xcode 3.2.6

2012-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset f96579debefa by Ned Deily in branch 'default': Issue #14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs. http://hg.python.org/cpython/rev/f96579debefa -- nosy: +python-dev ___ Python tracker

[issue15470] Stuck/hang when reading ssl object

2012-07-30 Thread Seamus McKenna
Seamus McKenna added the comment: Thankyou for update. Script was not using 100% cpu. I will add SMTP timeout and increase debuglevel() within the function should this reoccur. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15494] Move test/support.py into a test.support subpackage

2012-07-30 Thread Martin v . Löwis
Martin v. Löwis added the comment: So who is going to provide a patch for it, and when? I don't think the tracker is the right place to keep list of things that someone wants to do some day. There isn't an issue Python should have a JIT, either. Tracker issues should be actionable at the time

[issue15494] Move test/support.py into a test.support subpackage

2012-07-30 Thread Nick Coghlan
Nick Coghlan added the comment: As noted in the original post, this is a change which will be made once the 3.3 release is out the door. It's origin lies in the fact that one of the new pkgutil tests currently lives in test_runpy because test_runpy has much better infrastructure for that kind

[issue15403] Refactor package creation support code into a common location

2012-07-30 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- dependencies: +Move test/support.py into a test.support subpackage ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15403 ___

[issue15376] Refactor the test_runpy walk_package support code into a common location

2012-07-30 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15376 ___ ___ Python-bugs-list

[issue15376] Refactor the test_runpy walk_package support code into a common location

2012-07-30 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- dependencies: +Add temp_dir() and change_cwd() to test.support ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15376 ___

[issue15358] Test pkgutil.walk_packages in test_pkgutil instead of test_runpy

2012-07-30 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15358 ___ ___ Python-bugs-list

[issue15494] Move test/support.py into a test.support subpackage

2012-07-30 Thread Nick Coghlan
Nick Coghlan added the comment: I've just gone through and made sure all the related issues are correctly assigned to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15494 ___

[issue14018] OS X installer does not detect bad symlinks created by Xcode 3.2.6

2012-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7232d544c811 by Ned Deily in branch '2.7': Issue #14018: Update the OS X IDLE Tcl/Tk warning check to include http://hg.python.org/cpython/rev/7232d544c811 New changeset 17ddc0c34d9d by Ned Deily in branch '3.2': Issue #14018: Update the OS X IDLE

[issue15494] Move test/support.py into a test.support subpackage

2012-07-30 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15494 ___ ___

[issue15494] Move test/support.py into a test.support subpackage

2012-07-30 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15494 ___ ___

[issue15486] Standardised mechanism for stripping importlib frames from tracebacks

2012-07-30 Thread Nick Coghlan
Nick Coghlan added the comment: OK, after a bit of experimentation, it appears both 3.2 and 3.3 eventually get annoyed if you mess about too much with __pycache__. 1. They're both fine if __pycache__ is entirely unwritable (they just silently skip caching the bytecode) 2. 3.2 throws EOFError

[issue15463] test_faulthandler can fail if install path is too long

2012-07-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset ff7fc6a91212 by Victor Stinner in branch 'default': Issue #15463: the faulthandler module truncates strings to 500 characters, http://hg.python.org/cpython/rev/ff7fc6a91212 -- nosy: +python-dev ___

[issue14966] Fully document subprocess.CalledProcessError

2012-07-30 Thread Anton Barkovsky
Changes by Anton Barkovsky swarmer...@gmail.com: -- nosy: +anton.barkovsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14966 ___ ___

[issue15499] Sleep is hardcoded in webbrowser.UnixBrowser

2012-07-30 Thread Anton Barkovsky
New submission from Anton Barkovsky: webbrowser.UnixBrowser._invoke will sleep for at least 1 second after launching browser process and then probably 4 more seconds. These numbers are hardcoded and can't be modified which is especially problematic for testing. I think this code should be

  1   2   3   >