Re: [Python-Dev] bytes / unicode

2010-06-28 Thread Greg Ewing
R. David Murray wrote: Having such a poly_str type would probably make my life easier. A thought on this poly_str type: perhaps it could be called ascii, since that's what it would have to be restricted to, and have a'xxx' as a literal syntax for it, seeing as literals seem to be one of

Re: [Python-Dev] bytes / unicode

2010-06-28 Thread Senthil Kumaran
On Mon, Jun 28, 2010 at 08:28:45PM +1200, Greg Ewing wrote: A thought on this poly_str type: perhaps it could be called ascii, since that's what it would have to be restricted to, and have a'xxx' as a literal syntax for it, seeing as literals seem to be one of its main use cases. This

Re: [Python-Dev] bytes / unicode

2010-06-28 Thread R. David Murray
On Mon, 28 Jun 2010 13:55:26 +0530, Senthil Kumaran orsent...@gmail.com wrote: On Mon, Jun 28, 2010 at 08:28:45PM +1200, Greg Ewing wrote: Thinking way outside the square, and probably the pale as well, maybe @ could be pressed into service as an infix operator, with s...@i

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-28 Thread M.-A. Lemburg
Brett Cannon wrote: On Sun, Jun 27, 2010 at 13:37, Jeffrey Yasskin jyass...@gmail.com wrote: On Sun, Jun 27, 2010 at 1:04 PM, Mark Dickinson dicki...@gmail.com wrote: On Sun, Jun 27, 2010 at 6:46 AM, Jeffrey Yasskin jyass...@gmail.com wrote: AC_PROG_CC is the macro that sets CFLAGS to -g -O2

Re: [Python-Dev] bytes / unicode

2010-06-28 Thread Nick Coghlan
On Mon, Jun 28, 2010 at 6:28 PM, Greg Ewing greg.ew...@canterbury.ac.nz wrote: R. David Murray wrote: Having such a poly_str type would probably make my life easier. A thought on this poly_str type: perhaps it could be called ascii, since that's what it would have to be restricted to, and

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-28 Thread Mark Dickinson
On Mon, Jun 28, 2010 at 12:38 PM, M.-A. Lemburg m...@egenix.com wrote: On Sun, Jun 27, 2010 at 13:37, Jeffrey Yasskin jyass...@gmail.com wrote: On Sun, Jun 27, 2010 at 1:04 PM, Mark Dickinson dicki...@gmail.com wrote: I'm not sure I understand the importance of allowing AC_PROG_CC to set

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-28 Thread M.-A. Lemburg
Mark Dickinson wrote: On Mon, Jun 28, 2010 at 12:38 PM, M.-A. Lemburg m...@egenix.com wrote: On Sun, Jun 27, 2010 at 13:37, Jeffrey Yasskin jyass...@gmail.com wrote: On Sun, Jun 27, 2010 at 1:04 PM, Mark Dickinson dicki...@gmail.com wrote: I'm not sure I understand the importance of allowing

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-28 Thread Mark Dickinson
On Mon, Jun 28, 2010 at 3:04 PM, M.-A. Lemburg m...@egenix.com wrote: Why do you think that the default -O2 is unwanted Because it can cause debug builds of Python to be built with optimization enabled, as we've already seen at least twice. and how do you know whether the compiler accepts -g

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-28 Thread M.-A. Lemburg
Mark Dickinson wrote: On Mon, Jun 28, 2010 at 3:04 PM, M.-A. Lemburg m...@egenix.com wrote: Why do you think that the default -O2 is unwanted Because it can cause debug builds of Python to be built with optimization enabled, as we've already seen at least twice. Then let me put it this way:

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-28 Thread M.-A. Lemburg
M.-A. Lemburg wrote: Mark Dickinson wrote: On Mon, Jun 28, 2010 at 3:04 PM, M.-A. Lemburg m...@egenix.com wrote: Why do you think that the default -O2 is unwanted Because it can cause debug builds of Python to be built with optimization enabled, as we've already seen at least twice. Then

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-28 Thread Mark Dickinson
On Mon, Jun 28, 2010 at 4:28 PM, M.-A. Lemburg m...@egenix.com wrote: Mark Dickinson wrote: On Mon, Jun 28, 2010 at 3:04 PM, M.-A. Lemburg m...@egenix.com wrote: Why do you think that the default -O2 is unwanted Because it can cause debug builds of Python to be built with optimization

Re: [Python-Dev] what environment variable should contain compiler warning suppression flags?

2010-06-28 Thread M.-A. Lemburg
Mark Dickinson wrote: On Mon, Jun 28, 2010 at 4:28 PM, M.-A. Lemburg m...@egenix.com wrote: Mark Dickinson wrote: On Mon, Jun 28, 2010 at 3:04 PM, M.-A. Lemburg m...@egenix.com wrote: Why do you think that the default -O2 is unwanted Because it can cause debug builds of Python to be built

Re: [Python-Dev] WPython 1.1 was released

2010-06-28 Thread anatoly techtonik
It would be interesting to see benchmark diagrams inline on one page with overall summaries. I've posted a enhancement to http://code.google.com/p/unladen-swallow/issues/detail?id=145 if somebody is going to look at that. I wonder if 32bit version can bring more speedups? -- anatoly t.

[Python-Dev] Pickle security and remote logging

2010-06-28 Thread anatoly techtonik
Hello, I need to send logging module output over the network. The module has everything to make this happen, except security. SocketHandler and DatagramHandler examples are using pickle module that is said to be insecure. SocketHandler and DatagramHandler docs should at least contain a warning

[Python-Dev] Access a function

2010-06-28 Thread Zohair
I am a very new to python and have a small question.. I have a function: set_time_at_next_pps(self, *args, **kwargs) but don't know how to use it... Askign for your help please. Cheers, Zoh -- View this message in context: http://old.nabble.com/Access-a-function-tp29008798p29008798.html Sent

Re: [Python-Dev] Access a function

2010-06-28 Thread Michael Foord
On 28/06/2010 19:09, Zohair wrote: I am a very new to python and have a small question.. I have a function: set_time_at_next_pps(self, *args, **kwargs) but don't know how to use it... Askign for your help please. Hi Zoh, This mailing list is for the development *of* Python, not for

Re: [Python-Dev] Access a function

2010-06-28 Thread Oleg Broytman
Hello. We'are sorry but we cannot help you. This mailing list is to work on developing Python (fixing bugs and adding new features to Python itself); if you're having problems using Python, please find another forum. Probably python-list (comp.lang.python) news group/mailing list is the best

[Python-Dev] How to spell PyInstance_NewRaw in py3k?

2010-06-28 Thread Alexander Belopolsky
Issue #5180 [1] presented an interesting challenge: how to unpickle instances of old-style classes when a pickle created with 2.x is loaded in 3.x python? The problem is that pickle protocol requires that unpickled instances be created without calling the __init__ method. This is necessary

Re: [Python-Dev] Access a function

2010-06-28 Thread Laurens Van Houtven
Of course I concur with the two posters above me, but in order to advertise for my own shop... If you're stuck with a lot of newbie questions like these you might want to try #python (the IRC channel on irc.freenode.net). You're more likely to get quick successive responses there than on other

Re: [Python-Dev] [ANN]: newthreading - an approach to simplified thread usage, and a path to getting rid of the GIL

2010-06-28 Thread Guido van Rossum
I'm moving this thread to python-ideas, where it belongs. I've looked at the implementation code (even stepped through it with pdb!), read the sample/test code, and read the two papers on animats.com fairly closely (they have a lot of overlap, and the memory model described below seems copied