Re: Is there a programming language that is combination of Python and Basic?

2009-04-18 Thread Tino Wildenhain
baykus wrote: Hi I am looking for one of those experimental languages that might be combination of python+basic. Now thta sounds weird and awkward I know. The reason I am asking is that I always liked how I could reference- call certain line number back in the days. It would be interesting to

Re: after_cancel?

2009-04-18 Thread W. eWatson
Saul Spatz wrote: W. eWatson wrote: I'm looking a program that I'm not real familiar with that uses an after_cancel method and after_id variable. Are they related to some particular widget and what is there function? Perhaps they are related to a Cancel button on a widget?

Re: after_cancel?

2009-04-18 Thread W. eWatson
Saul Spatz wrote: W. eWatson wrote: I'm looking a program that I'm not real familiar with that uses an after_cancel method and after_id variable. Are they related to some particular widget and what is there function? Perhaps they are related to a Cancel button on a widget?

Re: Is there a programming language that is combination of Python and Basic?

2009-04-18 Thread JanC
Stef Mientki wrote: BJörn Lindqvist wrote: SCREEN 13 PSET 160,100,255 Maybe, who is able to understand such nosense without a lot of apriori knowledge ? You already needed that sort of knowledge to be able to use a computer back then... ;-) -- JanC --

Re: Overriding methods per-object

2009-04-18 Thread Gabriel Genellina
En Sat, 18 Apr 2009 19:39:24 -0300, Pavel Panchekha pavpanche...@gmail.com escribió: On Apr 18, 4:01 pm, Piet van Oostrum p...@cs.uu.nl wrote: But you can give each object its own class and then put the special methods in that class: def create_special_object(bases, *args): ...   if not

Re: python alternatives to C structs??

2009-04-18 Thread Aaron Brady
On Apr 18, 2:25 pm, KoolD sourya...@gmail.com wrote: Hey all, I need to convert a C code to python please help me figure out how to do it. Suppose the C program's like: typedef struct _str { int a; char *b; int c;}str; int main() { str mbr;

Re: Overriding methods per-object

2009-04-18 Thread Aaron Brady
On Apr 17, 9:41 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 17 Apr 2009 18:22:49 -0700, Pavel Panchekha wrote: I've got an object which has a method, __nonzero__ The problem is, that method is attached to that object not that class a = GeneralTypeOfObject()

Re: Too early implementation

2009-04-18 Thread Aaron Watters
On Apr 18, 7:48 am, Filip Gruszczyński grusz...@gmail.com wrote: So, do you know some good methods to prevent myself from just starting coding (which I like very much) and do some thinking about the problem (which I like a little less ;-))? There are a lot of ideas, some you've seen earlier in

Re: I'm sort of mystified by the print hex to char conversion

2009-04-18 Thread Dave Angel
grocery_stocker wrote: I'm just really not seeing how something like x63 and/or x61 gets converted by 'print' to the corresponding chars in the following output... [cdal...@localhost oakland]$ python Python 2.4.3 (#1, Oct 1 2006, 18:00:19) [GCC 4.1.1 20060928 (Red Hat 4.1.1-28)] on linux2 Type

Re: not homework... something i find an interesting problem

2009-04-18 Thread Dave Angel
Trip Technician wrote: although it's not homework (how can i prove that...?) i am still happy with just hints +++ we want to express integers as sums of squares. (repeated squares are allowed) most numbers have one minimal representation e.g. 24=16+4+4, some have two or more e.g. 125 = 121+4

Re: python alternatives to C structs??

2009-04-18 Thread Dave Angel
Aaron Brady wrote: On Apr 18, 2:25 pm, KoolD sourya...@gmail.com wrote: Hey all, I need to convert a C code to python please help me figure out how to do it. Suppose the C program's like: typedef struct _str { int a; char *b; int c;}str; int main() {

Re: Too early implementation

2009-04-18 Thread Tim Wintle
On Sat, 2009-04-18 at 13:48 +0200, Filip Gruszczyński wrote: So, do you know some good methods to prevent myself from just starting coding (which I like very much) and do some thinking about the problem (which I like a little less ;-))? The Method (If you can call it that) that I use is to

Re: [OT] large db question about no joins

2009-04-18 Thread Tim Wintle
On Fri, 2009-04-17 at 21:16 +0100, Martin P. Hellwig wrote: So in other words, just lay out the data which makes the most sense to you, the pain of recreating SQL like logic is there no matter what layout you choose. I have to say that given the amount of pain most people seem to go through

Re: Is there a programming language that is combination of Python and Basic?

2009-04-18 Thread Zaphod
On Fri, 17 Apr 2009 16:07:10 -0600, Michael Torrie wrote: Aahz wrote: Why do you want to do that? Before you answer, make sure to read this: http://www.u.arizona.edu/~rubinson/copyright_violations/ Go_To_Considered_Harmful.html Somebody better tell the Linux kernel developers about that!

Re: Is there a programming language that is combination of Python and Basic?

2009-04-18 Thread Tim Wintle
On Sun, 2009-04-19 at 05:08 +, Zaphod wrote: Well, most of the Linux kernel is written in C and while there *is* a jump (often JMP) in most asms, you should only do so if you really need to. JSR (jump sub routine) is a better idea in many (most?) cases. Have to say that I feel jump is

Useful MySQL Routines

2009-04-18 Thread Lawrence D'Oliveiro
I've done a writeup on some of the basic routines I frequently use here http://codecodex.com/wiki/index.php?title=Useful_MySQL_Routines. -- http://mail.python.org/mailman/listinfo/python-list

wxPython 2.8 for Python 2.6 on Linux

2009-04-18 Thread Kenny x
Hello, I use Ubuntu 8.10 and the latest version of Python. I started programming wxPython on my Windows computer, but now I have access to my ubuntu box, and want wxPython for 2.6 All the debs in the package manager are for 2.5, not 2.6 How can I Install wxPython for Python 2.6 without

[issue5739] Language reference is ambiguous regarding next() method lookup

2009-04-18 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I was surprised when this came up with another issue. Why does CPython behave that way? Accident or justified decision? -- nosy: +tjreedy ___ Python tracker rep...@bugs.python.org

[issue5760] __getitem__ error message hard to understand

2009-04-18 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: As I said on the python-ideas discussion, which definitely did *not* come to consensus, I disagree with this suggestion. To repeat and expand on what I said there: 1. 'unsubscriptable' could instead be changed to 'not subscriptable'. 2.

[issue5777] unable to search in python V3 documentation

2009-04-18 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: You should have searched for sys argv since sys.argv is not 'a word'. However, that would not have worked since multiple word searching seems to be broken, at least sometimes. In particular, searching for 'argv' gives several hits, including

[issue5734] Fix BufferedRWPair

2009-04-18 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: http://codereview.appspot.com/40126/diff/1/2 File Lib/_pyio.py (left): http://codereview.appspot.com/40126/diff/1/2#oldcode370 Line 370: def _checkReadable(self, msg=None): On 2009/04/17 21:11:15, Antoine Pitrou wrote: Not sure why you're

[issue5777] unable to search in python V3 documentation

2009-04-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks for the report, searching for dotted identifiers is implemented now in the trunk version of Sphinx. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue3102] ctypes defines global symbols

2009-04-18 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Correction: The patch has 3000 lines, not 300. And I think that the 'My_Unicode_...' functions can be removed because they are not used anywhere. I have to check this. -- ___ Python tracker

[issue5760] __getitem__ error message hard to understand

2009-04-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I concur. I changed unsubscriptable to not subscriptable in r71696. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

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

2009-04-18 Thread Trundle
Trundle andysmu...@hammerhartes.de added the comment: The problem is that `type_setattro()` sets the new __new__ attribute in the type's dict (through `PyObject_GenericSetAttr()`), but the corresponding slot will never be updated if the new __new__ is a PyCFunction. The affected code in

[issue5781] Legacy float repr is used unnecessarily on some platforms

2009-04-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Fixed in r71698. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5781

[issue5739] Language reference is ambiguous regarding next() method lookup

2009-04-18 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Guido didn't actually say whether or not this was originally just an implementation accident or a deliberate design choice - he just indicated that this was a case where caching the bound method should be disallowed because it could change the

[issue1869] Builtin round function is sometimes inaccurate for floats

2009-04-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Fixed in py3k in r71701. Some of this fix can be backported to 2.7. -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1869

[issue1869] Builtin round function is sometimes inaccurate for floats

2009-04-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Closing this. I think 2.7 is fine as it is. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1869

[issue1944] Documentation for PyUnicode_AsString (et al.) missing.

2009-04-18 Thread Lorenz Quack
Lorenz Quack d...@amberfisharts.com added the comment: In addition to the above mentioned functions I found these to be undocumented: PyUnicode_DecodeUTF7 PyUnicode_DecodeUTF7Stateful PyUnicode_EncodeDecimal PyUnicode_EncodeUTF7 PyUnicode_FromFormat PyUnicode_FromString

[issue1869] Builtin round function is sometimes inaccurate for floats

2009-04-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I take that back. The 2.7 round still has some problems. Here's one example: x = 5e15 + 1 # exactly representable as an IEEE 754 double x 5001.0 round(x) 5002.0 Another nit: round(-0.0, 0) # should retain the

[issue5785] Condition.wait() does not respect its timeout

2009-04-18 Thread Stéphane
New submission from Stéphane stephane.bisin...@gmail.com: I have an issue with the wait() method of Condition which doesn't seem to respect the timeout it is given: I couldn't create a simple example to reproduce the bug, because if I try to do something small and simple everything works as

[issue1538691] Patch cElementTree to export CurrentLineNumber

2009-04-18 Thread Robin Bryce
Robin Bryce robinbr...@gmail.com added the comment: In the upstream 1.0.6, the ParseError exception has a position attribute that contains a (line, column) tuple. That's fine for errors in the xml domain. Its not enough if I'm reporting errors in the application domain - where I wont have a

[issue1944] Documentation for PyUnicode_AsString (et al.) missing.

2009-04-18 Thread Lorenz Quack
Lorenz Quack d...@amberfisharts.com added the comment: Ok, here is my shot at a patch for at least some of the undocumented functions. Namely the following functions are being documented in the patch: PyUnicode_FromFormat PyUnicode_FromFormatV PyUnicode_FromString

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-18 Thread seesee
New submission from seesee cthe...@gmail.com: It seems python 2.6.2 (at least under Windows, I have not tested other platforms) does break the len function on the reversed iterator: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 Type help, copyright,

[issue2531] float compared to decimal is silently incorrect.

2009-04-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Unassigning myself. Does anyone beside Raymond and me have strong opinions about how/whether this problem should be fixed? -- ___ Python tracker rep...@bugs.python.org

[issue2531] float compared to decimal is silently incorrect.

2009-04-18 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: marketdickinson - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2531 ___ ___

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-18 Thread Martin v. Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- components: -Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5786 ___ ___

[issue5410] msvcrt bytes cleanup

2009-04-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I cannot see any remarks about masking behavior. :-( I asked on a french Windows developer channel. The answer is that the Windows terminal uses ANSI charset even if it's possible to use unicode. So it's a bug in Microsoft msvcrt

[issue5410] msvcrt bytes cleanup

2009-04-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: MSDN says _ungetwch returns WEOF instead of EOF when error occurs. Ok, I updated my patch (to use WEOF). -- Added file: http://bugs.python.org/file13718/msvcrt_wchar-2.patch ___ Python

[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.

2009-04-18 Thread Aleksi Torhamo
New submission from Aleksi Torhamo alexerion+pythonb...@gmail.com: object.__getattribute__(super, '__bases__') crashes the interpreter. It seems to happen at Objects/typeobject.c in type_get_bases(), when tp_bases is NULL. Crashing types in __builtins__ per version would seem to be: python2.4:

[issue1580] Use shorter float repr when possible

2009-04-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hello folks, IIUC, autoconf tries to enable SSE2 by default without asking. Isn't it a problem for people distributing Python binaries (e.g. Linux vendors) and expecting these binaries to work on legacy systems even though the system on which the

[issue3633] float.fromhex discrepancy under Solaris

2009-04-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: A postscript: looking back at this from afar, the original error was almost certainly due to a missing Py_CHARMASK around the arguments to isdigit and isxdigit, and nothing to do with Unicode fullwidth digits at all. --

[issue1580] Use shorter float repr when possible

2009-04-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Yes, I think you're right. Perhaps the SSE2 support should be turned into an --enable-sse2 configure option, that's disabled by default? One problem with this is that I don't know how to enable SSE2 instructions for compilers other than

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-18 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5786 ___

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Raymond, this was your change in r67478 (backported to trunk in r67498). -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5786

[issue1580] Use shorter float repr when possible

2009-04-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Perhaps better to drop the SSE2 bits completely. Anybody who actually wants SSE2 instructions in their binary can do a CC=gcc -msse2 -mfpmath=sse configure ... Unless there are objections, I'll drop everything involving SSE2 from the

[issue5788] datetime.timedelta is inconvenient to use...

2009-04-18 Thread Brian Quinlan
New submission from Brian Quinlan br...@sweetapp.com: ...in seconds-based library functions (e.g. time.sleep) and calculations (e.g. distance = velocity * ?). -- components: Library (Lib) messages: 86132 nosy: bquinlan severity: normal status: open title: datetime.timedelta is

[issue5788] datetime.timedelta is inconvenient to use...

2009-04-18 Thread Brian Quinlan
Changes by Brian Quinlan br...@sweetapp.com: -- keywords: +patch Added file: http://bugs.python.org/file13719/totalseconds.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5788 ___

[issue5788] datetime.timedelta is inconvenient to use...

2009-04-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Please include a proper description of your problem, and a patch description when you post a patch. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5788

[issue5771] SA bugs with unittest...@r71263

2009-04-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r71721. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5771 ___

[issue5788] datetime.timedelta is inconvenient to use...

2009-04-18 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: I did add a patch description: Adds a datetime.total_seconds attribute - is that unclear? The idea is that you should be able to extract the total number of seconds in the duration i.e. dt = datetime.timedelta(seconds=1234567.89)

[issue5788] datetime.timedelta is inconvenient to use...

2009-04-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I saw the patch description as well, but usually you put that description, and perhaps a motivation as well, in the comment. That way it's easier for people to directly see what an issue is about. --

[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.

2009-04-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Should be fixed in r71722. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787

[issue5788] datetime.timedelta is inconvenient to use...

2009-04-18 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: OK, a bit on motivation: 1. datetime.timedelta instances are a convenient way of representing durations 2. datetime.timedelta instances cannot be conveniently used in many calculations e.g. calculating distance based on velocity and time

[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.

2009-04-18 Thread Aarni Koskela
Aarni Koskela a...@iki.fi added the comment: The r71722 patch has several typos (replace initalize with initialize). -- nosy: +akx ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787 ___

[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.

2009-04-18 Thread Aleksi Torhamo
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment: Just verified that r71722 fixes all the builtins, however i just noticed that some types under module types cause segfaults too. Under python2.7 those are: CodeType BuiltinMethodType DictProxyType GeneratorType

[issue1580] Use shorter float repr when possible

2009-04-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: SSE2 detection and flags removed in r71723. We'll see how the buildbots fare... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1580

[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.

2009-04-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: The rest should be fixed in r71734. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787 ___

[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.

2009-04-18 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787 ___ ___

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-18 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Guido decided that iterators should not support len() because he wanted bool(it) to always be True. -- resolution: - invalid status: open - closed ___ Python tracker

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Uh, perhaps the behaviour wasn't optimal but breaking compatibility between two bugfix releases isn't developer-friendly either. While we could keep it in trunk, it sounds like the change should be reverted in 2.6. The backport to 2.6 was done by

[issue1580] Use shorter float repr when possible

2009-04-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is there a way to use SSE when available and x86 when it's not. Probably, but I don't think there is any point doing so. The main benefit of SSE2 is to get higher performance on floating point intensive code, which no pure Python code could be

[issue5788] datetime.timedelta is inconvenient to use...

2009-04-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The addition looks quite legitimate to me. The only thing is that it may be better as a method (total_seconds()) rather than an attribute, given the other APIs in the datetime module. Also, the patch lacks some unit tests. -- nosy:

[issue5788] datetime.timedelta is inconvenient to use...

2009-04-18 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: - normal stage: - patch review type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5788 ___

[issue5788] datetime.timedelta is inconvenient to use...

2009-04-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Sorry for the last comment about unit tests, they are here actually :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5788 ___

[issue1580] Use shorter float repr when possible

2009-04-18 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: The advantage is accuracy. No double rounding. This will also help the math.fsum() function that is also susceptible to double rounding. -- ___ Python tracker

[issue5734] Fix BufferedRWPair

2009-04-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch looks ok, thanks. -- resolution: - accepted stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5734

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-04-18 Thread Elliot Murphy
Changes by Elliot Murphy elliot.mur...@gmail.com: -- nosy: +statik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1424152 ___ ___ Python-bugs-list

[issue5734] Fix BufferedRWPair

2009-04-18 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r71736. -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5734 ___

[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.

2009-04-18 Thread Aleksi Torhamo
Aleksi Torhamo alexerion+pythonb...@gmail.com added the comment: Stumbled upon a few more. python2.4/2.5: socket.SSLType re._pattern_type weakref.ProxyType weakref.CallableProxyType python2.6/2.7: weakref.ProxyType weakref.CallableProxyType python3.0: weakref.ProxyType weakref.CallableProxyType

[issue5786] len(reversed([1,2,3])) does not work anymore in 2.6.2

2009-04-18 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: It's up to you guys. I had thought to change it only for Py2.7 but Guido probably considers it to be a bug, so possibly the backport was justified. -- assignee: rhettinger - status: closed - open

[issue5787] object.__getattribute__(super, '__bases__') crashes the interpreter.

2009-04-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed the ones applicable to 2.7/2.6 in r71738. These fixes won't be backported to 2.4/2.5. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5787

[issue5789] powerset recipe listed twice in itertools docs

2009-04-18 Thread Steven D'Aprano
New submission from Steven D'Aprano st...@pearwood.info: In the itertools recipes section of the docs, powerset() is listed twice. http://docs.python.org/library/itertools.html#recipes -- assignee: georg.brandl components: Documentation messages: 86155 nosy: georg.brandl, stevenjd

[issue5790] itertools.izip python code has a typo

2009-04-18 Thread Steven D'Aprano
New submission from Steven D'Aprano st...@pearwood.info: In the documentation for itertools, the Python equivalent to izip has a typo: yield yield tuple(map(next, iterables)) Obviously should only have a single yield. http://docs.python.org/library/itertools.html#itertools.izip --

[issue5790] itertools.izip python code has a typo

2009-04-18 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: georg.brandl - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5790 ___

[issue1537721] csv module: add header row to DictWriter

2009-04-18 Thread Matthew Iversen
Matthew Iversen teh@gmail.com added the comment: Skip, you were arguing in another csv issue on a NamedTupleReader that the Reader and Writer should work in concert together. Certainly, making this default functionality for DictWriter would definitely make it work more in concert with

<    1   2