[issue1074462] Irregular behavior of datetime.__str__()

2007-10-14 Thread Zooko O'Whielacronx
Zooko O'Whielacronx added the comment: Here is a note for the next person who comes to this ticket wondering why isoformat() exhibits this slightly un-Pythonic behavior. If you want to use isoformat() to produce, for example, timestamps for your logfiles, you'll need to do something like the fol

[issue1643641] Fix Bug 1362475 Text.edit_modified() doesn't work

2007-10-14 Thread Georg Brandl
Changes by Georg Brandl: -- resolution: -> duplicate status: open -> closed superseder: -> Text.edit_modified() fails _ Tracker <[EMAIL PROTECTED]> _ _

[issue1130] Idle - Save (buffer) - closes IDLE and does not save file (Windows XP)

2007-10-14 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: I caught the first part, but not the second using GNU/Linux. I think that eol_convention can be a class variable, since os.linesep isn't going to change from file to file. Thanks for the report! r58465. __ Tracker <[EMAIL PROTECT

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: Committed revision 58466. Fingers crossed. -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1278] imp.find_module() ignores -*- coding: Latin-1 -*-

2007-10-14 Thread Christian Heimes
New submission from Christian Heimes: imp.find_module() returns an io.TextIOWrapper instance first value. The encoding of the TextIOWrapper isn't set from a -*- coding: Latin-1 -*- line. >>> import imp >>> imp.find_module("heapq") (, '/home/heimes/dev/python/py3k/Lib/heapq.py', ('.py', 'U', 1))

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: > > This looks promising. I'm working on the freeze issue. Once I get that > > working I'll check this in. Thanks Alexandre and Christian for all > > your hard work!!! > > You're welcome. Does the patch qualify me for Misc/ACKS? :) Yes, and also Alexandre. :-)

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Christian Heimes
Christian Heimes added the comment: I found two minor bugs in the fix. In Modules/posixmodule.c the tmpnam() and tempnam() methods return a PyString instance. Please change line 5373 and 5431 to use PyUnicode_DecodeFSDefault(). Index: Modules/posixmodule.c ===

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Christian Heimes
Christian Heimes added the comment: > This looks promising. I'm working on the freeze issue. Once I get that > working I'll check this in. Thanks Alexandre and Christian for all > your hard work!!! You're welcome. Does the patch qualify me for Misc/ACKS? :) I'm going to work on the basestring p

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Christian Heimes
Christian Heimes added the comment: >> UnicodeDecodeError: 'utf8' codec can't decode bytes in position >> 1428-1430: invalid data > > I can't reproduce this. Can you open a separate issue? It breaks for me with the same error message on Ubuntu Linux, i386, UCS-4 build and locale de_DE.UTF-8

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: > The problem is the imp module, which modulefinder uses, does not > detect the encoding of the files from the mode-line. This causes > TextIOWrapper to crash when it tries to read modules using an encoding > other than ASCII or UTF-8. Here an example: > > >>

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: This looks promising. I'm working on the freeze issue. Once I get that working I'll check this in. Thanks Alexandre and Christian for all your hard work!!! __ Tracker <[EMAIL PROTECTED]> __

[issue1268] array unittest problems with UCS4 build

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: > Oh stop, the array module doesn't build for me (Ubuntu Linux, i386, > UCS-4 build, rev58458): > > Modules/arraymodule.c: In function 'array_buffer_getbuf': > Modules/arraymodule.c:1815: error: 'Py_buffer' has no member named 'formats' > > Please replace forma

[issue1114345] Add SSL certificate validation

2007-10-14 Thread Bill Janssen
Bill Janssen added the comment: See the SSL package on PyPI. Should work on 2.3, 2.4, and 2.5. Bill On 10/14/07, vila <[EMAIL PROTECTED]> wrote: > > vila added the comment: > > > I'm planning to do a package for 2.3... > > Any progress on that package ? > > I'd like to do the same for python 2

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Christian Heimes
Christian Heimes added the comment: Changes since updated_file_fsenc-5.patch: * Fix for hard coded FS default encoding on Apple and Windows * Added two notes to unicode_default_encoding and Py_FileSystemDefaultEncoding __ Tracker <[EMAIL PROTECTED]>

[issue1268] array unittest problems with UCS4 build

2007-10-14 Thread Christian Heimes
Christian Heimes added the comment: Oh stop, the array module doesn't build for me (Ubuntu Linux, i386, UCS-4 build, rev58458): Modules/arraymodule.c: In function 'array_buffer_getbuf': Modules/arraymodule.c:1815: error: 'Py_buffer' has no member named 'formats' Please replace formats with form

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Christian Heimes
Christian Heimes added the comment: Alexandre Vassalotti wrote: > Alexandre Vassalotti added the comment: > > I thought of another way to implement PyUnicode_DecodeFSDefault. If > Py_FileSystemDefaultEncoding is set, decode with the codecs module, > otherwise use UTF-8 + replace. This works beca

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I thought of another way to implement PyUnicode_DecodeFSDefault. If Py_FileSystemDefaultEncoding is set, decode with the codecs module, otherwise use UTF-8 + replace. This works because when Py_FileSystemDefaultEncoding is initialized at the end of Py_Initi

[issue1277] mailbox.Maildir: factory not used

2007-10-14 Thread Bernd Wurst
New submission from Bernd Wurst: The "factory"-argument to the constructorof mailbox.Maildir is not used as it should be. First, it's default is set to rfc822.Message instead of MaildirMessage and then, inside the module's code, MaildirMessage is hard-coded as a message constructor. If I nee

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: > I have a question for Alexandre related to frozen.c -- why is there a > mode line with an encoding involved in freezing hello.py? For some reason which I don't know about, freeze.py tries to read all the modules accessible from sys.path: # collect a

[issue1268] array unittest problems with UCS4 build

2007-10-14 Thread Christian Heimes
Christian Heimes added the comment: > Can this be closed now that Travis reverted his patch? Yes, it can be closed. By the way svn.python.org and the anon svn server are down the third time this week. Something is wrong with the server. Christian __ Tracker <[E

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: Only a few modules are involved in the bootstrap. The filename is mostly used to display in the traceback. There is already a fallback in the traceback-printing code that tries to look through sys.path for a file matching the module if it can't open the filenam

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Christian Heimes
Christian Heimes added the comment: Alexandre Vassalotti wrote: > That isn't true. My mangler does exactly the same thing as your > original one. > > However, I forgot to add Py_CHARMASK to the calls of tolower() and > isalnum() which would cause problems on platforms with signed char. I wasn't

[issue1522587] Tix.Grid patch

2007-10-14 Thread Matthias Kievernagel
Changes by Matthias Kievernagel: -- nosy: +mkiever _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: h

[issue1135] xview/yview of Tix.Grid is broken

2007-10-14 Thread Matthias Kievernagel
Matthias Kievernagel added the comment: Hint: There is also Issue1522587, which contains a large patch (by klappnase) for Tix.Grid addressing xview/yview and several other issues. I do not know if it fixes this issue exactly. Can you take a look at it, ocean-city? Regards, Matthias Kievernagel

[issue1643641] Fix Bug 1362475 Text.edit_modified() doesn't work

2007-10-14 Thread Matthias Kievernagel
Matthias Kievernagel added the comment: Moved my patch to Issue961805. (duplication was created when moving from SF bugs/patches) This issue should be closed down. Regards, Matthias Kievernagel _ Tracker <[EMAIL PROTECTED]>

[issue961805] Text.edit_modified() fails

2007-10-14 Thread Matthias Kievernagel
Changes by Matthias Kievernagel: Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/

[issue961805] Text.edit_modified() fails

2007-10-14 Thread Matthias Kievernagel
Matthias Kievernagel added the comment: Moved my patch from Issue1643641 to this Issue. (duplication was created when moving from SF bugs/patches) Patch to be applied with 'patch -p0' I have also attached a demo where you can test all Text.edit_* functions. Regards, Matthias Kievernagel ---

[issue1114345] Add SSL certificate validation

2007-10-14 Thread vila
vila added the comment: > I'm planning to do a package for 2.3... Any progress on that package ? I'd like to do the same for python 2.4 and 2.5 as I have a need for it for both versions. I don't know what you call a package though, but I'm willing to learn :) -- nosy: +vila ___

[issue1276] LookupError: unknown encoding: X-MAC-JAPANESE

2007-10-14 Thread Georg Brandl
Changes by Georg Brandl: -- versions: +Python 3.0 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue1631171] implement warnings module in C

2007-10-14 Thread Brett Cannon
Brett Cannon added the comment: So the descriptor idea didn't work. Another idea is to have the C code that relies on attributes on warnings that are allowed to change have an initial check for warnings, and if that fails to fall back on C code. That way the module can still be completely self-

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Christian wrote: > Alexandre's mangle loop doesn't do the same job as mine. Chars like _ > and - aren't removed from the encoding name and the if clauses don't > catch for example UTF-8 or ISO-8859-1 only UTF8 or ISO8859-1. That isn't true. My mangler doe

[issue1268] array unittest problems with UCS4 build

2007-10-14 Thread Guido van Rossum
Changes by Guido van Rossum: -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1268] array unittest problems with UCS4 build

2007-10-14 Thread Travis Oliphant
Travis Oliphant added the comment: This issue may be closed. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1272] Decode __file__ and co_filename to unicode using fs default

2007-10-14 Thread Guido van Rossum
Guido van Rossum added the comment: OK, in the spirit of delegation I'll leave this for you and Alexandre to work out more. If you're stuck, post to the list so others can jump in. __ Tracker <[EMAIL PROTECTED]>