[issue1035] bytes buffer API needs to support PyBUF_LOCKDATA

2007-08-27 Thread Gregory P. Smith
New submission from Gregory P. Smith: I've converted _bsddb.c to use the py3k buffer API for all data and keys it takes as input. All tests now fail with this error: BufferError: Cannot make this object read-only. This presumably results from this call: PyObject_GetBuffer(obj, view, PyBUF_L

[issue1036] py3k _bsddb.c patch to use the new buffer API

2007-08-27 Thread Gregory P. Smith
New submission from Gregory P. Smith: This is my svn diff of a py3k Modules/_bsddb.c converted to use the buffer API. I'm submitting it here as so it doesn't get misplaced as it currently won't work until bytes objects support PyBUF_LOCKDATA (a separate bug) -- assignee: gregory.p.smith

[issue1035] bytes buffer API needs to support PyBUF_LOCKDATA

2007-08-27 Thread Gregory P. Smith
Changes by Gregory P. Smith: -- priority: normal -> __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1037] Ill-coded identifier crashes python when coding spec is utf-8

2007-08-27 Thread Hye-Shik Chang
New submission from Hye-Shik Chang: Illegal identifier makes python crash on UTF-8 source codes/interpreters. Python 3.0x (py3k:57555M, Aug 27 2007, 21:23:47) [GCC 3.4.6 [FreeBSD] 20060305] on freebsd6 >>> compile(b'#coding:utf-8\n\xfc', '', 'exec') zsh: segmentation fault (core dumped) ./pyth

[issue1202533] a bunch of infinite C recursions

2007-08-27 Thread Armin Rigo
Armin Rigo added the comment: Assigning to Brett instead of me (according to the tracker history). -- assignee: arigo -> brett.cannon _ Tracker <[EMAIL PROTECTED]> _ ___

[issue1771364] Misc improvements for the io module

2007-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks!! Committed revision 57564. SocketIO was recently moved to socket.py because that's the only place that uses it. So I've removed it from io.__all__. The only other change I applied was related to the isatty check -- you accidentally changed things so

[issue1739468] Add a -z interpreter flag to execute a zip file

2007-08-27 Thread Phillip J. Eby
Phillip J. Eby added the comment: Patch implementing an alternate approach: support automatically importing __main__ when sys.argv[0] is an importable path. This allows zip files, directories, and any future importable locations (e.g. URLs) to be used on the command line. Note that this also me

[issue1739468] Add a -z interpreter flag to execute a zip file

2007-08-27 Thread Phillip J. Eby
Changes by Phillip J. Eby: _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/opt

[issue1024] documentation for new SSL module

2007-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 57570. I didn't review it though. -- nosy: +gvanrossum resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __

[issue1739906] Add reduce to functools in 2.6

2007-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 57574. -- nosy: +gvanrossum resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ __

[issue1029] py3k: io.StringIO.getvalue() returns \r\n

2007-08-27 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: > That's why the current behaviour is not correct: When I write('\n'), > getvalue() currently returns '\r\n'. Oh, I missed your example in your initial message. So yes, I agree that StringIO shouldn't translate newlines like that. I attached a patch that s

[issue1038] [py3k] pdb does not work in python 3000

2007-08-27 Thread Gregory P. Smith
New submission from Gregory P. Smith: The Lib/pdb.py debugger fails in the py3k branch. Traceback (most recent call last): File "/usr/local/gps/python/py3k/Lib/pdb.py", line 1247, in main pdb._runscript(mainpyfile) File "/usr/local/gps/python/py3k/Lib/pdb.py", line 1173, in _runscript

[issue1670765] email.Generator: no header wrapping for multipart/signed

2007-08-27 Thread Collin Winter
Collin Winter added the comment: I'd like some tests demonstrating where the current implementation fails and your patch helps, yes. _ Tracker <[EMAIL PROTECTED]> _ _

[issue1670765] email.Generator: no header wrapping for multipart/signed

2007-08-27 Thread Martin von Gagern
Martin von Gagern added the comment: Looks like I missed your comments on this patch. What kind of tests do you have in mind? Tests demonstrating where current implementation fails and my patch will help? Or rather tests checking that this patch won't break anything else? The former would be easy

[issue1032] Improve the hackish runtime_library_dirs support for gcc

2007-08-27 Thread Seo Sanghyeon
Seo Sanghyeon added the comment: The patch is incorrect since find returns -1 on failure. This is also a duplicate of #1254718. -- nosy: +sanxiyn __ Tracker <[EMAIL PROTECTED]> __

[issue1670765] email.Generator: no header wrapping for multipart/signed

2007-08-27 Thread Martin von Gagern
Martin von Gagern added the comment: Take the attached test5.eml. Run it through the following python script: import email print (email.message_from_file(open("test5.eml")).as_string(False)) The result will have both instances of the X-Long-Line header rewrapped. As the second instance is inclu

[issue1528802] Turkish Character

2007-08-27 Thread Ismail Donmez
Ismail Donmez added the comment: This works fine with python 2.4 : >>> import locale >>> locale.setlocale(locale.LC_ALL,"tr_TR.UTF-8") 'tr_TR.UTF-8' >>> print u"Mayıs".upper() MAYIS -- nosy: +cartman _ Tracker <[EMAIL PROTECTED]>

[issue459007] Document sys.path on Windows

2007-08-27 Thread Sean Reifschneider
Sean Reifschneider added the comment: This is a high priority item that hasn't been touched in half a decade. Mark: Consider this a reminder if this is still on your agenda to do. If not, shall we just close it? Is there anyone else that could do this? -- nosy: +jafo

[issue1033] Support for newline and encoding in tempfile module

2007-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks! Committed revision 57594. General note: please run Tools/scripts/reindent.py over your files after editing so I won't have to. -- nosy: +gvanrossum resolution: -> accepted status: open -> closed __ Tracker <[

[issue1774736] Binding fails

2007-08-27 Thread Ali Gholami Rudi
Changes by Ali Gholami Rudi: -- versions: +Python 3.0 _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1039] Asssertion in Windows debug build

2007-08-27 Thread Thomas Heller
New submission from Thomas Heller: In a windows debug build, an assertion is triggered when os.execvpe is called with an empty argument list: self.assertRaises(OSError, os.execvpe, 'no such app-', [], None) The same problem is present in the trunk version. Attached is a patch that fixes this, w

[issue1043] test_builtin failure on Windows

2007-08-27 Thread Thomas Heller
New submission from Thomas Heller: test test_builtin failed -- Traceback (most recent call last): File "c:\svn\py3k\lib\test\test_builtin.py", line 1473, in test_round self.assertEqual(round(1e20), 1e20) AssertionError: 0 != 1e+020 -- components: Windows messages: 55355 nosy: thell

[issue1042] test_glob fails with UnicodeDecodeError

2007-08-27 Thread Thomas Heller
New submission from Thomas Heller: Unicode errors in various tests - not only in test_glob: test_glob test test_glob failed -- Traceback (most recent call last): File "c:\svn\py3k\lib\test\test_glob.py", line 87, in test_glob_directory_names eq(self.glob('*', '*a'), []) File "c

[issue1040] Unicode problem with TZ

2007-08-27 Thread Thomas Heller
Thomas Heller added the comment: BTW, setting the environment variable TZ to, say, 'GMT' makes the problem go away. __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1040] Unicode problem with TZ

2007-08-27 Thread Thomas Heller
New submission from Thomas Heller: In my german version of winXP SP2, python3 cannot import the time module: c:\svn\py3k\PCbuild>python_d Python 3.0x (py3k:57600M, Aug 28 2007, 07:58:23) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >

[issue1041] io.py problems on Windows

2007-08-27 Thread Thomas Heller
New submission from Thomas Heller: Running the PCBuild\rt.bat script fails when it compares the expected output with the actual output. Some inspection shows that the comparison fails because there are '\n' linefeeds in the expected and '\n\r' linefeeds in the actual output: c:\svn\py3k\PCbui