[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread John Posner
John Posner added the comment: Georg, your change (r79587) makes this the main definition: generator A function which returns an iterator. I'm concerned that this definition does not fit well with the occurrence of "generator object" in the following: Python 2.6.5 (

[issue8012] Revise generator-related Glossary entries

2010-04-02 Thread John Posner
John Posner added the comment: Fair enough, Georg. Case closed. -- ___ Python tracker <http://bugs.python.org/issue8012> ___ ___ Python-bugs-list mailin

[issue2799] Remove PyUnicode_AsString(), rework PyUnicode_AsStringAndSize(), add PyUnicode_AsChar()

2010-04-02 Thread John Ehresman
John Ehresman added the comment: I'm trying to port an existing C extension to py3k and find myself wanting something like PyUnicode_AsString so I don't need to introduce other objects to do memory management. PyUnicode_AsString is equivalent to PyArg_Parse w/ a 's'

[issue8308] raw_bytes.decode('cp932') -- spurious mappings

2010-04-03 Thread John Machin
New submission from John Machin : According to the following references, the bytes 80, A0, FD, FE, and FF are not defined in cp932: http://msdn.microsoft.com/en-au/goglobal/cc305152.aspx http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP932.TXT http://demo.icu-project.org/icu-bin

[issue8308] raw_bytes.decode('cp932') -- spurious mappings

2010-04-04 Thread John Machin
John Machin added the comment: Thanks, Martin. Issue closed as far as I'm concerned. -- ___ Python tracker <http://bugs.python.org/issue8308> ___ ___ Pytho

[issue4570] Bad example in set tutorial

2010-04-06 Thread John Marter
John Marter added the comment: You may want to add another space before the comment, otherwise it will be the only one not aligned with the others. -- ___ Python tracker <http://bugs.python.org/issue4

[issue1706039] Added clearerr() to clear EOF state

2007-12-04 Thread John Smith
John Smith added the comment: What's in a name? :p Done, anyway. _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1706039> _ ___ Python-bugs-

[issue1597850] Cross compiling patches for MINGW

2007-12-09 Thread John Stowers
John Stowers added the comment: Hello, I recently tried this in combination with jhbuild, cross compiling with mingw (to built some python gtk extensions). I tried you patch against the 2.5.1 version and recieved the following error: checking for /dev/ptmx... yes checking for /dev/ptc... no

[issue1597850] Cross compiling patches for MINGW

2007-12-09 Thread John Stowers
John Stowers added the comment: Sorry, I should have clarified further in my last comment. Looking over the configure script I don't recognize the %zd test as one that could be circumvented by supplying a config.cache file with the appropriate values. How do I escape this limit

[issue1597850] Cross compiling patches for MINGW

2007-12-10 Thread John Stowers
John Stowers added the comment: I created config.cache and populated it with ac_cv_printf_zd_format=yes before executing the following ./configure --prefix /home/john/jhbuild/win32/build/ --build=i686-pc-linux-gnuaout --host=i586-pc-mingw32msvc --target=i586-pc-mingw32msvc --disable-docs

[issue1637] urlparse.urlparse misparses URLs with query but no path

2007-12-16 Thread John Nagle
Changes by John Nagle: -- components: Library (Lib) nosy: nagle severity: normal status: open title: urlparse.urlparse misparses URLs with query but no path type: behavior versions: Python 2.4, Python 2.5 __ Tracker <[EMAIL PROTECTED]>

[issue1637] urlparse.urlparse misparses URLs with query but no path

2007-12-16 Thread John Nagle
New submission from John Nagle: urlparse.urlparse will mis-parse URLs which have a "/" after a "?". >> >> sa1 = 'http://example.com?blahblah=/foo' >> sa2 = 'http://example.com?blahblah=foo' >> print urlparse.urlparse(sa1) >>

[issue1637] urlparse.urlparse misparses URLs with query but no path

2007-12-19 Thread John Nagle
John Nagle added the comment: I tried downloading the latest rev of urlparse.py (59480) and it flunked its own unit test, "urlparse.test()" Two test cases fail. So I don't want to try to fix the module until the last people to change it fix their unit test problems. The fix I

[issue1675533] setup.py LDFLAGS regexp is wrong

2008-01-19 Thread John Lenton
John Lenton added the comment: This was fixed in r57389 by georg.brandl by changing the replacement string '' to ' ' (turning the option into a non-option). Steps to reproduce this on Ubuntu Feisty, before that revision, were: $ mkdir banana $ sudo mv /usr/include/sqlite3.h

[issue976880] mmap needs a rfind method

2008-01-19 Thread John Lenton
John Lenton added the comment: Attached patch adds two things: an 'end' argument to find, and an 'rfind' method. This includes minimal tests for rfind, but as I actually refactored find and rfind into a single method, tests covering find also cover most of rfind :). I added

[issue976880] mmap needs a rfind method

2008-01-19 Thread John Lenton
John Lenton added the comment: New patch, with small change after being reviewed by amk. Still against revision 60082. Added file: http://bugs.python.org/file9223/mmap.rfind.patch Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/is

[issue2112] mmap.error should be a subclass of EnvironmentError and not a direct EnvironmentError

2008-02-17 Thread John Lenton
John Lenton added the comment: Ran the regression test with this patch, all ok (on Ubuntu Gutsy). Attached diff is the same, with the addition of the NEWS entry. -- nosy: +Chipaca Added file: http://bugs.python.org/file9443/mmap3.diff __ Tracker <[EM

[issue1945] Document back ported C functions

2008-02-17 Thread John Lenton
John Lenton added the comment: Copied documentation from the py3k branch for the functions mentioned in the .h's (those were: PyLong_FromSsize_t, PyLong_FromSize_t, PyLong_AsSsize_t, PyUnicode_FromStringAndSize, PyUnicode_FromString, PyUnicode_FromFormat, and PyUnicode_FromFormatV). Test

[issue1945] Document back ported C functions

2008-02-18 Thread John Lenton
John Lenton added the comment: This is the same as the previous patch, but I added the "versionadded" notation in the rst, and the info in refcounts.dat to get the "return value" info in the docs. Added file: http://bugs.python.org/

[issue643841] New class special method lookup change

2008-03-28 Thread John Krukoff
John Krukoff <[EMAIL PROTECTED]> added the comment: I was just bit by this today in converting a proxy class from old style to new style. The official documentation was of no help in discoverting that neither __getattr__ or __getattribute__ are used to look up magic attribute names. Ev

[issue2520] macerrors.py cannot be imported due to non-ascii characters in comments

2008-03-31 Thread John Buckley
New submission from John Buckley <[EMAIL PROTECTED]>: Cannot import macerrors due to non-ascii characters appearing in comments. Patch attached. -- components: Library (Lib), Macintosh files: macerrors.patch keywords: patch messages: 64783 nosy: thecube severity: normal status

[issue643841] New class special method lookup change

2008-04-01 Thread John Krukoff
John Krukoff <[EMAIL PROTECTED]> added the comment: I assume when you say that the documentation has already been updated, you mean something other than what's shown at: http://docs.python.org/dev/reference/datamodel.html#new-style-and- classic-classes or http://docs.python.

[issue2541] Unicode escape sequences not parsed in raw strings.

2008-04-02 Thread John Millikin
New submission from John Millikin <[EMAIL PROTECTED]>: According to <http://docs.python.org/dev/3.0/reference/lexical_analysis.html#id9>, raw strings with \u and \U escape sequences should have these sequences parsed as usual. However, they are currently escaped. >>&g

[issue2545] sphinx.ext.autodoc fails to expand tabs in docstrings

2008-04-03 Thread John Millikin
New submission from John Millikin <[EMAIL PROTECTED]>: Sphinx seems to need tabs expanded in reST, but the autodoc extension doesn't do so. The following patch is very small, and fixes the issue on my system. Oddly, I can reproduce this on a Linux system with doctools and docutils

[issue2545] sphinx.ext.autodoc fails to expand tabs in docstrings

2008-04-03 Thread John Millikin
Changes by John Millikin <[EMAIL PROTECTED]>: -- type: -> behavior __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2545> __ ___ Python-b

[issue2622] Import errors in email.message.py

2008-04-11 Thread John Jackson
New submission from John Jackson <[EMAIL PROTECTED]>: In email.message.py there are two import errors: line 128 from email.Generator import Generator should be from email.generator import Generator line 784 from email.Iterators import walk should be from email.iterators impor

[issue2622] Import errors in email.message.py

2008-04-12 Thread John Jackson
John Jackson <[EMAIL PROTECTED]> added the comment: Yes. If the code is used to build a standalone application with py2app on the Mac, here's the end of the stack trace: File "controller.pyo", line 17, in File "readMail.pyo", line 15, in File "mailbo

[issue2622] Import errors in email.message.py

2008-04-13 Thread John Jackson
John Jackson <[EMAIL PROTECTED]> added the comment: I'll put one together. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2622> __ ___ Python

[issue2622] Import errors in email.message.py

2008-04-14 Thread John Jackson
John Jackson <[EMAIL PROTECTED]> added the comment: Attached is a sample code that reproduces the problem under python 2.5 on Mac OS 10.4.11. See file for instructions on how to reproduce the issue. Added file: http://bugs.python.org/file10030/test_mail

[issue2656] Autodoc should skip inherited methods

2008-04-18 Thread John Millikin
New submission from John Millikin <[EMAIL PROTECTED]>: Using the following class layout: class A (object): def a (self): "A.a" pass class B (A): def b (self): "B.b" pass If sphinx.ext.

[issue643841] New class special method lookup change

2008-04-22 Thread John Krukoff
John Krukoff <[EMAIL PROTECTED]> added the comment: I've been following the py3k maliing list disscussion for this issue, and wanted to add a note about the proposed solution described here: http://mail.python.org/pipermail/python-3000/2008-April/013004.html The reason I think this

[issue4434] Embedding into a shared library fails

2008-11-26 Thread John Levon
Changes by John Levon <[EMAIL PROTECTED]>: -- nosy: +movement ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4434> ___ ___ Python

[issue4434] Embedding into a shared library fails

2008-11-27 Thread John Levon
John Levon <[EMAIL PROTECTED]> added the comment: Besides, .so files should always declare their dependencies. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4434] Embedding into a shared library fails

2008-11-28 Thread John Levon
John Levon <[EMAIL PROTECTED]> added the comment: If Ubuntu wants to deliver a static libpython, it also needs to deliver static versions of the Python modules, or accept that they're not usable from a static libpython. It makes no sense at all to mix libpython.a with these .so fil

[issue1706039] Added clearerr() to clear EOF state

2008-11-29 Thread John Smith
John Smith <[EMAIL PROTECTED]> added the comment: Hi, when will this patch be checkedin? -- versions: +Python 2.5.3, Python 2.6, Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.o

[issue4540] typo in a module describes utf-8 as uft-8

2008-12-04 Thread John Weldon
New submission from John Weldon <[EMAIL PROTECTED]>: Traceback (most recent call last): File "", line 1, in File "c:\Python30\lib\site.py", line 427, in __call__ return pydoc.help(*args, **kwds) File "c:\Python30\lib\pydoc.py", line 1675, in __

[issue4570] Bad example in set tutorial

2008-12-06 Thread John Marter
New submission from John Marter <[EMAIL PROTECTED]>: On http://docs.python.org/3.0/tutorial/datastructures.html#sets there is the following section in the section on sets >>> basket = {'apple', 'orange', 'apple', 'pear', 'orange',

[issue4570] Bad example in set tutorial

2008-12-06 Thread John Marter
John Marter <[EMAIL PROTECTED]> added the comment: Also, I see banana is misspelled on the first output line (line 3). ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4574] reading UTF16-encoded text file crashes if \r on 64-char boundary

2008-12-07 Thread John Machin
New submission from John Machin <[EMAIL PROTECTED]>: Problem in the newline handling in io.py, class IncrementalNewlineDecoder, method decode. It reads text files in 128- byte chunks. Converting CR LF to \n requires special case handling when '\r' is detected at the end of the

[issue4594] Can't compile with -O3, on ARM, with gcc 3.4.4

2008-12-08 Thread John Stracke
New submission from John Stracke <[EMAIL PROTECTED]>: I downloaded the source to Python 3.0 onto my Nokia N810, an ARM-based Linux machine. The native gcc is 3.4.4 (upgrading might be possible, but would certainly be a pain). I was able to build only by switching from -O3 to -O2; -O3 ca

[issue4594] Can't compile with -O3, on ARM, with gcc 3.4.4

2008-12-09 Thread John Stracke
John Stracke <[EMAIL PROTECTED]> added the comment: The OPT env var is good. Maybe it could be documented in configure --help? And, yeah, recognizing the platform is messy. I'll dig and see whether gcc3 does the same thing on x86, though; if so, some logic to say "us

[issue4594] Can't compile with -O3, on ARM, with gcc 3.4.4

2008-12-09 Thread John Stracke
John Stracke <[EMAIL PROTECTED]> added the comment: OK, nope, gcc 3.4.6 on x86-64 builds fine. So, please, just have configure --help mention OPT. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4594] Can't compile with -O3, on ARM, with gcc 3.4.4

2008-12-10 Thread John Stracke
John Stracke <[EMAIL PROTECTED]> added the comment: You may be right; I haven't used autoconf before, so I don't know. But I'll give it a shot. ___ Python tracker <[EMAIL PROTECTED]> <ht

[issue4669] bytes,join and bytearray.join not in manual; help for bytes.join is wrong.

2008-12-15 Thread John Machin
New submission from John Machin : These methods are parallel to str.join, seem to work as expected, and have "help" entries. However there is nothing in the Library Reference Manual about them. >>> help(bytearray.join) Help on method_descriptor: join(...) B.joi

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-15 Thread John Shue
Changes by John Shue : -- nosy: +johnshue ___ Python tracker <http://bugs.python.org/issue4566> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4669] bytes,join and bytearray.join not in manual; help for bytes.join is wrong.

2008-12-19 Thread John Machin
John Machin added the comment: Terry, you are right. I missed that. My report was based on looking via the index and finding only "(str method)", no "(byte[sarray] method)". ___ Python tracker <http://bu

[issue1706039] Added clearerr() to clear EOF state

2008-12-23 Thread John Smith
John Smith added the comment: Sorry for inconvenience caused with the patch. I should've got more reviews before asking it checked in. I verified eof2.diff-applied-python gets "Bus error" and Scott Dial's fileobject.diff fixes this. (Test was on 9.6.0 Darwin

[issue4742] 3.0 distutils byte-compiling -> Syntax error: unknown encoding: cp1252

2008-12-24 Thread John Machin
New submission from John Machin : File foo3.py is [cut down (orig 87Kb)] output of 2to3 conversion tool and (coincidentally) is still valid 2.x syntax. There are no syntax errors reported by any of the following: \python26\python -c "import foo3" \python26\python foo3.py

[issue4742] 3.0 distutils byte-compiling -> Syntax error: unknown encoding: cp1252

2008-12-24 Thread John Machin
John Machin added the comment: A clue: >>> print(ascii(b'\xa0\x93\x94\xb7'.decode('cp1252'))) '\xa0\u201c\u201d\xb7' Could be that it only happens where there's a cp1252 character that's not in latin1; see files x93.py and x94.py (have problem)

[issue4742] 3.0 distutils byte-compiling -> Syntax error: unknown encoding: cp1252

2008-12-24 Thread John Machin
Changes by John Machin : Removed file: http://bugs.python.org/file12445/py3encbug.zip ___ Python tracker <http://bugs.python.org/issue4742> ___ ___ Python-bugs-list mailin

[issue4743] intra-pkg multiple import (import local1, local2) not fixed

2008-12-24 Thread John Machin
New submission from John Machin : In a package, "import local1, local2" is not fixed. Here's some real live 2to3 output showing the problem and the workaround: import ExcelFormulaParser, ExcelFormulaLexer -import ExcelFormulaParser -import ExcelFormulaLexer +from . import Exc

[issue4745] socket.send obscure error message

2008-12-24 Thread John Robinson
New submission from John Robinson : When using the socket module and performing a socket.send('hello world'), the error returned is: Traceback (most recent call last): File "C:\Python30\testclient.py", line 12, in s.send('Hello world') #

[issue4742] 3.0 distutils byte-compiling -> Syntax error: unknown encoding: cp1252

2008-12-30 Thread John Machin
John Machin added the comment: TWO POINTS: (1) I am not very concerned about chars like \x9d which are not valid in the declared encoding; I am more concerned with chars like \x93 and \x94 which *ARE* valid in the declared encoding. Please ensure that these cases are included in tests. (2

[issue4742] 3.0 distutils byte-compiling -> Syntax error: unknown encoding: cp1252

2008-12-30 Thread John Machin
John Machin added the comment: (1) what am I supposed to infer from "Yup"?? That all of that \x9d stuff was a mistake? (2) +def tearDown(self): +pyc_file = os.path.join(os.path.dirname(__file__), 'cp1252.pyc') +if os.path.exists(pyc_file): +

[issue4626] compile() doesn't ignore the source encoding when a string is passed in

2008-12-30 Thread John Machin
Changes by John Machin : -- nosy: +sjmachin ___ Python tracker <http://bugs.python.org/issue4626> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2009-01-13 Thread John Levon
John Levon added the comment: This issue also affects Solaris (and in particular xend is broken). Is there a reason bamby's fix isn't yet applied? -- nosy: +movement title: signals in thread problem -> signals not always delivered to main thread, since other threads ha

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2009-01-13 Thread John Levon
John Levon added the comment: Yes, Python guarantees the behaviour under discussion: http://docs.python.org/library/signal.html ___ Python tracker <http://bugs.python.org/issue1

[issue4971] Incorrect title case

2009-01-17 Thread John Machin
John Machin added the comment: Martin:"""Considering this note, the simple titlecase of U+01C5 *is* U+01C4: the titlecase value is omitted, hence it is the same as uppercase, hence it is U+01C4.""" Perhaps we are looking at different files; in the Unicode 5.1 Uni

[issue4111] Add DTrace probes

2009-01-27 Thread John Levon
Changes by John Levon : -- nosy: +movement ___ Python tracker <http://bugs.python.org/issue4111> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5107] built-in open(..., encoding=vague_default)

2009-01-29 Thread John Machin
New submission from John Machin : Docs say """The default encoding is platform dependent""" but don't say how to find out what that is, or how it is determined. On my Windows XP SP3 setup, the default is cp1252, but the best/only guess at finding out witho

[issue1706256] Give Partial the ability to skip positionals

2009-02-03 Thread John Ehresman
John Ehresman added the comment: Commenting because this was brought up on python-dev -- I'd like this, primarily for the string method & itertools optimization. It's ugly, but it would be better than writing C code. The alternative might be to somehow optimize trivial functi

[issue4111] Add DTrace probes

2009-02-05 Thread John Levon
John Levon added the comment: I haven't seen "shorter than expected" message before, sounds like a Mac OS X specific thing. As for never getting any probes out, this is where it gets fun. Debugging this is very tricky indeed: it involves you dropping into the kernel debugger and

[issue5219] IDLE: slowness, pauses enter long strings

2009-02-11 Thread John DeLuca
New submission from John DeLuca : In Interpreted Mode, when enter long strings, such as ofile.write (" this is a long string...") or print ("this is a long string..."), the keyboard entry is delayed - sometimes for 20+ seconds. If one completes the string (typing bl

[issue5219] IDLE: slowness, pauses enter long strings

2009-02-11 Thread John DeLuca
John DeLuca added the comment: (pyJohn)... additional information since this is a performance issue: Lenovo s10; Win XP; 1GB; Intel Atom 1.66 Mhz ___ Python tracker <http://bugs.python.org/issue5

[issue4609] Allow use of > 256 FD's on solaris in 32 bit mode

2009-02-15 Thread John Levon
Changes by John Levon : -- nosy: +movement ___ Python tracker <http://bugs.python.org/issue4609> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3928] os.mknod missing on Solaris

2009-02-15 Thread John Levon
Changes by John Levon : -- nosy: +movement ___ Python tracker <http://bugs.python.org/issue3928> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2009-02-15 Thread John Levon
Changes by John Levon : -- nosy: +movement ___ Python tracker <http://bugs.python.org/issue3265> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1759169] clean up Solaris port and allow C99 extension modules

2009-02-15 Thread John Levon
John Levon added the comment: Just came across this bug. _XOPEN_SOURCE_EXTENDED isn't the only sticking point here: neither XPG3 nor XPG4 have C99 either: _XOPEN_SOURCE (at least with a value below 600) is definitely wrong. To quote the header: "346 * It is invalid to compile an

[issue877121] configure detects incorrect compiler optimization

2009-02-15 Thread John Levon
John Levon added the comment: Yep, this is an annoying misfeature of Sun Studio. There is no way to affect this behaviour. There is a Sun Studio bug filed for this (-errwarn should affect this behaviour, but it doesn't). Here's some example m4 that libvirt uses to check this cas

[issue976613] socket timeout problems on Solaris

2009-02-15 Thread John Levon
Changes by John Levon : -- nosy: +movement ___ Python tracker <http://bugs.python.org/issue976613> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1759169] clean up Solaris port and allow C99 extension modules

2009-02-15 Thread John Levon
John Levon added the comment: Python should define *only* __EXTENSIONS__, not the others, as Zooko already mentioned, for the reasons he mentioned. I'm not sure how you got a different impression from what I or he said. ___ Python tracker

[issue1759169] clean up Solaris port and allow C99 extension modules

2009-02-16 Thread John Levon
John Levon added the comment: Zooko, the patches are available here: http://src.opensolaris.org/source/xref/jds/spec-files/trunk/patches/ > Then you were arguing that defining _XOPEN_SOURCE is wrong if the value Actually, I was saying that below that value simply won't work

[issue47028] Incorrect behaviour when zipping a bunch of maps

2022-03-15 Thread John K.
New submission from John K. : map(f, itr) is supposed to be the lazy way to do [f(val) for val in itr]. However, when unpacking and zipping a list of maps, I get a different result from when evaluating eagerly. More precisely: Python 3.10.2 | packaged by conda-forge | (main, Mar 8 2022, 15

[issue47184] multiprocessing.set_start_method force argument is not documented

2022-03-31 Thread John Hagen
New submission from John Hagen : multiprocessing.set_start_method() has a `force` argument that is not documented: https://docs.python.org/3.10/library/multiprocessing.html#multiprocessing.set_start_method -- assignee: docs@python components: Documentation messages: 416451 nosy: John

[issue37790] subprocess.Popen() is extremely slow

2019-08-15 Thread John Levon
Change by John Levon : -- nosy: +movement ___ Python tracker <https://bugs.python.org/issue37790> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38051] time.strftime handling %z/%Z badly

2019-09-07 Thread John Daily
New submission from John Daily : My apologies if this is a duplicate; there are more than a few bug reports on time and strftime, but I wasn't able to locate any reporting this specifically. I'd be happy to do more in-depth tests with some guidance. I see that this is l

[issue38146] QVariant NULL returns anomalous values in equality statements

2019-09-12 Thread John Midgett
New submission from John Midgett : Per PEP 8, equality comparisons to None should use the "is" or "is not" keywords. However, if x is a {QVariant}NULL, the equality statement with the "is" keyword returns FALSE whereas the "==" comparison returns TR

[issue38250] enum.Flag should be more set-like

2019-09-22 Thread John Belmonte
New submission from John Belmonte : I would like Flag class instances to have more set-like abilities: 1. iteration, to walk through each set bit of the value 2. len corresponding to #1 3. subset operator I may be told "implement it yourself as instance methods", or that #3 has

[issue38401] Make dataclass attribute docstrings accessible

2019-10-07 Thread John Parejko
New submission from John Parejko : Dataclasses provide a very straightforward way to specify structured data. One can trivally document a dataclass's attributes via triple-quoted attribute docstrings per PEP 257. However, those docstrings are not accessible to pydoc, so they are lo

[issue38459] typing: Classes that inherit `Generic[...]` indirectly aren't considered generic.

2019-10-13 Thread John Lennon
New submission from John Lennon : Given the file `example.py` with the following contents: ```python from typing import Generic, TypeVar KT = TypeVar("KT") VT = TypeVar("VT") class GenericMapping(Generic[KT, VT]): pass class SomeImplMapping(GenericMa

[issue38459] typing: Classes that inherit `Generic[...]` indirectly aren't considered generic.

2019-10-13 Thread John Lennon
John Lennon added the comment: However, if I change the signature to: ```python class SomeImplMapping(GenericMapping[KT, VT]): ``` Everything works just fine. And that's not really clear for me: we already have declared the generic types, we can not change the amount of those argu

[issue38459] typing: Classes that inherit `Generic[...]` indirectly aren't considered generic.

2019-10-13 Thread John Lennon
John Lennon added the comment: BTW I don't mind creating a PR for that issue if there will be an agreement on what is the desired behavior here. -- ___ Python tracker <https://bugs.python.org/is

[issue37839] makesetup Doesn't Handle Defines with Equal Sign

2019-10-17 Thread John Muth
John Muth added the comment: I ran into the same issue. This patch fixed it for me. diff --git a/Modules/makesetup b/Modules/makesetup index eac97ad134..0fbac03833 100755 --- a/Modules/makesetup +++ b/Modules/makesetup @@ -133,6 +133,7 @@ sed -e 's/[ ]*#.*//' -e '/

[issue43534] turtle.textinput window is not transient

2021-03-17 Thread John Private
John Private added the comment: I am enclosing a PNG showing the difference between 3.9.1 and 3.9.2 In 3.9.2 the pop-up opens as a new window complete with minimise and maximise buttons, and the position is unrelated to the turtle screen. -- nosy: +jwmp5051 Added file: https

[issue23948] Deprecate os.kill() on Windows

2021-03-20 Thread John Ehresman
John Ehresman added the comment: The original idea was to not use kill on win32 because developers often assume it will work like it does on unix-like OS's -- my claim is while kill could be improved on win32, it still won't support all the things kill can do elsewhere. I d

[issue43581] array assignment error

2021-03-21 Thread John Cena
John Cena added the comment: You are actually creating 4 references to the same list(See the ending *4). This is how python behaves. See the below link as well https://stackoverflow.com/questions/240178/list-of-lists-changes-reflected-across-sublists-unexpectedly -- nosy

[issue43834] Use context manager in StringIO example

2021-04-13 Thread John Hagen
New submission from John Hagen : The example for StringIO currently manually closes the object rather than using a context manager. Since this is likely the first code that a new user encounters and context managers reduce error-prone situations, I think it would be helpful to show usage as

[issue43834] Use context manager in StringIO example

2021-04-14 Thread John Hagen
Change by John Hagen : -- keywords: +patch pull_requests: +24133 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25401 ___ Python tracker <https://bugs.python.org/issu

[issue43887] it seems that sorted built-in always return floats before int if they appear to be equal

2021-04-19 Thread John Mish
New submission from John Mish : A1 >>> sorted([12.001, 2, 1.999, 2.1, 4, 12]) [1.999, 2, 2.1, 4, 12, 12.002] A2 >>> sorted([12.0001, 2, 1.999, 2.1, 4, 12]) [1.999, 2, 2.1, 4, 12.0, 12] B1 >>> sorted([11.999, 2, 1.999,

[issue43887] it seems that sorted built-in always return floats before int if they appear to be equal

2021-04-19 Thread John Mish
John Mish added the comment: Thanks, I should go deeper with it before filing. Wish You have great day Steven. -- ___ Python tracker <https://bugs.python.org/issue43

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2021-04-30 Thread John Florian
Change by John Florian : -- nosy: -John Florian ___ Python tracker <https://bugs.python.org/issue14243> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44220] PyStructSequence_UnnamedField unavailable on Windows

2021-05-23 Thread John Nelson
New submission from John Nelson : The symbol "PyStructSequence_UnnnamedField" is not *explicitly* marked for export, causing it to be omitted from python3x.dll on Windows -- and thus unavailable to Windows extension modules. Attempting to use this symbol then fails at link time:

[issue42194] Docs for argparse.BooleanOptionalAction missing "New in version 3.9"

2021-05-24 Thread John Belmonte
John Belmonte added the comment: A PR was opened over a year ago, but the author never signed CLA. How can we proceed with this doc fix? -- nosy: +John Belmonte ___ Python tracker <https://bugs.python.org/issue42

[issue42194] Docs for argparse.BooleanOptionalAction missing "New in version 3.9"

2021-05-25 Thread John Belmonte
Change by John Belmonte : -- nosy: +jbelmonte nosy_count: 6.0 -> 7.0 pull_requests: +24938 pull_request: https://github.com/python/cpython/pull/26348 ___ Python tracker <https://bugs.python.org/issu

[issue42194] Docs for argparse.BooleanOptionalAction missing "New in version 3.9"

2021-05-25 Thread John Belmonte
John Belmonte added the comment: I've opened a new PR, please review. -- ___ Python tracker <https://bugs.python.org/issue42194> ___ ___ Python-bugs-list m

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-05-26 Thread John Belmonte
John Belmonte added the comment: To clarify, it's caused by these mask entries in the enum: NPTS_MASK = 0xF DEL_S_MASK = 0xF0 AZIS_MASK = 0xF00 Since the masks are not an aggregation of individual bits defined in the enum, it's an error. > I'm inclined to go with [

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-05-26 Thread John Belmonte
John Belmonte added the comment: I wonder if CONFORM could tolerate these, since it's ultimately going to discard invalid bits. And then perhaps CONFORM is the default. -- ___ Python tracker <https://bugs.python.org/is

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-05-26 Thread John Belmonte
John Belmonte added the comment: Rather than make such masks containing unknown bits, this would be best practice if you want to use STRICT, correct? NPTS_ROUND = 0x0 NPTS_CEIL = 0x1 NPTS_TRUNC = 0x2 NPTS_MASK = NPTS_ROUND | NPTS_CEIL | NPTS_TRUNC Otherwise, if your input may have unknown

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-05-26 Thread John Belmonte
John Belmonte added the comment: > However, if the user is interfacing with other software/hardware, they may > not have a choice on which bits make up the mask. I think it's the same as saying "unknown bits may come on the input". An important use case is for forward

[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-05-26 Thread John Belmonte
John Belmonte added the comment: > Do you agree that simply removing the unnamed member check that takes place > at Flag creation is a good way forward? It's uncomfortable, because then STRICT is not actually strict, and it's going to be show raw values in str/repr. >

<    1   2   3   4   5   6   7   8   9   10   >