Changes by John Szakmeister :
--
nosy: +jszakmeister
___
Python tracker
<http://bugs.python.org/issue4618>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
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
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
John Levon added the comment:
Right, it should be one of the "official" ways of enabling that.
--
___
Python tracker
<http://bugs.python.org/issue8864>
___
__
John Levon added the comment:
defining _XOPEN_SOURCE=600 or similar is better, as Martin pointed out.
--
___
Python tracker
<http://bugs.python.org/issue8
John Levon added the comment:
Yes, we would almost certainly want something similar.
--
___
Python tracker
<http://bugs.python.org/issue8864>
___
___
Python-bug
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.
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
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
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
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
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
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
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
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
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
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
Changes by John Posner :
--
status: open -> pending
___
Python tracker
<http://bugs.python.org/issue9536>
___
___
Python-bugs-list mailing list
Unsubscri
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
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'))
>
Changes by John Helour :
Removed file: http://bugs.python.org/file45647/iso6937.py
___
Python tracker
<http://bugs.python.org/issue24339>
___
___
Python-bugs-list mailin
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
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
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
Changes by John Helour :
Removed file: http://bugs.python.org/file45697/iso6937.py
___
Python tracker
<http://bugs.python.org/issue24339>
___
___
Python-bugs-list mailin
Changes by John Helour :
Removed file: http://bugs.python.org/file45706/iso6937.py
___
Python tracker
<http://bugs.python.org/issue24339>
___
___
Python-bugs-list mailin
Changes by John Helour :
Added file: http://bugs.python.org/file45706/iso6937.py
___
Python tracker
<http://bugs.python.org/issue24339>
___
___
Python-bugs-list mailin
Changes by John Helour :
Added file: http://bugs.python.org/file45707/iso6937.py
___
Python tracker
<http://bugs.python.org/issue24339>
___
___
Python-bugs-list mailin
Changes by John Helour :
Removed file: http://bugs.python.org/file45707/iso6937.py
___
Python tracker
<http://bugs.python.org/issue24339>
___
___
Python-bugs-list mailin
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
_
Changes by John Helour :
Removed file: http://bugs.python.org/file45708/iso6937.py
___
Python tracker
<http://bugs.python.org/issue24339>
___
___
Python-bugs-list mailin
Changes by John Helour :
Added file: http://bugs.python.org/file45740/iso6937.py
___
Python tracker
<http://bugs.python.org/issue24339>
___
___
Python-bugs-list mailin
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
Changes by John Helour :
Removed file: http://bugs.python.org/file45740/iso6937.py
___
Python tracker
<http://bugs.python.org/issue24339>
___
___
Python-bugs-list mailin
Changes by John Helour :
Added file: http://bugs.python.org/file45750/iso6937.py
___
Python tracker
<http://bugs.python.org/issue24339>
___
___
Python-bugs-list mailin
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
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
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
>>&
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.
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
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
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
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
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.
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
Changes by John Parejko :
--
nosy: +John Parejko
___
Python tracker
<http://bugs.python.org/issue20608>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
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
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
'
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
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
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
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
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)
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
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
John Hagen added the comment:
I'll submit a patch shortly.
--
___
Python tracker
<http://bugs.python.org/issue27311>
___
___
Python-bugs-list mailing list
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
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
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
Changes by John Hagen :
Removed file: http://bugs.python.org/file43627/0001-Fix-tkinter-docs-PEP8.patch
___
Python tracker
<http://bugs.python.org/issue27455>
___
___
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,
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
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
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\
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
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
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
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
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
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
John Hagen added the comment:
>class BaseZeroEnum(Enum, start=0):
> "initial integer is 0"
> ...
I also think this looks better.
--
___
Python tracker
<http://bugs
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
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
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
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
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.
#
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
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
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:
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
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
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
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
Changes by John Hagen :
Removed file: https://bugs.python.org/file44249/issue27877.johnthagen.01.patch
___
Python tracker
<https://bugs.python.org/issue27877>
___
___
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
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,
701 - 800 of 1249 matches
Mail list logo