[issue5334] array.fromfile() fails to insert values when EOFError is raised

2009-02-26 Thread Zac Medico
Zac Medico added the comment: Thanks for the patch. It works for me. -- components: +Library (Lib) -Extension Modules versions: -Python 3.1 ___ Python tracker ___ __

[issue5358] Unicode control characters are not allowed as identifiers

2009-02-26 Thread Ezio Melotti
Ezio Melotti added the comment: Valid identifiers should begin with a letter or '_' and contain only letters, numbers and '_'. This probably means that only the Unicode characters that belong to the categories Ll, Lu (Letter Lower/Upper case), Nd (Number, Decimal Digit) and Pc (Punctuation, Conn

[issue5358] Unicode control characters are not allowed as identifiers

2009-02-26 Thread Baiju M
Baiju M added the comment: I think RFC-3454 [1] can be used as a base for selecting the control characters which can be used as a valid identifier character. [1] http://www.rfc-editor.org/rfc/rfc3454.txt ___ Python tracker

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-26 Thread Thomas Heller
Changes by Thomas Heller : -- assignee: theller -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-26 Thread Thomas Heller
Changes by Thomas Heller : -- components: -ctypes nosy: -theller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue5358] Unicode control characters are not allowed as identifiers

2009-02-26 Thread Baiju M
Baiju M added the comment: On a further look at this issue, I understood Python cannot use all Unicode control characters as identifiers. But for many international languages, without some control characters like ZWJ & ZWNJ [1], it won't be possible to construct all characters with proper visua

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Skip Montanaro
Skip Montanaro added the comment: Rob> I still don't like the lack of symmetry of supporting implicit Rob> header reads, but not implicit header writes. A header is nothing more than a row in the CSV file with special interpretation applied by the user. There is nothing implicit about it.

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-26 Thread Brett Cannon
Brett Cannon added the comment: I am currently doing a review of the patch over at http://codereview.appspot.com/22042 . ___ Python tracker ___ ___

[issue1580] Use shorter float repr when possible

2009-02-26 Thread Preston Briggs
Preston Briggs added the comment: This all started with email to Guido that y'all didn't see, wherein I wondered if Python was interested in such a thing. Guido said: Sure, in principle, please see the discussion associated with this change. I probably don't have all the required expertise toda

[issue5213] _resolve_name in importlib/__init__.py left an index on rindex usage

2009-02-26 Thread Brett Cannon
Brett Cannon added the comment: Fixed in 70011. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-02-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'll deal with it eventually. -- assignee: -> benjamin.peterson ___ Python tracker ___ ___ Pytho

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I don't think you should write them by default. > I've worked with lots of CSV files which have no headers. My experience has been the same as Skips. ___ Python tracker ___

[issue5366] setupscript examples for dependency keywords in setup.py

2009-02-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: I have added more details in r70007. Thanks! notice that setupscript mentions that long_description is rest: """ ‘long string’ Multiple lines of plain text in reStructuredText format (see http://docutils.sf.net/). """ -- status: open -> closed _

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Rob Renaud
Rob Renaud added the comment: I did a search on Google code for the DictReader constructor. I analyzed the first 3 pages, the fieldnames parameter was used in 14 of 27 cases (discounting unittest code built into Python) and was not used in 13 of 27 cases. I suppose that means headered csv file

[issue5379] Multicast example mcast.py is outdated and ugly

2009-02-26 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue5379] Multicast example mcast.py is outdated and ugly

2009-02-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: heh yuck that code was ancient. thanks for the update, i'll submit it. -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___

[issue5379] Multicast example mcast.py is outdated and ugly

2009-02-26 Thread Philipp Hagemeister
New submission from Philipp Hagemeister : The multicast example Demo/sockets/mcast.py 1. mentions that multicast is only implemented on SGI (and optional on other systems). That is not the case anymore. 2. Includes completely unrelated code for broadcast transmission. There is already an example

[issue5366] setupscript examples for dependency keywords in setup.py

2009-02-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: For the requires and provides, I am afraid no one really uses theses option, and they might get deprecated at some point. So I don't think it worth adding an example for it ___ Python tracker

[issue5366] setupscript examples for dependency keywords in setup.py

2009-02-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: > Another thing for setupscript is to state that long_description is > actually ReStructured text. I can be free text. If it's ReStructured text it will be parsed by PyPI but this is it; ___ Python tracker

[issue1580] Use shorter float repr when possible

2009-02-26 Thread Tim Peters
Tim Peters added the comment: Huh. I didn't see Preston volunteer to do anything here ;-) One bit of software engineering for whoever does sign on: nothing kills porting a language to a new platform faster than needing to get an obscure but core subsystem working. So whatever is done here, t

[issue5052] Mark distutils to stay compatible with 2.3

2009-02-26 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- keywords: +patch Added file: http://bugs.python.org/file13197/2.3.patch ___ Python tracker ___ ___ Python-b

[issue5368] curses patch add color_set and wcolor_set , and addchstr family of functions

2009-02-26 Thread Steve Owens
Steve Owens added the comment: This is a start on the documentation efforts. I have updated the recently modified curses.rst (how to) file. Need direction in locating all of the docs that are impacted by the changes I have introduced and I will write them up. Added file: http://bugs.python.or

[issue5368] curses patch add color_set and wcolor_set , and addchstr family of functions

2009-02-26 Thread Steve Owens
Steve Owens added the comment: This is the addchstr unit test. Added file: http://bugs.python.org/file13195/test_curses_addchstr.py ___ Python tracker ___ ___

[issue5368] curses patch add color_set and wcolor_set , and addchstr family of functions

2009-02-26 Thread Steve Owens
Steve Owens added the comment: I have also added the addchstr family of functions. The updated patch2 should include the previos patch since it has not been applied to the repository as of this writing. See also the unittest for the addchstr method family. I will update the docs and add those

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-26 Thread STINNER Victor
STINNER Victor added the comment: Anyway, the behaviour is correct. But ok, it's "strange" because unexpected. You have to understand the fact the long=>int conversion is manual :-/ Decimal.__int__ might force return int(result) at the end to avoid problem with -sys.maxint, but is it really i

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-26 Thread STINNER Victor
Changes by STINNER Victor : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-26 Thread STINNER Victor
STINNER Victor added the comment: Anyway, the behaviour in correct. But ok, it's "strange" because unexpected. You have to understand the fact the long=>int conversion is manual :-/ Decimal.__int__ might force return int(result) at the end to avoid problem with -sys.maxint, but is it really i

[issue1580] Use shorter float repr when possible

2009-02-26 Thread Guido van Rossum
Guido van Rossum added the comment: On Thu, Feb 26, 2009 at 1:01 PM, Tim Peters wrote: > Is it worth it?  To whom ;-) ?  It was discussed several times before on > various Python mailing lists, and nobody was willing to sign up for the > considerable effort required (both to update Gay's code a

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-26 Thread STINNER Victor
STINNER Victor added the comment: > the question is why would the second int() return an int, > if it's indeed a long? Python doesn't convert long to int even if the long can fit in an int. Example: >>> type(1) >>> type(1L) >>> type(1L+1) >>> type(2) Even if 1L and 2L can fit in a int,

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Skip Montanaro
Skip Montanaro added the comment: More concretely, I don't think this is so onerous: names = ["col1", "col2", "color"] writer = csv.DictWriter(open("f.csv", "wb"), fieldnames=names, ...) writer.writerow(dict(zip(names, names))) ... or f = open("f.csv", "rb") names = cs

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Skip Montanaro
Skip Montanaro added the comment: Rob> I agree that we should not unconditionally write headers, but I Rob> think that we should write headers by default, much like we read Rob> them by default. I don't think you should write them by default. I've worked with lots of CSV files which ha

[issue5305] imaplib should support international mailbox names

2009-02-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > UTF-7 already sounds like something horrible for me, but a *modified* > UTF-7 encoding is something a little bit more strange for me. Why not > reusing directly UTF-7. UTF-7 wasn't horrible for its time, but its time has very likely passed. Alas, changi

[issue3595] Windows base64 Decode

2009-02-26 Thread STINNER Victor
STINNER Victor added the comment: need more informations like a test script. reopen if you such script ;-) -- nosy: +haypo resolution: -> invalid status: open -> closed ___ Python tracker

[issue5305] imaplib should support international mailbox names

2009-02-26 Thread STINNER Victor
STINNER Victor added the comment: > The IMAP4rev1 specification allows for non-ASCII mailbox > names using a modified UTF-7 encoding UTF-7 already sounds like something horrible for me, but a *modified* UTF-7 encoding is something a little bit more strange for me. Why not reusing directly UT

[issue5052] Mark distutils to stay compatible with 2.3

2009-02-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: ok the current trunk won't run even under 2.5... I will make two small changes: - use md5 module of haslib is not found - make the smallest possible change for site.USER_BASE and site.USER_SITE usage -- nosy: +christian.heimes ___

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2009-02-26 Thread STINNER Victor
STINNER Victor added the comment: > I think that feature is ok to not support. Yeah! Anyone to review and/or commit the last patch? -- versions: +Python 3.1 ___ Python tracker

[issue4258] Use 30-bit digits instead of 15-bit digits for Python integers.

2009-02-26 Thread STINNER Victor
STINNER Victor added the comment: 1 comment and 1 question about 30bit_longdigit20.patch: - I love fixed size type: you use them when PYLONG_BITS_IN_DIGIT == 30 (eg. digit=PY_UINT32_T) but not when PYLONG_BITS_IN_DIGIT == 15 (eg. digit=unsigned short). Even if short is always 16 bits, I would

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-02-26 Thread Tarek Ziadé
Tarek Ziadé added the comment: before I commit this patch I will do this one : #5378 to be able to lower down the output of the rpm/rpmbuild command calls -- dependencies: +adding --quiet to bdist_rpm ___ Python tracker

[issue5378] adding --quiet to bdist_rpm

2009-02-26 Thread Tarek Ziadé
New submission from Tarek Ziadé : rmp and rpmbuild has a --quiet option that lowers down the output to stdout and stderr. Having it in Distutils is useful to cut down the output when bdist_rpm calls these commands -- assignee: tarek components: Distutils messages: 82790 nosy: tarek prio

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-02-26 Thread STINNER Victor
STINNER Victor added the comment: > add defined(SIZEOF_WCHAR_T) check I don't understand why SIZEOF_WCHAR_T could be unset, but the patch version 6 only checks defined(SIZEOF_WCHAR_T) in unicodeobject.c, not in _testcapimodule.c (#if SIZEOF_WCHAR_T == 4).

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-26 Thread Gregory Golberg
Gregory Golberg added the comment: Well, yes, the workaround works, but the question is why would the second int() return an int, if it's indeed a long? And why the difference in this behavior between 2.5.1 and 2.5.2. ___ Python tracker

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-02-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file12890/unicode_fromwidechar_surrogate-4.patch ___ Python tracker ___ ___ P

[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

2009-02-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file13166/unicode_fromwidechar_surrogate-5.patch ___ Python tracker ___ ___ P

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-26 Thread STINNER Victor
STINNER Victor added the comment: For a Decimal object (d), int(d) calls d.__int__(). In your example, d has the attributes: * _sign=1 (negative) * _exp=0 (10^0=1) * _int='2147483648' d.__int__() uses s*int(self._int)*10**self._exp <=> -(int('2147483648')). Since int('2147483648') creates a l

[issue5376] Wrong ImportError message if module is not readable

2009-02-26 Thread STINNER Victor
STINNER Victor added the comment: Oooh, import by filename has been disabled in Python 2.6: see issue #1776. ___ Python tracker ___ ___ Python

[issue5376] Wrong ImportError message if module is not readable

2009-02-26 Thread STINNER Victor
STINNER Victor added the comment: Oops, my first .tar.gz doesn't create files in a subdirectory. New archive fixes that. Added file: http://bugs.python.org/file13193/issue5376.tar.gz ___ Python tracker ___

[issue5376] Wrong ImportError message if module is not readable

2009-02-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file13190/test.tar.gz ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue843590] 'macintosh' encoding alias for 'mac_roman'

2009-02-26 Thread Martin von Gagern
Martin von Gagern added the comment: I did some further investigations here. Apple doesn't seem likely to offer any authoritative reference for the "macintosh" encoding, because all they ever seem to talk about is "Roman". The only source for "macintosh" I could find is this RFC 1345, with the l

[issue4254] _cursesmodule.c callable update_lines_cols()

2009-02-26 Thread A.M. Kuchling
A.M. Kuchling added the comment: BTW, the code portion of the patch looks OK to me. ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue4254] _cursesmodule.c callable update_lines_cols()

2009-02-26 Thread A.M. Kuchling
A.M. Kuchling added the comment: No documentation? Doc/library/curses.rst exists; there's also Doc/howto/curses.rst. What functions in _curses need to be documented? -- nosy: +akuchling ___ Python tracker ___

[issue5368] curses patch add color_set and wcolor_set functions

2009-02-26 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- nosy: +akuchling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue2889] curses for windows (alternative patch)

2009-02-26 Thread A.M. Kuchling
A.M. Kuchling added the comment: I can't say anything about the Windows build aspects. Some observations about the curses/test_curses changes: * test_curses: I'd be happier to see the 'if' statement as sys.platform != 'win32' and (not term or term == 'unknown') -- easier to read. * test_curs

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Rob Renaud
Rob Renaud added the comment: I want to make sure I understand. Am I correct in believing that Skip thinks writing headers should be optional, while Jervis believes we should leave the burden to the NamedTupleWriter client? I agree that we should not unconditionally write headers, but I thin

[issue2889] curses for windows (alternative patch)

2009-02-26 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- nosy: +akuchling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1006238] cross compile patch

2009-02-26 Thread Roumen Petrov
Roumen Petrov added the comment: Mike, the python configure script fail to detect some of toolchain tools. -- nosy: +rpetrov ___ Python tracker ___ ___

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Jervis Whitley
Jervis Whitley added the comment: Skip> Let me be more explicit. I don't know how it implements it, but I think Skip> you really need to give the user the option of specifying the field Skip> names and not reading/writing headers. It can't be implicit as I Skip> interpreted Rob's earlier com

[issue1580] Use shorter float repr when possible

2009-02-26 Thread Tim Peters
Tim Peters added the comment: Is it worth it? To whom ;-) ? It was discussed several times before on various Python mailing lists, and nobody was willing to sign up for the considerable effort required (both to update Gay's code and to fight with shifting platform quirks ever after). If /you/

[issue1580] Use shorter float repr when possible

2009-02-26 Thread Mark Dickinson
Mark Dickinson added the comment: So is it worth trying to come up with a patch for this? (Where this = making David Gay's code for strtod and dtoa usable from Python.) ___ Python tracker _

[issue5334] array.fromfile() fails to insert values when EOFError is raised

2009-02-26 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Patch attached. -- components: +Extension Modules -Library (Lib) keywords: +patch nosy: +ocean-city versions: +Python 3.1 Added file: http://bugs.python.org/file13192/py3k_fix_array_fromfile.patch ___ Python track

[issue1580] Use shorter float repr when possible

2009-02-26 Thread Tim Peters
Tim Peters added the comment: Mark, "extreme complexity" is relative to what's possible if you don't care about speed; e.g., if you use only bigint operations very straightforwardly, correct rounding amounts to a dozen lines of obviously correct Python code.

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-26 Thread Gregory Golberg
New submission from Gregory Golberg : On some Python builds (2.5.2 and 2.6.1) the following program: import sys from decimal import Decimal def show(n): print type(n) d = Decimal(str(n)) i = int(d) t = type(i) print t i2 = int(i) t2 = type(i2) print t2 n = - sys

[issue5368] curses patch add color_set and wcolor_set functions

2009-02-26 Thread Steve Owens
Changes by Steve Owens : -- components: +Extension Modules -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue5368] curses patch add color_set and wcolor_set functions

2009-02-26 Thread Steve Owens
Changes by Steve Owens : -- components: +Library (Lib) -Extension Modules ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2009-02-26 Thread James Mills
Changes by James Mills : -- nosy: +prologic ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue4318] optparse: formatting of help text/descriptions

2009-02-26 Thread David W. Lambert
David W. Lambert added the comment: granted, this isn't terribly difficult: '\n'.join(textwrap.fill(line) for line in text.split('\n')) ___ Python tracker ___ ___

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Skip Montanaro
Skip Montanaro added the comment: Let me be more explicit. I don't know how it implements it, but I think you really need to give the user the option of specifying the field names and not reading/writing headers. It can't be implicit as I interpreted Rob's earlier comment: > NamedTupleRea

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Skip Montanaro
Skip Montanaro added the comment: Hrm... I replied twice by email. Only one comment appears to have survived the long trip. Here's my second reply: Rob> NamedTupleReader and NamedTupleWriter should be inverses. This Rob> means that NamedTupleWriter needs to write headers. This shou

[issue5366] setupscript examples for dependency keywords in setup.py

2009-02-26 Thread anatoly techtonik
anatoly techtonik added the comment: Another thing for setupscript is to state that long_description is actually ReStructured text. -- title: examples for dependency keywords in setup.py -> setupscript examples for dependency keywords in setup.py __

[issue5375] Unified locals/consts array + register-based instructions

2009-02-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > OTOH, I'm skeptical why a reminder is necessary in the first place: if > this is a project that interests you, you surely won't forget about it, > right? The reason I don't just store it somewhere inside my head is that it's a collective reminder :-). Also, d

[issue5375] Unified locals/consts array + register-based instructions

2009-02-26 Thread Martin v. Löwis
Martin v. Löwis added the comment: Please don't store such information in the bug tracker. If you think you need public storage of it, consider using the wiki. OTOH, I'm skeptical why a reminder is necessary in the first place: if this is a project that interests you, you surely won't forget ab

[issue5376] Wrong ImportError message if module is not readable

2009-02-26 Thread STINNER Victor
New submission from STINNER Victor : __import__() raises an ImportError "No module named ..." if the module file is not readable or module directory is not executable. The expected message is something like "Module named ... is not readable". Directory tree for the test: --

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I think it would be useful to have. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Skip Montanaro
Skip Montanaro added the comment: Raymond> Barry or Skip, is this something you want in your module? Sorry, I haven't really looked at this ticket other than to notice its presence. I wrote the DictReader/DictWriter functions way back when, so I'm pretty comfortable using them. I haven't felt

[issue4318] optparse: formatting of help text/descriptions

2009-02-26 Thread David W. Lambert
David W. Lambert added the comment: I'd like textwrap option to preserve new lines. Actual case: I have a code that produces cryptograms meant to be printed and solved with paper and pencil. Standard format for cryptogram inserts space character between each character of the original text,

[issue5374] optparse special usage tokens conflict with formatting characters

2009-02-26 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: On Thu, Feb 26, 2009 at 9:32 AM, Andy Buckley wrote: > Dang, why didn't I think of that? Cheers. Might be worth mentioning that > in the documentation, in case there are other people with my particular > brand of tunnel vision ;) I am not entirely sure

[issue5374] optparse special usage tokens conflict with formatting characters

2009-02-26 Thread Andy Buckley
Andy Buckley added the comment: Dang, why didn't I think of that? Cheers. Might be worth mentioning that in the documentation, in case there are other people with my particular brand of tunnel vision ;) ___ Python tracker _

[issue5374] optparse special usage tokens conflict with formatting characters

2009-02-26 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: Please use the fix suggested by Tim Gordon. -- nosy: +draghuram resolution: -> works for me status: open -> closed ___ Python tracker ___

[issue5368] curses patch add color_set and wcolor_set functions

2009-02-26 Thread Steve Owens
Steve Owens added the comment: According to the python.org website: http://python.org/dev/patches/ We were to submit Documentation patches as Documentation, but it did'nt say what to submit other types of patches as, so I took a chance. How should it have been submitted? Best Regards, Steve O

[issue5374] optparse special usage tokens conflict with formatting characters

2009-02-26 Thread Tim Gordon
Tim Gordon added the comment: Try escaping the '%prog' in your usage string (i.e. use '%%prog' instead) so you don't get the error when you substitute values in. -- nosy: +QuantumTim ___ Python tracker ___

[issue5375] Unified locals/consts array + register-based instructions

2009-02-26 Thread Antoine Pitrou
New submission from Antoine Pitrou : There is no patch here, this entry is just a reminder of some of the ideas that have been suggested to experiment with ways to speedup the Python VM (djc, who is nosied, has said he'd be willing to try working on it): - unify the local variables and constants

[issue5374] optparse special usage tokens conflict with formatting characters

2009-02-26 Thread Andy Buckley
New submission from Andy Buckley : optparse's OptionParser takes a usage string as a constructor argument, in which a "%prog" token is replaced with the executable name. Nice idea, but the choice of a percent sign for token delimiter is troublesome since it means that attempting to substitute any

[issue4318] optparse: formatting of help text/descriptions

2009-02-26 Thread Andy Buckley
Andy Buckley added the comment: FWIW, I would like to see an option on textwrap to preserve newlines for purposes other than optparse formatting. optparse would then just be able to pass that as a flag when building the text wrapper object. Should I open a separate issue targeted at textwrap? -

[issue4278] optparse quirks

2009-02-26 Thread Andy Buckley
Andy Buckley added the comment: Are these really bugs? The first message just reports the error the other way around from how you view it: you are thinking of "-TO" as a two-character "short option", optparse thinks of it as a two-character long option which is missing a dash. I would side with

[issue1580] Use shorter float repr when possible

2009-02-26 Thread Mark Dickinson
Mark Dickinson added the comment: > The GNU library's float<->string routines are based on David Gay's. > Therefore you can compare those to Gay's originals Sounds reasonable. > (which accounts for the extreme length and complexity of Gay's code). Looking at the code, I'm actually not seeing

[issue5368] curses patch add color_set and wcolor_set functions

2009-02-26 Thread Georg Brandl
Georg Brandl added the comment: Why was this classified as "documentation"? -- components: +Extension Modules -Documentation ___ Python tracker ___ __

[issue5373] TypeError when '\x00' in docstring

2009-02-26 Thread Georg Brandl
Georg Brandl added the comment: Well, that per se is not an indication that it is not a valid change in 3.0. However, I can see no good reason to disallow null-bytes in class docstrings (especially since they're still allowed in function docstrings). Assigning to Alexandre who made this change.

[issue5373] TypeError when '\x00' in docstring

2009-02-26 Thread Noel Cuillandre
Changes by Noel Cuillandre : Removed file: http://bugs.python.org/file13189/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5373] TypeError when '\x00' in docstring

2009-02-26 Thread Noel Cuillandre
Noel Cuillandre added the comment: Because the same code in Python 2.5.2 does not produce a TypeError:: Python 2.5.2 (r252:60911, Oct 21 2008, 15:11:46) [GCC 4.1.1 (Gentoo 4.1.1-r1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> class Foo: ... """'\x00'""

[issue5373] TypeError when '\x00' in docstring

2009-02-26 Thread Georg Brandl
Georg Brandl added the comment: Why do you think this is a bug? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mai

[issue5373] TypeError when '\x00' in docstring

2009-02-26 Thread Noel Cuillandre
New submission from Noel Cuillandre : The following code raises 'TypeError: __doc__ contains null-bytes':: Python 3.1a0 (py3k, Jan 27 2009, 18:02:26) [GCC 4.1.1 (Gentoo 4.1.1-r1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> class Foo: ... """'\x00'""" .

[issue1818] Add named tuple reader to CSV module

2009-02-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: The two latest patches (ntreader4.diff and named_tuple_write_header.patch) seem like they are going in the right direction and are getting close. Barry or Skip, is this something you want in your module? -- stage: -> patch review type: -> feature