[issue6315] locale._build_localename(locale.getdefaultlocale()) returns 'C.mac-roman'

2009-06-20 Thread Stephen J. Turnbull
New submission from Stephen J. Turnbull : Which causes the locale machinery to spit exceptions, and the program to die, usually (eg, hg). This manifests naturally on an Intel Mac, Mac OS X 10.5.7, but the problem behavior is in _build_localename. When called as _build_localename((None,'any_s

[issue6314] logging.basicConfig(level='DEBUG', ...

2009-06-20 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> vsajip nosy: +vsajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue6164] [AIX] Patch to correct the AIX C/C++ linker argument used for 'runtime_library_dirs'

2009-06-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r73490. Will wait for 3.1 final release to apply it to the py3k branch. -- versions: +Python 2.7, Python 3.2 -Python 2.6 ___ Python tracker ___

[issue6316] format, str.format don't work well with datetime, date object

2009-06-20 Thread Jeong-Min Lee
New submission from Jeong-Min Lee : format(datetime_obj, format_string) return format_string. (when format_string is not empty.) >>> import datetime >>> d = datetime.datetime.now() >>> format(d) '2009-06-20 23:51:54.243428' >>> format(d, '') '2009-06-20 23:51:54.243428' >>> d datetime.datetime(

[issue6316] format, str.format don't work well with datetime, date object

2009-06-20 Thread Eric Smith
Changes by Eric Smith : -- assignee: -> eric.smith components: +Interpreter Core -Extension Modules, Library (Lib) nosy: +eric.smith ___ Python tracker ___ __

[issue6316] format, str.format don't work well with datetime, date object

2009-06-20 Thread Eric Smith
Eric Smith added the comment: This is by design. Where d is a datetime, format(d, format_string) returns d.strftime(format_string). >>> d.strftime('30') '30' -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue6316] format, str.format don't work well with datetime, date object

2009-06-20 Thread Jeong-Min Lee
Jeong-Min Lee added the comment: I got it. By the way, It would be good to document that this behaviour (at least about datetime.__format__) -- ___ Python tracker ___ ___

[issue6099] HTTP/1.1 with keep-alive support for xmlrpclib.ServerProxy

2009-06-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Superseded by issue6267. -- nosy: +loewis resolution: -> out of date status: open -> closed superseder: -> Cumulative patch to http and xmlrpc ___ Python tracker ___

[issue6096] SimpleXMLRPCServer not suitable for HTTP/1.1 keep-alive

2009-06-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Superseded by issue6267. -- nosy: +loewis resolution: -> out of date status: open -> closed superseder: -> Cumulative patch to http and xmlrpc ___ Python tracker ___

[issue1360243] Add XML-RPC Fault Interoperability to XMLRPC libraries

2009-06-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Rejecting the patch because of lack of responsiveness. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue6215] Backport the IO lib to trunk

2009-06-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Everything looks ok, thanks! -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue6236] os.popen causes illegal seek on AIX in Python 3.1rc

2009-06-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ouch, this is quite annoying. I will try to fix this before the final release. -- assignee: -> pitrou nosy: +pitrou priority: -> critical ___ Python tracker _

[issue6236] os.popen causes illegal seek on AIX in Python 3.1rc

2009-06-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is my current interpretation: subprocess uses os.pipe() to create the file handles used for communication. These handles normally always raise an error ([Errno 29] Illegal seek) when trying to seek() on them, which the IO lib interprets as meaning the stre

[issue6236] os.popen causes illegal seek on AIX in Python 3.1rc

2009-06-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Just before, could you try to type the following commands: >>> r, w = os.pipe() >>> os.lseek(r, 0, 1) -- ___ Python tracker ___ ___

[issue1612262] Class Browser doesn't show internal classes

2009-06-20 Thread Roger Serwy
Roger Serwy added the comment: The class browser relies on the pyclbr module to scan the code. This module doesn't support classes within classes. Both pyclbr and IDLE's class browser need to be modified. -- nosy: +serwy ___ Python tracker

[issue6266] cElementTree.iterparse & ElementTree.iterparse return differently encoded strings

2009-06-20 Thread nlopes
nlopes added the comment: This is a pretty dumb patch, but it does it's job. Basically it decodes the utf-8 encoded prefix and uri. Then, encodes it into Latin1. Probably there are better ways of doing this and those ideas are welcome. Patch attached. -- keywords: +patch nosy: +nlopes A

[issue6266] cElementTree.iterparse & ElementTree.iterparse return differently encoded strings

2009-06-20 Thread Fredrik Lundh
Fredrik Lundh added the comment: Converting from UTF-8 to Unicode is the right thing to do, but converting back to Latin-1 is not correct -- note that ET returns a Unicode string, not an 8-bit string. There's a "makestring" helper that does the right thing in the library; just changing: par

[issue6266] cElementTree.iterparse & ElementTree.iterparse return differently encoded strings

2009-06-20 Thread nlopes
nlopes added the comment: You're right about the conversion to Latin1. I actually played a bit with makestring before going in another direction (although not very good) because makestring alone wasn't giving what is intended. I'll try to check tomorrow a good approach for this (already had tha

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2009-06-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: The situation appears to be at least slightly different from what Guido stated. In 3.x, all classes subclass object, which has .__ne__, so if that stopped inferred != behavior, it would never happen. >>> class A: def __eq__(s,p): return 1 >>> id(object

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2009-06-20 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : winsound.PlaySound doesn't accept non-unicode string. Python 3.1rc2+ (py3k, Jun 14 2009, 14:07:51) [MSC v.1200 32 bit (Intel)] on win3 2 Type "help", "copyright", "credits" or "license" for more information. >>> import winsound >>> winsound.PlaySound("あ.wa

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2009-06-20 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2009-06-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: georg.brandl -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2009-06-20 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file14326/py3k_winsound.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue6317] winsound.PlaySound doesn't accept non-unicode string

2009-06-20 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file14325/py3k_winsound.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue6318] HTMLParser Attributes Containing Javascript

2009-06-20 Thread Eric
New submission from Eric : The line: n.feed('test') is not matched by the regular expressions for attributes. -- components: Library (Lib) messages: 89555 nosy: ericryk severity: normal status: open title: HTMLParser Attributes Containing Javascript versions: Python 3.0 ___