[issue13202] subprocess __exit__ attribute missing

2011-10-17 Thread David W. Lambert
New submission from David W. Lambert : There are a number of issues with subprocess and __exit__ , 12494 status fixed among them. Program (which doesn't work as I had hoped, but that's not the issue): 'file p.py' import subprocess as S with S.Popen(('cat',&

[issue13484] mail rejected: tu...@python.org

2011-11-26 Thread David W. Lambert
New submission from David W. Lambert : I sent this question to tu...@python.org as advertised at http://mail.python.org/mailman/listinfo/tutor The message was returned, and we still need an answer to the question. I'll post it as a separate bug. Thank you, Dave. From: David Ward La

[issue13485] tcl question

2011-11-26 Thread David W. Lambert
New submission from David W. Lambert : I was unable to solve this question. http://forums.devshed.com/python-programming-11/setting-tkinter-checkbox-default-graphical-state-865148.html Summary: Trouble initiating button in "checked" state. If you an

[issue3738] logging.Handler.close does something

2008-08-30 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: Library documents claim that logging.Handler.close does nothing, but the source code shows otherwise---it removes itself from the internal handler list. The error propagates treelike through the subclasses. (I found referen

[issue3993] Convert documentation to python 3.

2008-09-28 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/library/multiprocessing.html#module- multiprocessing uses "print" statement in pre-version 3 form. I can easily imagine that this and similar 2to3 bugs pervade the manual. (If I ins

[issue4000] Additional 2to3 documentation updates

2008-09-29 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/howto/functional.html a) Refers to "print statement" in Introduction, b) Uses syntax no longer valid: def get_state ((city, state)): '''

[issue4000] Additional 2to3 documentation updates

2008-09-29 Thread David W. Lambert
Changes by David W. Lambert <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4000> ___ ___ Python-bugs-list mailing list

[issue4000] Additional 2to3 documentation updates

2008-09-30 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: http://docs.python.org/dev/3.0/library/reprlib.html Should read return eval(obj) return `obj` http://docs.python.org/dev/3.0/library/collections.html#id2 Relic decimal point in named tuple example. >

[issue4000] Additional 2to3 documentation updates

2008-10-02 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: http://docs.python.org/dev/3.0/reference/lexical_analysis.html#identifi ers-and-keywords Back quote "`" appears in the list of delimiters. I suspect it isn't one. ___ P

[issue4029] Documentation displays incorrectly in iexplore.

2008-10-03 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: I use IEXPLORE version 6.0.2900.2180.xpsp_sp2_gdr.-70227-2254CO without any known customizations and have observed 3 display problems. (And since I guess that the python html libraries generated the manuals, could these librar

[issue4000] Additional 2to3 documentation updates

2008-10-03 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: http://docs.python.org/dev/3.0/library/reprlib.html Back ticks didn't become a part of my python repertoire. I suppose return repr(obj) # is correct replacement for return `obj` ___

[issue4029] Documentation displays incorrectly in iexplore.

2008-10-03 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: multiple underscores could be replaced by a gif. latex2html solves a bunch of font problems this way. I tried to dump IE but was warned it would break microsoft office, which I need for work. If you happen to know how to adju

[issue1040026] os.times() is bogus

2008-10-03 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: I don't know what is "HZ", but if it's "hertz" then a division is necessary. total_clocks time = - clocks_per_second otherwise there

[issue4029] Documentation displays incorrectly in iexplore.

2008-10-06 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: I installed google chrome. The manual display is absolutely beautiful. Thanks for your good work! Proofreader Dave. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue7076] Documentation add note about SystemRandom

2010-01-22 Thread David W. Lambert
David W. Lambert added the comment: I recall an experience with a random file in /dev that was considerably slow after consuming its cache. I used it as a seeder. I've now got an ubuntu system for which /dev/urandom gives me a hundred million bytes quickly. Perhaps a nosy one has

[issue8217] typo unterlying

2010-03-23 Thread David W. Lambert
New submission from David W. Lambert : http://docs.python.org/py3k/howto/webservers.html The low-level view When a user enters a web site, his browser makes a connection to the site’s webserver (this is called the request). The server looks up the file in the file system and sends it back to

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
New submission from David W. Lambert : http://docs.python.org/py3k/howto/webservers.html The path to the interpreter in the shebang (#!/usr/bin/env python) must be currect. Sorry man there are a great many distractions here. -- assignee: georg.brandl components: Documentation

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: In same file, "intermangled with Python” and it has a “Publisher” which destignates" intermingled? designates? Thanks, Dave. -- ___ Python tracker <http://bugs.python.

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: "Another problem ist the basic concept" is -- ___ Python tracker <http://bugs.python.org/issue8218> ___ __

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: much easier as is is specially designed more easily and is especially designed -- ___ Python tracker <http://bugs.python.org/issue8

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: There is a number of middlewares are -- ___ Python tracker <http://bugs.python.org/issue8218> ___ ___ Python-bug

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: you can rely an already existing rely on an -- ___ Python tracker <http://bugs.python.org/issue8218> ___ ___ Pytho

[issue8218] typo currect

2010-03-23 Thread David W. Lambert
David W. Lambert added the comment: There is an incredible number of frameworks s/is/are/ The majority of users is best s/is/are/ o work together as good as possible. s/good/well/ jects can be saven in a st s/saven/saved/ Thank you. I'm through fo

[issue8218] typo currect

2010-03-24 Thread David W. Lambert
David W. Lambert added the comment: I apologize for the noise. Yes, I'll read the article carefully and provide changes as a unified diff against the subversion trunk. On Wed, 2010-03-24 at 08:20 +, Martin v. Löwis wrote: > Martin v. Löwis added the comment: > > David, c

[issue5479] Add an easy way to provide total ordering now that __cmp__ is deprecated/gone

2010-04-05 Thread David W. Lambert
David W. Lambert added the comment: http://en.wikipedia.org/wiki/Total_order For pair of items from a set, (that's the total) if a <= b and b <= c then a <= c (part of the order) if a <= b and b <= a then a compares the same as b, a == b, (the other part of the

[issue8338] Outdated information

2010-04-07 Thread David W. Lambert
New submission from David W. Lambert : http://docs.python.org/py3k/library/multiprocessing.html Doc/library/multiprocessing.rst refers to "SimpleHTTPServer.HttpServer". The patch changes this to "SimpleHTTPRequestHandler" although you may prefer "http.server.SimpleH

[issue8341] sphinx bug?

2010-04-07 Thread David W. Lambert
New submission from David W. Lambert : http://docs.python.org/py3k/library/multiprocessing.html Indentation is incorrect as displayed and copied from google chrome browser: from multiprocessing import Process def f(name): print('hello', name) if __name__ == '__

[issue1880] Generalize math.hypot function

2008-01-20 Thread David W. Lambert
New submission from David W. Lambert: Please generalize math.hypot. While I don't have a survey of python codes, it seems to me unlikely for this change to break existing programs. import math def hypot(*args): ''' Return the Euclidean vector length.

[issue2085] Syntax for property set method

2008-02-12 Thread David W. Lambert
New submission from David W. Lambert: # proposed syntax: # object.property = *args,**kwargs # python 3k could accept property setter with multiple arguments class c: def f(self,a,b,c): print a,b,c F=property(None,f) c().F=*'hi',**{'c':&#

[issue4127] repr or reprlib?

2008-10-14 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/library/reprlib.html#module-reprlib names the module reprlib. However, the example at bottom of page uses: http://docs.python.org/dev/3.0/library/reprlib.html#subclassing-repr- objects impor

[issue4144] 3 tutorial documentation errors

2008-10-18 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: I ran doctests on the interactive session scripts from the tutorial. Aside from finding a doctest enhancement---but there are already so many doctest issues tracked---I found these discrepancies using online tutorial and Python

[issue4154] More doc trivia

2008-10-20 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/extending/extending.html Given that the following paragraph tells us that there should be just one non-static item in the module file, struct PyModuleDef spammodule = should be static struct PyMod

[issue4168] core dump exiting python

2008-10-22 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: I created in the python module gsl_fft a __del__ method to release workspace when the data size changes. It is called upon exiting python, and gave errors without traceback. So I registered it with atexit. This caused cor

[issue4168] core dump exiting python

2008-10-22 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: I rebuilt python3k from "today's snapshot". No more core dump. Problem solved, close case. IMH'edO. ___ Python tracker <[EMAIL PROTECTED]> &

[issue4193] Multiprocessing example

2008-10-24 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/library/multiprocessing.html I'm sure the examples have been thoughtfully contrived. Still, this seems instructive without adding much complexity. I'd change the first &quo

[issue4196] library documentation errors

2008-10-24 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: 4 problems noted here. Thanks, Dave. 1,2---problems 1 & 2 concern py<3k references: http://docs.python.org/dev/3.0/library/multiprocessing.html 1) "apply(func[, args[, kwds]]) Equivalent of the apply() builtin f

[issue4194] Miserable subprocess.Popen performance

2008-10-24 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: cygwin Python 2.5.1 (similar) time with os.popen : 0.43818802 time with subprocess.Popen : 0.36161035 linux python 2.4.2 (similar) time with os.popen : 0.0344939231873 time with subprocess

[issue4206] multiprocessing docs

2008-10-25 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/library/multiprocessing.html "map(func, iterable[, chunksize]) A parallel equivalent of the map() builtin function. It blocks till the result is ready." Not really, __builtins__.map r

[issue4226] Should 2to3 know that file type is gone?

2008-10-28 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: class c(file): pass 2to3 says no changes required. Might it possibly suggest a replacement for file class? Thanks, Dave. -- messages: 75310 nosy: LambertDW severity: normal status: open title: Should 2to3 know tha

[issue4226] Should 2to3 know that file type is gone?

2008-10-28 Thread David W. Lambert
Changes by David W. Lambert <[EMAIL PROTECTED]>: -- components: +2to3 (2.x to 3.0 conversion tool) type: -> feature request versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue4226] Should 2to3 know that file type is gone?

2008-10-28 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: python3k and I are having difficulty with File class, which in a version 2 python release extended the file type with methods to read through a file until some condition is found. -- type: feature request -> crash A

[issue4231] print " should be print("

2008-10-29 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/reference/datamodel.html >>> class Meta(type): ...def __getattribute__(*args): ... print "Metaclass getattribute invoked" xxx ... print "Class getattribute i

[issue4226] Should 2to3 know that file type is gone? Python core crashes with associated files.

2008-10-29 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: While trying to find a "file" replacement in the io library I managed to get py3k to crash. Please look at the file associated with the issue. Thanks, Dave. -- title: Should 2to3 know that file type is gone? -&g

[issue4237] io.FileIO('foo', 'rt') prints a RuntimeWarning

2008-10-29 Thread David W. Lambert
Changes by David W. Lambert <[EMAIL PROTECTED]>: -- nosy: +LambertDW ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4237> ___ __

[issue4237] io.FileIO('foo', 'rt') prints a RuntimeWarning

2008-10-29 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: >>> print(io.read.__doc__) ... The default mode is 'rt' (open for reading text). ... ___ Python tracker <[EMAIL PROTECTED]> &l

[issue4243] has_key doc could be clearer

2008-10-31 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: The D'Arcy J.M. Cain wording is clearer. "dict.has_key(key) is deprecated. Use "key in dict" instead." would improve python. -- nosy: +LambertDW ___ Python tr

[issue4247] Docs: Provide some examples of "pass" use in the tutorial.

2008-11-02 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: I'd change the exceptions, replace comment with string. Instead of raise NotImplementedError # Set up dummy log back-end write raise NotImplementedError('Set up dummy log back-end') --

[issue4260] ctypes.xFUNCTYPE are decorators.

2008-11-04 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/library/ctypes.html#callback-functions ctypes.xFUNCTYPE are another opportunity to advertise decorators. Please consider inserting yet another qsort example written as a decorator, perhaps as f

[issue4279] Module 'parser' fails to build

2008-11-07 Thread David W. Lambert
Changes by David W. Lambert <[EMAIL PROTECTED]>: -- nosy: +LambertDW ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4279> ___ __

[issue4226] Python core crashes with associated files.

2008-11-12 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: This problem was repaired by the python3.0 rc1+ of November 5 trunk snapshot. I suggest retirement of Issue4226. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4309] ctypes documentation

2008-11-12 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: ''' http://docs.python.org/dev/3.0/library/ctypes.html Where web page says >>> printf("An int %d, a double %f\n", 1234, c_double(3.14)) Integer 1234, double 3.141049

[issue4321] unintended syntax error with decorators, parenthesis, and dots?

2008-11-13 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Guido gets to choose. Read PEP:318 Title: Decorators for Functions and Methods and "gut feeling" http://mail.python.org/pipermail/python-dev/2004-August/046711.html --

[issue4309] ctypes documentation

2008-11-15 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Conversely, if the documentation is correct then my ctypes is flawed. "None, integers, byte strings and unicode strings are the only native Python objects that can directly be used as parameters in these function calls. None i

[issue4309] ctypes documentation

2008-11-19 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Changing the string to type byte 'Works' from ctypes import * libc = CDLL('libc.so.6') libc.printf(b'hello') ___ Python tracker <[EMAIL PROTEC

[issue4309] ctypes documentation

2008-11-19 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: When patching py3k/Doc/library/ctypes.rst or ctypes module tree please consider u"World!" produces a syntax error. These wide character formats produce unintelligible output: for n in range(3,6): code

[issue4371] coerce gone---but not from docs

2008-11-20 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/glossary.html Scanning the glossary reveals... coercion The glossary needs rewritten to eliminate "coerce builtin". __future__ Uses example import division, I'd replac

[issue4371] coerce gone---but not from docs

2008-11-20 Thread David W. Lambert
Changes by David W. Lambert <[EMAIL PROTECTED]>: -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue4378] howto doc update

2008-11-21 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/howto/functional.html Gone: itertools.ifilter itertools.imap itertools.izip changed: itertools.ifilterfalse --> itertools.filterfalse strange? functools.reduce is described, but

[issue4391] optparse: use proper gettext plurals forms

2008-11-22 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: And while at it, replace "usage" with "Use". "Usage" isn't a word. -- nosy: +LambertDW ___ Python tracker <[EMAIL P

[issue4399] "shard" appears where "shared" intended

2008-11-23 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/library/ctypes.html insert "e" into "shard". Errors have dissimilar importance. The manual is so good that this is the worst I can find today. -- assignee: georg.brandl

[issue4517] improve __getattribute__ documentation

2008-12-03 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: http://docs.python.org/dev/3.0/reference/datamodel.html#special-lookup (After fixing the link to http://docs.python.org/3.0 at http://www.python.org/doc/ (and likewise the http://docs.python.org/whatsnew/3.0.html link.)... The c

[issue4517] improve __getattribute__ documentation

2008-12-03 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: >>> class c: ... def __getattribute__(self,*args): ... print('getattribute chimes in') ... >>> c()+3 Traceback (most recent call last): File "", line 1, in TypeError: uns

[issue4518] broken link to python 3 doc on main doc page

2008-12-03 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Meanwhile, use http://docs.python.org/dev/3.0/ -- nosy: +LambertDW ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4518] broken link to python 3 doc on main doc page

2008-12-03 Thread David W. Lambert
Changes by David W. Lambert <[EMAIL PROTECTED]>: -- nosy: -LambertDW ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4518> ___ __

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-04 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Try this--- def List_to_String(lis,separator=''): return separator.join(lis) -- nosy: +LambertDW ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue4534] problem with str.join - should work with list input, error says requires 'str' object

2008-12-04 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: I did this to find out what are str.join's arguments--- $ python3 -c 'help(str.join)' Help on method_descriptor: join(...) S.join(sequence) -> str Return a string which is the concatenation of the str

[issue4541] Add str method for removing leading or trailing substrings

2008-12-05 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Opinion---"Batteries included" doesn't mean "a bewildering variety of functions". Nor does it mean "my programming language has a checklist of features" such as I recall the spreadsheet and word

[issue4517] improve __getattribute__ documentation

2008-12-05 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Yes to msg77021. However! I'll pin the difficulty specifically to the word "may". This cost me a lot of time. 1) Please change the phrasing you quoted to "... implicit special method lookup bypasses the __ge

[issue2899] Fixers find, rfind, etc in 'string' module

2008-12-08 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: I expect the answer will be that 2to3 cannot know what sort of object "string" names. Bell's theorem, or some such, as I understand it, tells us that you must execute the algorithm to find out what it does, there i

[issue4596] 2to3 does not fail as early as possible.

2008-12-08 Thread David W. Lambert
New submission from David W. Lambert <[EMAIL PROTECTED]>: $ #rm -f file_that_is_not_here.py $ 2to3 file_that_is_not_here.py The program spends considerable time preparing itself only to discover that it cannot open the file. -- components: 2to3 (2.x to 3.0 conversion tool) me

[issue2899] Fixers find, rfind, etc in 'string' module

2008-12-08 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: I think the point is to get a message from 2to3 about possible use of feature that is gone. Of course python3 raises an exception when trying to execute the code, but it does leave the user wondering "why did 2to3 report that t

[issue4596] 2to3 does not fail as early as possible.

2008-12-08 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Granted, this isn't the hottest issue circulating. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2008-12-09 Thread David W. Lambert
Changes by David W. Lambert <[EMAIL PROTECTED]>: -- nosy: +LambertDW ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4606> ___ __

[issue4619] Invalid Behaviour When a Default Argument is a Mutable Object

2008-12-10 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Mutable function arguments and class variables are python's mechanisms to provide data persistence at these scope levels. Quite opposite of design flaw, they are necessary! Write a decorator to change the behavior where yo

[issue4622] SequenceMatcher bug with long sequences

2008-12-10 Thread David W. Lambert
David W. Lambert <[EMAIL PROTECTED]> added the comment: Python 3.0rc1+ similar. -- nosy: +LambertDW versions: +Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4634] 2to3 should fix "import HTMLParser"

2008-12-11 Thread David W. Lambert
David W. Lambert added the comment: It is hard. Although you know what you mean, 2to3 has no way to know for instance, that you never run your program with working directory containing file HTMLParser.py. 2to3 could offer a suggestion rather than reporting no change required. This issue is

[issue4640] optparse - dosn't distinguish between '--option' and '-option'

2008-12-12 Thread David W. Lambert
David W. Lambert added the comment: When I use it on python 3 optparse reports no such option -e, which is correct since the form -debug permits a run of single character options. -- nosy: +LambertDW ___ Python tracker <http://bugs.python.

[issue4649] Fix a+b to a + b

2008-12-12 Thread David W. Lambert
David W. Lambert added the comment: I do think your interpretation of PEP8 is overly strict. Here's the source code of the first j interpreter. (Ken Iverson) typedef char C;typedef long I; typedef struct a{I t,r,d[3],p[2];}*A; #define P printf #define R return #define V1(f) A f(

[issue4649] Fix a+b to a + b

2008-12-12 Thread David W. Lambert
David W. Lambert added the comment: That phrase of PEP 8 means to me "Use spaces to visually group expressions according to precedence." ___ Python tracker <http://bugs.python.

[issue4680] Queue class should include high-water mark

2008-12-16 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker <http://bugs.python.org/issue4680> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4615] de-duping function in itertools

2008-12-18 Thread David W. Lambert
David W. Lambert added the comment: (but of course with imap in version 2.7 and with something else in version 3.x) -- nosy: +LambertDW ___ Python tracker <http://bugs.python.org/issue4

[issue4760] cmp gone---What's new in 3.1

2008-12-27 Thread David W. Lambert
New submission from David W. Lambert : http://docs.python.org/dev/3.0/whatsnew/3.1.html To Other Language Changes add cmp removed. I haven't installed version 3.1; I don't know if it has actually been removed. -- assignee: georg.brandl components: Documentation messages:

[issue4794] garbage collector blocks and takes worst-case linear time wrt number of objects

2008-12-31 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker <http://bugs.python.org/issue4794> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4816] Patch of itertools.{combinations, permutations} for empty combinations

2009-01-07 Thread David W. Lambert
David W. Lambert added the comment: Mathematica returns an empty list. In[1]:= Permutations[{1,2},{1}] Out[1]= {{1}, {2}} In[2]:= Permutations[{1,2},{4}] Out[2]= {} In[3]:= -- nosy: +LambertDW ___ Python tracker <http://bugs.python.

[issue4816] Patch of itertools.{combinations, permutations} for empty combinations

2009-01-07 Thread David W. Lambert
David W. Lambert added the comment: Mathematica indicates for the user to define it later. An error. In[3]:= Permutations[{1,2},{-2}] Permutations::nninfseq: Position 2 of Permutations[{1, 2}, {-2}] must be All, Infinity, a non-negative integer, or a List whose first element

[issue4816] Patch of itertools.{combinations, permutations} for empty combinations

2009-01-07 Thread David W. Lambert
David W. Lambert added the comment: I try to "not know" excel. Does it have any other means to represent an empty set? ___ Python tracker <http://bugs.python.

[issue4816] Patch of itertools.{combinations, permutations} for empty combinations

2009-01-07 Thread David W. Lambert
David W. Lambert added the comment: I had thought highly of the "mull it over for a week" plan. After a week we'd decide to follow Stephen Wolfram's lead, which seems to be the current patch. I haven't yet used the python permutations iterator, although I used to

[issue4899] doctest should support fixtures

2009-01-09 Thread David W. Lambert
David W. Lambert added the comment: I disagree. Purpose of __doc__ is to explain functionality all at once. This command idiom is useful: $ python -c 'from a_module import thing; help(thing)' The doctest module is a lightweight nicety that helps verify that which is suit

[issue4760] cmp gone documentations

2009-01-12 Thread David W. Lambert
David W. Lambert added the comment: http://docs.python.org/dev/3.1/library/unittest.html#module-unittest Search for "cmp". There are two references. I apologize if I misunderstand issue 1717, -- title: cmp gone---What's new in 3.1 -> cmp g

[issue4925] Improve error message of subprocess

2009-01-12 Thread David W. Lambert
David W. Lambert added the comment: Related, but outside python realm, this error likewise confuses: $ cat < s.sh #! invalid path echo hi EOF $ ./s.sh zsh: no such file or directory: ./s.sh -- nosy: +LambertDW ___ Python tracker &l

[issue4925] Improve error message of subprocess

2009-01-12 Thread David W. Lambert
David W. Lambert added the comment: (Actual command stream includes chmod +x ./s.sh) ___ Python tracker <http://bugs.python.org/issue4925> ___ ___ Python-bugs-list mailin

[issue4899] doctest should support fixtures

2009-01-13 Thread David W. Lambert
David W. Lambert added the comment: My goodness, that's the starting base sequence to gene 38c, chromosome 4 of the Columbian caldera cricket! But seriously... 1) The relevant part of the doc string is this, and this is how it should read (your argument being "if doctests prov

[issue4899] doctest should support fixtures

2009-01-13 Thread David W. Lambert
David W. Lambert added the comment: For unittests I recommend two things instead of need for doctest change. A decoupled strict test to prove that the iterator works, and this class to publish, class Tped_use_cases(...): def test_Marker_iteration(self

[issue4994] subprocess (Popen) doesn't works properly

2009-01-18 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker <http://bugs.python.org/issue4994> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5028] tokenize.generate_tokens doesn't always return logical line

2009-01-21 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker <http://bugs.python.org/issue5028> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5029] Odd slicing behaviour

2009-01-21 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker <http://bugs.python.org/issue5029> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5032] itertools.count step

2009-01-22 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker <http://bugs.python.org/issue5032> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2527] Pass a namespace to timeit

2009-01-24 Thread David W. Lambert
David W. Lambert added the comment: This note is simply a reminder that Antoine's 'from __main__ import *' solution fails in python3. Also, resolution of this issue probably could incorporate Issue1397474. >>> import timeit >>> timeit.timeit('None'

[issue5044] name not found in generator in eval()

2009-01-24 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker <http://bugs.python.org/issue5044> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5061] Inadequate documentation of the built-in function open

2009-01-25 Thread David W. Lambert
David W. Lambert added the comment: I disagree. You propose to examine the trees but ignore the forest. The perspective programmer needs to understand what is a file. -- nosy: +LambertDW ___ Python tracker <http://bugs.python.org/issue5

  1   2   >