Re: [Python-Dev] Problem with svn on community buildbot

2008-12-14 Thread skip
Martin Well - can you resolve `svn.python.org' on that machine Martin (e.g. when using ping(1))? Yup: $ host svn.python.org svn.python.org has address 82.94.164.164 svn.python.org has IPv6 address 2001:888:2000:d::a4 $ ping svn.python.org PING svn.python.org

Re: [Python-Dev] Problem with svn on community buildbot

2008-12-14 Thread Alexander Belopolsky
I don't know is this is related, but from my end, access to svn.python.org has been extremely slow recently: $ time curl -o /dev/null http://svn.python.org % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total Spent

Re: [Python-Dev] Reindenting the C code base?

2008-12-14 Thread Guido van Rossum
On Sat, Dec 13, 2008 at 2:11 PM, Antoine Pitrou solip...@pitrou.net wrote: Guido van Rossum guido at python.org writes: I think we should not do this. We should use 4 space indents for new files, but existing files should not be reindented. Well, right now many files are indented with a mix

Re: [Python-Dev] Reindenting the C code base?

2008-12-14 Thread Jeffrey Yasskin
On Sun, Dec 14, 2008 at 8:26 AM, Guido van Rossum gu...@python.org wrote: On Sat, Dec 13, 2008 at 2:11 PM, Antoine Pitrou solip...@pitrou.net wrote: Guido van Rossum guido at python.org writes: I think we should not do this. We should use 4 space indents for new files, but existing files

Re: [Python-Dev] Reindenting the C code base?

2008-12-14 Thread Antoine Pitrou
Jeffrey Yasskin jyasskin at gmail.com writes: I've never figured out how to configure emacs to deduce whether the current file uses spaces or tabs and has a 4 or 8 space indent. Same question for Kate! Although I guess that if emacs isn't able to do it, Kate won't do it either... (Kate

Re: [Python-Dev] Reindenting the C code base?

2008-12-14 Thread Alexandre Vassalotti
On Sat, Dec 13, 2008 at 5:11 PM, Antoine Pitrou solip...@pitrou.net wrote: Guido van Rossum guido at python.org writes: I think we should not do this. We should use 4 space indents for new files, but existing files should not be reindented. Well, right now many files are indented with a mix

Re: [Python-Dev] Reindenting the C code base?

2008-12-14 Thread Alexandre Vassalotti
On Sun, Dec 14, 2008 at 12:43 PM, Jeffrey Yasskin jyass...@gmail.com wrote: I've never figured out how to configure emacs to deduce whether the current file uses spaces or tabs and has a 4 or 8 space indent. I always try to get it right anyway, but it'd be a lot more convenient if my editor

Re: [Python-Dev] Reindenting the C code base?

2008-12-14 Thread Alexandre Vassalotti
On Sun, Dec 14, 2008 at 12:57 PM, Alexandre Vassalotti alexan...@peadrop.com wrote: On Sun, Dec 14, 2008 at 12:43 PM, Jeffrey Yasskin jyass...@gmail.com wrote: I've never figured out how to configure emacs to deduce whether the current file uses spaces or tabs and has a 4 or 8 space indent. I

Re: [Python-Dev] 2to3 question about fix_imports.

2008-12-14 Thread Alexandre Vassalotti
On Fri, Dec 12, 2008 at 11:39 AM, Lennart Regebro rege...@gmail.com wrote: The fix_imports fix seems to fix only the first import per line that you have. So if you do for example import urllib2, cStringIO it will not fix cStringIO. Is this a bug or a feature? :-) If it's a feature it

Re: [Python-Dev] 2to3 question about fix_imports.

2008-12-14 Thread Lennart Regebro
On Sun, Dec 14, 2008 at 19:19, Alexandre Vassalotti alexan...@peadrop.com wrote: Which revision of python are you using? I tried the test-case you gave and 2to3 translated it perfectly. 3.0, I haven't tried with trunk yet, and possibly it's a more complicated usecase. -- Lennart Regebro: Zope

Re: [Python-Dev] 2to3 question about fix_imports.

2008-12-14 Thread Alexandre Vassalotti
On Sun, Dec 14, 2008 at 1:34 PM, Lennart Regebro rege...@gmail.com wrote: On Sun, Dec 14, 2008 at 19:19, Alexandre Vassalotti alexan...@peadrop.com wrote: Which revision of python are you using? I tried the test-case you gave and 2to3 translated it perfectly. 3.0, I haven't tried with trunk

Re: [Python-Dev] 2to3 question about fix_imports.

2008-12-14 Thread Lennart Regebro
On Sun, Dec 14, 2008 at 19:49, Alexandre Vassalotti alexan...@peadrop.com wrote: 3.0, I haven't tried with trunk yet, and possibly it's a more complicated usecase. Strange, fix_imports in Python 3.0 (final) looks fine. If you can come up with a reproducible example, please open a bug on

Re: [Python-Dev] 2to3 question about fix_imports.

2008-12-14 Thread Lennart Regebro
On Sun, Dec 14, 2008 at 20:02, Lennart Regebro rege...@gmail.com wrote: On Sun, Dec 14, 2008 at 19:49, Alexandre Vassalotti alexan...@peadrop.com wrote: 3.0, I haven't tried with trunk yet, and possibly it's a more complicated usecase. Strange, fix_imports in Python 3.0 (final) looks fine.

Re: [Python-Dev] Problem with svn on community buildbot

2008-12-14 Thread Martin v. Löwis
I don't know is this is related It shouldn't. AFAIK, buildbot makes its internet connections through twisted, and twisted doesn't use IPv6. Also, the diagnostics (cannot resolve name) doesn't match connectivity problems. $ time curl -v -o /dev/null http://svn.python.org * About to connect()

Re: [Python-Dev] Reindenting the C code base?

2008-12-14 Thread Martin v. Löwis
I've never figured out how to configure emacs to deduce whether the current file uses spaces or tabs and has a 4 or 8 space indent. If it is now official policy that different files use different styles, then I think it would be helpful to put Emacs variables at the end of each file. See the

Re: [Python-Dev] Reindenting the C code base?

2008-12-14 Thread Martin v. Löwis
Personally, I think the indentation of, at least, Objects/unicodeobject.c should be fixed. This file has become so mixed-up with tab and space indents that I have no-idea what to use when I edit it. Just to give an idea how messy it is, they are 5214 lines indented with tabs and 4272 indented

[Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-14 Thread Mark Dickinson
Hi all, I'm having some trouble making some bits of the Python core code available to extension modules. Specifically, I'm trying to add a function 'Py_force_to_memory' to Python/pymath.c and then use it (via a macro) from Modules/cmathmodule.c. But importing of the cmath module fails with a

Re: [Python-Dev] Reindenting the C code base?

2008-12-14 Thread Martin v. Löwis
Same question for Kate! Although I guess that if emacs isn't able to do it, Kate won't do it either... (Kate allows configuring on a directory basis, on a file extension basis, but not on a filename basis) I guess it would be possible to write a Kate plugin that does that. Regards,

Re: [Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-14 Thread Martin v. Löwis
(1) Is this an OS X only problem? Probably not. If nothing of pymath.c is actually needed when linking the python executable, pymath.o will be excluded by the linker. (2) Is there an easy way to force a particular symbol (or all the symbols from a particular object file) to be exported in the

Re: [Python-Dev] Reindenting the C code base?

2008-12-14 Thread Antoine Pitrou
Martin v. Löwis martin at v.loewis.de writes: I guess it would be possible to write a Kate plugin that does that. Or perhaps more simply, Kate allows modelines at the beginning and at the end of source files. I don't know if it's ok to add these to the code base though.

Re: [Python-Dev] Problem with svn on community buildbot

2008-12-14 Thread Alexander Belopolsky
Please see below for more svn debugging, but now I also traced down the delays I observe when I go to bugs.python.com to the same issue. The offending download is the style sheet and that explains why curl does not show it when pointed to the main page: $ curl -v -o /dev/null

Re: [Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-14 Thread Mark Dickinson
On Sun, Dec 14, 2008 at 9:06 PM, Martin v. Löwis mar...@v.loewis.de wrote: That's not the issue. Had pymath.o been linked into python, it's symbols would have been exported (is that proper use of English tenses?) Sounds right to me. To fix this, I see three solutions [...] Thanks for

Re: [Python-Dev] Problem with svn on community buildbot

2008-12-14 Thread Alexander Belopolsky
I've found a work-around in Firefox: go to about:config page an change network.dns.disableIPv6 to true. Does anyone know a similar setting in Safari? On Sun, Dec 14, 2008 at 4:52 PM, Alexander Belopolsky alexander.belopol...@gmail.com wrote: Please see below for more svn debugging, but now I

Re: [Python-Dev] How to force export of a particular symbol from python.exe?

2008-12-14 Thread Martin v. Löwis
It's a little bit messy: some bits of pymath.c (hypot, and possibly copysign) are needed in the core, but only on platforms whose math libraries haven't caught up with C99. It would be possible to only build the module if it defines any functions; that should be checked in configure.

Re: [Python-Dev] Problem with svn on community buildbot

2008-12-14 Thread Martin v. Löwis
I've found a work-around in Firefox: go to about:config page an change network.dns.disableIPv6 to true. I'd advise against using such a work-around. The infrastructure is designed to cope with that case transparently; if it is not transparent, your system must be somehow misconfigured (it could

Re: [Python-Dev] Problem with svn on community buildbot

2008-12-14 Thread Alexander Belopolsky
On Sun, Dec 14, 2008 at 5:18 PM, Martin v. Löwis mar...@v.loewis.de wrote: I've found a work-around in Firefox: go to about:config page an change network.dns.disableIPv6 to true. I'd advise against using such a work-around. The infrastructure is designed to cope with that case transparently;

Re: [Python-Dev] Problem with svn on community buildbot

2008-12-14 Thread Martin v. Löwis
live with, but I wonder why is it necessary for python.org to be registered as both an IPv4 and v6 domain? Google does not do that: Google works in changing that: http://www3.ietf.org/proceedings/08jul/slides/plenaryw-4.pdf Other systems have been doing it for many years now: mar...@mira:~$

[Python-Dev] sys.stdout.write encoding failure

2008-12-14 Thread Alexander Belopolsky
There is currently a unit test in the trunk that fails in verbose mode: $ ./python.exe Lib/test/test_doctest.py -v ... UnicodeEncodeError: 'ascii' codec can't encode characters in position 338-339: ordinal not in range(128) Apparently, the problem is that stdout cannot encode non-ascii

[Python-Dev] Python 3.0 urllib fails with chunked HTTP responses

2008-12-14 Thread Jeremy Hylton
This bug is pretty serious, because urllib will insert garbage into the application-visible data for a chunked response. It simply ignores the fact that it's reading a chunked response and includes the chunked header data is payload data. The original bug was reported in September, but no one