distutils.core.setup --install-script option in Python 2.6 ?

2009-11-05 Thread j vickroy
Hello, I have just upgraded from Python 2.5 to 2.6 and am unable to locate any trace of the --install-script option, in release 2.6.4 (MS Windows XP), for distutils.core.setup. I also have been unable to locate any mention of it on-line. My v2.5 setup.py scripts are failing with the

parse a string (Cadence Allegro Netlist) to dictionary

2009-11-05 Thread Leland
Hi, I always use readline(), strip(), split() and so on to parse a string. Is there some elegant way to parse the following string into a dictionary {'50MHZ_CLK_SRC' : 'U122.2, R1395.1'}? NET_NAME '50MHZ_CLK_SRC' '@TEST_LIB.TEST(SCH_1):50MHZ_CLK_SRC':

Re: parse a string (Cadence Allegro Netlist) to dictionary

2009-11-05 Thread Emile van Sebille
On 11/5/2009 12:02 PM Leland said... Hi, I always use readline(), strip(), split() and so on to parse a string. Is there some elegant way to parse the following string into a dictionary {'50MHZ_CLK_SRC' : 'U122.2, R1395.1'}? NET_NAME '50MHZ_CLK_SRC' '@TEST_LIB.TEST(SCH_1):50MHZ_CLK_SRC':

2to3 ParseError with UTF-8 BOM

2009-11-05 Thread Farshid
I'm using Python 2.6.2 and when I run the 2to3 script on a file that contains a UTF-8 BOM I get the following error: RefactoringTool: Can't parse filename: ParseError: bad token: type=55, value='\xef', context=('', (1, 0)) If I remove the BOM then it works fine. Is this expected behavior or a

Re: elementtree XML() unicode

2009-11-05 Thread John Machin
On Nov 5, 12:35 am, Stefan Behnel stefan...@behnel.de wrote: John Machin, 04.11.2009 02:56: On Nov 4, 12:14 pm, Kee Nethery wrote: The reason I am confused is that getResponse2 is classified as an   str in the Komodo IDE. I want to make sure I don't lose the non- ASCII characters coming

Re: Python 3

2009-11-05 Thread Terry Reedy
Steven D'Aprano wrote: I've played around with 3.0, and I've read the What's New for 3.1 (and am installing 3.1 now), and while the changes look nice, I'm not sure that they're nice enough to deal with the pain of 2to3 migration. I am in a different position since I did not have current code

Re: Python 3

2009-11-05 Thread geremy condra
On Thu, Nov 5, 2009 at 5:31 PM, Terry Reedy tjre...@udel.edu wrote: Steven D'Aprano wrote: I've played around with 3.0, and I've read the What's New for 3.1 (and am installing 3.1 now), and while the changes look nice, I'm not sure that they're nice enough to deal with the pain of 2to3

Re: Clean PyQt selection comboBox

2009-11-05 Thread Threader Slash
-- Original message -- From: MRAB pyt...@mrabarnett.plus.com To: python-list@python.org Date: Thu, 05 Nov 2009 15:37:49 + Subject: Re: Clean PyQt selection comboBox Threader Slash wrote: Hello Everybody, 8) I am using Qt and need to build a selection comboBox -- e.g.:

Re: Looking for portable what to determine directory where extensions are installed?

2009-11-05 Thread Gabriel Genellina
En Thu, 05 Nov 2009 14:20:28 -0300, Tom Epperly teppe...@llnl.gov escribió: I work on a language interoperability tool, Babel https://computation.llnl.gov/casc/components/components.html; and I need a portable way to determine the directory where Python extension modules are installed by

Need help dumping exif data in canon raw files

2009-11-05 Thread Nuff Nuff
So I've looked at all sorts of things, gone through as many different things as I can find, but I fear python just can't do it. I just need to be able to extract the exif info from a canon CR2 file. The info from canon suggest that it's just the same as a tiff, but anytime I try to get PIL to

Re: PiCloud Beta Release

2009-11-05 Thread Jacob Shaw
On Nov 1, 5:13 pm, Ken Elkabany k...@elkabany.com wrote: Hello, PiCloud has just released a Python library, cloud, which allows you to easily offload the execution of a function to a cluster of servers running on Amazon Web Services. As a beta product, we are currently free to all users who

Re: Need help dumping exif data in canon raw files

2009-11-05 Thread Paul Rubin
Nuff Nuff nuffno...@gmail.com writes: I just need to be able to extract the exif info from a canon CR2 file. The info from canon suggest that it's just the same as a tiff, but anytime I try to get PIL to open one, it says that it tastes bad. And canon don't seem to be all that forthcoming

Re: Why do you use python?

2009-11-05 Thread Simon Forman
On Sat, Oct 31, 2009 at 2:11 AM, sk catchyouraak...@gmail.com wrote: What would be your answer if this question is asked to you in an interview? a modified version might be: Where would you use python over C/C++/Java? (because my resume says I know C/C++/Java)? Mark Miller has some adages

Re: list to table

2009-11-05 Thread Alf P. Steinbach
* Jon Clements: I read the OP as homework (I'm thinking Scott did as well), Sorry. Need to recalibrate that neural network. Back-propagation initiated... Done! :-) however, your code would be much nicer re-written using collections.defaultdict (int)... which I don't think is giving

Re: parse a string (Cadence Allegro Netlist) to dictionary

2009-11-05 Thread metal
On 11月6日, 上午4时02分, Leland lelandp...@gmail.com wrote: Hi, I always use readline(), strip(), split() and so on to parse a string. Is there some elegant way to parse the following string into a dictionary {'50MHZ_CLK_SRC' : 'U122.2, R1395.1'}? NET_NAME '50MHZ_CLK_SRC'

Re: join , split question

2009-11-05 Thread metal
On 11月4日, 下午5时39分, elca high...@gmail.com wrote: Hello, i have some text file list such like following format. i want to change text format to other format.  i was upload it pastebin sitehttp://elca.pastebin.com/d71261168 if anyone help ,much appreciate thanks in advance -- View this

Re: parse a string (Cadence Allegro Netlist) to dictionary

2009-11-05 Thread Rhodri James
On Thu, 05 Nov 2009 20:02:53 -, Leland lelandp...@gmail.com wrote: Hi, I always use readline(), strip(), split() and so on to parse a string. Is there some elegant way to parse the following string into a dictionary {'50MHZ_CLK_SRC' : 'U122.2, R1395.1'}? NET_NAME '50MHZ_CLK_SRC'

Re: join , split question

2009-11-05 Thread metal
On 11月6日, 上午8时34分, metal metal...@gmail.com wrote: On 11月4日, 下午5时39分, elca high...@gmail.com wrote: Hello, i have some text file list such like following format. i want to change text format to other format.  i was upload it pastebin sitehttp://elca.pastebin.com/d71261168 if anyone

2to3 on Mac - unknown encoding: mbcs

2009-11-05 Thread Skip Montanaro
I tried naively running 2to3 over the SpamBayes source code on my Mac and got this traceback: Traceback (most recent call last): File /Users/skip/local/lib/python3.2/lib2to3/pgen2/tokenize.py, line 281, in find_cookie codec = lookup(encoding) LookupError: unknown encoding:

Re: Freezing python files into executables

2009-11-05 Thread Aahz
In article c3604abd-677a-428a-94fa-c0e3f5a22...@a21g2000yqc.googlegroups.com, Mike Driscoll kyoso...@gmail.com wrote: Something that you might want to try in the future is GUI2Exe, which allows you to play with a whole slew of freezing modules: Does GUI2Exe work from just the command-line? I

Re: join , split question

2009-11-05 Thread elca
Jon Clements-2 wrote: On Nov 5, 2:08 pm, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: Stuart Murray-Smith a écrit : Hello, i have some text file list such like following format. i want to change text format to other format.  i was upload it pastebin site

futures - a new package for asynchronous execution

2009-11-05 Thread Brian Quinlan
Hey all, I recently implemented a package that I'd like to have include in the Python 3.x standard library (and maybe Python 2.x) and I'd love to have the feedback of this list. The basic idea is to implement an asynchronous execution method patterned heavily on java.util.concurrent (but

Re: 2to3 ParseError with UTF-8 BOM

2009-11-05 Thread Benjamin Peterson
Farshid flashk at gmail.com writes: If I remove the BOM then it works fine. Is this expected behavior or a bug in the 2to3 script? Try the 2to3 distributed in Python 3.1. -- http://mail.python.org/mailman/listinfo/python-list

Is there a function that can test if a path is in a directory or one of its sub-directory (recursively)?

2009-11-05 Thread Peng Yu
I looked though the os.path manual. I don't find a function that can test if a path is in a directory or its sub-directory (recursively). For example, /a/b/c/d is in /a its sub-directory (recursively). Could somebody let me know if such function is available somewhere? --

Re: Is there a function that can test if a path is in a directory or one of its sub-directory (recursively)?

2009-11-05 Thread Chris Rebert
On Thu, Nov 5, 2009 at 7:41 PM, Peng Yu pengyu...@gmail.com wrote: I looked though the os.path manual. I don't find a function that can test if a path is in a directory or its sub-directory (recursively). For example, /a/b/c/d is in /a its sub-directory (recursively). Could somebody let me

What is the best way to delete strings in a string list that that match certain pattern?

2009-11-05 Thread Peng Yu
Suppose I have a list of strings, A. I want to compute the list (call it B) of strings that are elements of A but doesn't match a regex. I could use a for loop to do so. In a functional language, there is way to do so without using the for loop. I'm wondering what is the best way to compute B in

Re: What is the best way to delete strings in a string list that that match certain pattern?

2009-11-05 Thread Chris Rebert
On Thu, Nov 5, 2009 at 8:19 PM, Peng Yu pengyu...@gmail.com wrote: Suppose I have a list of strings, A. I want to compute the list (call it B) of strings that are elements of A but doesn't match a regex. I could use a for loop to do so. In a functional language, there is way to do so without

Re: distutils.core.setup --install-script option in Python 2.6 ?

2009-11-05 Thread Gabriel Genellina
En Thu, 05 Nov 2009 16:15:06 -0300, j vickroy jim.vick...@noaa.gov escribió: I have just upgraded from Python 2.5 to 2.6 and am unable to locate any trace of the --install-script option, in release 2.6.4 (MS Windows XP), for distutils.core.setup. I also have been unable to locate any

ctypes exception in callback handlind

2009-11-05 Thread Gordon
This post concerns the situation where Python code calls C code via ctypes, the C code then calls a callback back into Python code which in turn raises an exception. Currently as I understand things when the callback finishes and control is returning to C land ctypes will catch and print the

Re: What is the best way to delete strings in a string list that that match certain pattern?

2009-11-05 Thread Peng Yu
On Thu, Nov 5, 2009 at 10:25 PM, Chris Rebert c...@rebertia.com wrote: On Thu, Nov 5, 2009 at 8:19 PM, Peng Yu pengyu...@gmail.com wrote: Suppose I have a list of strings, A. I want to compute the list (call it B) of strings that are elements of A but doesn't match a regex. I could use a for

Re: list to table

2009-11-05 Thread Gabriel Genellina
En Thu, 05 Nov 2009 21:23:27 -0300, Alf P. Steinbach al...@start.no escribió: * Jon Clements: This sent me searching everywhere, because the documentation of '+=' and other augmented assignment statements says The target is only evaluated once., like in C++, which implies a kind of

Re: 2to3 on Mac - unknown encoding: mbcs

2009-11-05 Thread Gabriel Genellina
En Thu, 05 Nov 2009 22:50:57 -0300, Skip Montanaro s...@pobox.com escribió: I tried naively running 2to3 over the SpamBayes source code on my Mac and got this traceback: Traceback (most recent call last): File /Users/skip/local/lib/python3.2/lib2to3/pgen2/tokenize.py, line 281,

Re: Is there a function that can test if a path is in a directory or one of its sub-directory (recursively)?

2009-11-05 Thread Gabriel Genellina
En Fri, 06 Nov 2009 00:53:14 -0300, Chris Rebert c...@rebertia.com escribió: On Thu, Nov 5, 2009 at 7:41 PM, Peng Yu pengyu...@gmail.com wrote: I looked though the os.path manual. I don't find a function that can test if a path is in a directory or its sub-directory (recursively). For

listing an object's methods/attributes?

2009-11-05 Thread Robert P. J. Day
getting back into python after a long hiatus and diving into python 3 (http://www.diveintopython3.org/), but i can't remember how to list an object's full set of methods or attributes. how does that go again? rday --

Re: disable image loading to speed up webpage load

2009-11-05 Thread Tim Roberts
elca high...@gmail.com wrote: im using win32com 's webbrowser module. Win32com does not have a webbrowser module. Do you mean you are using Internet Explorer via win32com? i have some question about it.. is it possible to disable image loading to speed up webpage load? If you are using IE,

Re: ctypes exception in callback handlind

2009-11-05 Thread Gabriel Genellina
En Fri, 06 Nov 2009 01:57:18 -0300, Gordon gro...@tolomea.com escribió: This post concerns the situation where Python code calls C code via ctypes, the C code then calls a callback back into Python code which in turn raises an exception. I'd ask in a ctypes specific list:

Re: What is the best way to delete strings in a string list that that match certain pattern?

2009-11-05 Thread Chris Rebert
On Thu, Nov 5, 2009 at 9:23 PM, Peng Yu pengyu...@gmail.com wrote: On Thu, Nov 5, 2009 at 10:25 PM, Chris Rebert c...@rebertia.com wrote: On Thu, Nov 5, 2009 at 8:19 PM, Peng Yu pengyu...@gmail.com wrote: Suppose I have a list of strings, A. I want to compute the list (call it B) of strings

Re: What is the best way to delete strings in a string list that that match certain pattern?

2009-11-05 Thread Gabriel Genellina
En Fri, 06 Nov 2009 02:23:12 -0300, Peng Yu pengyu...@gmail.com escribió: On Thu, Nov 5, 2009 at 10:25 PM, Chris Rebert c...@rebertia.com wrote: On Thu, Nov 5, 2009 at 8:19 PM, Peng Yu pengyu...@gmail.com wrote: Suppose I have a list of strings, A. I want to compute the list (call it B) of

Re: listing an object's methods/attributes?

2009-11-05 Thread Gabriel Genellina
En Fri, 06 Nov 2009 03:48:48 -0300, Robert P. J. Day rpj...@crashcourse.ca escribió: getting back into python after a long hiatus and diving into python 3 (http://www.diveintopython3.org/), but i can't remember how to list an object's full set of methods or attributes. how does that go

Re: list to table

2009-11-05 Thread Alf P. Steinbach
* Gabriel Genellina: En Thu, 05 Nov 2009 21:23:27 -0300, Alf P. Steinbach al...@start.no escribió: [snip] From the docs for the operator module: Many operations have an “in-place” version. The following functions provide a more primitive access to in-place operators than the usual syntax

Re: What is the best way to delete strings in a string list that that match certain pattern?

2009-11-05 Thread Lie Ryan
Peng Yu wrote: Suppose I have a list of strings, A. I want to compute the list (call it B) of strings that are elements of A but doesn't match a regex. I could use a for loop to do so. In a functional language, there is way to do so without using the for loop. In functional language, there is

[issue1182143] making builtin exceptions more informative

2009-11-05 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1182143 ___

[issue7224] One obvious way to do interning

2009-11-05 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The basic problem here is that the one obvious way to some people (including me and Martin v. Löwis) is to use a dictionary. Further, there is the problem of conflating types in a user's mind -- right now, dictionaries are

[issue1294959] Problems with /usr/lib64 builds.

2009-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If I understand correctly, using lib32 or lib64 is a kludge. Debian and Ubuntu want to come up with a better way to do this: http://wiki.debian.org/ReleaseGoals/MultiArch https://wiki.ubuntu.com/MultiarchSpec Kind regards. -- nosy:

[issue7265] IDLE not working

2009-11-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Closing as resolved, then. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7265 ___

[issue7212] Retrieve an arbitrary element from a set without removing it

2009-11-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I don't want to pollute python-dev with more hopeless ideas, but I wonder if itertools could grow an efficient C-implemented def first(collection): return next(iter(collection)) On the other hand, it probably belongs

[issue7212] Retrieve an arbitrary element from a set without removing it

2009-11-05 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: After a long discussion on python-dev, this proposal is rejected in favor of adding documentation notes on the ways to non-destructively retrieve an arbitrary item from a set or frozenset. Here is an except from the end of

[issue7224] One obvious way to do interning

2009-11-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Nov 5, 2009 at 2:16 PM, Raymond Hettinger rep...@bugs.python.org wrote: Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The basic problem here is that the one obvious way to some people

[issue7224] One obvious way to do interning

2009-11-05 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: That is a false optimization. Regular python code is full of look-ups (even set.add has a getattr(s, 'add') lookup just to find the add-method; every call to a built-in typically goes through multiple lookups). Also, the

[issue7224] One obvious way to do interning

2009-11-05 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I agree with Raymond here. This use case isn't special enough, or the performance of the current one way to do it bad enough to warrant changing set. I recommend closing this issue. -- nosy: +eric.smith

[issue7224] One obvious way to do interning

2009-11-05 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, Nov 5, 2009 at 3:23 PM, Raymond Hettinger rep...@bugs.python.org wrote: .. Martin has already rejected a similar proposal for similar reasons. Please drop this one. Sure. In fact I've never proposed to apply

[issue7224] One obvious way to do interning

2009-11-05 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Thank you. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7224 ___

[issue7266] test_lib2to3 failure under Windows

2009-11-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I think we need someone with access to windows to propose a patch. -- assignee: benjamin.peterson - components: +Windows ___ Python tracker rep...@bugs.python.org

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread flashk
New submission from flashk fla...@gmail.com: I recently ran 2to3 on some of my scripts and noticed a change in behavior. I had a script that used the built-in execfile function. After the conversion, it was changed to manually open the file and read the contents into the exec function. Now I

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Could you attach the files separately or paste them into the bug? zip files are hard to work with. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread flashk
Changes by flashk fla...@gmail.com: Added file: http://bugs.python.org/file15268/test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7268 ___ ___

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread flashk
Changes by flashk fla...@gmail.com: Added file: http://bugs.python.org/file15269/execfile_example.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7268 ___

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread flashk
Changes by flashk fla...@gmail.com: Added file: http://bugs.python.org/file15270/execfile_example_converted.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7268 ___

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread flashk
flashk fla...@gmail.com added the comment: I just attached the files individually. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7268 ___ ___

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: test.py is invalid Python 3 syntax. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7268

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread flashk
flashk fla...@gmail.com added the comment: I'm running this code under 2.6, so the print statement should not be the issue. I've attached a new version of test.py that simply performs a variable assignment and I still get the syntax error on both 2.6 and 3.1 with the exec function. Also, the

[issue3001] RLock's are SLOW

2009-11-05 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - pitrou components: -Interpreter Core stage: patch review - needs patch versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3001

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This is because you have DOS newlines which the Python compiler cannot handle. In 2.x, open(test.py, r) does not translate newlines. In 3.x, it does. -- ___ Python tracker

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread flashk
flashk fla...@gmail.com added the comment: Ok, I converted test.py to use Unix style newlines and still get the syntax error on both 2.6 and 3.1. I'm confused as to why execfile works on the file but reading the contents and passing it to exec behaves differently under 2.6. Sorry if I'm just

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2009/11/5 flashk rep...@bugs.python.org: flashk fla...@gmail.com added the comment: Ok, I converted test.py to use Unix style newlines and still get the syntax error on both 2.6 and 3.1. I'm confused as to why execfile works on the

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread flashk
flashk fla...@gmail.com added the comment: Ok, but why am I still getting a syntax error in both 2.6 and 3.1 on the file, even after converting the newlines? If I remove the trailing indentation then everything works properly on 2.6 and 3.1, even with DOS newlines. It just seems that exec

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2009/11/5 flashk rep...@bugs.python.org: flashk fla...@gmail.com added the comment: Ok, but why am I still getting a syntax error in both 2.6 and 3.1 on the file, even after converting the newlines? If I remove the trailing

[issue6462] bsddb3 intermittent test failures

2009-11-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The deadlock error is still there, so I'm leaving this open, but it is no longer causing buildbot instability. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6462

[issue6462] bsddb3 intermittent test failures

2009-11-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: -buildbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6462 ___ ___

[issue7266] test_lib2to3 failure under Windows

2009-11-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Benjamin disabled this test on windows so it is no longer causing the buildbot to fail. -- components: +Tests keywords: +easy -buildbot nosy: +r.david.murray priority: normal - low stage: - needs patch

[issue3892] bsddb: test01_basic_replication fails on Windows sometimes

2009-11-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: -buildbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3892 ___ ___

[issue6748] test_debuglevel from test_telnetlib.py fails

2009-11-05 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: +buildbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6748 ___ ___

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread flashk
flashk fla...@gmail.com added the comment: On Thu, Nov 5, 2009 at 5:48 PM, Benjamin Peterson rep...@bugs.python.orgwrote: Well, it works for me with the empty newline. Can you isolate the exact problem? For me, the exact problem seems to be that exec raises a SyntaxError if the code

[issue7175] unify pydistutils.cfg and distutils.cfg and use .local

2009-11-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: When ~/.local/lib was chosen for the user directory, the BaseDir Spec was given as prior example. Why not go the full way and follow the spec? The config file could be $XDG_CONFIG_HOME/python/distutils, with $XDG_CONFIG_HOME defaulting to

[issue7268] 2to3 execfile conversion changes behavior

2009-11-05 Thread flashk
flashk fla...@gmail.com added the comment: I noticed that calling exec('\t') raises a SyntaxError, so maybe this is the root of the problem. I manually added a newline character to the end of the file contents and it fixes the issue for me: exec(compile(open('test.py').read()+'\n', 'test.py',