[issue4618] print_function and unicode_literals don't work together

2009-05-29 Thread John Szakmeister
Changes by John Szakmeister : -- nosy: +jszakmeister ___ Python tracker <http://bugs.python.org/issue4618> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6220] typo: opne in "doanddont"

2009-06-06 Thread John Szakmeister
John Szakmeister added the comment: Here's a patch for trunk. -- keywords: +patch nosy: +jszakmeister Added file: http://bugs.python.org/file14203/issue-6220-doanddont.patch ___ Python tracker <http://bugs.python.org/i

[issue6220] typo: opne in "doanddont"

2009-06-06 Thread John Szakmeister
John Szakmeister added the comment: That'll teach me to pay more attention before submitting a patch. Thanks Ezio! -- ___ Python tracker <http://bugs.python.org/i

[issue6220] typo: opne in "doanddont"

2009-06-06 Thread John Szakmeister
John Szakmeister added the comment: Actually, what's the second example trying to show: try: foo = opne("file") # will be changed to "open" as soon as we run it except IOError: sys.exit("could not open file") I'm

[issue4829] confusing error for file("foo", "w++")

2009-06-08 Thread John Szakmeister
John Szakmeister added the comment: The offending lines in io.py are: modes = set(mode) if modes - set("arwb+tU") or len(mode) > len(modes): raise ValueError("invalid mode: %r" % mode) In particular, the "or len(mode) > len(modes)" is

[issue6245] Add "intel" universal architecture on OSX

2009-06-09 Thread John Szakmeister
John Szakmeister added the comment: I think Ronald is trying to say that a 10.6 SDK is likely not to support building 64-bit binaries at all for the PPC (since there won't be 64-bit versions of the supporting libraries). So you need this patch, if you're going to build against it

[issue6251] c++ extension module implementation guide/example in extending/embedding documentation

2009-06-10 Thread John O'Driscoll
New submission from John O'Driscoll : feature: extension module C++ howto/example in extending-embedding/c-api documentation why:The embedding/extension documentation states that module implementation in c++ is possible, without providing any guidance beyond this. Coders more fam

[issue6251] c++ extension module implementation guide/example in extending/embedding documentation

2009-06-10 Thread John O'Driscoll
John O'Driscoll added the comment: I'm aware of Boost without being familiar. I should find out more. I don't have any reason to think it might not be the better approach. I guess when I wrote this I was thinking in terms of minimising dependencies: writing a program that d

[issue2622] Import errors in email.message.py

2009-06-16 Thread John Jackson
John Jackson added the comment: Also occurs in 2.6... -- versions: +Python 2.6 ___ Python tracker <http://bugs.python.org/issue2622> ___ ___ Python-bugs-list m

[issue8864] multiprocessing: undefined struct/union member: msg_control

2010-05-31 Thread John Levon
John Levon added the comment: This appears to be one of the few cases where there's incompatibilities between different versions of the standards. Old BSD sockets use msg_accrights*, whereas the more modern way is msg_control* pointing to a struct cmsghdr. In terms of user/kernel inte

[issue8864] multiprocessing: undefined struct/union member: msg_control

2010-06-01 Thread John Levon
John Levon added the comment: Right, it should be one of the "official" ways of enabling that. -- ___ Python tracker <http://bugs.python.org/issue8864> ___ __

[issue8864] multiprocessing: undefined struct/union member: msg_control

2010-06-01 Thread John Levon
John Levon added the comment: defining _XOPEN_SOURCE=600 or similar is better, as Martin pointed out. -- ___ Python tracker <http://bugs.python.org/issue8

[issue8864] multiprocessing: undefined struct/union member: msg_control

2010-06-01 Thread John Levon
John Levon added the comment: Yes, we would almost certainly want something similar. -- ___ Python tracker <http://bugs.python.org/issue8864> ___ ___ Python-bug

[issue8864] multiprocessing: undefined struct/union member: msg_control

2010-06-01 Thread John Levon
John Levon added the comment: It's not clear why you'd need configure tests, but you could easily add the define in the body of the autoconf test AFAIK - is there a reason this is difficult? -- ___ Python tracker <http://bugs.python.

[issue9086] Wrong linking terminology in windows FAQ

2010-06-26 Thread John Miller
New submission from John Miller : The 'How can I embed Python' section in the 'Python on Windows FAQ' (http://docs.python.org/faq/windows.html) uses wrong terms: What the FAQ calls static linking and dynamic linking are actally two forms of dynamic linking - load-time dyn

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2010-07-03 Thread John Machin
John Machin added the comment: About the E0 80 81 61 problem: my interpretation is that you are correct, the 80 is not valid in the current state (start byte == E0), so no look-ahead, three FFFDs must be issued followed by 0061. I don't really care about issuing too many FFFDs so long

[issue9342] Tests for monthrange in calendar.py module

2010-07-23 Thread John Chandler
New submission from John Chandler : Hi, Attaching a patch for the test_calendar.py file. Adds six tests to provide test coverage of the monthrange function. John -- components: Tests files: test_calendar.patch keywords: patch messages: 111292 nosy: John.Chandler priority: normal

[issue9361] Tests for leapdays in calendar.py module

2010-07-23 Thread John Chandler
New submission from John Chandler : Hi, Attaching a patch for the test_calendar.py file. Adds four tests to provide coverage of the leapdays() function. John -- components: Tests files: test_calendar.diff keywords: patch messages: 111373 nosy: John.Chandler priority: normal severity

[issue4434] Embedding into a shared library fails

2010-08-04 Thread John Levon
John Levon added the comment: Terry, what in the above discussion leads you to believe there is no bug? The original complaint "Python cannot be embedded in shared library due to dependency problems with lib-dynload" is still valid. -- status: pendi

[issue9530] integer undefined behaviors

2010-08-05 Thread John Regehr
New submission from John Regehr : I ran "make test" for today's Python3k snapshot under a tool which detects math operations that the C language considers to have undefined behavior. This was on x86 Linux. The list of undefined behaviors is attached. Hopefully they are s

[issue9530] integer undefined behaviors

2010-08-06 Thread John Regehr
John Regehr added the comment: Hi Mark-- Glad it's useful! We plan to release this tool but haven't done so yet, it still has rough edges. It's LLVM-based and it seems likely they will take our patches. -- ___ Python

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2010-08-06 Thread John Posner
New submission from John Posner : The documentation for collections.defaultdict is confusing with respect to the __missing__ method. The fact is that a programmer using defaultdict does not need to know anything about __missing__. The attached patch contains a rewrite of the entire section

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2010-08-08 Thread John Posner
John Posner added the comment: I think it would be confusing to create of subclass of defaultdict, defining a __missing__ method in that subclass. The existence of the __missing__ method would cancel the main functionality of the defaultdict object: invoking the "default value fa

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2010-08-08 Thread John Posner
John Posner added the comment: On python-list, Wolfram Hinderer objected to the proposed patch's calling __missing__ a "special method". -- ___ Python tracker <http://bugs.py

[issue9536] defaultdict doc makes incorrect reference to __missing__ method

2010-08-08 Thread John Posner
Changes by John Posner : -- status: open -> pending ___ Python tracker <http://bugs.python.org/issue9536> ___ ___ Python-bugs-list mailing list Unsubscri

[issue24339] iso6937 encoding missing

2016-11-25 Thread John Helour
John Helour added the comment: PEP8 compliant, added missing codepoints, utf-8 to \u rewrited -- Added file: http://bugs.python.org/file45647/iso6937.py ___ Python tracker <http://bugs.python.org/issue24

[issue24339] iso6937 encoding missing

2016-11-25 Thread John Helour
John Helour added the comment: @mdk Big thanks for the checker. >Looks like your implementation is missing some codepoints, like "\t": > >>>> >print("\t".encode(encoding='iso6937')) >

[issue24339] iso6937 encoding missing

2016-11-26 Thread John Helour
Changes by John Helour : Removed file: http://bugs.python.org/file45647/iso6937.py ___ Python tracker <http://bugs.python.org/issue24339> ___ ___ Python-bugs-list mailin

[issue24339] iso6937 encoding missing

2016-11-26 Thread John Helour
John Helour added the comment: If I take the ISO_6937 file as a template for encoding table then increasing the range 0x20..0x7f to 0x00..0xA0 is the simplest solution. -- ___ Python tracker <http://bugs.python.org/issue24

[issue24339] iso6937 encoding missing

2016-11-26 Thread John Helour
John Helour added the comment: If I take the ISO_6937 file as a template for encoding table then increasing the range 0x20..0x7f to 0x00..0xA0 is the simplest solution. -- Added file: http://bugs.python.org/file45654/iso6937.py ___ Python tracker

[issue24339] iso6937 encoding missing

2016-11-29 Thread John Helour
John Helour added the comment: > Please also check whether it's not possible to reuse the charmap codec > functions we have I've found nothing useful, maybe you (as the author) can find something really useful which can improve code readability or increase the performance. Pl

[issue24339] iso6937 encoding missing

2016-11-30 Thread John Helour
Changes by John Helour : Removed file: http://bugs.python.org/file45697/iso6937.py ___ Python tracker <http://bugs.python.org/issue24339> ___ ___ Python-bugs-list mailin

[issue24339] iso6937 encoding missing

2016-11-30 Thread John Helour
Changes by John Helour : Removed file: http://bugs.python.org/file45706/iso6937.py ___ Python tracker <http://bugs.python.org/issue24339> ___ ___ Python-bugs-list mailin

[issue24339] iso6937 encoding missing

2016-11-30 Thread John Helour
Changes by John Helour : Added file: http://bugs.python.org/file45706/iso6937.py ___ Python tracker <http://bugs.python.org/issue24339> ___ ___ Python-bugs-list mailin

[issue24339] iso6937 encoding missing

2016-11-30 Thread John Helour
Changes by John Helour : Added file: http://bugs.python.org/file45707/iso6937.py ___ Python tracker <http://bugs.python.org/issue24339> ___ ___ Python-bugs-list mailin

[issue24339] iso6937 encoding missing

2016-11-30 Thread John Helour
Changes by John Helour : Removed file: http://bugs.python.org/file45707/iso6937.py ___ Python tracker <http://bugs.python.org/issue24339> ___ ___ Python-bugs-list mailin

[issue24339] iso6937 encoding missing

2016-11-30 Thread John Helour
John Helour added the comment: Please ignore my previous question about: tmp += bytearray(encoding_map[c], 'latin1', 'ignore') The latest version don't needs such encoding ... -- Added file: http://bugs.python.org/file45708/iso6937.py _

[issue24339] iso6937 encoding missing

2016-12-03 Thread John Helour
Changes by John Helour : Removed file: http://bugs.python.org/file45708/iso6937.py ___ Python tracker <http://bugs.python.org/issue24339> ___ ___ Python-bugs-list mailin

[issue24339] iso6937 encoding missing

2016-12-03 Thread John Helour
Changes by John Helour : Added file: http://bugs.python.org/file45740/iso6937.py ___ Python tracker <http://bugs.python.org/issue24339> ___ ___ Python-bugs-list mailin

[issue24339] iso6937 encoding missing

2016-12-04 Thread John Helour
Changes by John Helour : Added file: http://bugs.python.org/file45749/check_iso6937.py ___ Python tracker <http://bugs.python.org/issue24339> ___ ___ Python-bugs-list m

[issue24339] iso6937 encoding missing

2016-12-04 Thread John Helour
Changes by John Helour : Removed file: http://bugs.python.org/file45740/iso6937.py ___ Python tracker <http://bugs.python.org/issue24339> ___ ___ Python-bugs-list mailin

[issue24339] iso6937 encoding missing

2016-12-04 Thread John Helour
Changes by John Helour : Added file: http://bugs.python.org/file45750/iso6937.py ___ Python tracker <http://bugs.python.org/issue24339> ___ ___ Python-bugs-list mailin

[issue24339] iso6937 encoding missing

2016-12-04 Thread John Helour
John Helour added the comment: Performance issue resolved, more info on error added. I've checked encoding and decoding on a two UTF-8 ~3MiB txt files. Except the first BOM mark (May I ignore it?) all seems work OK. -- ___ Python tracker

[issue28880] range(i, j) doesn't work

2016-12-05 Thread John Henning
New submission from John Henning: When attempting to use range(I, j) command in Windows 10 command prompt, the latest version of Python would simply echo what was typed. See below: >>> range(7) range(0, 7) >>> range(0, 9) range(0, 9) >>> ran

[issue28880] range(i, j) doesn't work

2016-12-05 Thread John Henning
John Henning added the comment: Right about the command prompt! My bad. However, the new language you provided gives me the following: >>> list(range(9)) Traceback (most recent call last): File "", line 1, in TypeError: 'list' object is not callable >>&

[issue28880] range(i, j) doesn't work

2016-12-05 Thread John Henning
John Henning added the comment: Ha! Thanks! Restarted python and now that works. Sorry for the trouble! Trying to teach myself python working through the python tutorial and hit this problem. -- ___ Python tracker <http://bugs.python.

[issue28886] Deprecated abstract base class (abc) decorators do not raise DeprecationWarning

2016-12-06 Thread John Hagen
New submission from John Hagen: In the abc module (https://docs.python.org/3/library/abc.html) the following decorators have been deprecated since Python 3.3: - abstractclassmethod - abstractstaticmethod - abstractproperty But if you run the following example code using Python 3.5.2 with

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-12-11 Thread John Huang
John Huang added the comment: The same issue in Python 2.7.12. Some extensions modules are not built if cross-compiling. -- nosy: +John Huang ___ Python tracker <http://bugs.python.org/issue28

[issue29130] Exit code 120 returned from Python unit test testing SystemExit

2017-01-01 Thread John Hagen
New submission from John Hagen: I recently tried to port one of my packages to Python 3.6 and unit tests that worked in Python 2.7, 3.3-3.5 began failing in 3.6. I originally thought it was a problem with coverage, but it turns out it was not. The full thread is: https://bitbucket.org/ned

[issue29130] Exit code 120 returned from Python unit test testing SystemExit

2017-01-03 Thread John Hagen
John Hagen added the comment: I'm completely fine with closing this issue. Thanks for the help everyone. If someone else doesn't close it in a couple days, I'll do it. -- ___ Python tracker <http://bugs.pyt

[issue29146] Confusing "invalid token" exception when integers have leading zero

2017-01-03 Thread John Parejko
New submission from John Parejko: As described in PEP-3127, the "leading-zeros" formatting for octal was removed from python 3. This is a good thing(tm), but the recommendation of that PEP to improve the error message of the raised exception[1] was apparently never implemented.

[issue29146] Confusing "invalid token" exception when integers have leading zero

2017-01-03 Thread John Parejko
John Parejko added the comment: Ah, I finally found a related issue, and it looks like it has patches! https://bugs.python.org/issue20608 If someone could check that over and merge it, that would be wonderful! -- ___ Python tracker <h

[issue20608] 'SyntaxError: invalid token' is unfriendly

2017-01-03 Thread John Parejko
Changes by John Parejko : -- nosy: +John Parejko ___ Python tracker <http://bugs.python.org/issue20608> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20608] 'SyntaxError: invalid token' is unfriendly

2017-01-03 Thread John Parejko
John Parejko added the comment: I had filed issue 29146 but eventually found this, which has patches to fix the exception messages. Could someone please look at this and get it incorporated into python? -- ___ Python tracker <h

[issue29194] importlib reload fails for module supplied as argument to command line

2017-01-07 Thread John Lehmann
New submission from John Lehmann: Modules that have been loaded as an argument to the command line cannot be reloaded using importlib.reload. For example with the attached file: $ python reloader.py Traceback (most recent call last): File "reloader.py", l

[issue29194] importlib reload fails for module supplied as argument to command line

2017-01-08 Thread John Lehmann
John Lehmann added the comment: You get a slightly different error using "-m". I'll raise a new defect - with some background that may make the bug seem more reasonable. -- ___ Python tracker <http://bugs.pyt

[issue29206] importlib reload fails for module supplied as argument to command line

2017-01-08 Thread John Lehmann
New submission from John Lehmann: In testing the py3 port for the web framework web.py, I found a limitation of importlib.reload. A module that was loaded via the command line cannot be reloaded with importlib.reload. The basic mode of operation for web.py is to create a web application as a

[issue29206] importlib reload fails for module supplied as argument to command line

2017-01-08 Thread John Lehmann
John Lehmann added the comment: I may not have been clear as to how the problem seems when working with a web.py application: * visit the web page, see something that needs fixing * make the required change to app.py * reload the webpage * error occurs

[issue29284] Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example 17.4.2.1

2017-01-16 Thread John Taylor
New submission from John Taylor: Please include how to use the thread_name_prefix method argument (new to Python 3.6) in the example: 17.4.2.1. ThreadPoolExecutor Example -- assignee: docs@python components: Documentation messages: 285572 nosy: docs@python, jftuga priority: normal

[issue29285] Unicode errors occur inside of multi-line comments

2017-01-16 Thread John Taylor
New submission from John Taylor: I am using Python 3.5.2 on OS X 10.11.6. The same error occurs with 3.5.2 on Windows 10. When I run the attached code, I get this error: SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 23-24: truncated \u

[issue29285] Unicode errors occur inside of multi-line comments

2017-01-17 Thread John Taylor
John Taylor added the comment: OP here, thanks for replying to this. I used Zach's suggestion of placing an 'r' in front of triple-quotes. This accomplishes my goal. -- ___ Python tracker <http://bugs.pyt

[issue29284] Include thread_name_prefix in the concurrent.futures.ThreadPoolExecutor example 17.4.2.1

2017-01-22 Thread John Taylor
John Taylor added the comment: I have updated the Python 3.6 example for 17.4.2.1. ThreadPoolExecutor Example. Please see the attachment. On my system this is the output: thread name: loader_0 thread name: loader_1 thread name: loader_2 thread name: loader_3 thread name: loader_4 '

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2017-02-13 Thread John W.
John W. added the comment: This also seems to apply to unittest.mock in Python3.4. I described my similar issue on SO: http://stackoverflow.com/questions/42212433/what-is-wrong-with-this-simple-py-test-use-case It seems like it may be the same issue described here. For reference, this is my

[issue29560] Turtle graphics fill behavior differs between versions

2017-02-14 Thread John Simmons
New submission from John Simmons: When I run the demo program on the library 24.1 documentation page to draw the star, it colors the entire star yellow, not just the parts that are show yellow on the page. This appears to be a behavior change. This is running on a Windows 7 or 10 machine

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2017-02-20 Thread John W.
John W. added the comment: This got a little discussion over at http://lists.idyll.org/pipermail/testing-in-python/2017-February/007012.html The current evidence seem to indicate this is indeed a bug in the implementation of assert_has_calls

[issue29621] telnetlib.Telnet.write gives confusing error message when a string is passed in

2017-02-22 Thread John Hagen
New submission from John Hagen: I was recently helping someone learn Python 3 from Python 2 and they were confused by error resulting from the following easy-to-make mistake: import telnetlib tn = telnetlib.Telnet('localhost') tn.write('hello') Traceback (most recen

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2017-02-23 Thread John Florian
John Florian added the comment: I just stumbled onto this though I'm not writing for Windows. Instead, I'm on Fedora 25 with Python 3.5.2 and I went nearly crazy tracing down what seemed to be inconsistent behavior. My use case has Python using NamedTemporaryFile(delete=True)

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2017-02-24 Thread John Florian
John Florian added the comment: Okay Nick. Thanks for the detailed info. I suspected buffering was a factor, but wasn't certain. Would it be worthwhile pursuing a note in the docs or would that constitute clutter over what should be a standard assumption? I was thrown off course for al

[issue27311] Incorrect documentation for zipfile.writestr()

2016-06-13 Thread John Hagen
New submission from John Hagen: The function signature and description for zipfile.writestr is incorrect: https://docs.python.org/3.5/library/zipfile.html#zipfile.ZipFile.writestr See: https://github.com/python/cpython/blob/master/Lib/zipfile.py#L1610 The documentation calls the parameter

[issue27311] Incorrect documentation for zipfile.writestr()

2016-06-13 Thread John Hagen
John Hagen added the comment: I'll submit a patch shortly. -- ___ Python tracker <http://bugs.python.org/issue27311> ___ ___ Python-bugs-list mailing list

[issue27311] Incorrect documentation for zipfile.writestr()

2016-06-14 Thread John Hagen
John Hagen added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file43395/0001-Fix-ZipFile.writestr-data-argument-name.patch ___ Python tracker <http://bugs.python.org/issue27

[issue26988] Add AutoNumberedEnum to stdlib

2016-06-29 Thread John Hagen
John Hagen added the comment: @Ethan/Barry what needs to be done now to accept or reject this for Python 3.6? Should I propose it onto python-dev? If accepted, would be nice to get it in before alpha 3 (~2 weeks). What's nice about this proposal is Ethan has already written the cod

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-05 Thread John Hagen
New submission from John Hagen: Patch fixes tkinter examples to be PEP8 compliant. -- assignee: docs@python components: Documentation files: 0001-Fix-tkinter-docs-PEP8.patch keywords: patch messages: 269820 nosy: John Hagen, docs@python priority: normal severity: normal status: open

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-05 Thread John Hagen
Changes by John Hagen : Removed file: http://bugs.python.org/file43627/0001-Fix-tkinter-docs-PEP8.patch ___ Python tracker <http://bugs.python.org/issue27455> ___ ___

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-05 Thread John Hagen
John Hagen added the comment: @Berker, sorry for the incorrect diff format, still new to CPython (and Mercurial) workflow. I've attached the diff in a new format. @SilentGhost I see what you mean that camelCase is used often in tkinter (though many of the examples use lower_camel_case,

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-05 Thread John Hagen
John Hagen added the comment: @Terry The reason for changing the quotes was for consistency, since everywhere else on that page used double quotes. That being said, I don't have a strong preference and will happily revert it if that is the consensus. I'm +0 on the change. I pers

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
Changes by John Hagen : Removed file: http://bugs.python.org/file43628/0001-Fix-tkinter-docs-PEP8.diff ___ Python tracker <http://bugs.python.org/issue27455> ___ ___ Pytho

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
John Hagen added the comment: @Terry I've removed the two string quotes changes in the latest patch. @Berker I spent a small amount of time trying out your proposed super() changes, but could not get them to work on 3.5.1. "C:\Users\John Hagen\AppData\Local\Programs\Python\Python35\

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
Changes by John Hagen : Removed file: http://bugs.python.org/file43641/0001-Fix-tkinter-docs-PEP8.diff ___ Python tracker <http://bugs.python.org/issue27455> ___ ___ Pytho

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
John Hagen added the comment: @Berker, thanks for the tip! I've fixed it up. I think this latest patch covers everything Berker and Terry have commented about. -- Added file: http://bugs.python.org/file43645/Fix-tkinter-docs-PEP8.diff ___ P

[issue26988] Add AutoNumberedEnum to stdlib

2016-07-09 Thread John Hagen
John Hagen added the comment: Is this something we want to get in before the next alpha in two days? Just wanted to bring up the deadline since this may be a feature people want to play around with during the alpha phase. Ethan, I'm happy to help with documentation or anything

[issue26988] Add AutoNumberedEnum to stdlib

2016-07-09 Thread John Hagen
John Hagen added the comment: > What happens with `property`? > > - `property` is looked up in the class namespace Perhaps you've already considered this, I'm not intimately familiar with how classes are parsed and constructed but is it possible to determine if the object

[issue26988] Add AutoNumberedEnum to stdlib

2016-07-10 Thread John Hagen
John Hagen added the comment: Some ideas for the new stdlib class: BasicEnum - This helps emphasize that it is a simpler version of Enum that doesn't support all of the Enum features (like assigning values). It also helps communicate that if you don't need values this is a

[issue26988] Add AutoNumberedEnum to stdlib

2016-07-10 Thread John Hagen
John Hagen added the comment: To me, class Color(AutoEnum) and class Color(AutoEnum, IntEnum) is a little more straightforward. It makes usage of AutoEnum similar to IntEnum, and I would expect it to be at least as popular as it. A enum-related side question, since the plan is for this to go

[issue26988] Add AutoNumberedEnum to stdlib

2016-07-11 Thread John Hagen
John Hagen added the comment: >class BaseZeroEnum(Enum, start=0): > "initial integer is 0" > ... I also think this looks better. -- ___ Python tracker <http://bugs

[issue26988] Add AutoNumberedEnum to stdlib

2016-07-12 Thread John Hagen
John Hagen added the comment: I like the addition of UniqueEnum. It's the default use case often. -- ___ Python tracker <http://bugs.python.org/is

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-13 Thread John Hagen
John Hagen added the comment: The patch was reviewed and marked ready to commit. Could someone with commit privileges perform the final commit? Thanks. -- ___ Python tracker <http://bugs.python.org/issue27

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-02 Thread John Hagen
John Hagen added the comment: @Ethan I reviewed your latest patch. I think it's a good step forward in terms of simplicity. Most of my comments were not major. Even before this patch, I was mulling around how enum.Unique, enum.UniqueEnum, and enum.unique seemed to violate the "Th

[issue27286] str object got multiple values for keyword argument

2016-08-10 Thread John Ehresman
John Ehresman added the comment: Should the bytecode magic number be bumped in the 3.5 branch? This breaks .pyc / .pyo binary compatibility for python 3.5. As far as I can tell this has never been done before in a release after the major.minor.0 final release. This patch has made its way

[issue27738] odd behavior in creating list of lambda expressions

2016-08-11 Thread John Sahr
New submission from John Sahr: The following produces unexpected behavior. I think that it should produce a list of six different lambda expressions, but after creation, all six lambda expressions produce the same output. It's possible that I'm missing something about Python. #

[issue27738] odd behavior in creating list of lambda expressions

2016-08-12 Thread John Sahr
John Sahr added the comment: I eventually figured that out that source of the problem; thanks for the coding fix; that's useful to know. -John On Thu, Aug 11, 2016 at 8:17 AM, Emanuel Barry wrote: > > Emanuel Barry added the comment: > > This is due to the fact that Pyt

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-16 Thread John Hagen
John Hagen added the comment: I think there is a small typo in the Changelog / What's New. The Issue isn't hyper-linked: https://docs.python.org/3.6/whatsnew/changelog.html#id2 -- ___ Python tracker <http://bugs.python.o

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-17 Thread John Hagen
John Hagen added the comment: @Raymond, you raise valid concerns to be sure. Hoping we can work something out. @Ethan, what are your thoughts? It's not just C that has enums where you can define a unique group of names and omit the values for clarity when they are not significant:

[issue26988] Add AutoNumberedEnum to stdlib

2016-08-18 Thread John Hagen
John Hagen added the comment: Ethan, thank you so much for all of your work. Looking forward to any future collaboration. -- ___ Python tracker <http://bugs.python.org/issue26

[issue27877] Add recipe for "valueless" Enums to docs

2016-08-27 Thread John Hagen
New submission from John Hagen: Many programming languages allow the developer to define a enum without specifying values when there would be no significance to those values. Adding some kind of support in the stdlib itself was rejected due to the high degree of magic that would be needed

[issue27877] Add recipe for "valueless" Enums to docs

2016-08-28 Thread John Hagen
John Hagen added the comment: Raymond, thanks for your consideration and input. I'll work on a small patch unless I hear from Ethan that he'd rather do it. I'm happy to defer to his expertise. I did try out None as a value just to be sure that that didn't work as it

[issue27877] Add recipe for "valueless" Enums to docs

2016-08-28 Thread John Hagen
John Hagen added the comment: Patch attached. -- keywords: +patch Added file: https://bugs.python.org/file44249/issue27877.johnthagen.01.patch ___ Python tracker <https://bugs.python.org/issue27

[issue27877] Add recipe for "valueless" Enums to docs

2016-08-29 Thread John Hagen
Changes by John Hagen : Removed file: https://bugs.python.org/file44249/issue27877.johnthagen.01.patch ___ Python tracker <https://bugs.python.org/issue27877> ___ ___

[issue27877] Add recipe for "valueless" Enums to docs

2016-08-29 Thread John Hagen
John Hagen added the comment: Emanuel, I like your rewording. Uploaded a new patch incorporating it. -- Added file: https://bugs.python.org/file44252/issue27877.johnthagen.02.patch ___ Python tracker <https://bugs.python.org/issue27

[issue17367] subprocess deadlock when read() is interrupted

2013-03-06 Thread John Szakmeister
New submission from John Szakmeister: I discovered this issue while trying to track down why our upcoming release for Nose 1.3.0 was deadlocking under Ubuntu 12.04 with Python 3.3. It turns out that the read() was being interrupted leaving data in the subprocess's output buffers,

<    3   4   5   6   7   8   9   10   11   12   >