[issue7503] multiprocessing AuthenticationError "digest sent was rejected" when pickling proxy

2009-12-24 Thread Nir Aides

Changes by Nir Aides :


--
nosy: +nirai

___
Python tracker 

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



[issue7519] CompileParser can't read files with BOM markers

2009-12-24 Thread Nir Aides

Changes by Nir Aides :


--
nosy: +nirai

___
Python tracker 

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



[issue7564] test_ioctl fails sometimes

2009-12-24 Thread Nir Aides

Changes by Nir Aides :


--
nosy: +nirai

___
Python tracker 

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



[issue7540] urllib2 request does not update content length after new add_data

2009-12-24 Thread Nir Aides

Changes by Nir Aides :


--
nosy: +nirai

___
Python tracker 

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



[issue7006] The replacement suggested for callable(x) in py3k is not equivalent

2009-12-24 Thread Nick Coghlan

Nick Coghlan  added the comment:

The patch however does not look correct - the import should be added as
a global import at the beginning of affected files rather than inline
with each callable check.

--

___
Python tracker 

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



[issue7006] The replacement suggested for callable(x) in py3k is not equivalent

2009-12-24 Thread Nick Coghlan

Nick Coghlan  added the comment:

Just confirming that 2.x also correctly ignores instance attributes (as
it should, since it looks at the tp_call slot):

>>> odd = Spam()
>>> odd.__call__ = lambda: 'very odd'
>>> callable(odd)
False

--

___
Python tracker 

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



[issue7006] The replacement suggested for callable(x) in py3k is not equivalent

2009-12-24 Thread Nick Coghlan

Nick Coghlan  added the comment:

That isn't a semantic change, it is exactly the same semantics as
callable() in 2.x:

>>> class Spam(object):
...   def __call__(self): pass
...
>>> callable(Spam())
True
>>> del Spam.__call__
>>> callable(Spam())
False

--

___
Python tracker 

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



[issue7574] PyUnicode_FromFormat broken and not documented for 2.x

2009-12-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
components: +Unicode
nosy: +ezio.melotti
priority:  -> normal

___
Python tracker 

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



[issue7514] doc: documentation for "sys.flags" is obsolete.

2009-12-24 Thread Ezio Melotti

Ezio Melotti  added the comment:

Fixed in r77050 (trunk), r77051 (release26-maint), r77052 (py3k), r77053
(release31-maint). Thanks for the report and the patch!

--
resolution:  -> fixed
stage: patch review -> committed/rejected
status: open -> closed
versions: +Python 2.6

___
Python tracker 

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



[issue7514] doc: documentation for "sys.flags" is obsolete.

2009-12-24 Thread Ezio Melotti

Ezio Melotti  added the comment:

There are a couple of options missing from the trunk doc too
(no_user_site and bytes_warning).
I'll fix both.

--
assignee: georg.brandl -> ezio.melotti
nosy: +ezio.melotti
versions: +Python 2.7

___
Python tracker 

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



[issue7569] ctypes doc improvement: c_char_p

2009-12-24 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +theller
priority:  -> normal
versions:  -3rd party, Python 2.5

___
Python tracker 

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



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-12-24 Thread Craig McQueen

Craig McQueen  added the comment:

Eric (keldonin), please consider attaching the file (solution you
mentioned) to this issue for the benefit of the rest of us. I'm
interested to see it.

--

___
Python tracker 

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



[issue7572] Strabge issue : cursor.commit() with sqlite

2009-12-24 Thread Gerhard Häring

Gerhard Häring  added the comment:

Please change your test case so that it works with an in-memory database
":memory:". Then you'll also need to include a schema creation command
"create table", which is missing here.

Please also state which behaviour you see and which one you expect. Best
is to provide a test case that asserts the expected behaviour in code.

For example if you expect a certain SELECT statement to return more than
one value, you can use code like this:

{{{
cur.execute("select ...")
rows = cur.fetchall()
assert len(rows) > 1
}}}

--

___
Python tracker 

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



[issue3132] implement PEP 3118 struct changes

2009-12-24 Thread Mark Dickinson

Changes by Mark Dickinson :


--
nosy: +mark.dickinson

___
Python tracker 

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



[issue6108] unicode(exception) and str(exception) should return the same message on Py2.6

2009-12-24 Thread Ezio Melotti

Ezio Melotti  added the comment:

Fixed in r77045 (trunk) and r77046 (release26-maint). No need to port it
to py3k since unicode() is gone.

--
keywords:  -needs review
resolution: accepted -> fixed
stage: commit review -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue7561] PyByteArray_AS_STRING used unsafely

2009-12-24 Thread Mark Dickinson

Changes by Mark Dickinson :


--
nosy: +mark.dickinson

___
Python tracker 

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



[issue7006] The replacement suggested for callable(x) in py3k is not equivalent

2009-12-24 Thread Joe Amenta

Joe Amenta  added the comment:

One such weird corner case:

from collections import Callable
class Spam(object):
   def __call__(self):
  return self

can_of_spam = Spam()
print callable(can_of_spam) == isinstance(can_of_spam, Callable) # True
del Spam.__call__
can_of_spam.__call__ = lambda can: 'spam'
print callable(can_of_spam) == isinstance(can_of_spam, Callable) # False

Regardless, attached a patch for the new proposed semantics

--
keywords: +patch
nosy: +joe.amenta
Added file: http://bugs.python.org/file15671/new_callable_semantics.patch

___
Python tracker 

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



[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson

Mark Dickinson  added the comment:

Here's a patch (against trunk).

--
keywords: +patch
Added file: http://bugs.python.org/file15670/issue7575.patch

___
Python tracker 

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



[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson

Mark Dickinson  added the comment:

Thanks for that.  I'd call that pretty broken then:  the result of 
expm1(709.78) is effectively wrong by 24.4 trillion ulps (perhaps that 
should be 24.4 teraulps?).  I guess someone just coded a hard cutoff value 
somewhere between 709.7 and 709.78.

But since anyone getting this close to overflow is asking for trouble 
anyway, perhaps the easiest solution is just to change the test to test a 
value not quite as close to the overflow boundary.

--

___
Python tracker 

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



[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Salman Haq

Salman Haq  added the comment:

Only the argument with one decimal place precision does NOT overflow.

Python 2.7a1+ (trunk:76872, Dec 21 2009, 09:54:29) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from math import expm1
>>> expm1(709.78271289338397) 
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: math range error
>>> expm1(709.782712893)
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: math range error
>>> expm1(709.7827)
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: math range error
>>> expm1(709.782)
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: math range error
>>> expm1(709.78)
Traceback (most recent call last):
  File "", line 1, in 
OverflowError: math range error
>>> expm1(709.7)
1.6549840276802644e+308

--

___
Python tracker 

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



[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson

Mark Dickinson  added the comment:

Salman Haq, could you find out roughly where expm1 starts overflowing on 
your machine?  E.g., do all of the following overflow for you?

>>> from math import expm1
>>> expm1(709.78271289338397)
1.7976931348622732e+308
>>> expm1(709.782712893)
1.797693134172102e+308
>>> expm1(709.7827)
1.7976699566638014e+308
>>> expm1(709.7)
1.6549840276802644e+308

I'm just trying to determine whether the 10.4 expm1 is so broken that 
Python should work around it, or whether it's only slightly broken.  In 
the latter case we can just live with it, and either weaken the tests 
slightly or explicitly skip that particularly test on OS X 10.4.

--

___
Python tracker 

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



[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson

Mark Dickinson  added the comment:

This seems to be specific to OS X/Intel:  I'm not seeing any failure on my 
ancient iBook G4 (OS X 10.4.11).

--

___
Python tracker 

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



[issue4388] test_cmd_line fails on MacOS X

2009-12-24 Thread Salman Haq

Salman Haq  added the comment:

Confirming that the test fails on r77044. 

Tested on Mac OS X 10.4.11 (Intel).

running build_scripts
test_cmd_line
test_directories (test.test_cmd_line.CmdLineTest) ... ok
test_large_PYTHONPATH (test.test_cmd_line.CmdLineTest) ... ok
test_optimize (test.test_cmd_line.CmdLineTest) ... ok
test_q (test.test_cmd_line.CmdLineTest) ... ok
test_run_code (test.test_cmd_line.CmdLineTest) ... FAIL
test_run_module (test.test_cmd_line.CmdLineTest) ... ok
test_run_module_bug1764407 (test.test_cmd_line.CmdLineTest) ... ok
test_site_flag (test.test_cmd_line.CmdLineTest) ... ok
test_unbuffered_input (test.test_cmd_line.CmdLineTest) ... ok
test_unbuffered_output (test.test_cmd_line.CmdLineTest) ... ok
test_usage (test.test_cmd_line.CmdLineTest) ... ok
test_verbose (test.test_cmd_line.CmdLineTest) ... ok
test_version (test.test_cmd_line.CmdLineTest) ... ok

==
FAIL: test_run_code (test.test_cmd_line.CmdLineTest)
--
Traceback (most recent call last):
  File 
"/Users/salman/svn/python/branches/py3k/Lib/test/test_cmd_line.py", line 
132, in test_run_code
0)
AssertionError: 1 != 0

--
Ran 13 tests in 2.235s

FAILED (failures=1)
test test_cmd_line failed -- Traceback (most recent call last):
  File 
"/Users/salman/svn/python/branches/py3k/Lib/test/test_cmd_line.py", line 
132, in test_run_code
0)
AssertionError: 1 != 0

1 test failed:
test_cmd_line

--
nosy: +slmnhq

___
Python tracker 

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



[issue7526] tkinter menubutton underline behaviour varies between tkinter * and tkinter.ttk *

2009-12-24 Thread Guilherme Polo

Guilherme Polo  added the comment:

I get the same behavior while using ttk in wish8.5, so this is not 
related to the ttk.py module.

But, after looking this sample you posted, it looks like you want 
something like this instead:

from tkinter import Tk, Menu

root = Tk()
menu = Menu()
root['menu'] = menu

filemenu = Menu(menu)
menu.add_cascade(label="File", menu=filemenu, underline=0)
filemenu.add_command(label="New", accelerator="Ctrl+N")

root.geometry("300x300")
root.mainloop()

--
nosy: +gpolo
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson

Changes by Mark Dickinson :


--
versions: +Python 3.2

___
Python tracker 

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



[issue7568] Spelling error in imaplib module docs

2009-12-24 Thread Mark Dickinson

Changes by Mark Dickinson :


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

___
Python tracker 

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



[issue7568] Spelling error in imaplib module docs

2009-12-24 Thread Mark Dickinson

Mark Dickinson  added the comment:

Thanks for the report!  Fixed in revisions r77041 through r77044.

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson

Mark Dickinson  added the comment:

Salman Haq also reported (on IRC) that the configure output shows:

checking for expm1... yes

so this appears to be a problem with the platform's implementation of 
expm1, rather than with Python's expm1 code (which is only used when the 
platform version isn't available).

--

___
Python tracker 

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



[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Mark Dickinson

Changes by Mark Dickinson :


--
assignee:  -> mark.dickinson
nosy: +mark.dickinson
priority:  -> normal
type: performance -> behavior

___
Python tracker 

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



[issue3363] python version incorrectly reported in crash reports on Mac OS X 10.4.11 PPC

2009-12-24 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

This is no longer an issue: the Info.plist is now initialized by the build 
process and includes the correct version number. At the time the bug was 
files the plist needed to be updated manually and that didn't always 
happen (or rather, more often than not it didn't get updated at new 
releases)

--
keywords: +easy
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue7575] tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile

2009-12-24 Thread Salman Haq

New submission from Salman Haq :

See output of regrtest below. It was run on an Intel Mac OS X 10.4

A similar failure is observed on the py3k branch.

./python.exe Lib/test/regrtest.py -v test_math

test_math
testAcos (test.test_math.MathTests) ... ok
testAcosh (test.test_math.MathTests) ... ok
testAsin (test.test_math.MathTests) ... ok
testAsinh (test.test_math.MathTests) ... ok
testAtan (test.test_math.MathTests) ... ok
testAtan2 (test.test_math.MathTests) ... ok
testAtanh (test.test_math.MathTests) ... ok
testCeil (test.test_math.MathTests) ... ok
testConstants (test.test_math.MathTests) ... ok
testCopysign (test.test_math.MathTests) ... ok
testCos (test.test_math.MathTests) ... ok
testCosh (test.test_math.MathTests) ... ok
testDegrees (test.test_math.MathTests) ... ok
testExp (test.test_math.MathTests) ... ok
testFabs (test.test_math.MathTests) ... ok
testFactorial (test.test_math.MathTests) ... ok
testFloor (test.test_math.MathTests) ... ok
testFmod (test.test_math.MathTests) ... ok
testFrexp (test.test_math.MathTests) ... ok
testFsum (test.test_math.MathTests) ... ok
testHypot (test.test_math.MathTests) ... ok
testIsinf (test.test_math.MathTests) ... ok
testIsnan (test.test_math.MathTests) ... ok
testLdexp (test.test_math.MathTests) ... ok
testLog (test.test_math.MathTests) ... ok
testLog10 (test.test_math.MathTests) ... ok
testLog1p (test.test_math.MathTests) ... ok
testModf (test.test_math.MathTests) ... ok
testPow (test.test_math.MathTests) ... ok
testRadians (test.test_math.MathTests) ... ok
testSin (test.test_math.MathTests) ... ok
testSinh (test.test_math.MathTests) ... ok
testSqrt (test.test_math.MathTests) ... ok
testTan (test.test_math.MathTests) ... ok
testTanh (test.test_math.MathTests) ... ok
test_exceptions (test.test_math.MathTests) ... ok
test_mtestfile (test.test_math.MathTests) ... FAIL
test_testfile (test.test_math.MathTests) ... ok
test_trunc (test.test_math.MathTests) ... ok
Doctest: ieee754.txt ... ok

==
FAIL: test_mtestfile (test.test_math.MathTests)
--
Traceback (most recent call last):
  File "/Users/salman/svn/python/trunk/Lib/test/test_math.py", line
1016, in test_mtestfile
'\n  '.join(failures))
AssertionError: Failures in test_mtestfile:
  expm10302:expm1(709.7827128932839): expected 1.797693134682424e+308,
got 'OverflowError'

--
Ran 40 tests in 2.273s

FAILED (failures=1)
test test_math failed -- Traceback (most recent call last):
  File "/Users/salman/svn/python/trunk/Lib/test/test_math.py", line
1016, in test_mtestfile
'\n  '.join(failures))
AssertionError: Failures in test_mtestfile:
  expm10302:expm1(709.7827128932839): expected 1.797693134682424e+308,
got 'OverflowError'

1 test failed:
test_math

--
components: Tests
messages: 96860
nosy: slmnhq
severity: normal
status: open
title: tes_math fails Mac OS X 10.4 due to OverflowError in test_mtestfile
type: performance
versions: Python 2.7

___
Python tracker 

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



[issue7572] Strabge issue : cursor.commit() with sqlite

2009-12-24 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
assignee:  -> ghaering
nosy: +ghaering

___
Python tracker 

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



[issue7571] Change 'name' of Process - assertion failure if Unicode

2009-12-24 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

Done in r77038.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue7541] python-config --ldflags doesn't pick up libpython2.5.a

2009-12-24 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Fixed in r77033 (trunk), r77034 (2.6), r77035 (py3k), r77036 (3.1)

Development on the 2.5 tree is closed, I will therefore not backport to 
2.5.

As a workaround you can add -Wl,-search_paths_first to the linker flags to 
ensure that the libpython.a in the framework gets picked up before 
/usr/lib/libpython2.5.dylib.

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed
type:  -> compile error

___
Python tracker 

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



[issue6834] use different mechanism for pythonw on osx

2009-12-24 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I've committed the completed patch as r77031 (trunk) and r77032 (py3k)

I will not backport to 2.6 and 3.1 because this is not a bugfix.

--
resolution:  -> accepted
stage: needs patch -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue7573] Python build issue on Ubuntu 9.10

2009-12-24 Thread instigate_team

instigate_team  added the comment:

Yes, We have no warnings after changing the include sequence.

--

___
Python tracker 

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



[issue7573] Python build issue on Ubuntu 9.10

2009-12-24 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

If you do reorder the include statements, will then the warning go away?

--
nosy: +loewis

___
Python tracker 

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



[issue7418] hashlib : the names of the different hash algorithms

2009-12-24 Thread Carl Chenet

Carl Chenet  added the comment:

Hi,

Maybe you have some ideas on this patch? I think it could be a nice
feature e.g in my app I need to support every hash algorithms available
so with optparse module it is possible to write something like :
 
for __hashtype in ('md5', 'sha1',
'sha224','sha256','sha384','sha512'):
__parser.add_option('--{}'.format(__hashtype), dest='hashtype',
action='store_const', const='{}'.format(__hashtype),
help='use the {} hash algorithm type'.format(__hashtype))
__options, _ = __parser.parse_args()

And it would be better if this tuple could be provided by the hashlib
module itself, making the code more evolutive.

--

___
Python tracker 

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



[issue7574] PyUnicode_FromFormat broken and not documented for 2.x

2009-12-24 Thread Ronald Oussoren

New submission from Ronald Oussoren :

Include/unicodeobject.h includes prototypes for PyUnicode_FromFormat and 
PyUnicode_FromFormatV in both 2.6 and 2.7, but those functions are not 
included in the documention.

And worse, the implementation contains bugs: the %R format code tries to 
include the repr() of an object and blindly assumes that the result of 
PyObject_Repr is a unicode string. In the 2.x tree PyObject_Repr usually 
(but not allways) returns a regular string (str instead of unicode).

The same problem is present in the implementation of %S.

For the %U and %V formats the code does typechecking in an assert 
statement rather than always testing and bailing out using a NULL result 
from the function.

--
assignee: georg.brandl
components: Documentation, Interpreter Core
messages: 96853
nosy: georg.brandl, ronaldoussoren
severity: normal
stage: needs patch
status: open
title: PyUnicode_FromFormat broken and not documented for 2.x
type: crash
versions: Python 2.6, Python 2.7

___
Python tracker 

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



[issue7573] Python build issue on Ubuntu 9.10

2009-12-24 Thread instigate_team

New submission from instigate_team :

Hello Python development team!

We encountered problem concerning Python 3.1 usage.

Platform info:

Ubuntu 9.10 32/64bit, glibc v. 2.10.1, gcc v. 4.4.0, Python 3.1.

Problem description:

  Below is given the C++ program text causing the warning:
   
#include 
#include 

int main()
{
 return 0;
}

Compilation result is the following:

In file included from /usr/include/python3.1/Python.h:8,
 from main.cpp:3:
/usr/include/python3.1/pyconfig.h:1108:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from
/usr/include/c++/4.4/i486-linux-gnu/bits/os_defines.h:39,
 from
/usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h:243,
 from /usr/include/c++/4.4/string:40,
 from main.cpp:2:
/usr/include/features.h:158:1: warning: this is the location of the
previous definition
In file included from /usr/include/python3.1/Python.h:8,
 from main.cpp:3:
/usr/include/python3.1/pyconfig.h:1130:1: warning: "_XOPEN_SOURCE" redefined
In file included from
/usr/include/c++/4.4/i486-linux-gnu/bits/os_defines.h:39,
 from
/usr/include/c++/4.4/i486-linux-gnu/bits/c++config.h:243,
 from /usr/include/c++/4.4/string:40,
 from main.cpp:2:
/usr/include/features.h:160:1: warning: this is the location of the
previous definition

Analyzing the error:

We find out that the includes sequence influences on the application
build. We have no problem in case if Python header is included before
"string" file.
The problem is concerning the conflict of pyconfig.h  and features.h
(/usr/include/features.h, which is the part of glibc), which is included
in string header file. We have the same result with any header file,
which includes features.h file.

File features.h defines _POSIX_C_SOURCE in case of some conditions are true.

In its turn pyconfig.h contains the following code in line 1108

#define _POSIX_C_SOURCE 200112L

And we get redefinition warning. Our projects are working with gcc
-Werror flags, so this is the blocking problem.

The same happened with _XOPEN_SOURCE.

Any help from your side will be very much appreciated.

--
components: Build
messages: 96852
nosy: instigate_team
severity: normal
status: open
title: Python build issue on Ubuntu 9.10
type: compile error
versions: Python 3.1

___
Python tracker 

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



[issue7572] Strabge issue : cursor.commit() with sqlite

2009-12-24 Thread lakshmipathi

New submission from lakshmipathi :

Hi all,
I'm new user to python and sqlite, let me know if i'm wrong or it's
sqlite issue.When I uncomment the line from below program it works -as
expected. But even when it's commented It works for first time.-As per
doc,without commit -all changes will be lost- am i right?

Issue : Running the program once without commit works for the first time
but not the next time.

Try changing the return value from 'OSS' to 'GNU' and comment/uncomment
the commit line.
--
Here is my program:
-
import sqlite3
def loopy():
return 'OSS'
#get connection object 
conn = sqlite3.connect("/tmp/example")
#get curson obj. and invoke execute
cur = conn.cursor()

conn.create_function("loopy",0,loopy)

cur.execute("insert into stk values (loopy())""")
#commit changes.
#conn.commit()  # **Uncomment this line and run again***

# read values
cur.execute("select * from stk")
for row in cur:
print row

cur.close()
-

--
messages: 96851
nosy: lakshmipathi
severity: normal
status: open
title: Strabge issue : cursor.commit() with sqlite
type: behavior
versions: Python 2.6

___
Python tracker 

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



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-12-24 Thread Daniel

Daniel  added the comment:

Thank you :)

Daniel.

--

___
Python tracker 

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