[issue40170] [C API] Make PyTypeObject structure an opaque structure in the public C API

2020-07-08 Thread Andy Lester
Change by Andy Lester : -- nosy: -petdance ___ Python tracker <https://bugs.python.org/issue40170> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41639] Unpickling derived class of list does not call __init__()

2020-08-25 Thread Andy Maier
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

[issue41661] os.path.relpath does not document ValueError on Windows with different drives

2020-08-28 Thread Andy Maier
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(&#x

[issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited

2020-09-02 Thread Andy Maier
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 "",

[issue41698] io.[Text]IOBase.seek doesn't take keyword parameter - revisited

2020-09-02 Thread Andy Maier
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(

[issue41639] Unpickling derived class of list does not call __init__()

2020-09-07 Thread Andy Maier
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__

[issue41639] Unpickling derived class of list does not call __init__()

2020-09-07 Thread Andy Maier
Andy Maier added the comment: And just to be complete: That did not require implementing __reduce__(). -- ___ Python tracker <https://bugs.python.org/issue41

[issue42173] Drop Solaris support

2020-10-29 Thread Andy Fiddaman
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

[issue42173] Drop Solaris support

2020-10-29 Thread Andy Fiddaman
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

[issue42173] Drop Solaris support

2020-11-02 Thread Andy Fiddaman
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

[issue42359] tutorial: list is a class

2020-11-14 Thread Andy Harrington
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,

[issue14454] argparse metavar list parameter with nargs=k

2012-03-30 Thread Andy Harrington
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

[issue14454] argparse metavar list parameter with nargs=k

2012-03-30 Thread Andy Harrington
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

[issue37542] UDP sendto() sends duplicate packets

2019-07-10 Thread Andy Papageorgiou
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

[issue37542] UDP sendto() sends duplicate packets

2019-07-10 Thread Andy Papageorgiou
Change by Andy Papageorgiou : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue37542> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22121] IDLE should start with HOME as the initial working directory

2019-07-13 Thread Andy Harrington
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

[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2017-06-26 Thread Andy Balaam
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

[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2017-06-26 Thread Andy Balaam
Changes by Andy Balaam : -- pull_requests: +2475 ___ Python tracker <http://bugs.python.org/issue30782> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2017-08-17 Thread Andy Balaam
Andy Balaam added the comment: bump -- ___ Python tracker <http://bugs.python.org/issue30782> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue36774] f-strings: Add a !d conversion for ease of debugging

2019-05-02 Thread Andy Dirnberger
Change by Andy Dirnberger : -- nosy: +dirn ___ Python tracker <https://bugs.python.org/issue36774> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30782] Allow limiting the number of concurrent tasks in asyncio.as_completed

2018-01-09 Thread Andy Balaam
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

[issue34434] Removal of kwargs for int() etc not described as change

2018-08-19 Thread Andy Maier
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)

[issue34598] How to fix? Error in Kali linux python 2.7 - Collecting pip From cffi callback : Traceback (most recent call last): File "/usr/local/lib/pytho

2018-09-06 Thread andy polandski
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

[issue34863] Idle Mac scrolling only down

2018-10-01 Thread Andy Harrington
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

[issue34864] In Idle, Mac tabs make bottom editor line with cursor location disappear

2018-10-01 Thread Andy Harrington
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

[issue34864] In Idle, Mac tabs make bottom editor line with cursor location disappear

2018-10-01 Thread Andy Harrington
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

[issue17973] FAQ entry for: '+=' on a list inside tuple both succeeds and raises an exception

2013-06-01 Thread Andy Chugunov
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

[issue6257] Idle terminates on source save while debugging

2012-07-18 Thread Andy Harrington
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? > &

[issue15532] "for line in file" is *still* broken in Python 2.7

2012-08-01 Thread Andy Lutomirski
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

[issue15532] "for line in file" is *still* broken in Python 2.7 on pipes

2012-08-01 Thread Andy Lutomirski
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://

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-10-25 Thread Andy Salnikov
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

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-10-28 Thread Andy Salnikov
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

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-10-30 Thread Andy Salnikov
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

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-05-23 Thread Andy Maier
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

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-05-25 Thread Andy Maier
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

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-06 Thread Andy Maier
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

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-06 Thread Andy Maier
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

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-17 Thread Andy Maier
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

[issue21561] help() on enum34 enumeration class creates only a dummy documentation

2014-06-17 Thread Andy Maier
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

[issue16594] SocketServer should set SO_REUSEPORT along with SO_REUSEADDR when present

2012-12-02 Thread Andy Zeldis
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

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-12-12 Thread Andy Salnikov
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

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread Andy Dirnberger
Changes by Andy Dirnberger : -- nosy: +dirn ___ Python tracker <http://bugs.python.org/issue19660> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21297] csv.skipinitialspace only skips spaces, not "whitespace" in general

2014-06-22 Thread Andy Almonte
Changes by Andy Almonte : -- nosy: +Andy.Almonte ___ Python tracker <http://bugs.python.org/issue21297> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17904] bytes should be listed as built-in function for 2.7

2014-07-01 Thread Andy Maier
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

[issue21898] .hgignore: Missing ignores for Eclipse/pydev

2014-07-01 Thread Andy Maier
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

[issue21898] .hgignore: Missing ignores for Eclipse/pydev

2014-07-01 Thread Andy Maier
Changes by Andy Maier : -- keywords: +patch Added file: http://bugs.python.org/file35817/issue21898.diff ___ Python tracker <http://bugs.python.org/issue21

[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-01 Thread Andy Maier
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

[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-01 Thread Andy Maier
Changes by Andy Maier : -- keywords: +patch Added file: http://bugs.python.org/file35818/issue21900.diff ___ Python tracker <http://bugs.python.org/issue21

[issue17904] bytes should be listed as built-in function for 2.7

2014-07-01 Thread Andy Maier
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

[issue14097] Improve the "introduction" page of the tutorial

2014-07-01 Thread Andy Maier
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

[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-02 Thread Andy Maier
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

[issue21900] .hgignore: Missing ignores for downloaded doc build tools

2014-07-02 Thread Andy Maier
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

[issue14097] Improve the "introduction" page of the tutorial

2014-07-02 Thread Andy Maier
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 -- _

[issue10031] Withdraw anti-recommendation of relative imports from documentation

2014-07-03 Thread Andy Maier
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

[issue10225] Fix doctest runable examples in python manual

2014-07-03 Thread Andy Maier
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

[issue10536] Enhancements to gettext docs

2014-07-03 Thread Andy Maier
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

[issue14050] Tutorial, list.sort() and items comparability

2014-07-03 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-03 Thread Andy Maier
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

[issue14050] Tutorial, list.sort() and items comparability

2014-07-03 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-03 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-03 Thread Andy Maier
Andy Maier added the comment: Uploaded issue12067-expressions_v3.diff for the 3.5 tip. Please review. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-03 Thread Andy Maier
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"

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-03 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-04 Thread Andy Maier
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 >

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-04 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-04 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-04 Thread Andy Maier
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

[issue14050] Tutorial, list.sort() and items comparability

2014-07-04 Thread Andy Maier
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

[issue14050] Tutorial, list.sort() and items comparability

2014-07-04 Thread Andy Maier
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

[issue6953] readline documenation needs work

2014-07-04 Thread Andy Maier
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

[issue10289] Document magic methods called by built-in functions

2014-07-04 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-07 Thread Andy Maier
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

[issue10289] Document magic methods called by built-in functions

2014-07-07 Thread Andy Maier
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

[issue10289] Document magic methods called by built-in functions

2014-07-07 Thread Andy Maier
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

[issue14050] Tutorial, list.sort() and items comparability

2014-07-07 Thread Andy Maier
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

[issue10289] Document magic methods called by built-in functions

2014-07-07 Thread Andy Maier
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

[issue10289] Document magic methods called by built-in functions

2014-07-07 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-11 Thread Andy Maier
Changes by Andy Maier : -- nosy: +benjamin.peterson, steven.daprano ___ Python tracker <http://bugs.python.org/issue12067> ___ ___ Python-bugs-list mailin

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-11 Thread Andy Maier
Changes by Andy Maier : -- nosy: +ethan.furman ___ Python tracker <http://bugs.python.org/issue12067> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-11 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-13 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-13 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-13 Thread Andy Maier
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

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-07-16 Thread Andy Maier
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.

[issue11945] Adopt and document consistent semantics for handling NaN values in containers

2014-07-16 Thread Andy Maier
Changes by Andy Maier : -- nosy: +andymaier ___ Python tracker <http://bugs.python.org/issue11945> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12067] Doc: remove errors about mixed-type comparisons.

2014-10-07 Thread Andy Maier
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

[issue6676] expat parser throws Memory Error when parsing multiple files

2009-10-09 Thread Andy Balaam
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

[issue6676] expat parser throws Memory Error when parsing multiple files

2009-10-09 Thread Andy Balaam
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

[issue444582] Finding programs in PATH, addition to os

2009-11-19 Thread Andy Buckley
Changes by Andy Buckley : -- nosy: +andybuckley ___ Python tracker <http://bugs.python.org/issue444582> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4278] optparse quirks

2009-02-26 Thread Andy Buckley
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

[issue4318] optparse: formatting of help text/descriptions

2009-02-26 Thread Andy Buckley
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

[issue5374] optparse special usage tokens conflict with formatting characters

2009-02-26 Thread Andy Buckley
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

[issue5374] optparse special usage tokens conflict with formatting characters

2009-02-26 Thread Andy Buckley
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

[issue5374] optparse special usage tokens conflict with formatting characters

2009-03-17 Thread Andy Buckley
Andy Buckley added the comment: Doc patch for Doc/library/optparse.rst attached. -- ___ Python tracker <http://bugs.python.org/issue5374> ___ ___ Python-bug

[issue5374] optparse special usage tokens conflict with formatting characters

2009-03-17 Thread Andy Buckley
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

[issue5374] optparse special usage tokens conflict with formatting characters

2009-03-18 Thread Andy Buckley
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

[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead

2009-04-08 Thread Andy Sk
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

[issue6257] Idle terminates on source save while debugging

2009-06-10 Thread Andy Harrington
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

[issue8755] idle crash UnicodeDecodeError utf-8 codec

2010-05-18 Thread Andy Harrington
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

[issue9080] Provide list prepend method (even though it's not efficient)

2010-06-25 Thread Andy Buckley
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

<    1   2   3   4   >