[ANN] Automated Testing on Mac (ATOMac) 1.0.0 released

2012-10-13 Thread James Tatum
Hello, The ATOMac team is proud to announce a new release of ATOMac. About ATOMac: Short for Automated Testing on Mac, ATOMac is the first Python library to fully enable GUI testing of Macintosh applications via the Apple Accessibility API. Existing tools such as using appscript to send

Re: serialization and versioning

2012-10-13 Thread Dieter Maurer
Neal Becker ndbeck...@gmail.com writes: I wonder if there is a recommended approach to handle this issue. Suppose objects of a class C are serialized using python standard pickling. Later, suppose class C is changed, perhaps by adding a data member and a new constructor argument. It

Re: deque and thread-safety

2012-10-13 Thread Dieter Maurer
Christophe Vandeplas christo...@vandeplas.com writes: ... From the documentation I understand that deques are thread-safe: Deques are a generalization of stacks and queues (the name is pronounced “deck” and is short for “double-ended queue”). Deques support thread-safe, memory efficient

The message was not delivered

2012-10-13 Thread noreply
The attached message was mark as SPAM. The message was not delivered.---BeginMessage--- Some parts of this message were removed because they violated your mail server's policies. message.zip was removed from the message because it violates your mail server's policy. ---BeginMessage--- The

Re: Feedback on my python framework I'm building.

2012-10-13 Thread Etienne Robillard
On Fri, 12 Oct 2012 21:49:55 -0700 (PDT) nbvf...@gmail.com wrote: http://giotto.readthedocs.org/en/latest/tutorial.html Can someone give me some feedback on what they think of this framework? I came up with the idea of this framework a few months ago. I gave a talk at a local python user

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Thomas Bach
On Sat, Oct 13, 2012 at 12:32:41AM +, Steven D'Aprano wrote: He gets SyntaxError because you can't follow a semicolon with a statement that begins a block. Can someone provide a link on where to find this type of information? I was just hunting through “The Python Language Reference” and

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Chris Angelico
On Sat, Oct 13, 2012 at 7:41 PM, Thomas Bach thb...@students.uni-mainz.de wrote: On Sat, Oct 13, 2012 at 12:32:41AM +, Steven D'Aprano wrote: He gets SyntaxError because you can't follow a semicolon with a statement that begins a block. Can someone provide a link on where to find this

Re: Checking for dlls in ctypes

2012-10-13 Thread Nobody
On Fri, 12 Oct 2012 12:28:17 -0400, Dave Angel wrote: Using bare excepts is almost never a good idea. If it works you get no clues what went wrong. For example, a typo in source code can trigger a bare exception, as can a user typing Ctrl-C. So when you're using bare excepts, you have

readline trick needed

2012-10-13 Thread Steven D'Aprano
I'm working with the readline module, and I'm trying to set a key combination to process the current command line by calling a known function, *and* enter the command line. Something along the lines of: * execute function spam() in some context where it can access the current command line

Re: readline trick needed

2012-10-13 Thread Etienne Robillard
On 13 Oct 2012 13:30:14 GMT Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: I'm working with the readline module, and I'm trying to set a key combination to process the current command line by calling a known function, *and* enter the command line. Something along the lines

Re: Checking for dlls in ctypes

2012-10-13 Thread 88888 Dihedral
Wanderer於 2012年10月12日星期五UTC+8下午11時36分27秒寫道: I'm trying to write some code that will load one of three dll depending on the one available. I've tried the code below, but it doesn't work. The try except doesn't catch the exception. Is there a way to do this? try:

Re: readline trick needed

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 12:44 AM, Etienne Robillard animelo...@gmail.com wrote: Why dont you grow yourself some usable neurons instead ? Don't you realize now stackoverflow.com is starting to hurt your capacity to cogitate on your own or have you not realized this yet? Excuse me? I'm not

Re: readline trick needed

2012-10-13 Thread Etienne Robillard
On Sun, 14 Oct 2012 00:47:52 +1100 Chris Angelico ros...@gmail.com wrote: Excuse me? I'm not overly familiar with readline, so perhaps there is a really obvious way to do what Steven's trying to do, but this post does not appear to be the result of a lack of thinking. If it really IS

Re: Feedback on my python framework I'm building.

2012-10-13 Thread Chris Angelico
On Sat, Oct 13, 2012 at 3:49 PM, nbvf...@gmail.com wrote: Basically its a framework that forces the developer(s) to strictly separate the model from the view and controller. You can 'hook up' multiple controllers to a project. The model layer can be completely mocked out so front end

Re: Feedback on my python framework I'm building.

2012-10-13 Thread Etienne Robillard
On Sun, 14 Oct 2012 01:12:30 +1100 Chris Angelico ros...@gmail.com wrote: On Sat, Oct 13, 2012 at 3:49 PM, nbvf...@gmail.com wrote: Basically its a framework that forces the developer(s) to strictly separate the model from the view and controller. You can 'hook up' multiple controllers

Aggressive language on python-list

2012-10-13 Thread Zero Piraeus
: Not sure exactly how to put this ... I'm a mostly passive subscriber to this list - my posts here over the years could probably be counted without having to take my socks off - so perhaps I have no right to comment, but I've noticed a marked increase in aggressive language here lately, so I'm

Re: Aggressive language on python-list

2012-10-13 Thread Etienne Robillard
On Sat, 13 Oct 2012 11:21:28 -0400 Zero Piraeus sche...@gmail.com wrote: : Not sure exactly how to put this ... I'm a mostly passive subscriber to this list - my posts here over the years could probably be counted without having to take my socks off - so perhaps I have no right to

Re: Feedback on my python framework I'm building.

2012-10-13 Thread nbvfour
On Saturday, October 13, 2012 10:13:22 AM UTC-4, Chris Angelico wrote: On Sat, Oct 13, 2012 at 3:49 PM, nbvf...@gmail.com wrote: Basically its a framework that forces the developer(s) to strictly separate the model from the view and controller. You can 'hook up' multiple controllers to

Re: Feedback on my python framework I'm building.

2012-10-13 Thread Etienne Robillard
On Sat, 13 Oct 2012 08:57:47 -0700 (PDT) nbvf...@gmail.com wrote: Do you have an example of a task that giotto can't handle that other frameworks can? One of my goals is to have this framework turing complete in the sense that everything that other frameworks can do, giotto should be able

Re: Aggressive language on python-list

2012-10-13 Thread Joshua Landau
On 13 October 2012 16:21, Zero Piraeus sche...@gmail.com wrote: : Not sure exactly how to put this ... I'm a mostly passive subscriber to this list - my posts here over the years could probably be counted without having to take my socks off - so perhaps I have no right to comment, but I've

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Joshua Landau
On 13 October 2012 10:03, Chris Angelico ros...@gmail.com wrote: On Sat, Oct 13, 2012 at 7:41 PM, Thomas Bach thb...@students.uni-mainz.de wrote: On Sat, Oct 13, 2012 at 12:32:41AM +, Steven D'Aprano wrote: He gets SyntaxError because you can't follow a semicolon with a statement

Re: Feedback on my python framework I'm building.

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 2:57 AM, nbvf...@gmail.com wrote: Do you have an example of a task that giotto can't handle that other frameworks can? One of my goals is to have this framework turing complete in the sense that everything that other frameworks can do, giotto should be able to do. I

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 3:38 AM, Joshua Landau joshua.landau...@gmail.com wrote: This here isn't a flaw in Python, though. It's a flaw in the command-line interpreter. By putting it all on one line, you are effectively saying: group these. Which is the same as an if True: block, and some things

Re: Aggressive language on python-list

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 2:21 AM, Zero Piraeus sche...@gmail.com wrote: I'm a mostly passive subscriber to this list - my posts here over the years could probably be counted without having to take my socks off - so perhaps I have no right to comment, but I've noticed a marked increase in

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Jussi Piitulainen
Chris Angelico writes: Here's a side challenge. In any shell you like, start with this failing statement, and then fix it without retyping anything: sikorsky@sikorsky:~$ python -c a=1; if a: print(a) File string, line 1 a=1; if a: print(a) ^ SyntaxError: invalid syntax

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 4:43 AM, Jussi Piitulainen jpiit...@ling.helsinki.fi wrote: Chris Angelico writes: Here's a side challenge. In any shell you like, start with this failing statement, and then fix it without retyping anything: sikorsky@sikorsky:~$ python -c a=1; if a: print(a) C-v

Re: Where are documentation for Gnome

2012-10-13 Thread Kwpolska
On Sat, Oct 13, 2012 at 7:50 PM, Santosh Kumar sntshkm...@gmail.com wrote: Where are the documentation for Gnome's EOG? I want to develop a plugin in Python. On 10/13/12, Santosh Kumar sntshkm...@gmail.com wrote: -- http://mail.python.org/mailman/listinfo/python-list

Re: Feedback on my python framework I'm building.

2012-10-13 Thread nbvfour
On Saturday, October 13, 2012 12:48:23 PM UTC-4, Chris Angelico wrote: No, I don't, because I haven't tried to use it. But allow me to give two examples, one on each side of the argument. The 'tee' utility is primarily for writing a pipe to disk AND to further pipelining, for instance:

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Joshua Landau
On 13 October 2012 18:23, Chris Angelico ros...@gmail.com wrote: On Sun, Oct 14, 2012 at 3:38 AM, Joshua Landau joshua.landau...@gmail.com wrote: This here isn't a flaw in Python, though. It's a flaw in the command-line interpreter. By putting it all on one line, you are effectively saying:

Re: Feedback on my python framework I'm building.

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 5:18 AM, nbvf...@gmail.com wrote: On Saturday, October 13, 2012 12:48:23 PM UTC-4, Chris Angelico wrote: No, I don't, because I haven't tried to use it. But allow me to give two examples, one on each side of the argument. The 'tee' utility is primarily for writing a

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 5:21 AM, Joshua Landau joshua.landau...@gmail.com wrote: Because Python uses indentation, what would if A: print(1); if B: print(2) even do? It has to fail, because we have to assume consistent indentation for ;s*. With \n as I proposed, you still have to indent: it is

Understanding http proxies

2012-10-13 Thread Olive
I am trying to understand how to build an http proxy server in python, and I have found the following example: http://www.oki-osk.jp/esc/python/proxy/ But I do not have found an exact description of what exactly a proxy server is suppose to do (all references gice only the basic principe of

Re: Understanding http proxies

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 5:43 AM, Olive di...@bigfoot.com wrote: it seems when I read the code above that the proxy acts mostly as an orinary server with respect to the client except that it is supposed to receive the full URL instead of just the path. Am I right? Is there any documentation on

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Joshua Landau
On 13 October 2012 19:41, Chris Angelico ros...@gmail.com wrote: On Sun, Oct 14, 2012 at 5:21 AM, Joshua Landau joshua.landau...@gmail.com wrote: Because Python uses indentation, what would if A: print(1); if B: print(2) even do? It has to fail, because we have to assume consistent

Re: Is `wsample` a proper name for a function like this?

2012-10-13 Thread Joshua Landau
On 12 October 2012 03:22, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wed, 10 Oct 2012 23:44:42 -0700, suzaku wrote: I think if a programmer has used the built-in `random` module before, he would expect a function with sample in its name to return a population

Re: readline trick needed

2012-10-13 Thread Roel Schroeven
Etienne Robillard schreef: On Sun, 14 Oct 2012 00:47:52 +1100 Chris Angelico ros...@gmail.com wrote: Excuse me? I'm not overly familiar with readline, so perhaps there is a really obvious way to do what Steven's trying to do, but this post does not appear to be the result of a lack of

Re: Aggressive language on python-list

2012-10-13 Thread Roel Schroeven
Zero Piraeus schreef: : Not sure exactly how to put this ... I'm a mostly passive subscriber to this list - my posts here over the years could probably be counted without having to take my socks off - so perhaps I have no right to comment, but I've noticed a marked increase in aggressive

Re: readline trick needed

2012-10-13 Thread Joshua Landau
On 13 October 2012 22:14, Roel Schroeven r...@roelschroeven.net wrote: Etienne Robillard schreef: On Sun, 14 Oct 2012 00:47:52 +1100 Chris Angelico ros...@gmail.com wrote: Excuse me? I'm not overly familiar with readline, so perhaps there is a really obvious way to do what Steven's

Re: Aggressive language on python-list

2012-10-13 Thread Tim Delaney
On 14 October 2012 08:22, Roel Schroeven r...@roelschroeven.net wrote: Zero Piraeus schreef: : Not sure exactly how to put this ... I'm a mostly passive subscriber to this list - my posts here over the years could probably be counted without having to take my socks off - so perhaps I

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 6:06 AM, Joshua Landau joshua.landau...@gmail.com wrote: The fact that your proposal can't allow a=[]\nfor x in range(10): a.append(x**a[-2])\nprint(a) makes it somewhat an incomplete suggestion, and code like: while True: while True: break; break is just confusing.

Re: readline trick needed

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 8:31 AM, Joshua Landau joshua.landau...@gmail.com wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to block these accounts? Even if it does nothing more than slow them, that's something. That's what killfiles are for. You

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Joshua Landau
On 13 October 2012 22:39, Chris Angelico ros...@gmail.com wrote: On Sun, Oct 14, 2012 at 6:06 AM, Joshua Landau joshua.landau...@gmail.com wrote: The fact that your proposal can't allow a=[]\nfor x in range(10): a.append(x**a[-2])\nprint(a) makes it somewhat an incomplete suggestion, and

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 9:00 AM, Joshua Landau joshua.landau...@gmail.com wrote: That is also callable from the command-line like so: python -m debrace -c if a: ${ print(1) $ print(2) $ while b: c() $ if g: ${ pass }$ }$ print(d) Wait you're pretty much implementing from __future__ import

Re: Aggressive language on python-list

2012-10-13 Thread Joshua Landau
On 13 October 2012 22:35, Tim Delaney timothy.c.dela...@gmail.com wrote: On 14 October 2012 08:22, Roel Schroeven r...@roelschroeven.net wrote: Zero Piraeus schreef: : Not sure exactly how to put this ... I'm a mostly passive subscriber to this list - my posts here over the years could

Re: readline trick needed

2012-10-13 Thread Mark Lawrence
On 13/10/2012 22:31, Joshua Landau wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to block these accounts? Even if it does nothing more than slow them, that's something. Most irritants are mere amateurs compared to Ilias Lazaridis. I wonder

Re: How to use while within the command in -c option of python?

2012-10-13 Thread Joshua Landau
On 13 October 2012 23:09, Chris Angelico ros...@gmail.com wrote: On Sun, Oct 14, 2012 at 9:00 AM, Joshua Landau joshua.landau...@gmail.com wrote: That is also callable from the command-line like so: python -m debrace -c if a: ${ print(1) $ print(2) $ while b: c() $ if g: ${ pass }$ }$

Re: Feedback on my python framework I'm building.

2012-10-13 Thread nbvfour
On Saturday, October 13, 2012 2:33:43 PM UTC-4, Chris Angelico wrote: Nice theory, but this is the bit that I fundamentally disagree with. Forcing programmers to work in one particular style is usually not the job of the language/framework/library. That should be up to the programmer, or at

Re: readline trick needed

2012-10-13 Thread Joshua Landau
On 13 October 2012 22:44, Chris Angelico ros...@gmail.com wrote: On Sun, Oct 14, 2012 at 8:31 AM, Joshua Landau joshua.landau...@gmail.com wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to block these accounts? Even if it does nothing more

Re: readline trick needed

2012-10-13 Thread Joshua Landau
On 13 October 2012 23:13, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/10/2012 22:31, Joshua Landau wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to block these accounts? Even if it does nothing more than slow them, that's something.

Re: readline trick needed

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 9:25 AM, Joshua Landau joshua.landau...@gmail.com wrote: On 13 October 2012 22:44, Chris Angelico ros...@gmail.com wrote: On Sun, Oct 14, 2012 at 8:31 AM, Joshua Landau joshua.landau...@gmail.com wrote: With two irritants (including 8), is it not advisable that

Re: readline trick needed

2012-10-13 Thread Mark Lawrence
On 13/10/2012 23:26, Joshua Landau wrote: On 13 October 2012 23:13, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/10/2012 22:31, Joshua Landau wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to block these accounts? Even if it does

Re: Feedback on my python framework I'm building.

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 9:24 AM, nbvf...@gmail.com wrote: On Saturday, October 13, 2012 2:33:43 PM UTC-4, Chris Angelico wrote: Nice theory, but this is the bit that I fundamentally disagree with. Forcing programmers to work in one particular style is usually not the job of the

Re: Aggressive language on python-list

2012-10-13 Thread Tim Delaney
A response to someone who quotes a trollbot just stating *Username* is a trollbot. where *no* further correspondence occurs doesn't seem like trollbotbait to me, and it makes it easy for people to know who's been warned. If properly trimmed, so there is no reference to the troll/bot or any

Re: readline trick needed

2012-10-13 Thread Mark Lawrence
On 13/10/2012 23:52, Mark Lawrence wrote: On 13/10/2012 23:26, Joshua Landau wrote: On 13 October 2012 23:13, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/10/2012 22:31, Joshua Landau wrote: With two irritants (including 8), is it not advisable that python-list gets an admin to

Re: Feedback on my python framework I'm building.

2012-10-13 Thread Oscar Benjamin
On 13 October 2012 17:48, Chris Angelico ros...@gmail.com wrote: The only way to support *absolutely everything* is to do nothing - to be a framework so thin you're invisible. (That's not to say you're useless; there are bridge modules that do exactly this - ctypes can call on any library

Re: Feedback on my python framework I'm building.

2012-10-13 Thread Steven D'Aprano
On Sat, 13 Oct 2012 15:24:04 -0700, nbvfour wrote: On Saturday, October 13, 2012 2:33:43 PM UTC-4, Chris Angelico wrote: Nice theory, but this is the bit that I fundamentally disagree with. Forcing programmers to work in one particular style is usually not the job of the

Re: one obvious parser (was Feedback on my python framework I'm building.)

2012-10-13 Thread Tim Chase
On 10/13/12 21:25, Steven D'Aprano wrote: Not being Dutch, I don't know whether the obvious way to do command line argument handling is the getopt module or argparse. But there certainly isn't *only one way* to do command line argument handling. As an aside, I just watched a fascinating

Re: Feedback on my python framework I'm building.

2012-10-13 Thread MRAB
On 2012-10-14 03:25, Steven D'Aprano wrote: On Sat, 13 Oct 2012 15:24:04 -0700, nbvfour wrote: On Saturday, October 13, 2012 2:33:43 PM UTC-4, Chris Angelico wrote: Nice theory, but this is the bit that I fundamentally disagree with. Forcing programmers to work in one particular style is

Re: Feedback on my python framework I'm building.

2012-10-13 Thread Steven D'Aprano
On Sun, 14 Oct 2012 05:33:40 +1100, Chris Angelico wrote: Forcing programmers to work in one particular style is usually not the job of the language/framework/library. Have you actually programmed before? *grin* I've never come across a language/framework/library that DOESN'T force

trouble with nested closures: one of my variables is missing...

2012-10-13 Thread Cameron Simpson
I'm having some trouble with closures when defining a decorator. TL;DR: I have a function that makes a decorator, and only some of the names from an outer scope appear in the inner closure's locals(). And I do not understand why at all. Let me explain... Environment: python 2.7.3 on

Re: Feedback on my python framework I'm building.

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 2:37 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 14 Oct 2012 05:33:40 +1100, Chris Angelico wrote: Forcing programmers to work in one particular style is usually not the job of the language/framework/library. Have you actually programmed

Understanding and dealing with an exception

2012-10-13 Thread Vincent Davis
I am working on a script to find bad image files. I am using PIL and specifically image.verify() I have a set of known to be bad image files to test. I also what to be able to test any file for example a .txt and deal with the exception. Currently my code is basically try: im =

Re: Understanding and dealing with an exception

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 3:23 PM, Vincent Davis vinc...@vincentdavis.net wrote: OverflowError: Python int too large to convert to C long line 266, in _maketile bytecount = read(channels * ysize * 2) Is the file over 2GB? Might be a limitation, more than a bug, and one that could possibly be

Re: Understanding and dealing with an exception

2012-10-13 Thread Vincent Davis
Oops, I was going to make note of the file size. 1.2MB Vincent On Sat, Oct 13, 2012 at 10:31 PM, Chris Angelico ros...@gmail.com wrote: On Sun, Oct 14, 2012 at 3:23 PM, Vincent Davis vinc...@vincentdavis.net wrote: OverflowError: Python int too large to convert to C long line 266, in

Re: Understanding and dealing with an exception

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 3:36 PM, Vincent Davis vinc...@vincentdavis.net wrote: Oops, I was going to make note of the file size. 1.2MB Then I'd definitely declare the file bad; I don't know what the valid ranges for channels and ysize are, but my reading of that is that your file's completely

Re: Understanding and dealing with an exception

2012-10-13 Thread Vincent Davis
I can open it is and all looks good using Pixelmator (I don't have Photoshop installed). I don't think there is anything wrong with the image. Part of my question is a result of being new to actually using exceptions in my programs and dealing with the exceptions is a primary part of what I need

Re: trouble with nested closures: one of my variables is missing...

2012-10-13 Thread Chris Rebert
On Saturday, October 13, 2012, Cameron Simpson wrote: I'm having some trouble with closures when defining a decorator. snip However, I can't make my make_file_property function work. I've stripped the code down and it does this: snip Traceback (most recent call last): File foo.py,

Re: Understanding and dealing with an exception

2012-10-13 Thread Chris Angelico
On Sun, Oct 14, 2012 at 4:01 PM, Vincent Davis vinc...@vincentdavis.net wrote: I can open it is and all looks good using Pixelmator (I don't have Photoshop installed). I don't think there is anything wrong with the image. Part of my question is a result of being new to actually using

Re: Aggressive language on python-list

2012-10-13 Thread Dwight Hutto
I'm not a know it all, but when attacked personally I defend myself, and those can turn into flame wars. Your plonks are irrelevant in terms of an argument ytou shouldn't participate in. These things can get nasty quick. So if you have virgin eyes, then kill file it, but I like to think Ioffer

[issue16202] sys.path[0] security issues

2012-10-13 Thread Nick Coghlan
Nick Coghlan added the comment: Definite +1 on distutils needing to be fixed in the upcoming maintenance releases for 2.7, 3.2 and 3.3. -1 on doing the strict path security checks on a normal invocation, -0 on doing them when -S or -E have been passed in, +0 if it is *just* a warning to users

[issue16202] sys.path[0] security issues

2012-10-13 Thread Nick Coghlan
Nick Coghlan added the comment: Also, what's up with that weird fallback code in distutils? When is tempfile.mkdtemp ever missing? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16202 ___

[issue16216] Arithmetic operations with NULL

2012-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The Standard is not guarantee that result of converting null pointer to integer is zero or even it is a even number. I remember the ancient C implementation, where it was not so (but Python is not supports these platform). Of course, such a method of

[issue16201] socket.gethostbyname incorrectly parses ip

2012-10-13 Thread Michele Orrù
Michele Orrù added the comment: Buggy due to the use of scanf at Modueles/socketmodule.c:868 I don't think so. The following test fails because sscanf() returns 5 instead of 4: You are right, sorry for didn't notice. If you consider that '192.168.1.1 ' is an invalid name, you should

[issue16201] socket.gethostbyname incorrectly parses ip

2012-10-13 Thread Michele Orrù
Michele Orrù added the comment: Reviewed with Ezio. -- Added file: http://bugs.python.org/file27550/issue16201.2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16201 ___

[issue15936] Add link from os.urandom to random.SystemRandom

2012-10-13 Thread Mike Hoy
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15936 ___ ___ Python-bugs-list mailing list

[issue16202] sys.path[0] security issues

2012-10-13 Thread Volker Braun
Volker Braun added the comment: When is tempfile.mkdtemp ever missing It was added in Python 2.3, in the dark ages before that there was only tempfile.mktemp. Though I guess we can remove the fallback now... -- ___ Python tracker

[issue16206] dict() docs should display multiple signatures

2012-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed6da2a8361c by Chris Jerdonek in branch '3.2': Issue #16206: Improve the documentation of the dict constructor. http://hg.python.org/cpython/rev/ed6da2a8361c New changeset 02de13d69149 by Chris Jerdonek in branch '3.3': Issue #16206: Merge dict

[issue16206] dict() docs should display multiple signatures

2012-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5fc6f47974db by Chris Jerdonek in branch '2.7': Issue #16206: Backport dict documentation improvements from 3.2. http://hg.python.org/cpython/rev/5fc6f47974db -- ___ Python tracker rep...@bugs.python.org

[issue16206] dict() docs should display multiple signatures

2012-10-13 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16206 ___

[issue16215] Possible double memory free in str.replace

2012-10-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16215 ___ ___ Python-bugs-list mailing

[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

2012-10-13 Thread Matthew Woodcraft
New submission from Matthew Woodcraft: If I run my code using 'python -m' and there is an unhandled exception, the tracebacks include lines from runpy.py (and now sometimes from importlib._bootstrap) which don't provide useful information, and tend to overwhelm the valuable part of the

[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

2012-10-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16217 ___ ___ Python-bugs-list mailing

[issue16061] performance regression in string replace for 3.3

2012-10-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16061 ___ ___

[issue16218] Python launcher does not support non ascii characters

2012-10-13 Thread Turn
New submission from Turn: If there are non ASCII character in the py.exe arguments, the execution will fail. The script file name or path may contain non ASCII characters. -- components: Windows messages: 172807 nosy: turncc priority: normal severity: normal status: open title: Python

[issue16218] Python launcher does not support non ascii characters

2012-10-13 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kloth+python-trac...@gmail.com: -- nosy: +jkloth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16218 ___ ___

[issue16217] Tracebacks are unnecessarily verbose when using 'python -m'

2012-10-13 Thread Nick Coghlan
Nick Coghlan added the comment: Agreed. We do have a mechanism in place to deal with this specifically for importlib in 3.3 (which is why the first traceback is cleaner, although it's not triggering in the SyntaxError case for some reason), but it makes sense to hide the noise from runpy as

[issue16106] antigravity tests

2012-10-13 Thread Ramchandra Apte
Ramchandra Apte added the comment: @Antoine Aw.. no funny bone in you.. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16106 ___

[issue8402] glob returns empty list with [ character in the folder name

2012-10-13 Thread Michele Orrù
Michele Orrù added the comment: The attached patch adds support for '\\' escaping to fnmatch, and consequently to glob. -- keywords: +patch nosy: +maker versions: +Python 3.4 -Python 3.2 Added file: http://bugs.python.org/file27551/issue8402.patch

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-10-13 Thread Trent Nelson
Changes by Trent Nelson tr...@snakebite.org: -- nosy: +trent ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15298 ___ ___ Python-bugs-list mailing

[issue16145] Abort in _csv module

2012-10-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: LGTM -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16145 ___ ___ Python-bugs-list mailing

[issue16202] sys.path[0] security issues

2012-10-13 Thread Eric Snow
Eric Snow added the comment: For 3.4, I plan to have a look at the organically-grown-over-time mess that is CPython's current interpreter initialisation system and see if I can figure out something a bit more sane and easier to configure/control (especially when embedding Python in a larger

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-10-13 Thread Trent Nelson
Trent Nelson added the comment: The previous 'alt_sysconfigdata.patch' didn't apply cleanly to 3.3/3.x. I've attached an updated patch that does. Any objections to applying this to 3.3 - 3.x now that the freeze is over? -- versions: +Python 3.4 Added file:

[issue14774] _sysconfigdata.py doesn't support multiple build configurations

2012-10-13 Thread Trent Nelson
Trent Nelson added the comment: I'm pretty sure this is a duplicate of http://bugs.python.org/issue15298 (which should be fixed shortly). Feel free to re-open if I'm wrong. -- nosy: +trent resolution: - duplicate status: open - closed ___ Python

[issue16219] segfault when using xml.etree.ElementTree.XMLTreeBuilder

2012-10-13 Thread Scott Maxwell
New submission from Scott Maxwell: I upgraded the meld3 module (used by Supervisord) to work on Py3K and discovered this segfault. It happens every time. I have seen this on the pre-built Mac 3.3.0 and a source-built 3.3.0 on Linux. It does not occur in 3.2.2. It appears to happen in native

[issue16203] Proposal: add re.fullmatch() method

2012-10-13 Thread Matthew Barnett
Matthew Barnett added the comment: Tim, my point is that if the MULTILINE flag happens to be turned on, '$' won't just match at the end of the string (or slice), it'll also match at a newline, so wrapping the pattern in (?:...)$ in that case could give the wrong answer, but wrapping it in

[issue15833] most failures to write byte-compiled file no longer suppressed

2012-10-13 Thread Trent Nelson
Trent Nelson added the comment: FWIW, I just ran into the following on Solaris 10: % dbx python For information about new features see `help changes' To remove this message, put `dbxenv suppress_startup_message 7.9' in your .dbxrc Reading python Reading ld.so.1 Reading libsocket.so.1 Reading

[issue16219] segfault when using xml.etree.ElementTree.XMLTreeBuilder

2012-10-13 Thread Christian Heimes
Christian Heimes added the comment: Thanks for your report.It's a know issue and has already been fixed in HG. #16089 contains a patch if you like to give it a shot. -- nosy: +christian.heimes resolution: - duplicate stage: - committed/rejected status: open - pending

[issue16203] Proposal: add re.fullmatch() method

2012-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Tim, my point is that if the MULTILINE flag happens to be turned on, '$' won't just match at the end of the string (or slice), it'll also match at a newline, so wrapping the pattern in (?:...)$ in that case could give the wrong answer, but wrapping it in

[issue15833] most failures to write byte-compiled file no longer suppressed

2012-10-13 Thread Trent Nelson
Trent Nelson added the comment: That... didn't work. Also applied rpetrov's patch and that made no difference: % ./python Could not find platform dependent libraries exec_prefix Consider setting $PYTHONHOME to prefix[:exec_prefix] Fatal Python error: Py_Initialize: Unable to get the locale

[issue16061] performance regression in string replace for 3.3

2012-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After much experimentation, I suggest the new patch. Benchmark results (time of replacing 1 of n character (ch1 to ch2) in 10- char string). Py3.2Py3.3patch n ch1 ch2 fill 231 (-13%) 3025 (-93%) 2001 'a' 'b' 'c' 626 (-18%) 2035

  1   2   >