[issue4887] environment inspection and manipulation API is buggy, inconsistent with "Python philosophy" for wrapping native APIs

2009-01-08 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : According to a recent thread on python-dev, Python APIs with the same name as native APIs can be trusted to just pass through to the platform API call (<http://mail.python.org/pipermail/python-dev/2009-January/084899.html>). This isn't the c

[issue4955] inconsistent, perhaps incorrect, behavior with respect to entities parsed by xml.sax

2009-01-15 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : The attached program demonstrates that the ContentHandler.skippedEntity callback is not invoked for all skipped entities. Specifically, it is not invoked for those in attribute values. Additionally, it demonstrates that when parsing a document with no

[issue4955] inconsistent, perhaps incorrect, behavior with respect to entities parsed by xml.sax

2009-01-16 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: After further investigation, I've learned a bit more. External entities are forbidden in attribute values. Their presence constitutes a "fatal error" according to <http://www.w3.org/TR/REC-xml/#forbidden>. This means that dr

[issue4955] xml.sax.expatreader.ExpatParser incorrectly silently skips external character entities in attribute values

2009-01-17 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- title: inconsistent, perhaps incorrect, behavior with respect to entities parsed by xml.sax -> xml.sax.expatreader.ExpatParser incorrectly silently skips external character entities in attribute values ___ Pyt

[issue5025] test_kqueue failure on OS X

2009-01-21 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > My first impression was that the '1' in 'kq.control(None, 4, 1)' already did this; i.e., that it meant that the kq.control function would wait up to 1 second for a response, but that doesn't seem to be true. Since there a

[issue4999] multiprocessing.Queue does not order objects

2009-01-22 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Jesse, can you explain the cause of the bug? Maybe that will inspire someone to come up with an idea for a fix. -- nosy: +exarkun ___ Python tracker <http://bugs.python.org/issue4

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: You also need to add unit tests for the new behavior you've implemented. -- nosy: +exarkun ___ Python tracker <http://bugs.python.org/i

[issue5064] compiler.parse raises SyntaxErrors without line number information

2009-01-25 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : Sometimes a syntax error in source passed to `compiler.parse´ causes a `SyntaxError´ with lots of nice information to be raised: >>> from compiler import parse >>> try: ... parse("def f(") ... except SyntaxErro

[issue5070] Distutils should create install dir if needed

2009-01-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: This isn't accurate. distutils *will* create the directory if it does not exist. Perhaps you have setuptools installed? setuptools disables this behavior of distutils and forces you to create the directory manually. -- nosy: +ex

[issue5071] Distutils should not fail if install dir is not in PYTHONPATH

2009-01-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: See my comment on issue5070. -- nosy: +exarkun ___ Python tracker <http://bugs.python.org/issue5071> ___ ___ Python-bug

[issue5070] Distutils should create install dir if needed

2009-01-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Yea. setuptools is often discussed on distutils-sig: http://www.python.org/community/sigs/current/distutils-sig/ And has an issue tracker of its own: http://bugs.python.org/setuptools/ http://bugs.python.org/setuptools/issue54 sounds like this

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Not being able to figure out where a name came from easily is worse than having to type out the import statement. This feature would negatively impact readability of Python source significantly. -- nosy: +exarkun

[issue4706] try to build a C module, but don't worry if it doesn't work

2009-01-27 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: As far as Twisted is concerned, the two cases Tarek mentioned aren't really relevant. In order for Zooko's use case to be handled ("install Twisted on an OLPC"), what would be ideal is if there were a way to tell distutils about a

[issue4631] urlopen returns extra, spurious bytes

2009-01-28 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue4631> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5098] Environ doesn't escape spaces properly

2009-01-29 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: The backslash escaping has nothing to do with os.environ. It's the way any string with a backslash in it is displayed in the interactive interpreter (it's the way str.__repr__ works). Performing any escaping on a string to make it usable in

[issue3823] ssl.wrap_socket() is incompatible with servers that drop privileges, due to keyfile requirement

2009-01-29 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue3823> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3783] dbm.sqlite proof of concept

2009-01-29 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Some comments on tmp_dev_shelver.py... Regarding SQLhash.__init__, it would be better to avoid relying on the "sqlite_master" table by using the CREATE TABLE IF NOT EXISTS form of table creation. Setting the isolation_level in __init__

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: +exarkun ___ Python tracker <http://bugs.python.org/issue2124> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Though it's inconvenient to do so, you can arrange to have the locator available from the entity resolver. The content handler's setDocumentLocator method will be called early on with the locator object. So you can give your entity resolver a

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > It's indeed possible to provide that as a third-party module; one > would have to implement an EntityResolver, and applications would > have to use it. If there was a need for such a thing, somebody would > have done it years ago. I do

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-04 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue3959> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3783] dbm.sqlite proof of concept

2009-02-04 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue3783> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5172] python-dev tracker summary emails contain incorrect "median duration of open issues" information

2009-02-06 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : The weekly tracker summary emails sent to python-dev contain incorrect information. The value for the "median duration of open issues" it reports has recently wrapped around to 0 and started growing from there. Looking at older reports, it&#x

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-02-12 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : If pydoc is used to try to look up the documentation for a module which does not exist, this is reported reasonably: exar...@charm:~$ pydoc foobarbaz no Python documentation found for 'foobarbaz' exar...@charm:~$ However, if

[issue805194] Inappropriate error received using socket timeout on Windows.

2009-02-14 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue805194> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1053365] nntplib: add support for NNTP over SSL

2009-02-14 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue1053365> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1043706] External storage protocol for large email messages

2009-02-14 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue1043706> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22628] Idle: Tree lines are spaced too close together.

2022-03-18 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: This is still/again broken, probably because the "fixed" version still hard-codes all of the geometry values and these will certainly not be correct for all combinations of display dpi, font configuration, etc. Instead, `TreeNode

[issue38636] "Alt + T" and "Alt + U" Broken in IDLE on Windows

2019-10-29 Thread Stephen Paul Chappell
New submission from Stephen Paul Chappell : In the latest Python 3.8.0 installation when running IDLE on Windows, pressing "Alt + T" generates the following error: Exception in Tkinter callback Traceback (most recent call last): File "C:\Program Files\Pytho

[issue38636] IDLE regression: toggle tabs and change indent width functions

2019-10-30 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: When I start IDLE and the shell window appears, my first task is to press "Alt + T" to change from using tabs to spaces and then "Alt + U" to change from using 8 spaces to 4. This allows code pasted from the shell into an editor

[issue37903] IDLE Shell sidebar.

2019-10-31 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: The documentation for sys.ps1 and sys.ps2 states that they "are only defined if the interpreter is in interactive mode." Since the IDLE shell is meant to be interactive (and to reduce the differences between the shell and running Python

[issue7676] IDLE shell shouldn't use TABs

2019-10-31 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: -Zero ___ Python tracker <https://bugs.python.org/issue7676> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31476] Stdlib source files not installed

2019-10-31 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: -Zero ___ Python tracker <https://bugs.python.org/issue31476> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18558] Iterable glossary entry needs clarification

2019-10-31 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: -Zero ___ Python tracker <https://bugs.python.org/issue18558> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31848] "aifc" module does not always initialize "Aifc_read._ssnd_chunk"

2019-10-31 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: -Zero ___ Python tracker <https://bugs.python.org/issue31848> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21537] functools.lru_cache does not cache exceptions

2019-10-31 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: -Zero ___ Python tracker <https://bugs.python.org/issue21537> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2019-10-31 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: -Zero ___ Python tracker <https://bugs.python.org/issue21402> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18601] Example "command-line interface to difflib" has typographical error

2019-10-31 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: -Zero ___ Python tracker <https://bugs.python.org/issue18601> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24185] Add Function for Sending File to Trash (or Recycling Bin)

2019-10-31 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: -Zero ___ Python tracker <https://bugs.python.org/issue24185> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21957] ASCII Formfeed (FF) & ASCII Vertical Tab (VT) Have Hexadecimal Representation

2019-10-31 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: -Zero ___ Python tracker <https://bugs.python.org/issue21957> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6188] Error Evaluating float(x) ** float(y)

2019-10-31 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: -Zero ___ Python tracker <https://bugs.python.org/issue6188> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37903] IDLE Shell sidebar.

2019-10-31 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: Maybe my impression has been false this whole time, but the Python interactive interpreter seems to be very similar to the IDLE shell window. My question is, "Why not make them even more so?" Having IDLE react to sys.ps1 and sys.ps2 op

[issue37903] IDLE Shell sidebar.

2019-11-01 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: Zero: "not to have them added as text as is usual in a terminal window" taleinat: "removing prompts from the shell window's text widget" Zero: "print the values of ps1 and ps2 in the proposed ShellIO subclas

[issue37903] IDLE Shell sidebar.

2019-11-02 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: @rhettinger: The turtle demo is easily accessible through the menus via Help > Turtle Demo. It is nice to see there are others interested in IDLE's improvement. :-) -- ___ Python tracker

[issue38734] Python 3.7 and 3.8 in Windows Store do not start under git bash

2019-11-07 Thread Paul Anton Letnes
New submission from Paul Anton Letnes : Python 3.7 and 3.8 installed from the Windows Store do not start under git bash. Rather, they give some variation of this error message: bash: /c/Users/pa/AppData/Local/Microsoft/WindowsApps/python: Permission denied However, the permissions are rwxr

[issue31743] Proportional Width Font on Generated Python Docs PDFs

2021-06-18 Thread Paul Du Bois
Paul Du Bois added the comment: For what it's worth, I also see proportional-width fonts when looking at the docs in Android Chrome. For example, the binary tree in https://docs.python.org/3/library/heapq.html is mangled. -- nosy: +paul.d

[issue31743] Proportional Width Font on Generated Python Docs PDFs and in mobile browser

2021-06-18 Thread Paul Du Bois
Change by Paul Du Bois : -- title: Proportional Width Font on Generated Python Docs PDFs -> Proportional Width Font on Generated Python Docs PDFs and in mobile browser ___ Python tracker <https://bugs.python.org/issu

[issue35228] Index search in CHM help crashes viewer

2021-10-13 Thread Stephen Paul Chappell
Change by Stephen Paul Chappell : -- nosy: +Zero ___ Python tracker <https://bugs.python.org/issue35228> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2142] difflib.unified_diff(...) produces invalid patches

2021-01-01 Thread Paul "TBBle" Hampson
Paul "TBBle" Hampson added the comment: I just bounced off this issue and proposed a work-around for it in Black (https://github.com/psf/black/pull/1897). Since it wasn't mentioned here earlier, the `\` marker _is_ documented in the GNU Diffutils documentation, under &q

[issue36439] Inconsistencies with datetime.fromtimestamp(t) when t < 0

2020-06-10 Thread Paul Anton Letnes
Paul Anton Letnes added the comment: I've encountered an issue on anaconda python on windows 10 v1909 which I suspect is related. It looks like no dates in 1970 can be converted to datetime.timestamp(): Python 3.8.2 (default, Apr 14 2020, 19:01:40) [MSC v.1916 64 bit (AMD64)]

[issue1531415] parsetok.c emits warnings by writing to stderr

2012-03-11 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > May somebody check for this? Otherwise the bug could be considered invalid. This is not the proper workflow for bug tracking. "No one is working on this right now" is not the same as "This bug is invalid". No one worked on thi

[issue14325] Stop using the garbage collector to manage the lifetime of the getargs.c freelist

2012-03-15 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : Allocating a Python list and a bunch of Capsules for each PyArg_ParseTuple call is expensive and unnecessarily complicated. The freelist never escapes getargs.c (if it ever did, it would be a bug). The same job can be accomplished with a normal C

[issue14325] Stop using the garbage collector to manage the lifetime of the getargs.c freelist

2012-03-15 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- keywords: +patch Added file: http://bugs.python.org/file24873/getargs.patch ___ Python tracker <http://bugs.python.org/issue14

[issue14325] Stop using the garbage collector to manage the lifetime of the getargs.c freelist

2012-03-16 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue14325> ___ ___ Python-bugs-

[issue14325] Stop using the garbage collector to manage the lifetime of the getargs.c freelist

2012-03-16 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: If it's a bit faster, that'd be a nice win, but I didn't benchmark. I'm primarily interested in correctness in the PyPy case (PyPy re-uses this code), and I think CPython benefits from the slightly simplified code as well. If you do

[issue31360] argparse mutually_exclusive_group under add_argument_group fails if part of parent_processor

2017-09-05 Thread Paul Traina (discontent)
New submission from Paul Traina (discontent): Hopefully I'm not being obtuse, but I seem to be getting incorrect/unexpected help output when using mutually_exclusive_group under an add_argument_group if this layering is happening in a parent parser. Here's an example of the trigge

[issue31476] "Open Module..." Not Working in IDLE for Standard Library

2017-09-14 Thread Stephen Paul Chappell
New submission from Stephen Paul Chappell: Ever since Python 3.6.1, trying to open a Python-source library module in IDLE on Windows (10) has not worked properly since the installer has only been providing *.pyc files. Learning how to use Python has always been easy since it (1) has a great

[issue31476] Stdlib source files not installed

2017-09-15 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: The URL for the installer that was used last is: https://www.python.org/ftp/python/3.6.2/python-3.6.2-amd64-webinstall.exe -- ___ Python tracker <https://bugs.python.org/issue31

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2017-03-18 Thread Paul "TBBle" Hampson
New submission from Paul "TBBle" Hampson: As noted in https://github.com/python/cpython/tree/master/Tools/msi === When installed for all users, the following files are installed to either "%SystemRoot%\System32" or "%SystemRoot%\SysWOW64" as appropriate. For the cu

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2017-03-18 Thread Paul "TBBle" Hampson
Changes by Paul "TBBle" Hampson : -- components: +Installation type: -> behavior ___ Python tracker <http://bugs.python.org/issue29844> ___ ___ Pytho

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2017-03-18 Thread Paul "TBBle" Hampson
Paul "TBBle" Hampson added the comment: If this is just a documentation fix, then there's two places that need it: * https://github.com/python/cpython/blob/master/Tools/msi/README.txt contains the text I quoted in the original report. * Some kind of release note (https://do

[issue31848] "aifc" module does not always initialize "Aifc_read._ssnd_chunk"

2017-10-23 Thread Stephen Paul Chappell
New submission from Stephen Paul Chappell : When Aifc_read runs initfp, it conditionally sets self._ssnd_chunk and is not guaranteed to do so. At the bottom of the method, a check is made to see if the attribute has a false value; and if so, an error is supposed to be raised. If a SSND chunk

[issue20886] Disabling logging to ~/.python_history is not simple enough

2018-06-01 Thread Jesse Paul Ogle
Jesse Paul Ogle added the comment: Greetings, I came across this issue while looking into XDG Base Directory Specification. This issue is only tagged with version 3.4, but the underlying issue (not being able to change the history file / size through environment variables) appears to still

[issue20504] cgi.FieldStorage, multipart, missing Content-Length

2018-10-02 Thread Paul Goins (work)
Paul Goins (work) added the comment: I'm just going to ping on this issue. It looks like this has just slipped off the radar. I've seen the last diff and the code review, but it seems that this just needs some final follow-up on the code review comments, no? I could easily do

[issue18125] Out-of-tree build cannot regenerate Makefile.pre

2013-06-03 Thread Paul "TBBle" Hampson
New submission from Paul "TBBle" Hampson: Noticed in Python 2.7 but a quick look in the repository suggests this is also true in Python 3 releases. The Makefile rule for Makefile.pre in Makefile.pre.in is: # Build the toplevel Makefile Makefile.pre: Makefile.pre.in con

[issue18125] Out-of-tree build cannot regenerate Makefile.pre

2013-06-03 Thread Paul "TBBle" Hampson
Changes by Paul "TBBle" Hampson : -- type: -> compile error ___ Python tracker <http://bugs.python.org/issue18125> ___ ___ Python-bugs-list maili

[issue18125] Out-of-tree build cannot regenerate Makefile.pre

2013-06-03 Thread Paul "TBBle" Hampson
Paul "TBBle" Hampson added the comment: Forgot to mention, this is the only occurrence of a *.in file in Makefile.pre.in that isn't prefixed with $(srcdir)/ -- ___ Python tracker <http://bugs.pyt

[issue17134] Use Windows' certificate store for CA certs

2013-06-07 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > Sounds promising. Do you think this should be hooked into > SSLContext.set_default_verify_paths, or be exposed as a separate method? If there were an API which exposed the certificate material, then this would be more useful to libraries trying

[issue18558] Iterables not detected correctly

2013-07-25 Thread Stephen Paul Chappell
New submission from Stephen Paul Chappell: The following interactive session shows that iterables are not detected properly by the `collections.abc.Iterable` class. >>> class IsIterable: def __init__(self, data): self.data = data def __getitem__(

[issue18601] Example "command-line interface to difflib" has typographical error

2013-07-30 Thread Stephen Paul Chappell
New submission from Stephen Paul Chappell: The example at the bottom is good but has a line with a bad variable it is name. It says: with open(fromlines) as fromf, open(tofile) as tof: fromlines, tolines = list(fromf), list(tof) In the first line, fromlines does no even exist yet

[issue18558] Iterable glossary entry needs clarification

2013-08-01 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: If my program needed to know if an object is iterable, it would be tempting to define and call the following function instead of using collections.abc.Iterable: def iterable(obj): try: iter(obj) except TypeError

[issue18558] Iterable glossary entry needs clarification

2013-08-01 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: Maybe this would have been more appropriate as a question on StackOverflow: What is the proper way of asking if an object is iterable if it does not support the iterator protocol but does support the old getitem protocol? One might argue that it is

[issue18629] future division breaks timedelta division by integer

2013-08-02 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: datetime.timedelta instances are divisible by integers on Python 2.7, but not when __future__.division has been turned on: exarkun@top:~$ ~/Projects/cpython/2.7/python -c ' from datetime import timedelta print timedelta(seconds=3) / 2 ' 0:00

[issue18629] future division breaks timedelta division by integer

2013-08-02 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Hm. Maybe I am. Yet isn't true division implemented for this pair of types in Python 3? I'm not sure why it shouldn't be implemented for them in Python 2. Also that raises another question. Does a result of one and one half seconds ma

[issue11798] Test cases not garbage collected after run

2013-08-03 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue11798> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18629] future division breaks timedelta division by integer

2013-08-03 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > I think that's a very obscure interpretation of floor division for timedeltas :-) Note - I don't care about this. I just want `timedelta / int` to do the same thing in Python 2.7 with __future__.division as `timedelta / int` does in Pyth

[issue15911] Debugging import problems is hard

2012-09-10 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: Debugging problems involving the frozen importlib._bootstrap is difficult, because the source for importlib._bootstrap is not available to pdb. The bootstrap code can be stepped through, but with only function names and line numbers available, not

[issue15912] Intermittent import failure

2012-09-10 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: The attached unit test fails with an ImportError... sometimes. Here's a little blob of shell that seems to make the failure come up more quickly: while ~/Projects/cpython/3.3/python -m unittest -v test_broken_import; do rm -rf test_broken_i

[issue15945] memoryview + bytes fails

2012-09-15 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: Python 3.3.0rc2+ (default:9def2209a839, Sep 10 2012, 08:44:51) [GCC 4.6.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> memoryview(b'foo') + b'bar'

[issue15945] memoryview + bytes fails

2012-09-16 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > What is the expected outcome? memoryviews can't be resized, so this scenario isn't possible: The same as `view.tobytes() + bytes`, but without the extra copy implied by `view.tobytes()`. > Just prepend the empty bytestring if you want

[issue3982] support .format for bytes

2012-10-02 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Since Benjamin originally requested this feature, and then decided that he could accomplish his desired goal (ftplib porting, as far as I can tell) without it, I think that the "rejected" status is actually incorrect. I think that Benjamin j

[issue3982] support .format for bytes

2012-10-02 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > The price of maintaining exceeds the potential very limited benefits from the > use. The "very limited benefits" of being able to write I/O code without roughly 3 times code bloat? Perhaps for people who don't write code that

[issue3982] support .format for bytes

2012-10-02 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > The development cost and maintenance cost is surely part of the evaluation > when deciding whether to implement a feature, no? Sure, but in an open source project where almost all contributions are done by volunteers (ie, donated), what

[issue16195] Difficult or impossible to figure out how garbage collector and weak references should interact for user-defined extension types

2012-10-11 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: There appears to be very little, if any, documentation about how to handle the list at tp_weaklistoffset for types supporting being weak referenced, particularly with respect to garbage collection. Who owns the list? Who owns the objects in the list

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-04-30 Thread Stephen Paul Chappell
New submission from Stephen Paul Chappell: If a call is made to tkinter.NoDefaultRoot, then calls to tkinter.ttk._val_or_dict may fail. NoDefaultRoot ends with "del _default_root" (line 174) and removes the variable from the module's namespace. _val_or_dict can try to access th

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-04-30 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: I discovered the problem when trying to run the program listed at http://code.activestate.com/recipes/577633/ (Directory Pruner 2). -- ___ Python tracker <http://bugs.python.org/issue21

[issue21408] delegation of `!=` to the right-hand side argument is not always done

2014-05-01 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone: $ ~/Projects/cpython/3.4/python -c ' class Foo(object): def __ne__(self, other): return "yup" def __eq__(self, other): return "nope" class Bar(object): pass print(object() != Foo(), obj

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2014-05-05 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue1218234> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-05-13 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: It seems that most functions and methods do not bother checking if _default_root exists before trying to access it. However, upon seeing line 366 in ttk (if tkinter._support_default_root:), my recommendation would be to change line 319 to "if tk

[issue4999] multiprocessing.Queue does not order objects

2014-05-14 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue4999> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4928] Problem with tempfile.NamedTemporaryFile

2014-05-14 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue4928> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-05-14 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: There is discussion of removing wantobjects in issue3015. If it gets removed, a better patch might be created for future versions of tkinter. However, accessing self.tk would probably be a good replacement for anywhere tkinter._default_root can be

[issue21402] tkinter.ttk._val_or_dict assumes tkinter._default_root exists

2014-05-14 Thread Stephen Paul Chappell
Stephen Paul Chappell added the comment: >Because there are explicit tests for these private functions. Does that not mean that both the functions and their explicit tests should be changed? -- ___ Python tracker <http://bugs.python.org/issu

[issue2506] Add mechanism to disable optimizations

2014-05-16 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker <http://bugs.python.org/issue2506> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21537] functools.lru_cache does not cache exceptions

2014-05-19 Thread Stephen Paul Chappell
New submission from Stephen Paul Chappell: While examining the implementation for lru_cache, it came to my attention that the wrappers ignore the possibility of exceptions. Is this on purpose? If the cache is designed to reduce the overhead of running certain functions, it seems like

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-03 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: +exarkun ___ Python tracker <http://bugs.python.org/issue21652> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7676] IDLE shell shouldn't use TABs

2014-06-05 Thread Stephen Paul Chappell
Changes by Stephen Paul Chappell : -- nosy: +Zero versions: +Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issue7676> ___ ___ Python-bug

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2014-06-10 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Please see http://bugs.python.org/issue21652 for a regression introduced by this change. -- nosy: +exarkun ___ Python tracker <http://bugs.python.org/issue9

[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-13 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > That commit was fixing an existing problem; perhaps not your problem, but > someone's. To revert it would simply move the pain around. Doesn't the very same logic apply to the original commit? > I hope to be able to work on this f

[issue4887] environment inspection and manipulation API is buggy, inconsistent with "Python philosophy" for wrapping native APIs

2014-06-17 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: What are the chances a future Python 2.x release will include any fix developed for this issue? -- ___ Python tracker <http://bugs.python.org/issue4

<    25   26   27   28   29   30   31   32   33   >