Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Ben Finney
Terry Reedy writes: > The 'mistake' is your OS, whatever it is, not providing 3.3. It is > already so old that it is off bugfix maintenance. Any decent system > should have 3.4 available now. I think you mean “… should have Python 3.3 available now”, yes? -- \ “I wish there was a knob on

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Marko Rauhamaa
Terry Reedy : > Any decent system should have 3.4 available now. Really, now? Which system is that? Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Terry Reedy
On 4/14/2014 8:56 AM, Mark Lawrence wrote: http://blog.startifact.com/posts/the-call-of-python-28.html so in response to the last line, who *IS* going to do all of the required work? Steve Dower of Microsoft proposed a similar idea of a migration version of 2.7 after talking with people from b

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Terry Reedy
On 4/14/2014 9:51 AM, Marko Rauhamaa wrote: Chris Angelico : If you're going to do that, why not just port your code to 3.x and be done with it? Who has the resources to put hours and hours of dev time into a 2.8? Somewhat related. Only yesterday I ported/reimplemented a software package to p

Re: Python hackathon ideas

2014-04-14 Thread Rustom Mody
On Tuesday, April 15, 2014 12:24:47 AM UTC+5:30, Claudiu Popa wrote: > Hello! > > I'm planning a Python hackathon in my area, which will be held in a > couple of weeks. Being my first organized hackathon, I don't quite > know on what we will be working. Just yesterday I discovered that kodos that

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Chris Angelico
On Tue, Apr 15, 2014 at 11:38 AM, Ethan Furman wrote: > Thanks to everyone for the pointers. ;) Pun intended, I hope...? ChrisA *groan* -- https://mail.python.org/mailman/listinfo/python-list

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Ethan Furman
Thanks to everyone for the pointers. ;) -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Ethan Furman
On 04/14/2014 06:33 PM, Dave Angel wrote: (you really should have put a comment, so we'd know this is line 200, 201) Sorry, not used to asking questions about C code. ;) I'll make sure and do that next time. Thanks for the help! -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/py

Re:Python, Linux, and the setuid bit

2014-04-14 Thread Dave Angel
Ethan Furman Wrote in message: > For anyone in the unenviable position of needing [1] to run Python scripts > with the setuid bit on, there is an > suid-python wrapper [2] that makes this possible. > > When I compiled it I was given a couple warnings. Can any one shed light on > what they mea

Re: Python hackathon ideas

2014-04-14 Thread Chris Angelico
On Tue, Apr 15, 2014 at 4:54 AM, Claudiu Popa wrote: > - Python 2 only (and we'll try to port them to Python 3) > > I know about Python 3 Wall of superpowers, but most of the Python 2 > only projects seems too big > for us to tackle in one day. I suspect that, by now, any Py2 projects that could

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Chris Angelico
On Tue, Apr 15, 2014 at 7:13 AM, Ethan Furman wrote: > When I compiled it I was given a couple warnings. Can any one shed light on > what they mean? They mean, most likely, that the author compiled the program on his own computer and not on any other. If I had to make a guess, I'd say that it wo

Re: MemoryError in data conversion

2014-04-14 Thread Gregory Ewing
Mok-Kong Shen wrote: I have yet a question out of curiosity: Why is my 2nd list structure, that apparently is too complex for handling by eval and json, seemingly not a problem for pickle? Pickle is intended for arbitrary data structures, so it is designed to be able to handle deeply-nested and

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Grant Edwards
On 2014-04-14, Grant Edwards wrote: > On 2014-04-14, John Gordon wrote: >>> char **envp_read; >>> char **envp_write; >> >>> if (envp_write < envp_read) >>> { >>> memset(envp_write, 0, ((unsigned int) envp_read - >>> (unsigned int) envp

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Grant Edwards
On 2014-04-14, John Gordon wrote: > In Ethan Furman > writes: > >> fprintf(stderr, "Could not allocate %d bytes. errno=%d\n", >> size, errno); > > %d is not the correct specifier for printing objects of type size_t. I believe %zu is the correct format specifier for s

Re: Python, Linux, and the setuid bit

2014-04-14 Thread John Gordon
In Ethan Furman writes: > fprintf(stderr, "Could not allocate %d bytes. errno=%d\n", > size, errno); %d is not the correct specifier for printing objects of type size_t. > char **envp_read; > char **envp_write; > if (envp_write < envp_read) > {

Python, Linux, and the setuid bit

2014-04-14 Thread Ethan Furman
For anyone in the unenviable position of needing [1] to run Python scripts with the setuid bit on, there is an suid-python wrapper [2] that makes this possible. When I compiled it I was given a couple warnings. Can any one shed light on what they mean?

Re: MemoryError in data conversion

2014-04-14 Thread Mok-Kong Shen
Am 14.04.2014 15:59, schrieb Peter Otten: You could use json, but you may run into the same problem with that, too (only later): import json items = [] for i in range(1000): ... s = json.dumps(items) ... items = [items] ... Traceback (most recent call last): File "", line 2, in

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Phil Dobbin
On 14/04/2014 13:56, Mark Lawrence wrote: > http://blog.startifact.com/posts/the-call-of-python-28.html so in > response to the last line, who *IS* going to do all of the required work? > On a related note, Guido announced today that there will be no 2.8 & that the eol for 2.7 will be 2020. Che

Re: gdb python core dump file : not in executable format: File format not

2014-04-14 Thread david.gar...@gmail.com
Does this help? http://plasmodic.github.io/ecto/ecto/usage/external/debugging.html http://gnuradio.org/redmine/projects/gnuradio/wiki/TutorialsDebugging http://downloads.conceptive.be/downloads/camelot/doc/sphinx/build/advanced/debug.html http://forums.gentoo.org/viewtopic-p-7123814.html On

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Ned Batchelder
On 4/14/14 2:59 PM, Ian Kelly wrote: Point of curiosity: if the first 256 codepoints of Unicode happened to correspond to cp1252 instead of Latin-1, would you still object to the FSR? Many of us on the list would appreciate it if you didn't open that particular can of worms. You are of course

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Ian Kelly
On Apr 14, 2014 11:46 AM, wrote: > > I will most probably backport two quite large applications > to Py27 ("scientific data processing apps"). These applications are already on Python 3? Why do you want them on Python 2? Even the people talking about a 2.8 are only seeing it as an upgrade path to

Python hackathon ideas

2014-04-14 Thread Claudiu Popa
Hello! I'm planning a Python hackathon in my area, which will be held in a couple of weeks. Being my first organized hackathon, I don't quite know on what we will be working. One idea I have is to find a couple of open source projects and start contributing to them. Another idea is to work on Pyth

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Pete Forman
Mark Lawrence writes: > On 14/04/2014 14:51, Marko Rauhamaa wrote: >> Chris Angelico : >> >>> If you're going to do that, why not just port your code to 3.x and >>> be done with it? Who has the resources to put hours and hours of dev >>> time into a 2.8? > > The people who haven't had enough time

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread wxjmfauth
I will most probably backport two quite large applications to Py27 ("scientific data processing apps"). It's more a question of willingness, than a technical difficulty. Then basta. Note: cp1252 is good enough. (latin1/iso8859-1 not!). jmf -- https://mail.python.org/mailman/listinfo/python-list

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Chris Angelico
On Tue, Apr 15, 2014 at 12:46 AM, Mark Lawrence wrote: >> So not only do we have a schism between python2 and python3 but there's >> one between 3.0 and 3.3. I can't help but wonder if PEP 414 was a >> mistake. > > > I still believe that PEP 404 was the correct thing to do. PEP 414 was a no > bra

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Chris Angelico
On Tue, Apr 15, 2014 at 12:40 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> So get Python 3.3 for your system, then. > > That'll have to wait till it's time for an OS overhaul. I don't do those > every year. What OS? Since getting 3.3 isn't just a matter of "grab the .msi/.dmg file from pytho

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Mark Lawrence
On 14/04/2014 14:51, Marko Rauhamaa wrote: Chris Angelico : If you're going to do that, why not just port your code to 3.x and be done with it? Who has the resources to put hours and hours of dev time into a 2.8? The people who haven't had enough time over the last eight years to plan their

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Marko Rauhamaa
Chris Angelico : > So get Python 3.3 for your system, then. That'll have to wait till it's time for an OS overhaul. I don't do those every year. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Chris Angelico
On Mon, Apr 14, 2014 at 11:51 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> If you're going to do that, why not just port your code to 3.x and be >> done with it? Who has the resources to put hours and hours of dev time >> into a 2.8? > > Somewhat related. Only yesterday I ported/reimplemented

Re: MemoryError in data conversion

2014-04-14 Thread Peter Otten
Mok-Kong Shen wrote: > Am 14.04.2014 09:46, schrieb Peter Otten: > >> You ran into a limitation of the compiler. For us to suggest a workaround >> you'd have to explain why you want to convert the list returned from >> buildhuffmantree() into python source code and back. > > That list gives the

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Marko Rauhamaa
Chris Angelico : > If you're going to do that, why not just port your code to 3.x and be > done with it? Who has the resources to put hours and hours of dev time > into a 2.8? Somewhat related. Only yesterday I ported/reimplemented a software package to python3. On the finish line, I ran into a p

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Chris Angelico
On Mon, Apr 14, 2014 at 10:56 PM, Mark Lawrence wrote: > http://blog.startifact.com/posts/the-call-of-python-28.html so in response > to the last line, who *IS* going to do all of the required work? Only someone for whom it's less work to build Python 2.8 than it is to port their code to Python 3

Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Mark Lawrence
http://blog.startifact.com/posts/the-call-of-python-28.html so in response to the last line, who *IS* going to do all of the required work? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viru

Re:MemoryError in data conversion

2014-04-14 Thread Dave Angel
Mok-Kong Shen Wrote in message: > > The code attached below produces in one of the two IMHO similar cases > (excepting the sizes of the lists involved) MemoryError. Could experts > kindly tell why that's so and whether there is any work-around feasible. Where's your stack trace for the error? I

Re: MemoryError in data conversion

2014-04-14 Thread Mok-Kong Shen
Am 14.04.2014 09:46, schrieb Peter Otten: You ran into a limitation of the compiler. For us to suggest a workaround you'd have to explain why you want to convert the list returned from buildhuffmantree() into python source code and back. That list gives the Huffman encoding tree for compressin

Re:Learner looking for assistance

2014-04-14 Thread Dave Angel
Anthony Smith Wrote in message: > Hi All > > I am probably doing something wrong but don't know what > Any help would great > As Ben pointed out, you should be more careful with your copy/paste, and especially with your indentation. I'll assume these are all methods of a single class Sal

Re: Learner looking for assistance

2014-04-14 Thread Anthony Smith
On Monday, 14 April 2014 17:43:41 UTC+10, Anthony Smith wrote: > Hi All > > > > I am probably doing something wrong but don't know what > > Any help would great > > > > Code below > > > > the calc_total does not return a estimated_total_weight > > > > if add the estimated_total_wei

gdb python core dump file : not in executable format: File format not

2014-04-14 Thread Wesley
Hi guys, Today I am debugging an issue related to memory leak. I use gdb 7.7 and python 2.7.6 to generate one core dump file from production env. And then, just use gdb to debug the coredump upon the same machine. Got error that seems not support debug core file using pyton? Here is snippet:

Re: Learner looking for assistance

2014-04-14 Thread Ben Finney
Anthony Smith writes: > the calc_total does not return a estimated_total_weight > > if add the estimated_total_weight the rest of the code works > > I am at a lose as to why ? When it's too confusing, simplify. The code you present is fine, but is more complex than it needs to be for the sp

Re: Language summit notes

2014-04-14 Thread wxjmfauth
- Unicode <== Coding of the characters (all schemes) <== math. For those who are interested in that field, I recommand to try to understand why we (the world) have to live with all these coding schemes. jmf -- https://mail.python.org/mailman/listinfo/python-list

Re: Language summit notes

2014-04-14 Thread wxjmfauth
Le dimanche 13 avril 2014 22:13:36 UTC+2, Terry Reedy a écrit : > Everyone, please ignore Jim's unicode/fsr trolling, which started in > > July 2012. Don't quote it, don't try to answer it. > > > > -- > > Terry Jan Reedy --- FYI: I was waiting for the final 3.4 release. I'm only now ma

Re: MemoryError in data conversion

2014-04-14 Thread Peter Otten
Mok-Kong Shen wrote: > The code attached below produces in one of the two IMHO similar cases > (excepting the sizes of the lists involved) MemoryError. Could experts > kindly tell why that's so and whether there is any work-around feasible. Here's a simpler way to reproduce the error: >>> import

Learner looking for assistance

2014-04-14 Thread Anthony Smith
Hi All I am probably doing something wrong but don't know what Any help would great Code below the calc_total does not return a estimated_total_weight if add the estimated_total_weight the rest of the code works I am at a lose as to why ? def calc_total(self): amount = 0

Re: Teaching python to non-programmers

2014-04-14 Thread Mark Lawrence
On 14/04/2014 01:20, Steven D'Aprano wrote: On Mon, 14 Apr 2014 00:54:02 +0100, Mark Lawrence wrote: but the powers that be deem fit not to take any action over. There is no Internet police. Which is a good thing, for if there were, this sort of criticism of the Internet police is exactly the

Re: Teaching python to non-programmers

2014-04-14 Thread Ian Kelly
On Mon, Apr 14, 2014 at 12:13 AM, alex23 wrote: > http://www.ietf.org/rfc/rfc1855.txt > > If you are sending a reply to a message or a posting be sure you > summarize the original at the top of the message, or include just > enough text of the original to give a context. This will mak