Re: sort(*, key=None, reverse=None)

2013-12-21 Thread Mark Lawrence
On 21/12/2013 07:35, Chris Angelico wrote: On Sat, Dec 21, 2013 at 6:24 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 21/12/2013 07:20, Devin Jeanpierre wrote: On Fri, Dec 20, 2013 at 11:16 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: The subject refers to the list sort method

Re: sort(*, key=None, reverse=None)

2013-12-21 Thread Chris Angelico
On Sat, Dec 21, 2013 at 6:59 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: Now where was I... Australia! ChrisA [1] http://www.princessbride.8m.com/script.htm -- https://mail.python.org/mailman/listinfo/python-list

Re: Why Python is like C++

2013-12-21 Thread Gregory Ewing
Mark Lawrence wrote: On 20/12/2013 14:19, Roy Smith wrote: http://xkcd.com/1306/ I believe that to be a very superficial like. They're unlike in that once C++ people have compiled their code they can head down to the pub, but Python people have to stay at work testing because the

Re: Why Python is like C++

2013-12-21 Thread Gregory Ewing
Michael Torrie wrote: Maybe BASIC's of the 70s. But Not QB. QuickBasic was a pretty impressive compiler in its day. Completely modern, structured language. I may have been thinking of GW-BASIC. There was definitely something that was pretty much an old-school BASIC with line numbers, GOSUBS

Re: Why Python is like C++

2013-12-21 Thread Chris Angelico
On Sat, Dec 21, 2013 at 7:06 PM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Michael Torrie wrote: Maybe BASIC's of the 70s. But Not QB. QuickBasic was a pretty impressive compiler in its day. Completely modern, structured language. I may have been thinking of GW-BASIC. There was

Re: Why Python is like C++

2013-12-21 Thread Mark Lawrence
On 21/12/2013 08:09, Gregory Ewing wrote: Mark Lawrence wrote: On 20/12/2013 14:19, Roy Smith wrote: http://xkcd.com/1306/ I believe that to be a very superficial like. They're unlike in that once C++ people have compiled their code they can head down to the pub, but Python people have to

Re: Why Python is like C++

2013-12-21 Thread Dan Stromberg
On Fri, Dec 20, 2013 at 9:34 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 20/12/2013 14:19, Roy Smith wrote: http://xkcd.com/1306/ I believe that to be a very superficial like. They're unlike in that once C++ people have compiled their code they can head down to the pub, but Python

Re: Why Python is like C++

2013-12-21 Thread Mark Lawrence
On 21/12/2013 08:18, Dan Stromberg wrote: On Fri, Dec 20, 2013 at 9:34 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 20/12/2013 14:19, Roy Smith wrote: http://xkcd.com/1306/ I believe that to be a very superficial like. They're unlike in that once C++ people have compiled their code

@property simultaneous setter and getter

2013-12-21 Thread Brian Bruggeman
Is this something that would be pep-able? https://gist.github.com/brianbruggeman/8061774 Thanks in advance. -- https://mail.python.org/mailman/listinfo/python-list

Re: @property simultaneous setter and getter

2013-12-21 Thread Peter Otten
Brian Bruggeman wrote: Is this something that would be pep-able? https://gist.github.com/brianbruggeman/8061774 There's no need to put such a small piece of code into an external repository. class someAwesomeClass(object): an example @property def some_attr(self,

Re: Why Python is like C++

2013-12-21 Thread Christian Gollwitzer
Am 21.12.13 09:06, schrieb Gregory Ewing: Michael Torrie wrote: Maybe BASIC's of the 70s. But Not QB. QuickBasic was a pretty impressive compiler in its day. Completely modern, structured language. I may have been thinking of GW-BASIC. There was definitely something that was pretty much an

Re: @property simultaneous setter and getter

2013-12-21 Thread Steven D'Aprano
On Fri, 20 Dec 2013 15:26:10 -0600, Brian Bruggeman wrote: Is this something that would be pep-able? I don't know. What is it? I'm sure your code is the most fabulous, awesome and brilliant thing since Grace Hopper came up with FORmula TRANslation back in the 1950s, but my browser has over

Re: Why Python is like C++

2013-12-21 Thread Steven D'Aprano
On Sat, 21 Dec 2013 05:34:51 +, Mark Lawrence wrote: On 20/12/2013 14:19, Roy Smith wrote: http://xkcd.com/1306/ I believe that to be a very superficial like. They're unlike in that once C++ people have compiled their code they can head down to the pub, Ah, the good ol' It compiles,

Re: Why Python is like C++

2013-12-21 Thread Steven D'Aprano
On Sat, 21 Dec 2013 00:18:33 -0800, Dan Stromberg wrote: C++ should use automated tests too, but is often used without because the compilers make it almost reasonable to do without. For some definition of reasonable that I haven't come across before. I'd like to see the compiler that can

Re: @property simultaneous setter and getter

2013-12-21 Thread Devin Jeanpierre
On Sat, Dec 21, 2013 at 2:14 AM, Peter Otten __pete...@web.de wrote: If I were to implement something like this I'd probably use the old trick with nested functions: def getset(f): funcs = f() return property(funcs.get(get), funcs.get(set)) class A(object): @getset def

Re: @property simultaneous setter and getter

2013-12-21 Thread Mark Lawrence
On 21/12/2013 11:31, Steven D'Aprano wrote: On Fri, 20 Dec 2013 15:26:10 -0600, Brian Bruggeman wrote: Is this something that would be pep-able? I don't know. What is it? I'm sure your code is the most fabulous, awesome and brilliant thing since Grace Hopper came up with FORmula TRANslation

Re: Why Python is like C++

2013-12-21 Thread Mark Lawrence
On 21/12/2013 11:37, Steven D'Aprano wrote: On Sat, 21 Dec 2013 05:34:51 +, Mark Lawrence wrote: On 20/12/2013 14:19, Roy Smith wrote: http://xkcd.com/1306/ I believe that to be a very superficial like. They're unlike in that once C++ people have compiled their code they can head down

Re: bytearray inconsistencies?

2013-12-21 Thread Mark Lawrence
On 21/12/2013 01:58, Ned Batchelder wrote: If you have a zero, you can split on it with: bytestring.split(bytes([0])), but that doesn't explain why find can take a simple zero, and split has to take a bytestring with a zero in it. Create a bytearray(range(256)) and partition it on 128. I'd

Re: Newbie question. Are those different objects ?

2013-12-21 Thread Steven D'Aprano
On Fri, 20 Dec 2013 16:00:22 +, Mark Lawrence wrote: On 20/12/2013 15:34, rusi wrote: You are also assuming that the two horizontal lines sometimes called 'equals' have something to do with something called by the same name in math -- equations A good point. Shall I write a PEP

Re: bytearray inconsistencies?

2013-12-21 Thread Steven D'Aprano
On Sat, 21 Dec 2013 12:29:14 +, Mark Lawrence wrote: Create a bytearray(range(256)) and partition it on 128. I'd expect to see the original effectively cut in half with 128 as the separator. You actually get the original with two empty bytearrays, which makes no sense to me at all. I

Re: bytearray inconsistencies?

2013-12-21 Thread Peter Otten
Mark Lawrence wrote: On 21/12/2013 01:58, Ned Batchelder wrote: If you have a zero, you can split on it with: bytestring.split(bytes([0])), but that doesn't explain why find can take a simple zero, and split has to take a bytestring with a zero in it. Create a bytearray(range(256)) and

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-21 Thread Martin Schöön
Den 2013-12-20 skrev Mark Lawrence breamore...@yahoo.co.uk: On 20/12/2013 17:52, Martin Schöön wrote: Coming from many years of SUN Solaris experience I may be a bit spoiled when it comes to robustness :-) You never had the pleasure of working on VMS then? :) Only very, very little and I

Re: Why Python is like C++

2013-12-21 Thread Tim Chase
On 2013-12-21 08:43, Tim Chase wrote: Then there's the 6502 assembly on that Apple with its 2 user-facing registers (plus the Instruction Pointer and Stack Pointer), so I guess you could say that it has 1-bit variable names ;-) Doh, forgot momentarily that the 6502 had X, Y, and A, making

Re: Why Python is like C++

2013-12-21 Thread Tim Chase
On 2013-12-21 11:19, Christian Gollwitzer wrote: GW-BASIC was a weak language, but two significant characters is definitely too few. I think it was eight. Never used QuickBasic, I went Turbo Pascal instead, which had 32 significant characters. In know that my first BASIC, Applesoft BASIC had

Re: Why Python is like C++

2013-12-21 Thread Roy Smith
In article mailman.4462.1387614224.18130.python-l...@python.org, Dan Stromberg drsali...@gmail.com wrote: On Fri, Dec 20, 2013 at 9:34 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 20/12/2013 14:19, Roy Smith wrote: http://xkcd.com/1306/ I believe that to be a very

Re: Why Python is like C++

2013-12-21 Thread Michael Torrie
On 12/21/2013 01:17 AM, Chris Angelico wrote: GW-BASIC is what you're describing. Q-BASIC isn't the same as QuickBasic, though. Q-BASIC had subs and functions and stuff, but it was still, at its heart, BASIC. And you could DIM something with a type, but normally it was the adorning suffix that

Re: Why Python is like C++

2013-12-21 Thread Roy Smith
In article mailman.4472.1387638502.18130.python-l...@python.org, Tim Chase python.l...@tim.thechases.com wrote: In know that my first BASIC, Applesoft BASIC had the 2-character names, and you had to load Integer Basic (with Ints in addition to the standard Floats used in the BASIC provided by

Re: How to import Wave files into python?

2013-12-21 Thread diesch111
On Wednesday, December 18, 2013 8:45:08 AM UTC-8, twilk...@gmail.com wrote: How exactly do I import a .wav file and run it? also is it possible to run it inside a while loop if so or it just start playing when its run? - Tom 14 Using Pyside/PyQt you can play wave files this way ...

Re: Why Python is like C++

2013-12-21 Thread Tim Chase
On 2013-12-21 10:59, Roy Smith wrote: In know that my first BASIC, Applesoft BASIC had the 2-character names, and you had to load Integer Basic (with Ints in addition to the standard Floats used in the BASIC provided by the ROM, a strange choice). Why is it a strange choice? If

Line based graphic in canvas (vectorgraphic?) scale incorrectly on HDMI monitor.

2013-12-21 Thread jonas . thornvall
Is there a way to make linebased graphic used in canvas scale correct on any monitor? I run in 1920*1080 on a Philips TV used as monitor does it matter, lines tend to get longer vertical then horizontal? Strange is i really do not see it writing out recangles. --

Re: Newbie question. Are those different objects ?

2013-12-21 Thread Chris Angelico
On Sun, Dec 22, 2013 at 3:54 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: (heh, the spell-checker suggests that thefullyqualifiednameontheleftafteranysubexpressionshavebeenevaluatedisattachedt should be replaced with textually) The spell-checker was scratching its head and going I'm

Re: Line based graphic in canvas (vectorgraphic?) scale incorrectly on HDMI monitor.

2013-12-21 Thread Ned Batchelder
On 12/21/13 1:30 PM, jonas.thornv...@gmail.com wrote: Is there a way to make linebased graphic used in canvas scale correct on any monitor? I run in 1920*1080 on a Philips TV used as monitor does it matter, lines tend to get longer vertical then horizontal? Strange is i really do not see it

Re: Why Python is like C++

2013-12-21 Thread Chris Angelico
On Sun, Dec 22, 2013 at 2:59 AM, Roy Smith r...@panix.com wrote: In article mailman.4472.1387638502.18130.python-l...@python.org, Tim Chase python.l...@tim.thechases.com wrote: In know that my first BASIC, Applesoft BASIC had the 2-character names, and you had to load Integer Basic (with

Re: Why Python is like C++

2013-12-21 Thread Gene Heskett
On Saturday 21 December 2013 13:57:37 Tim Chase did opine: On 2013-12-21 08:43, Tim Chase wrote: Then there's the 6502 assembly on that Apple with its 2 user-facing registers (plus the Instruction Pointer and Stack Pointer), so I guess you could say that it has 1-bit variable names ;-)

Re: Line based graphic in canvas (vectorgraphic?) scale incorrectly on HDMI monitor.

2013-12-21 Thread jonas . thornvall
Den lördagen den 21:e december 2013 kl. 20:03:17 UTC+1 skrev Ned Batchelder: On 12/21/13 1:30 PM, jonas.thornv...@gmail.com wrote: Is there a way to make linebased graphic used in canvas scale correct on any monitor? I run in 1920*1080 on a Philips TV used as monitor does it

Re: Newbie question. Are those different objects ?

2013-12-21 Thread Mark Lawrence
On 21/12/2013 16:54, Dennis Lee Bieber wrote: On 21 Dec 2013 12:58:41 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info declaimed the following: On Fri, 20 Dec 2013 16:00:22 +, Mark Lawrence wrote: On 20/12/2013 15:34, rusi wrote: You are also assuming that the two horizontal

Re: bytearray inconsistencies?

2013-12-21 Thread Mark Lawrence
On 21/12/2013 13:20, Peter Otten wrote: Mark Lawrence wrote: On 21/12/2013 01:58, Ned Batchelder wrote: If you have a zero, you can split on it with: bytestring.split(bytes([0])), but that doesn't explain why find can take a simple zero, and split has to take a bytestring with a zero in it.

Re: Line based graphic in canvas (vectorgraphic?) scale incorrectly on HDMI monitor.

2013-12-21 Thread Ned Batchelder
On 12/21/13 2:12 PM, jonas.thornv...@gmail.com wrote: Den lördagen den 21:e december 2013 kl. 20:03:17 UTC+1 skrev Ned Batchelder: On 12/21/13 1:30 PM, jonas.thornv...@gmail.com wrote: Is there a way to make linebased graphic used in canvas scale correct on any monitor? I run in

Re: Line based graphic in canvas (vectorgraphic?) scale incorrectly on HDMI monitor.

2013-12-21 Thread jonas . thornvall
Den lördagen den 21:e december 2013 kl. 20:56:54 UTC+1 skrev Ned Batchelder: On 12/21/13 2:12 PM, jonas.thornv...@gmail.com wrote: Den l�rdagen den 21:e december 2013 kl. 20:03:17 UTC+1 skrev Ned Batchelder: On 12/21/13 1:30 PM, jonas.thornv...@gmail.com wrote: Is there a way

Re: Newbie question. Are those different objects ?

2013-12-21 Thread Gene Heskett
On Saturday 21 December 2013 14:08:02 Chris Angelico did opine: On Sun, Dec 22, 2013 at 3:54 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: (heh, the spell-checker suggests that thefullyqualifiednameontheleftafteranysubexpressionshavebeenevaluated isattachedt should be replaced with

Hopper and Backus (was Re: @property simultaneous setter and getter)

2013-12-21 Thread Terry Reedy
On 12/21/2013 11:59 AM, Dennis Lee Bieber wrote: On 21 Dec 2013 11:31:22 GMT, Steven D'Aprano I don't know. What is it? I'm sure your code is the most fabulous, awesome and brilliant thing since Grace Hopper came up with FORmula TRANslation back in the 1950s, As I recall, Grace Hopper was

Re: Why Python is like C++

2013-12-21 Thread Terry Reedy
On 12/21/2013 10:10 AM, Roy Smith wrote: On the last large C++ project I worked on, we decided (i.e. obeyed a corporate mandate) to start using Coverity's static analysis tool on our 15 year old codebase. I learned a few things about static analysis then. CPython was about that old when

Re: Why Python is like C++

2013-12-21 Thread Roy Smith
In article mailman.4486.1387663424.18130.python-l...@python.org, Terry Reedy tjre...@udel.edu wrote: On 12/21/2013 10:10 AM, Roy Smith wrote: On the last large C++ project I worked on, we decided (i.e. obeyed a corporate mandate) to start using Coverity's static analysis tool on our 15

Re: Why Python is like C++

2013-12-21 Thread Gregory Ewing
Christian Gollwitzer wrote: GW-BASIC was a weak language, but two significant characters is definitely too few. I think it was eight. That may have been true for MS-DOS era BASICS. If you have a whopping 640KB for your program, then it doesn't matter so much. The 8-bit era was much more

Re: Why Python is like C++

2013-12-21 Thread Gregory Ewing
Tim Chase wrote: Doh, forgot momentarily that the 6502 had X, Y, and A, making THREE registers. ooh, the luxury of 2-bit naming conventions! :-D Two bits? That's enough to name FOUR registers! We've been cheated! -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Why Python is like C++

2013-12-21 Thread Terry Reedy
On 12/21/2013 5:28 PM, Roy Smith wrote: In article mailman.4486.1387663424.18130.python-l...@python.org, Terry Reedy tjre...@udel.edu wrote: On 12/21/2013 10:10 AM, Roy Smith wrote: On the last large C++ project I worked on, we decided (i.e. obeyed a corporate mandate) to start using

Re: Why Python is like C++

2013-12-21 Thread Gregory Ewing
Tim Chase wrote: In know that my first BASIC, Applesoft BASIC had the 2-character names, and you had to load Integer Basic (with Ints in addition to the standard Floats used in the BASIC provided by the ROM, a strange choice). That's not the way I remember it working. Integer Basic provided

Re: Why Python is like C++

2013-12-21 Thread Gregory Ewing
Michael Torrie wrote: And you could DIM something with a type, but normally it was the adorning suffix that determined type: A$ is a string, A% is an integer, A! (or A) is float, A# is double. Some versions of 8-bit Microsoft Basic also had a way of overriding the default type for a range of

fefe

2013-12-21 Thread Downright Trows
fefwfewfwefwe -- https://mail.python.org/mailman/listinfo/python-list

Pygame vector handling?

2013-12-21 Thread Downright Trows
I'm trying to pass a vector for the pygame function pygame.transform.rotate The only issue is that this doesn't work and I'm in grade 10 and haven't done the trig unit yet :L Does anyone know a workaround? here is my code if it will help http://pastebin.com/FZQB5eux here is a link to the

hi

2013-12-21 Thread Downright Trows
testing -- https://mail.python.org/mailman/listinfo/python-list

Re: Pygame vector handling?

2013-12-21 Thread Gary Herron
On 12/21/2013 08:24 PM, Downright Trows wrote: I'm trying to pass a vector for the pygame function pygame.transform.rotate The only issue is that this doesn't work and I'm in grade 10 and haven't done the trig unit yet :L Does anyone know a workaround? here is my code if it will help

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2013-12-21 Thread Stefan Krah
Stefan Krah added the comment: Well, generally I'd be against adding features, but this particular one could be rationalized in the same way as PEP 414. So I'm simply unsure whether the feature should be added, but *if* it's added, it should be backed by a pronouncement either from the RM or

[issue20039] Missing documentation for argparse.ArgumentTypeError

2013-12-21 Thread Arnaut Billings
New submission from Arnaut Billings: There is no documentation for argparse.ArgumentTypeError: http://docs.python.org/3/library/unittest.html Though it does appear in an example and its usage is simple enough to decipher what it means, it would none the less look more professional if there

[issue20038] Crash due to I/O in __del__

2013-12-21 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of issue #20037. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20038 ___ ___

[issue20015] Allow 1-character ASCII unicode where 1-character str is required

2013-12-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: PEP414 was about adding a feature to 3.3 well before the first alpha release. What Guido has recently said about 2.7 is that after 3 1/2 years we should concentrate on build issues such as came up with the new OSX and de-emphasize or even cease fixing bugs.

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20037 ___ ___ Python-bugs-list

[issue20038] Crash due to I/O in __del__

2013-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - duplicate status: open - closed superseder: - Calling traceback.format_exception() during Pyhon shutdown does crash Python ___ Python tracker rep...@bugs.python.org

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, the current idiom for calling PyModule_GetState in extension modules isn't safe (because it assumes nothing ever errors out, which can be wrong in the shutdown phase). -- nosy: +gvanrossum, ncoghlan, pitrou

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Speaking of which, Victor, your script works here: $ ./python futcrash.py Future/Task exception was never retrieved: Traceback (most recent call last): File futcrash.py, line 4, in module raise ValueError() ValueError --

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, that was before the latest changes. Scratch that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20037 ___

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: See issue18710 for an API proposal which may help in some cases. Also, see https://mail.python.org/pipermail/python-dev/2013-August/127862.html for an involved discussion of issues with the current module state scheme. --

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that the module state is only used when no explicit encoding is given to TextIOWrapper(), so the following patch fixes this particular issue: $ hg di diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c --- a/Modules/_io/textio.c +++

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch with tests. -- keywords: +patch stage: - patch review type: - crash Added file: http://bugs.python.org/file33242/iostate_shutdown.patch ___ Python tracker rep...@bugs.python.org

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread STINNER Victor
STINNER Victor added the comment: Oh, I think that #19421 was also a duplicate of this issue. Updated example from this issue: attached script crash_logging_exc_info.py. Output: --- $ ./python crash_logging_exc_info.py Erreur de segmentation (core dumped) --- Output with

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread STINNER Victor
STINNER Victor added the comment: iostate_shutdown.patch: _PyIO_State *state = IO_STATE; looks weird to me. The macro should be take parenthesis: _PyIO_State *state = IO_STATE();. When I read IO_STATE, it looks like a global variable, whereas it does call a real function. --

[issue20040] Tracing not disabled in generator when the system trace function returns None.

2013-12-21 Thread Xavier de Gaye
New submission from Xavier de Gaye: The sys.settrace documentation states: The trace function is invoked (with event set to 'call') whenever a new local scope is entered; it should return a reference to a local trace function to be used that scope, or None if the scope shouldn’t be traced.

[issue19861] Update What's New for Python 3.4

2013-12-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19861 ___ ___

[issue20041] TypeError when f_trace is None and tracing.

2013-12-21 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file33246/f_trace.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20041 ___

[issue20041] TypeError when f_trace is None and tracing.

2013-12-21 Thread Xavier de Gaye
New submission from Xavier de Gaye: Section 3.2 of 'The Python Language Reference' states: f_trace, if not None, is a function called at the start of each source code line Run the attached tracer.py and see that although f_trace is None in both cases when 'cmd' is either 'delete' or 'set',

[issue16672] improve tracing performances when f_trace is NULL

2013-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: A patch proposed in issue 20041 provides a backward compatible solution to this performance enhancement. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16672

[issue19463] assertGdbRepr depends on hash randomization / endianess

2013-12-21 Thread Stefan Krah
Stefan Krah added the comment: Also on System Z: http://buildbot.python.org/all/builders/System%20Z%20Linux%203.x/builds/1009/steps/test/logs/stdio Setting priority to normal, since it's the only test failing on System Z and generally green buildbots are more useful. -- keywords:

[issue20040] Tracing not disabled in generator when the system trace function returns None.

2013-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: A patch is proposed in issue 20041. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20040 ___ ___

[issue11992] sys.settrace doesn't disable tracing if a local trace function returns None

2013-12-21 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also issue 20040. -- nosy: +xdegaye ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11992 ___ ___

[issue19463] assertGdbRepr depends on hash randomization / endianess

2013-12-21 Thread STINNER Victor
STINNER Victor added the comment: Oh, I didn't notice this issue. I created the duplicate #19753 and I did some changes to try to fix it. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19463

[issue20042] Python Launcher for Windows fails to invoke scripts with non-latin names

2013-12-21 Thread Konstantin Zemlyak
New submission from Konstantin Zemlyak: Running `py.exe юникод.py` in cmd window fails: E:\set PYLAUNCH_DEBUG=1 E:\py юникод.py launcher build: 32bit launcher executable: Console File 'C:\Users\Zart\AppData\Local\py.ini' non-existent Using global configuration file 'C:\Windows\py.ini' Called

[issue19463] assertGdbRepr depends on hash randomization / endianess

2013-12-21 Thread STINNER Victor
STINNER Victor added the comment: When trying to workaround a bug in the implementation of the PEP 456 (which was not known as a bug at this time), I implemented something using subprocessing which may be reused on SystemZ (or maybe on all platforms): changeset: 87290:11cb1c8faf11 user:

[issue20042] Python Launcher for Windows fails to invoke scripts with non-latin names

2013-12-21 Thread Konstantin Zemlyak
Changes by Konstantin Zemlyak z...@zartsoft.ru: Removed file: http://bugs.python.org/file33247/pylauncher-fix-launcing-unicode-filenames.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20042

[issue20042] Python Launcher for Windows fails to invoke scripts with non-latin names

2013-12-21 Thread Konstantin Zemlyak
Konstantin Zemlyak added the comment: Sorry, fixed whitespaces in the patch. -- Added file: http://bugs.python.org/file33248/pylauncher-fix-launcing-unicode-filenames.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20042

[issue20042] Python Launcher for Windows fails to invoke scripts with non-latin names

2013-12-21 Thread STINNER Victor
STINNER Victor added the comment: It looks like the wide character strings (wchar_t*) are misused. For example: error(RC_NO_PYTHON, LRequested Python version (%s) ..., p[1]); fwprintf(stdout, Lusage: %s ...\n\n, argv[0]); The %s formatter is for byte string (char*), %ls should be used instead.

[issue20042] Python Launcher for Windows fails to invoke scripts with non-latin names

2013-12-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +brian.curtin, loewis, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20042 ___

[issue20040] Tracing not disabled in generator when the system trace function returns None.

2013-12-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +nedbat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20040 ___ ___ Python-bugs-list

[issue20040] Tracing not disabled in generator when the system trace function returns None.

2013-12-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +pitrou, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20040 ___ ___

[issue20042] Python Launcher for Windows fails to invoke scripts with non-latin names

2013-12-21 Thread Konstantin Zemlyak
Konstantin Zemlyak added the comment: I don't care much about debug output though it probably should be fixed. The point is that changing text mode of stdout has a weird side effect of fixing command-line arguments when invoking interactively from cmd.exe. --

[issue19861] Update What's New for Python 3.4

2013-12-21 Thread STINNER Victor
STINNER Victor added the comment: There is a command to generate a list a list versionchanged, but I don't remember it. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19861

[issue19380] Optimize parsing of regular expressions

2013-12-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19380 ___ ___ Python-bugs-list

[issue20043] test_multiprocessing_main_handling fails --without-threads

2013-12-21 Thread Stefan Krah
New submission from Stefan Krah: http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/5874/steps/test/logs/stdio test test_multiprocessing_main_handling crashed -- Traceback (most recent call last): File

[issue14228] It is impossible to catch sigint on startup in python code

2013-12-21 Thread STINNER Victor
STINNER Victor added the comment: Sorry, but I don't understand this issue. Well, I understood the issue as When I press CTRL+c to interrupt Python, Python does exit. What's wrong with that? Why do you send CTRL+c if you don't want Python to exit? Using custom signal handler (SIG_IGN), it

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9158f201f6d0 by Antoine Pitrou in branch 'default': Issue #20037: Avoid crashes when doing text I/O late at interpreter shutdown. http://hg.python.org/cpython/rev/9158f201f6d0 -- nosy: +python-dev ___

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Applied Victor's comments and committed the fix. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20037

[issue20037] Calling traceback.format_exception() during Pyhon shutdown does crash Python

2013-12-21 Thread STINNER Victor
STINNER Victor added the comment: Applied Victor's comments Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20037 ___ ___

[issue20042] Python Launcher for Windows fails to invoke scripts with non-latin names

2013-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20042 ___

[issue16136] Removal of VMS support

2013-12-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 568391b3eda9 by Christian Heimes in branch 'default': Issue #16136: Remove VMS support and VMS-related code http://hg.python.org/cpython/rev/568391b3eda9 -- nosy: +python-dev ___ Python tracker

[issue19766] test_venv: test_with_pip() failed on AMD64 Fedora without threads 3.x buildbot: urllib3 dependency requires the threading module

2013-12-21 Thread Nick Coghlan
Nick Coghlan added the comment: Donald updated CPython to pip 1.5rc2, so test_venv is now passing without threading support: http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/5874/steps/test/logs/stdio -- status: open - closed

[issue19766] test_venv: test_with_pip() failed on AMD64 Fedora without threads 3.x buildbot: urllib3 dependency requires the threading module

2013-12-21 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - fixed stage: - committed/rejected type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19766 ___

[issue19744] test_venv fails if SSL/TLS is not available

2013-12-21 Thread Nick Coghlan
Nick Coghlan added the comment: OK, since pip 1.5 will still have the SSL/TLS dependency, the approach I'll go with for 3.4 is to: 1. Have ensurepip refuse to bootstrap pip if the ssl module is not available (noting that we'll remove that restriction if pip 1.6 avoids the strict dependency)

[issue19734] venv and ensurepip are affected by pip environment variable settings

2013-12-21 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19734 ___ ___ Python-bugs-list

[issue16136] Removal of VMS support

2013-12-21 Thread Christian Heimes
Christian Heimes added the comment: All VMS code has been removed except for some code in Lib/platform.py. MAL: Do you want to keep the code in the platform module? -- assignee: - lemburg nosy: +lemburg resolution: - fixed stage: - committed/rejected status: open - pending

[issue14228] It is impossible to catch sigint on startup in python code

2013-12-21 Thread telmich
telmich added the comment: Victor, the problem is *not* that python exits. This is fine and virtually every other unix program behaves like that. The problem is that python throws an ugly-to-read and completly senseless backtrace to the novice (end!) user by default. Backtraces are great for

[issue20043] test_multiprocessing_main_handling fails --without-threads

2013-12-21 Thread Berker Peksag
Berker Peksag added the comment: This is fixed by changeset http://hg.python.org/cpython/rev/239faf6b6e8d: http://buildbot.python.org/all/builders/AMD64%20Fedora%20without%20threads%203.x/builds/5875/steps/test/logs/stdio -- components: +Library (Lib), Tests -2to3 (2.x to 3.x

  1   2   >