[issue3909] Building PDF documentation from tex files

2008-10-05 Thread Winfried Plappert

Winfried Plappert <[EMAIL PROTECTED]> added the comment:

I have rerun the making of the PDFs with the make command. Everything
looks fine now. I did not realize that pdflatex is called multiple times
during the process of PDF creation. 

%.pdf: %.tex
pdflatex '$<'
pdflatex '$<'
pdflatex '$<'
-makeindex -s python.ist '$(basename $<).idx'
-makeindex -s python.ist '$(basename mod$<).idx'
pdflatex '$<'
pdflatex '$<'

Sorry, my fault and responsibility. Thanks, Winfried

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4038] py3k error in distutils file_copy exception handlers

2008-10-05 Thread Mark Hammond

Mark Hammond <[EMAIL PROTECTED]> added the comment:

r66806 on the py3k branch.

--
assignee:  -> mhammond
resolution: accepted -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1322] platform.dist() has unpredictable result under Linux

2008-10-05 Thread Matthias Klose

Matthias Klose <[EMAIL PROTECTED]> added the comment:

/etc/lsb-release is not yet specified by the lsb.

See
https://lists.linux-foundation.org/pipermail/lsb-discuss/2008-March/004842.html
https://lists.linux-foundation.org/pipermail/lsb-discuss/2008-March/004843.html
https://lists.linux-foundation.org/pipermail/lsb-discuss/2008-March/004845.html

--
nosy: +doko

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4017] IDLE 2.6 broken on OSX (Leopard)

2008-10-05 Thread Miki Tebeka

Changes by Miki Tebeka <[EMAIL PROTECTED]>:


--
nosy: +tebeka

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4044] test_output_textcalendar fails on non-englisch locale

2008-10-05 Thread Martina Oefelein

New submission from Martina Oefelein <[EMAIL PROTECTED]>:

test_output_textcalendar (in test_calendar.py) fails if the environment 
variable LANG is set to a non-english locale.

Python 3.0rc1 on MacOSX 10.5.5

$ LANG=de_DE.UTF-8 ./python.exe -E -bb ./Lib/test/regrtest.py -l 
test_calendar
test_calendar
test test_calendar failed -- errors occurred; run in verbose mode for 
details
1 test failed:
test_calendar
$ LANG=en_US.UTF-8 ./python.exe -E -bb ./Lib/test/regrtest.py -l 
test_calendar
test_calendar
1 test OK.

--
components: Tests
messages: 74339
nosy: oefe
severity: normal
status: open
title: test_output_textcalendar fails on non-englisch locale
type: behavior
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4045] test_mboxmmdf_to_maildir fails on non-englisch locale

2008-10-05 Thread Martina Oefelein

New submission from Martina Oefelein <[EMAIL PROTECTED]>:

test_mboxmmdf_to_maildir (in test_mailbox.py) fails if the environment 
variable LANG is set to a non-english locale.

Python 3.0rc1 on MacOSX 10.5.5

Majestix:Python-3.0rc1 martina$ LANG=en_US.UTF-8 ./python.exe -E -bb 
./Lib/test/regrtest.py -l test_mailbox
test_mailbox
1 test OK.
Majestix:Python-3.0rc1 martina$ LANG=de_DE.UTF-8 ./python.exe -E -bb 
./Lib/test/regrtest.py -l test_mailbox
test_mailbox
test test_mailbox failed -- Traceback (most recent call last):
  File "/Users/martina/Downloads/Python-
3.0rc1/Lib/test/test_mailbox.py", line 1389, in test_mboxmmdf_to_maildir
self.assert_(msg.get_date() == 0.0, msg.get_date())
AssertionError: 1223209655.11

--
components: Tests
messages: 74340
nosy: oefe
severity: normal
status: open
title: test_mboxmmdf_to_maildir fails on non-englisch locale
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4045] test_mboxmmdf_to_maildir fails on non-englisch locale

2008-10-05 Thread Martina Oefelein

Changes by Martina Oefelein <[EMAIL PROTECTED]>:


--
type:  -> behavior

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4017] IDLE 2.6 broken on OSX (Leopard)

2008-10-05 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

I suspect this is my fault for linking the libraries incorrectly as I
built the installer.

--
nosy: +benjamin.peterson

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4017] IDLE 2.6 broken on OSX (Leopard)

2008-10-05 Thread Miki Tebeka

Miki Tebeka <[EMAIL PROTECTED]> added the comment:

FWIW, installing MacPorts tcl and tk (8.5.4) didn't help

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4046] test_formatdate_usegmt fails on non-englisch locale

2008-10-05 Thread Martina Oefelein

New submission from Martina Oefelein <[EMAIL PROTECTED]>:

test_formatdate_usegmt (in test_email.py) fails if the environment 
variable LANG is set to a non-english locale.

Python 3.0rc1 on MacOSX 10.5.5

$ LANG=en_US.UTF-8 ./python.exe -E -bb ./Lib/test/regrtest.py -l 
test_email
test_email
1 test OK.

$ LANG=de_DE.UTF-8 ./python.exe -E -bb ./Lib/test/regrtest.py -l 
test_email
test_email
test test_email failed -- Traceback (most recent call last):
  File "/Users/martina/Downloads/Python-
3.0rc1/Lib/email/test/test_email.py", line 2139, in 
test_formatdate_usegmt
time.strftime('%a, %d %b %Y %H:%M:%S -', time.gmtime(now)))
AssertionError: 'Sun, 05 Oct 2008 12:44:04 -' != 'So, 05 Okt 2008 
12:44:04 -'

1 test failed:
test_email

--
components: Tests
messages: 74343
nosy: oefe
severity: normal
status: open
title: test_formatdate_usegmt fails on non-englisch locale
type: behavior
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4047] test_run_abort triggers CrashReporter on MacOS X

2008-10-05 Thread Martina Oefelein

New submission from Martina Oefelein <[EMAIL PROTECTED]>:

test_run_abort (in test_subprocess.py) causes the MaxOS X crash reporter 
dialog to pop up (at least when running from an interactive session). This 
might be unavoidable (the crash is part of the test); however, to avoid 
confusion, it should maybe pointed out in the README that this is expected 
behavior -- or skip the test by default?

Python 3.0rc1 on MacOSX 10.5.5

--
components: Tests
messages: 74344
nosy: oefe
severity: normal
status: open
title: test_run_abort triggers CrashReporter on MacOS X
type: behavior
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1610] test_socket.py fails

2008-10-05 Thread Stijn van Drongelen

Stijn van Drongelen <[EMAIL PROTECTED]> added the comment:

Reproducable with Python3.0rc1 on Debian lenny, only when nscd is running.

Not a Python bug.

--
nosy: +Tinctorius
versions: +Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4010] configure options don't trickle down to distutils

2008-10-05 Thread Roumen Petrov

Roumen Petrov <[EMAIL PROTECTED]> added the comment:

Lets see method customize_compiler(from sysconfig.py) 
The method search variables 'CPP', 'LDFLAGS' and 'CPPFLAGS' only in
environment. The variable CPP is not a Makefile variable. 'LDFLAGS' and
'CPPFLAGS' are makefile variables(macros). Usually makefile will export
to commands a macro only if exists environment variable with same name.
So to pass to distutils LDFLAGS is enough to to run as example
"LDFLAGS=fake make".

Issue3678 is about LDFLAGS for python shared library and now  command
start with $(LDSHARED) $(LDFLAGS) ...

If we modify Makefile to use  "...LDFLAGS=$(LDFLAGS) ... setup.py"
customize_compiler will append LDFLAGS to LDSHARED.
So this issue is about to use LDFLAGS for python modules.

Another point is that configure script append LDFLAGS to LDSHARED only
on certain platforms (all BSD based) and ignore all others.

What is preferred patch:
- a simple patch that just export LDFLAGS for setup.py;
- a patch that export LDFLAGS for all python programs, i.e. in Makefile
to append to RUNSHARED [EMAIL PROTECTED]@ ;
- a patch that append LDFLAGS to LDSHARED in configure for all platforms
and remove use of LDFLAGS in Makefile and setup.py ?

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3288] float.as_integer_ratio method is not documented

2008-10-05 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

Committed for Py3.0 in r66807 .

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3935] bisect insort C implementation ignores methods on list subclasses

2008-10-05 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

Don't think this is too late for Py3.0.

--
assignee: rhettinger -> georg.brandl
nosy: +georg.brandl
resolution:  -> accepted
versions: +Python 2.7, Python 3.0 -Python 2.5, Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3724] math.log(x, 10) gives different result than math.log10(x)

2008-10-05 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

Mark, is some of the inaccuracy due to double rounding?  Could we make
the two argument form more accurate by allowing the compiler to generate
code that uses full internal precision, log(n)/log(d), instead of
prematurely forcing the intermediate results to a PyFloat?

--
assignee: rhettinger -> marketdickinson

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3412] Fraction and Decimal in the Tutorial

2008-10-05 Thread Raymond Hettinger

Raymond Hettinger <[EMAIL PROTECTED]> added the comment:

Added note in r66808.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-05 Thread Robert Yodlowski

Robert Yodlowski <[EMAIL PROTECTED]> added the comment:

Problem Solved. It was my firewall.

When I ran IDLE from the command line (the RIGHT way this time), in
addition to the error messages and popup windows that I got before, I
also got a popup window from my firewall asking if I was willing to
grant Python access permission. I granted permission and, when I tried
starting IDLE again, everything worked just fine.

Thank you, Amaury and Martin, for your help and your patience with me.

...Bob

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4042] IDLE won't start in 2.6 final. A known fix was overlooked?

2008-10-05 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

Closing as "works for me", then.

--
resolution:  -> works for me
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3288] float.as_integer_ratio method is not documented

2008-10-05 Thread A.M. Kuchling

A.M. Kuchling <[EMAIL PROTECTED]> added the comment:

Should I backport the tutorial patch to the 2.6 tutorial?

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4048] parsermodule won't validate relative imports

2008-10-05 Thread David Binger

New submission from David Binger <[EMAIL PROTECTED]>:

The parser module validates st instances that it builds from 
list or tuple structures.  This validation fails for parse
trees that include relative imports because it fails to correctly
count the dots that immediately follow the "from" token.

Here is a test and a patch.

This bug probably extends back to all Python 2 versions that support
relative import, but I have not checked it.

Fixing this has immediate value to me because the QPY package 
depends on the parser module to convert list structures into st 
instances.  (In the long run, I wonder if the verification
part of the sequence2st() function could be made optional or dropped,
since the current pattern requires to parser module to be updated
every time the language grammer changes.)

--
components: Library (Lib)
files: parserdot.diff
keywords: patch
messages: 74354
nosy: dbinger
severity: normal
status: open
title: parsermodule won't validate relative imports
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file11705/parserdot.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1040026] os.times() is bogus

2008-10-05 Thread Malte Helmert

Malte Helmert <[EMAIL PROTECTED]> added the comment:

David,

not sure what you are commenting on. Are you commenting on one of the
patches? The patches do contain those divisions, of course; you can also
run the attached unit test to verify that the patches work for you.

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1040026] os.times() is bogus

2008-10-05 Thread Malte Helmert

Changes by Malte Helmert <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9497/test_times.py

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1040026] os.times() is bogus

2008-10-05 Thread Malte Helmert

Changes by Malte Helmert <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9501/os_times.PATCH

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1040026] os.times() is bogus

2008-10-05 Thread Malte Helmert

Changes by Malte Helmert <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9506/test_posix.PATCH

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1040026] os.times() is bogus

2008-10-05 Thread Malte Helmert

Changes by Malte Helmert <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9515/test_posix2.PATCH

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1040026] os.times() is bogus

2008-10-05 Thread Malte Helmert

Changes by Malte Helmert <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9516/test_posix3.PATCH

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1040026] os.times() is bogus

2008-10-05 Thread Malte Helmert

Changes by Malte Helmert <[EMAIL PROTECTED]>:


Removed file: http://bugs.python.org/file9517/test_posix4.PATCH

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4048] parsermodule won't validate relative imports

2008-10-05 Thread David Hess

David Hess <[EMAIL PROTECTED]> added the comment:

Confirmed the presence of this same problem in the source code of 
parsermodule.c in branches release25-maint and release26-maint.

--
nosy: +david_k_hess
versions: +Python 2.5, Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4049] IDLE does not open at all

2008-10-05 Thread Chris

New submission from Chris <[EMAIL PROTECTED]>:

IDLE just won't open in 2.6 for me. The command line works but not the
GUI. It works in 2.5.2 though. I am a neophyte, any help is much
appreciated.

--
messages: 74357
nosy: Chris_L
severity: normal
status: open
title: IDLE does not open at all
versions: Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4050] inspect.findsource() returns binary data for shared library modules

2008-10-05 Thread Brodie Rao

New submission from Brodie Rao <[EMAIL PROTECTED]>:

Calling inspect.findsource() on a module whose __file__ attribute points 
to a shared library causes findsource() to return the binary's data:

>>> import time
>>> time.__file__
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/
lib-dynload/time.so'
>>> import inspect
>>> inspect.findsource(time)
(['\xca\xfe\xba\xbe\x00\x00\x00\x04\x00\x00\x00\x12\x00\x00\x00\n', 
'\x00\x00\x10\x00\x00\x00Jt\x00...

It should raise an error saying it can't retrieve the source. It doesn't 
do this because when it tries to find the source file it calls both 
getsourcefile() - and getfile() when that fails. It should call only 
getsourcefile() - which checks to see if __file__ points to a binary - 
and if the result is None, raise an error.

I'm attaching a patch against trunk that fixes this. The issue affects 
3.0, 2.6, 2.5, and probably previous versions.

--
components: Library (Lib)
files: inspect-findsource-binary.diff
keywords: patch
messages: 74358
nosy: brodierao
severity: normal
status: open
title: inspect.findsource() returns binary data for shared library modules
type: behavior
versions: Python 2.5, Python 2.6, Python 3.0
Added file: http://bugs.python.org/file11706/inspect-findsource-binary.diff

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4049] IDLE does not open at all

2008-10-05 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

What operating system are you using?

--
nosy: +loewis

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4049] IDLE does not open at all

2008-10-05 Thread Rajanikanth Jammalamadaka

Rajanikanth Jammalamadaka <[EMAIL PROTECTED]> added the comment:

Hi! Chris,

I am assuming that you are using Vista. If you are..then you need to 
enable the Administrator user (following the instructions here: 
http://www.computerperformance.co.uk/vista/vista_administrator_activate.
htm) and then install python for all users by logging in as the 
Administrator.

Thanks,

Raj

--
nosy: +Raj

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2382] [Py3k] SyntaxError cursor shifted if multibyte character is in line.

2008-10-05 Thread Hirokazu Yamamoto

Hirokazu Yamamoto <[EMAIL PROTECTED]> added the comment:

>At least my "one unicode char is one space" suggestion corrects the case 
>of Western languages, and all messages with single-width characters.

I'm not happy with this solution. ;-(

>Doesn't the exact width depend on 
>the terminal capabilities? and fonts, and combining diacritics...

I have to admit you are right. 

Nevertheless, I got coLinux(Debian) which has localed wcswidth(3), so I
created another experimental patch.
(py3k_adjust_cursor_at_syntax_error_v2.patch)

The strategy is ...
1. Try to convert to unicode. If fails, nothing changed to offset.
2. If system has wcswidth(3), try that function
3. If system is windows, try WideCharToMultibyte with CP_ACP
4. If above 2/3 fails or system is others, use unicode length as offset
(Amaury's suggestion)

This patch ignores file encoding. Again, this patch is experimental,
best effort, but maybe better than current state.

P.S.
I tested this patch on coLinux with ja_JP.UTF-8 locale and manual
#define HAVE_WCSWIDTH 1
because I don't know how to change configure script.

Added file: 
http://bugs.python.org/file11707/py3k_adjust_cursor_at_syntax_error_v2.patch

___
Python tracker <[EMAIL PROTECTED]>

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com