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',&
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
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
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
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
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)):
'''
Changes by David W. Lambert <[EMAIL PROTECTED]>:
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4000>
___
___
Python-bugs-list mailing list
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.
>
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
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
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`
___
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
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
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
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
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
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
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.
David W. Lambert added the comment:
"Another problem ist the basic concept"
is
--
___
Python tracker
<http://bugs.python.org/issue8218>
___
__
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
David W. Lambert added the comment:
There is a number of middlewares
are
--
___
Python tracker
<http://bugs.python.org/issue8218>
___
___
Python-bug
David W. Lambert added the comment:
you can rely an already existing
rely on an
--
___
Python tracker
<http://bugs.python.org/issue8218>
___
___
Pytho
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
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
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
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
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__ == '__
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.
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':
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
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
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
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
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]>
&
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
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
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
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
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
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
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
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
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
Changes by David W. Lambert <[EMAIL PROTECTED]>:
--
nosy: +LambertDW
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4237>
___
__
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
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
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')
--
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
Changes by David W. Lambert <[EMAIL PROTECTED]>:
--
nosy: +LambertDW
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4279>
___
__
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
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
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
--
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
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
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
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
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
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
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
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
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
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
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
Changes by David W. Lambert <[EMAIL PROTECTED]>:
--
nosy: -LambertDW
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4518>
___
__
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://
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
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
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
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
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
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
David W. Lambert <[EMAIL PROTECTED]> added the comment:
Granted, this isn't the hottest issue circulating.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
Changes by David W. Lambert <[EMAIL PROTECTED]>:
--
nosy: +LambertDW
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4606>
___
__
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
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
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
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.
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(
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.
Changes by David W. Lambert :
--
nosy: +LambertDW
___
Python tracker
<http://bugs.python.org/issue4680>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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:
Changes by David W. Lambert :
--
nosy: +LambertDW
___
Python tracker
<http://bugs.python.org/issue4794>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
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
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.
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
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
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
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
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
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
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
Changes by David W. Lambert :
--
nosy: +LambertDW
___
Python tracker
<http://bugs.python.org/issue4994>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David W. Lambert :
--
nosy: +LambertDW
___
Python tracker
<http://bugs.python.org/issue5028>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David W. Lambert :
--
nosy: +LambertDW
___
Python tracker
<http://bugs.python.org/issue5029>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David W. Lambert :
--
nosy: +LambertDW
___
Python tracker
<http://bugs.python.org/issue5032>
___
___
Python-bugs-list mailing list
Unsubscribe:
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'
Changes by David W. Lambert :
--
nosy: +LambertDW
___
Python tracker
<http://bugs.python.org/issue5044>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 - 100 of 168 matches
Mail list logo