Change by Andy Lester :
--
nosy: -petdance
___
Python tracker
<https://bugs.python.org/issue40170>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andy Maier :
Unpickling an object of a user class that derives from list seems to miss
calling the user class's __init__() method:
Consider this script, which defines a derived class of the built-in list for
the purpose of creating a case insensitive list. The
New submission from Andy Maier :
I found that os.path.relpath() on Windows raises ValueError when the path and
the start path are on different drives. This is to be expected, as there is no
single root on Windows.
On Python 3.7, the behavior is:
>>> os.path.relpath(
New submission from Andy Maier :
I stumbled across the problem reported in https://bugs.python.org/issue25030 on
Python 3.8:
>>> with open('x.txt', 'a') as fp:
... fp.seek(0, whence=os.SEEK_END)
...
Traceback (most recent call last):
File "",
Andy Maier added the comment:
Thanks for referencing the PR that reintroduced the old way of documenting it.
>From my perspective, the proposal is fine. There are already some cases where
>it is documented like that, e.g. str.removeprefix(
Andy Maier added the comment:
Thanks for the clarification.
Just for the record:
I have implemented __setstate__() such that it completely restores the state
from just the inherited list state. That makes it independent of whether
__init__() or __new__() is called:
def __getstate__
Andy Maier added the comment:
And just to be complete: That did not require implementing __reduce__().
--
___
Python tracker
<https://bugs.python.org/issue41
Andy Fiddaman added the comment:
We at OmniOS (an illumos distribution) are in the process of upgrading to
Python 3.9 and working on getting tests clean. We're in pretty good shape with
a few local patches and only having to skip a few tests at the moment, and most
of those patches s
Andy Fiddaman added the comment:
Re: Downloads
OmniOS makes modules like 'six' available through its own IPS packaging system
(which is written in Python) so installations won't show up pypi stats.
six is a core module on the platform so it is installed on 1000s of OmniOS
Andy Fiddaman added the comment:
Jakub's results looks very familiar to me, having been working on python 3.9 on
illumos.
For OmniOS, we currently skip these tests via --ignorefile:
# wchar_t related failures
*.test_re.ReTests.test_locale_compiled
*.test_re.ReTests.test_locale_ca
New submission from Andy Harrington :
Documentation in Tutorial section 9.3.3 seems to be stuck in Python 2:
"In Python, the term method is not unique to class instances: other object
types can have methods as well. For example, list objects have methods called
append, insert, remove,
New submission from Andy Harrington :
I now set the help string for an
argparse option with two parameters:
parser.add_argument('-s', '--substitute', nargs=2,
help='Replace first string with second',
metavar='strin
Andy Harrington added the comment:
Withdrawn. My error. I missed the part of the documentation that says a
*tuple*, not the list that I tried, does just what I wanted.
--
assignee: -> docs@python
components: +Documentation -Library (Lib)
nosy: +docs@python
resolution: -> i
New submission from Andy Papageorgiou :
Wireshark reports two identical back to back packets sent for each sendto(),
timing between packets is between 2 and 10us.
Note this is on a point to point ethernet (just 1 cable, no switches, routers
or anything else in between) to an embedded platform
Change by Andy Papageorgiou :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue37542>
___
___
Python-bugs-list mailing list
Unsubscrib
Andy Harrington added the comment:
This is really important for newbies. They have no business being in the
system Python folder. And Idle is for newbies!
I was teaching an intro Python class, and tried to help a student who had been
writing programs in Idle, but now could not get Python
New submission from Andy Balaam:
asyncio.as_completed allows us to provide lots of coroutines (or Futures) to
schedule, and then deal with the results as soon as they are available, in a
loop, or a streaming style.
I propose to allow as_completed to work on very large numbers of coroutines
Changes by Andy Balaam :
--
pull_requests: +2475
___
Python tracker
<http://bugs.python.org/issue30782>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andy Balaam added the comment:
bump
--
___
Python tracker
<http://bugs.python.org/issue30782>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Change by Andy Dirnberger :
--
nosy: +dirn
___
Python tracker
<https://bugs.python.org/issue36774>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andy Balaam added the comment:
I would argue that this makes as_completed a lot more useful than it is now, so
would be worth adding (maybe after 3.7).
But, if this does not go into asyncio, is there another library where it would
belong? Or should this be a completely new library
New submission from Andy Maier :
Python 3.7 removed support for passing the argument to the built-in functions
int(), bool(), float(), list() and tuple() as a keyword argument.
This change is described in the "What's New" for 3.7
(https://docs.python.org/3/whatsnew/3.7.html)
New submission from andy polandski :
root@kali:~# python get-pip.py
Collecting pip
>From cffi callback :
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 309, in
wrapper
_lib.X509_up_ref(x509)
AttributeError: 'mod
New submission from Andy Harrington :
In a source file in Idle I scroll down no matter which way I rotate the mouse
wheel. This happens in no other app.
Mac High Sierra OS.
I have the Mac scrolling setup "natural" - backwards from the Windows
directions.
--
assignee: t
New submission from Andy Harrington :
Mac now puts multiple tabs inside of application window instead of starting a
separate window (with some OS settings).
With just one file being edited in Idle (no tab line) the bottom line with the
numerical cursor coordinates is visible. When there are
Andy Harrington added the comment:
This appears to be a system settings option in Mac OS Sierra set under the
Dock, "prefer tabs when opening documents". With that choice, when there
is the tab bar in an Idle edit window (more than one window superimposed,
with tabs) the the wh
Andy Chugunov added the comment:
Thank you guys for all the efforts you put in solving and answering this.
Just so that we're clear.
It is perfectly legitimate to extend lists withing tuples. It just doesn't seem
possible to make augmented assignment and simple assignment h
Andy Harrington added the comment:
yes I certainly used breakpoints
On Wed, Jul 18, 2012 at 4:50 PM, Roger Serwy wrote:
>
> Roger Serwy added the comment:
>
> The only was I get IDLE to crash is if the file has breakpoints enabled.
> Is this how IDLE is crashing?
>
&
New submission from Andy Lutomirski:
This program:
import subprocess, sys
p = subprocess.Popen(['bash', '-c', 'while true; do echo x; sleep 1; done'],
bufsize=0, stdout=subprocess.PIPE)
for line in p.stdout:
sys.stdout.buffer.write(line)
sys.stdout
Changes by Andy Lutomirski :
--
title: "for line in file" is *still* broken in Python 2.7 -> "for line in file"
is *still* broken in Python 2.7 on pipes
___
Python tracker
<http://
New submission from Andy Salnikov:
Hi,
when trying to build extension modules with distutils I ran into
a problem that linking fails with an errors like:
gcc -pthread -shared -L build/temp.linux-x86_64-2.7/h5py/defs.o
-L/reg/g/psdm/sw/external/hdf5/1.8.4p1/x86_64-rhel6-gcc44-opt/lib -L.
-Wl
Andy Salnikov added the comment:
I never submitted any patch to Python, but unless somebody more
experienced wants to contribute I can try.
--
___
Python tracker
<http://bugs.python.org/issue16
Andy Salnikov added the comment:
Hi Éric,
I am attaching a patch that fixes the problem. The patch is tiny, basically
1-line. This replaces the direct use of sys.executable with the
symlink-resolved version of the same path. I made the change for linux/unix
platforms and also for cygwin
New submission from Andy Maier:
Using the enum34 backport of enums, the help() function on an enum class Colors
displays only:
---
Help on class Colors in module __main__:
Colors =
---
Source code to reproduce:
---
from enum import Enum # enum34 package
class Colors(Enum
Andy Maier added the comment:
The pydoc.py of Python 3.4 that supposedly has been fixed has a lot of changes
compared to 2.7, but the place where I applied my "fix" in TextDoc.docclass()
is unchanged.
So it seems that my fix should be regarded only to be a quick fix, and the real
Andy Maier added the comment:
Using Ethan's sample code (Thanks!!), I was pointed in the right direction and
was able to produce a simple piece of code that reproduces the behavior without
depending on enum34, as well as a proposal for a fix in pydoc.py.
The problem can be reproduced w
Andy Maier added the comment:
Here is the bug2.py file pasted into the previous message, for convenience.
--
Added file: http://bugs.python.org/file35502/bug2.py
___
Python tracker
<http://bugs.python.org/issue21
Andy Maier added the comment:
Attaching the patch for pydoc.py, relative to the tip of 2.7. the patch
contains just the proposed fix, and no longer the debug prints.
--
keywords: +patch
Added file: http://bugs.python.org/file35673/pydoc.py.patch
Andy Maier added the comment:
Attaching the patch for Lib/test/test_pydoc.py, relative to the tip of 2.7. The
patch adds a testcase test_class_with_metaclass(), which defines a class that
provokes the buggy behavior, and verifies the fix.
--
Added file: http://bugs.python.org
New submission from Andy Zeldis:
On BSD (including Mac OS X) SO_REUSEPORT should be specified along with
SO_REUSEADDR to match behavior on Linux (and possible Windows). This is needed
to have multiple listeners to a UDP broadcast.
I discovered this when using PyOSC. Attached is an example
Andy Salnikov added the comment:
OK, I see the problem. Do you think it would help if it tested both
sys.executable and its symlynk-resolved path against sys.exec_prefix
like this:
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin&q
Changes by Andy Dirnberger :
--
nosy: +dirn
___
Python tracker
<http://bugs.python.org/issue19660>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andy Almonte :
--
nosy: +Andy.Almonte
___
Python tracker
<http://bugs.python.org/issue21297>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andy Maier added the comment:
Ezio, what do you mean with "string signature"?
For me, the patch looks fine as it is.
--
nosy: +andymaier
___
Python tracker
<http://bugs.python.o
New submission from Andy Maier:
The .hgignore file misses some entries for directories and files created by
Eclipse with pydev.
The additional lines for .hgignore would be:
^.project
^.pydevproject
^.settings/
This change applies to 2.7 and 3.x.
--
messages: 222032
nosy
Changes by Andy Maier :
--
keywords: +patch
Added file: http://bugs.python.org/file35817/issue21898.diff
___
Python tracker
<http://bugs.python.org/issue21
New submission from Andy Maier:
In Python 2.7 and up to Python 3.3, the documentation build process downloads
tools such as Sphinx etc. into the Doc/tools subtree. The .hgignore file misses
entries to ignore those.
The additional lines for .hgignore would be:
^Doc/tools/docutils/
^Doc
Changes by Andy Maier :
--
keywords: +patch
Added file: http://bugs.python.org/file35818/issue21900.diff
___
Python tracker
<http://bugs.python.org/issue21
Andy Maier added the comment:
Your patch right now generates the line:
New in version 2.6: bytes() has been added as an alias for str()
at the end of the paragraph for str().
To me, that is sufficient for the description of str().
If anything, we could add a separate paragraph for bytes
Andy Maier added the comment:
Zach, I reviewed your 2.7 backport, including a comparison with the latest 3.x
patch.
Comments on the 2.7 backport:
1. In "3.1.1 Numbers", on "If both operands are ints,":
The "ints" is a link labeled "int" followed by
Andy Maier added the comment:
That is indeed true; i just verified that by creating a new clone repository.
Sorry for the extra work.
When I created the bug yesterday, I had my repository clone updated to "2.7"
and the .hgignore definitely did not have the entries. I even s
Andy Maier added the comment:
> Regardless, though, you are having a Mercurial issue here, not a Python one :)
That seems to be the case ... I don't think I can reproduce it.
All fine then.
Thanks, David!
--
___
Python tracke
Andy Maier added the comment:
> Andy: in future, please use the 'review' link to post reviews,...
Will do ... I just now discovered the "Start Review" link (I'm new here, so
thanks for telling me...)
Andy
--
_
Andy Maier added the comment:
Hi, I would like to revive this issue, and have a few comments:
1. In Darren's original proposal, I suggest to say "implicit (old-style)
relative imports" instead of "old-style relative imports", because that is the
term used in
Andy Maier added the comment:
Hi, I would like to revive this issue and have added a review comment to
issue10225-py3k.diff.
Otherwise, I have reviewed the changes in both diffs and think they are good to
go.
Andy
--
nosy: +andymaier
___
Python
Andy Maier added the comment:
Éric,
I have reviewed the patch, and have one minor comment on it (see review page).
Otherwise, I think it is good to go into v3 (The version list for this issue
also shows 2.7, and the 2.7 version of this file is quite different from the v3
tip version, so a
Andy Maier added the comment:
Just out of curiosity: Why do the patches attached to this issue not have a
"review" link?
Also, both (2.7 and 3.2) patches do not line up with the current 2.7 and 3.x
tip, both hunks get rejected.
Comments on both patches:
1. It would be helpful i
Andy Maier added the comment:
Hi, I'd like to revive this issue.
IMHO, the changes in issue12067-expressions_v2.diff go too far. I don't think
that deleting the entire section about the details of comparing objects of the
same type makes sense.
I agree with Terry's stateme
Andy Maier added the comment:
Ah! I was somehow suspecting that. Thanks for clarifying!
I'll prepare a patch.
To correct my earlier message, the best place to link for comparisons is
probably the Conparisons subchapter of the Expressions chapter in the
reference. See also issue
Changes by Andy Maier :
--
versions: +Python 3.5 -Python 3.2, Python 3.3
Added file: http://bugs.python.org/file35843/issue12067-expressions_v3.diff
___
Python tracker
<http://bugs.python.org/issue12
Andy Maier added the comment:
Uploaded issue12067-expressions_v3.diff for the 3.5 tip.
Please review.
--
___
Python tracker
<http://bugs.python.org/issue12
Andy Maier added the comment:
Uploaded issue12067-expressions_v4.diff to improve the unicode footnote 3, and
to revert to using the term "lexicographical" for sequences (after learning
that it applies there as well). Also, this version was produced using "hg diff"
Andy Maier added the comment:
PS: The v4 patch does not address comments f) and h) from msg04, and it
seems to me they do not need to be addressed.
--
___
Python tracker
<http://bugs.python.org/issue12
Andy Maier added the comment:
Terry,
I'd like to comment on your statement:
> 3. By default, == and /= compare identities.
in msg148774.
What experiment lead you to that conclusion?
Here is one that contradicts it (using cpython 3.4.1):
>>> i1 = 42
>>> f1 = 42.0
>
Andy Maier added the comment:
Uploaded v5 of the patch.
Changes:
1. The statement that comparison of different built-in types (always) raises
TypeError, was too general. Changed to distinguish equal and order operators,
as summarized by Ezio in items 3) and 4) of msg148760.
2. Ensured max
Andy Maier added the comment:
It seems I still need to practice creating patches ... uploading v6 which
should create a review link. No other changes.
Sorry for that.
Andy
--
Added file: http://bugs.python.org/file35851/issue12067-expressions-py34_v6.diff
Andy Maier added the comment:
Another attempt. Really sorry...
--
Added file: http://bugs.python.org/file35853/issue12067-expressions-py34_v7.diff
___
Python tracker
<http://bugs.python.org/issue12
Andy Maier added the comment:
Uploaded patch version py34_v2, which contains the following changes relative
to 3.4:
1. The changes in the description of list.sort() from "default" in list.sort(),
by adding this text:
(the arguments can be used for sort customization, see :func:`s
Andy Maier added the comment:
uploaded patch version py27_v2, which contains the same changes as py34_v2,
relative to 2.7, except for this differences:
1. The change from "default" was already in 2.7.
2. The reference to defining ordering methods for user-defined classes includes
a
Andy Maier added the comment:
I would like to revive this issue.
>From the discussion, it seems to me that the following changes in the Python
>Library documentation would make sense:
1. Move add_history() higher up in the sequence of functions, for example to
after write_history_file
Andy Maier added the comment:
I have reviewed the descriptions of the built-in functions in Python 3.4, and
found only the following issues w.r.t. missing __special__functions:
1. getattr(), setattr(), delattr(): They only refer to object attributes and
miss to mention the fallback to object
Andy Maier added the comment:
I see.
But I don't think it is a sensible default, as the source code states.
The Python doc (v2 and v3) is quite consistent in stating that `==` compares
the values of two objects, while `is` compares object identity.
Having a default implementation o
Andy Maier added the comment:
Uploaded a patch for Python 3.4, and for merging into "default".
The patch addresses items 1) to 3) from my previous post; item 4) does not need
to be addressed IMHO.
Andy
--
keywords: +patch
Added file: http://bugs.python.org/file35879/issue1
Andy Maier added the comment:
Uploaded v2 of the 3.4/default patch, which removes the comment line at the top
of Doc/library/functions.rst (mentioned by Éric in the original message of this
issue).
-> Please review the patch.
-> Please also double check whether there are any additional
Andy Maier added the comment:
Comments on v2 of both patches:
1. The paragraph "Each item needs to ..." describes the requirement in terms of
"ordering relationships between items". It would be both simpler and less
ambiguous to describe the requirement in terms of &qu
Andy Maier added the comment:
Comments on the patch py34_v2:
1. On complex(): It delegates to object.__complex__(); that should also be
described.
2. On hex(): The use of "__index__()" is text and should be changed to a
hyperl
Andy Maier added the comment:
I reviewed the description of the built-in functions in Python 2.7, and found
these issues:
1. The following built-in functions do not mention their underyling __special__
functions:
- cmp()
- delattr(), getattr(), hasattr(), setattr()
- complex(), int(), long
Changes by Andy Maier :
--
nosy: +benjamin.peterson, steven.daprano
___
Python tracker
<http://bugs.python.org/issue12067>
___
___
Python-bugs-list mailin
Changes by Andy Maier :
--
nosy: +ethan.furman
___
Python tracker
<http://bugs.python.org/issue12067>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andy Maier added the comment:
Uploaded v8 of the patch for 3.4 and default.
It reflects hopefully everything that was said in this issue thread, and on the
python-dev mailing list (subject: == on object tests identity in 3.x), at least
to the extent it was related to comparisons.
Besides the
Changes by Andy Maier :
Added file: http://bugs.python.org/file35938/try_eq.py
___
Python tracker
<http://bugs.python.org/issue12067>
___
___
Python-bugs-list mailin
Changes by Andy Maier :
Added file: http://bugs.python.org/file35939/try_eq.out
___
Python tracker
<http://bugs.python.org/issue12067>
___
___
Python-bugs-list mailin
Andy Maier added the comment:
Mark: Both are good points!
Would you add the cases from your second comment under "symmetry"?
--
___
Python tracker
<http://bugs.python.o
Andy Maier added the comment:
Uploaded v9 of the patch for 3.4 and default.
It reflects Marc's comment, plus the result of the recent discussion on
python-dev since v8 of th epatch, up to 2014-07-15 (subject: == on object tests
identity in 3.x).
-> Please review the patch.
Changes by Andy Maier :
--
nosy: +andymaier
___
Python tracker
<http://bugs.python.org/issue11945>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andy Maier added the comment:
Just wanted to say that i will continue working on this, working in the
comments made so far...
Andy
--
___
Python tracker
<http://bugs.python.org/issue12
Andy Balaam added the comment:
I am also seeing this with Python 2.5.2 on Ubuntu.
--
nosy: +andybalaam
___
Python tracker
<http://bugs.python.org/issue6
Andy Balaam added the comment:
Just in case it wasn't obvious - the workaround is to create a new
parser (with xml.parsers.expat.ParserCreate()) for every XML file you
want to parse.
--
___
Python tracker
<http://bugs.python.org/i
Changes by Andy Buckley :
--
nosy: +andybuckley
___
Python tracker
<http://bugs.python.org/issue444582>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andy Buckley added the comment:
Are these really bugs? The first message just reports the error the
other way around from how you view it: you are thinking of "-TO" as a
two-character "short option", optparse thinks of it as a two-character
long option which is missing a das
Andy Buckley added the comment:
FWIW, I would like to see an option on textwrap to preserve newlines for
purposes other than optparse formatting. optparse would then just be
able to pass that as a flag when building the text wrapper object.
Should I open a separate issue targeted at textwrap
New submission from Andy Buckley :
optparse's OptionParser takes a usage string as a constructor argument,
in which a "%prog" token is replaced with the executable name. Nice
idea, but the choice of a percent sign for token delimiter is
troublesome since it means that attemptin
Andy Buckley added the comment:
Dang, why didn't I think of that? Cheers. Might be worth mentioning that
in the documentation, in case there are other people with my particular
brand of tunnel vision ;)
___
Python tracker
<http://bugs.python.org/i
Andy Buckley added the comment:
Doc patch for Doc/library/optparse.rst attached.
--
___
Python tracker
<http://bugs.python.org/issue5374>
___
___
Python-bug
Andy Buckley added the comment:
Sorry, browser error last time. Should work now (fingers crossed).
--
keywords: +patch
Added file: http://bugs.python.org/file13360/optparse-prog-escape.patch
___
Python tracker
<http://bugs.python.org/issue5
Andy Buckley added the comment:
I'm easy either way --- I appreciate that it is a non-issue with new
formatting, but until developers can rely on the presence of Py >= 2.6,
%-formatting wil continue to be widely used.
Since optparse's special use of %-delimited tokens cla
Andy Sk added the comment:
Thank you Henrik. The workaround in the first comment caused some
cookies to be handled incorrectly due to ignoring version on all
cookies, but your workaround is nice.
It seems that the patch jjlee supplied should really be applied,
however, to save others from
New submission from Andy Harrington :
When I am running the idle debugger, and change something in a source
file and save it, the save works but idle immediately closes.
I can see the debugger not liking it, but it would be much better if
just the debugger stopped, not the whole idle
New submission from Andy Harrington :
I was editing in idle in python 3.1, typing away. I had been doing it for
hours. I do not think I had jumped to the shell window. Suddenly idle
crashed, with this error message in the the ubuntu 9,10 terminal window:
Traceback (most recent call last
New submission from Andy Buckley :
I know that Python lists aren't designed for efficient prepending, but
sometimes when working with small lists it's exactly what needs to be done
(search path lists being a common example). For a programmer aware of the
performance issue and having
201 - 300 of 333 matches
Mail list logo