[issue37430] range is not a built-in function

2019-06-27 Thread bob gailer


bob gailer  added the comment:

Thanks for explaining. Indeed range appears in __builtins__. It is a surprise 
to type range and get  in response. sum otoh gives . The distinction between function, type and class seems muddy.

When I enter "range" in the index box in the windows documentation display I am 
offered: 

(1)built-in function, which takes me to the paragraph that started this issue. 
It does NOT take me to the built-in functions topic, whereas sum does.

(2) object, and range (built-in class)which take me to the built-in types 
topic. This seems to add to the confusion.

--

___
Python tracker 
<https://bugs.python.org/issue37430>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37430] range is not a built-in function

2019-06-27 Thread bob gailer


New submission from bob gailer :

In section 8.3 The for statement there is a reference to range as a built-in 
function. That was true in python 2. Now range is a built-in type.

--
assignee: docs@python
components: Documentation
messages: 346745
nosy: bgailer, docs@python
priority: normal
severity: normal
status: open
title: range is not a built-in function
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue37430>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue34364] problem with traceback for syntax error in f-string

2018-08-08 Thread bob gailer

New submission from bob gailer :

Inconsistent tracebacks. Note that the traceback for bug.py does not 
reference the
module file and line number.

# bug.py
def f():
   f'''
   {d e}'''
a=b

import bug

Traceback (most recent call last):
   File "", line 1
     (d e)
    ^
SyntaxError: invalid syntax



# bug2.py
def f():
   f'''
   {de}'''
a=b

import bug2
bug2.f()

Traceback (most recent call last):
   File "C:\python\bug2.py", line 5, in 
     a=b
NameError: name 'b' is not defined

--
messages: 323301
nosy: bgailer
priority: normal
severity: normal
status: open
title: problem with traceback for syntax error in f-string

___
Python tracker 
<https://bugs.python.org/issue34364>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21352] improve indexing

2014-04-25 Thread bob gailer

New submission from bob gailer:

Inconsistencies / confusion with documentation Index Tab. Example (line numbers 
added for comments that follow):

1 max
2   built-in function
3 max  (datetime.date attribute)
4   (datetime.datetime attribute)
5   (datetime.time attribute)
6 max() built-in function
7   (decimal.Context method)
8   (decimal.Decimal method)
9   (in module audioloop)

The following all lead to confusion and frustration:
Having 3 rows (1, 3, 6)that begin with max. 
Having an entry (1) that does nothing when double-clicked.
double-clicking (2) takes us to a reference rather than a definition.

RECOMMENDATION:
change to:
max() built-in function
  (sequence operation)
  (decimal.Context method)
  (decimal.Decimal method)
max
  (datetime.date attribute)
  (datetime.datetime attribute)
  (datetime.time attribute)

where double-clicking the first line goes to the max() definition
in 2. Built-in Functions


These comments apply, with a number of variations, to most built-in functions 
index entries.

--
assignee: docs@python
components: Documentation
messages: 217170
nosy: bgailer, docs@python
priority: normal
severity: normal
status: open
title: improve indexing
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21352
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21279] str.translate documentation incomplete

2014-04-16 Thread bob gailer

New submission from bob gailer:

Documentation for str.translate only mentions a dictionary for the translation 
table. Actually any iterable can be used, as long as its elements are integer, 
None or str.

Recommend wording:

str.translate(translation_table)

Return a copy of the s where all characters have been mapped through the 
translation_table - which must be either a dictionary mapping Unicode ordinals 
(integers) to Unicode ordinals, strings or None,
or an iterable. In this case the ord() of each character in s is used as an 
index into the iterable; the corresponding element of the iterable replaces the 
character. If ord() of the character exceeds the index range of the iterator, 
no substitution is made.

Example: to shift any of the first 255 ASCII characters to the next:

 'Now is the time for all good men'.translate(range(1, 256))
'Opx!jt!uif!ujnf!gps!bmm!hppe!nfo'

COMMENT: I placed mapped in quotes as technically this only applies to 
dictionaries. Not sure what the best word is.

--
assignee: docs@python
components: Documentation
messages: 216630
nosy: bgailer, docs@python
priority: normal
severity: normal
status: open
title: str.translate documentation incomplete
type: enhancement
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21279
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17546] Document the circumstances where the locals() dict gets updated

2013-03-27 Thread bob gailer

bob gailer added the comment:

On 3/27/2013 9:48 AM, anatoly techtonik wrote:
 anatoly techtonik added the comment:

 Example:

  l = locals()
  z = dict(a=5, b=3)

  lc = dict(l)
  zc = dict(z)

  print(lc == l)
  print(zc == z)

 Gives:

  False
  True
Expected behavior.
lc is not another reference to locals(). It refers to a new object.
zc = ... updates locals() but not lc

--
nosy: +bgailer
title: Document the circumstances where the locals() dict gets updated - 
Document the circumstances where the locals() dict gets   updated

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17546
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5296] Use of term sequence in Reference 6.3 Assignment Statements

2009-02-17 Thread bob gailer

New submission from bob gailer bgai...@gmail.com:

Currently reads, in part, If the target list is a comma-separated list
of targets: The object must be a sequence ...

Change a sequence to an iterable.

Also consider removing references to versions earlier than 1.5.

--
assignee: georg.brandl
components: Documentation
messages: 82357
nosy: bgailer, georg.brandl
severity: normal
status: open
title: Use of term sequence in Reference 6.3Assignment  Statements
type: behavior
versions: Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5296
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5145] struct.calcsize('cd') returns 16 instead of 9

2009-02-03 Thread bob gailer

bob gailer bgai...@gmail.com added the comment:

Someone pointed out that one must consider alignment. I had overlooked
that. It makes sense that a d is double-word aligned.

Perhaps the documentation should mention alignment.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5145
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5145] struct.calcsize('cd') returns 16 instead of 9

2009-02-03 Thread bob gailer

New submission from bob gailer bgai...@gmail.com:

struct.calcsize('cd') returns 16 instead of 9

struct.calcsize('dc') returns 9 as expected

--
components: Extension Modules
messages: 81085
nosy: bgailer
severity: normal
status: open
title: struct.calcsize('cd') returns 16 instead of 9
type: behavior
versions: Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5145
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of RefGuide

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

I find a Reference Manual and a Library Reference. I presume you are
referring to the Reference Manual. True?

I might be interested in helping create the shorter friendlier guide. I
suggest we create some guidelines or specifications for it. This might
be a task for several of us, each taking a section, or some other form
of collaboration.

--
nosy: +bgailer

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

--
title: Write user's version of RefGuide - Write user's version of
Added file: http://bugs.python.org/file10090/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

Added file: http://bugs.python.org/file10091/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

Added file: http://bugs.python.org/file10092/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

Added file: http://bugs.python.org/file10093/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

Added file: http://bugs.python.org/file10094/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

Added file: http://bugs.python.org/file10095/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

Added file: http://bugs.python.org/file10096/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

Added file: http://bugs.python.org/file10097/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

Added file: http://bugs.python.org/file10098/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

Added file: http://bugs.python.org/file10099/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

Added file: http://bugs.python.org/file10100/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1376292] Write user's version of

2008-04-24 Thread bob gailer

bob gailer [EMAIL PROTECTED] added the comment:

My new email address is bgailer at gmail dot com (not google dot com).
Please update your address book, and change the above into the form
[EMAIL PROTECTED] The old address will expire at the end of 2008.

Bob Gailer in Chapel Hill NC.

Added file: http://bugs.python.org/file10101/unnamed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1376292
_My new email address is bgailer at gmail dot com (not google dot com). Please 
update your address book, and change the above into the form [EMAIL PROTECTED] 
The old address will expire at the end of 2008.BRBRBob Gailer in Chapel 
Hill NC.BRBRBR___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2103] __x should be _x in documentation of property()

2008-02-13 Thread bob gailer

New submission from bob gailer:

Library Reference 2.1 under property():

class C(object):
   def __init__(self): self.__x = None

__x should be _x

--
components: Documentation
messages: 62368
nosy: bgailer
severity: normal
status: open
title: __x should be _x in documentation of property()
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2103
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2103] __x should be _x in documentation of property()

2008-02-13 Thread bob gailer

bob gailer added the comment:

I tried to search for a prior report with no success. How should I have 
done tha

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2103
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com