[issue8898] The email package should defer to the codecs module for all aliases

2010-06-04 Thread Shashwat Anand
Shashwat Anand added the comment: >We need to add aliases for those codecs. The current aliases >list only supports the format "latinN" for N in 1-10. latinN means latin1 to latin10 ? But latin_1 is a recognized alias. >>> codecs.lookup('latin_1') -- ___

[issue8899] Add docstrings to time.struct_time

2010-06-04 Thread Georg Brandl
Georg Brandl added the comment: The first change in time.rst is not needed; there the sentence is not a direct description of struct_time. The rest is good to commit. -- ___ Python tracker ___

[issue8898] The email package should defer to the codecs module for all aliases

2010-06-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Shashwat Anand wrote: > > Shashwat Anand added the comment: > >> We need to add aliases for those codecs. The current aliases >> list only supports the format "latinN" for N in 1-10. > > latinN means latin1 to latin10 ? Yes. We should add aliases for t

[issue8847] crash appending list and namedtuple

2010-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Running the exact same binary on winxp with an amd athlon processor, I *did* get a crash after about 5 seconds. "python.exe has encountered a problem and needs to close. We are sorry for the inconvenience." Trying again with IDLE instead of the command window,

[issue1712522] urllib.quote throws exception on Unicode URL

2010-06-04 Thread AdamN
AdamN added the comment: Nudge. Somebody with the authority needs to increment the stage to "patch review". -- nosy: +adamnelson ___ Python tracker ___ _

[issue8847] crash appending list and namedtuple

2010-06-04 Thread Jack Diederich
Changes by Jack Diederich : -- nosy: +jackdied ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8847] crash appending list and namedtuple

2010-06-04 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue1712522] urllib.quote throws exception on Unicode URL

2010-06-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: unit test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-04 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Jun 4, 2010 at 4:09 PM, Brett Cannon wrote: .. > For the allowable range, follow the datetime docs as someone might be relying > on that specification already. > Will do. I think it is as simple simple s/12/24/ in two places of the current patch

[issue8899] Add docstrings to time.struct_time

2010-06-04 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-04 Thread Christophe Kalt
Christophe Kalt added the comment: FreeBSD is yet another beast: $ uname -rs FreeBSD 8.0-STABLE $ python -V Python 2.5.5 $ python readlines.py read : [] readlines: [] readline : -- ___ Python tracker ___

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-04 Thread Brett Cannon
Brett Cannon added the comment: On Fri, Jun 4, 2010 at 15:17, Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > On Fri, Jun 4, 2010 at 4:09 PM, Brett Cannon wrote: > .. >> For the allowable range, follow the datetime docs as someone might be >> relying on that speci

[issue8847] crash appending list and namedtuple

2010-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: More experiments from collections import namedtuple foo = namedtuple('foo', '') a = [] + foo() print (a, type(a), len(a)) # () 0 ie, a standard empty tuple, whereas a = [1,1] + foo() crashes immediately. So the behavior of list()+namedtuple depends on the len

[issue8885] markerbase declaration errors aren't recoverable

2010-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Neither markerbase nor markupbase are in the list of 2.6 stdlib modules at http://docs.python.org/modindex.html even with all packages [+] listings expanded to [-]. So I have to guess this is a third party module. If so, please close and report to *its* authors

[issue8890] Modules have dangerous examples in documentation

2010-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Henri, the owasp link you gave in your opening post now gives Bad Title error msg. -- nosy: +tjreedy ___ Python tracker ___ ___

[issue8847] crash appending list and namedtuple

2010-06-04 Thread Jack Diederich
Jack Diederich added the comment: I can't reproduce on 3k trunk with Ubuntu 10.04, gcc 4.4.3 namedtuples are just a subclass of tuple with only two dunder methods defined (a plain __new__ with empty __slots__). Can you provoke the same behavior with plain tuples, or a subclass of tuple that

[issue8847] crash appending list and namedtuple

2010-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Substituting foo = tuple() TypeError: can only concatenate list (not "tuple") to list class Crasher(tuple): pass foo = Crasher() a = [1] + foo b=a[0] print (type(a), len(a), type(b), len(type(b)), type(type(b))) 1 [] 1 as before, so namedtuple is not, in pa

[issue8900] IDLE crashes if Preference set to At Startup -> Open Edit Window

2010-06-04 Thread Michael Huster
New submission from Michael Huster : This only seems to be a problem under Windows. >From a Portable Python discussion: I am using Portable Python 1.1, python 3.0.1. I am trying to set up a .bat file file to easily start IDLE. But IDLE is throwing an error and failing some of the time. It only ha

[issue8885] markerbase declaration errors aren't recoverable

2010-06-04 Thread Mark Nottingham
Mark Nottingham added the comment: http://svn.python.org/view/python/trunk/Lib/markupbase.py?view=log -- status: pending -> open ___ Python tracker ___ __

[issue8847] crash appending list and namedtuple

2010-06-04 Thread Jack Diederich
Jack Diederich added the comment: Two more probes: 1) does it also have the same strange/crashy behavior when you subclass list and concat that to a tuple? 2) does dropping the optimization level down to -O help? This has "compiler quirk" written all over it. The C-code for list and tuple

[issue8847] crash appending list and namedtuple

2010-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: "can't reproduce" does not inform as to what *did* happen with which code. More experiments: foo = str() TypeError: can only concatenate list (not "str") to list class s(str): pass foo = s() TypeError: Can't convert 'list' object to str implicitly Why is it t

[issue8847] crash appending list and namedtuple

2010-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: 1) answered before you asked (yes, similar) 2) (same thought) I am using PSF windows installer, however that was prepared. Martin? -- nosy: +loewis ___ Python tracker

[issue8882] socketmodule.c`getsockaddrarg() should not check the length of sun_path

2010-06-04 Thread Edward Pilatowicz
Edward Pilatowicz added the comment: some additional data. AIX 6.1: defined sun_path = 1023 max sun_path = 1023 i'll also point out the existence of the SUN_LEN() macro, which is defined on all the previously mentioned operating systems, and which calculates the size of a sockaddr_un s

[issue8847] crash appending list and namedtuple

2010-06-04 Thread Jack Diederich
Jack Diederich added the comment: if the id() of the left operand is identical to the id() of the first element in the result it would strongly support compiler skulldugerry. class Crasher(tuple): pass foo = Crasher() x = [1] a = x + foo b=a[0] if id(b) == id(x): raise Exception("It's the C

[issue8847] crash appending list and namedtuple

2010-06-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Good try, but for one run, the ids of foo, x, a, and b are >>> 15719440 15717880 15273104 12266976 -- ___ Python tracker ___ __

[issue8901] Windows registry path not ignored with -E option

2010-06-04 Thread flashk
New submission from flashk : Hi, I noticed that Python still uses the Windows registry to initialize sys.path, when the -E option is used. >From my understanding, this option is mostly used by programs that are running >an embedded version of python, and don't want it to be affected by global

[issue8901] Windows registry path not ignored with -E option

2010-06-04 Thread flashk
Changes by flashk : Added file: http://bugs.python.org/file17559/IgnoreWindowsRegistry_32.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue8902] add datetime.time.now() for consistency

2010-06-04 Thread anatoly techtonik
New submission from anatoly techtonik : There is: datetime.date.today() datetime.datetime.today() datetime.datetime.now([tz]) But no: datetime.time.now([tz]) -- components: Library (Lib) messages: 107122 nosy: techtonik priority: normal severity: normal status: open title: add datetime.

[issue8903] datetime functions

2010-06-04 Thread anatoly techtonik
New submission from anatoly techtonik : Current OOP API of datetime is ugly: from datetime import datetime print datetime.today().isoformat() The proposal is to add today() and now() as module functions: from datetime import today, now print today() # datetime.date(2010, 6, 5) print now() # da

<    1   2