[issue3777] PyNumber_Long fails from Float

2008-09-06 Thread Barry Alan Scott
Barry Alan Scott <[EMAIL PROTECTED]> added the comment: O.k. I know what is going on. Here is the description from abstracts.h for PyNumber_Long: PyAPI_FUNC(PyObject *) PyNumber_Long(PyObject *o); /* Returns the o converted to a long integer object on success,

[issue3777] long(4.2) now returns an int

2008-09-06 Thread Barry Alan Scott
Barry Alan Scott <[EMAIL PROTECTED]> added the comment: My concern and yours is that this is not backwards compatible. I would hate to see "random" failures of extensions written using PyCXX because of this. I'm tempted to says that I'll keep PyCXX 5.x as is for Py

[issue3926] Idle doesn't obey the new improved warnings arguements

2008-09-21 Thread Scott David Daniels
New submission from Scott David Daniels <[EMAIL PROTECTED]>: Idle doesn't accept the new improved warnings arguments, thus escalating warnings to failures. This is, I believe, the core reason that Idle was failing on windows (warnings about deprecated set_daemon call escalated t

[issue3926] Idle doesn't obey the new improved warnings arguements

2008-09-23 Thread Scott David Daniels
Scott David Daniels <[EMAIL PROTECTED]> added the comment: I found that patch, but it confuses showwarning and formatwarning parameter changes. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3926] Idle doesn't obey the new improved warnings arguements

2008-09-27 Thread Scott David Daniels
Scott David Daniels <[EMAIL PROTECTED]> added the comment: OK, Issues: 1) warnings.py I/O errors in formatwarning will be masked and misinterpreted as failures to write on stderr, and no output will be attempted. 2) warnings.py A line with of whitespace will be shown, rathe

[issue3926] Idle doesn't obey the new improved warnings arguements

2008-09-27 Thread Scott David Daniels
Scott David Daniels <[EMAIL PROTECTED]> added the comment: Here is a test for the fixes provided. Added file: http://bugs.python.org/file11637/test_idle_warnings.py ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3926] Idle doesn't obey the new improved warnings arguements

2008-11-23 Thread Scott David Daniels
Scott David Daniels <[EMAIL PROTECTED]> added the comment: Attached parts.zip -- a zip of updates for Python 2.6 and Python 3.0 against the current source [zip has two For Python 2.6: py26/diff_py26.txt -- differ against python26-maint tree py26/PyShell.py -- Replacement file for .

[issue4937] Mac DMG install missing version.plist required by bundlebuilder.py

2009-01-13 Thread Barry Alan Scott
New submission from Barry Alan Scott : I installed mac python 2.6.1 on Mac OS X 10.5.6 I then ran my pysvn workbench kitting script that uses bundlebuilder.py. It fails because version.plist is not installed. Traceback (most recent call last): File "make_wb_bundle.py", l

[issue40260] modulefinder traceback regression starting on Windows

2020-04-12 Thread Barry Alan Scott
New submission from Barry Alan Scott : modulefinder.py does not open source files in "rb" which prevents compile() from applying the encoding rules. This first showed up for me on Windows with Python 3.8. Here is my test case and the results on Windows with 3.8. import modulefi

[issue40260] modulefinder traceback regression starting on Windows

2020-04-14 Thread Barry Alan Scott
Barry Alan Scott added the comment: io.open_code() used in the patch. -- components: -Windows ___ Python tracker <https://bugs.python.org/issue40260> ___ ___

[issue40260] modulefinder traceback regression starting on Windows

2020-04-15 Thread Barry Alan Scott
Barry Alan Scott added the comment: I need to see the code of pymindeps to understand what you are doing and how to fix this. Can you post a URL to the source please? Are you aware that load_module() changed in other ways that are required to fix the bug? You may have to change yout

[issue40260] modulefinder traceback regression starting on Windows

2020-04-15 Thread Barry Alan Scott
Barry Alan Scott added the comment: Regarding test case. I will need to know what pymindeps is doing to be able to design a suitable test case. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40260] modulefinder traceback regression starting on Windows

2020-04-16 Thread Barry Alan Scott
Change by Barry Alan Scott : -- pull_requests: +18895 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19549 ___ Python tracker <https://bugs.python.org/issu

[issue40260] modulefinder traceback regression starting on Windows

2020-04-16 Thread Barry Alan Scott
Barry Alan Scott added the comment: I have the fix coded and tested. I run out of git knowledge to update the PR branch so that I can push the fix. I'll work on it more later in the day. -- ___ Python tracker <https://bugs.python.org/is

[issue40260] modulefinder traceback regression starting on Windows

2020-04-19 Thread Barry Alan Scott
Change by Barry Alan Scott : -- pull_requests: +18931 pull_request: https://github.com/python/cpython/pull/19595 ___ Python tracker <https://bugs.python.org/issue40

[issue40260] modulefinder traceback regression starting on Windows

2020-04-19 Thread Barry Alan Scott
Barry Alan Scott added the comment: I have pushed the fix onto https://github.com/python/cpython/pull/19595 with an API test case and the changes to keep the debain subclassing working. I'm new the the work flow. Let me know if I need to change any

[issue40260] modulefinder traceback regression starting on Windows

2020-04-22 Thread Barry Alan Scott
Barry Alan Scott added the comment: Anthony, Now that everything is opened using open_code that returns bytes its not clear to me why this breaks for you. Further the data must be bytes for the codings to be figured out. Removing the b'\n' may be reasonable, but not for the reaso

[issue43155] PyCMethod_New not defined in python3.lib

2021-02-07 Thread Barry Alan Scott
New submission from Barry Alan Scott : When using the limited API PyCMethod_New is not defined in python3.lib. This leads to a link error. This error is in 3.9 and 3.10a5 Discovered when I improved the PyCXX test suite. Example output: Link obj\simple.pyd cl /nologo /W4 /LD /Zi /MT

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-07 Thread Barry Alan Scott
New submission from Barry Alan Scott : New users of Python on Windows frequently confuse the Python installation program with Python itself. They also can end up with the wrong 32 or 64 bit version. I suggest that the installation program name is changed to include "setup" in its

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-07 Thread Barry Alan Scott
Barry Alan Scott added the comment: I happy with your names. I think they are better then my version. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43167] macOS python install need mechanism to prevent editing shell profile files

2021-02-08 Thread Barry Alan Scott
New submission from Barry Alan Scott : By default the python macOS installer will edit .bash_profile and .zsh_profile to add Python to the path. For many users this is a problem that requires the added lines to be removed after each install. I suggest that there is a mechanism that the user

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Barry Alan Scott
New submission from Barry Alan Scott : The popular homebrew system installs its binaries into /usr/local/bin. The macOS python install also defaults to /usr/local/bin where it puts symlinks to Python like: % ls -l /usr/local/bin/python3.10 lrwxr-xr-x 1 root 73 8 Feb 19:45:50 2021 /usr

[issue43167] macOS python install need mechanism to prevent editing shell profile files

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: It was not obvious that I could do that with Customise. Indeed I installed 3.10a5 just so that I could remind myself of what the installer did. It would help is the Installation type page told the user why they might want to use the Customise for

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: >From "UNIX command-line tools" its not clear to me that that prevents symlinks in /usr/local/bin. Maybe word it as "Add python to /usr/local/bin". Is this documented anywhere? I just looked at the download page https://www.python.

[issue43167] Add a note to the macOS installer welcome window about customize options

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: The readme page is a good 2nd best is PKG install has not option to control the text on the INstallation type page. My guess is that the info would need be in visible without scrolling for people to notice it. (UX is hard

[issue43168] macOS python install shares /usr/local with homebrew and can conflict

2021-02-08 Thread Barry Alan Scott
Barry Alan Scott added the comment: I was wondering what the bottom text box was for. The usual UX for check boxes is to toggle when the text of the control is clicked. Because of that I avoid clicking on check boxes that I do not know if I want to change. Hence I did not get to see the

[issue43156] Python windows installer has a confusing name - add setup to its name

2021-02-09 Thread Barry Alan Scott
Barry Alan Scott added the comment: Understood that changing the status quo may have problems. Maybe you do an HTTP redirect from the old name to the new name? Or have the installed available under both names but only advertise the new name

[issue43155] PyCMethod_New not defined in python3.lib

2021-02-10 Thread Barry Alan Scott
Barry Alan Scott added the comment: Is there a test suite that checks that the limited API functions can all be linked against? -- ___ Python tracker <https://bugs.python.org/issue43

[issue43155] PyCMethod_New not defined in python3.lib

2021-02-13 Thread Barry Alan Scott
Barry Alan Scott added the comment: Thanks Petr, I'll watch for the PEP. FYI: I work on the assumption that if I use Py_LIMITED_API and the header files provide an API guarded by an #if then its "offical". -- ___ Python

[issue1178136] cgitb.py support for frozen images

2020-11-16 Thread Barry Alan Scott
Barry Alan Scott added the comment: Ok. I'll add this to my todo list. -- status: pending -> open ___ Python tracker <https://bugs.python.org/i

[issue14188] Sharing site-packages between Apply and python.org builds breaks extensions

2012-03-03 Thread Barry Alan Scott
New submission from Barry Alan Scott : I'm testing on Mac OS X 10.7.3 http://bugs.python.org/issue4865 added /Library/Python/2.7/site-packages to the path for python.org built 2.7. This will work for .py files but .so cannot be shared. pysvn will SEGV python.org 2.7 when it is built ag

[issue14188] Sharing site-packages between Apply and python.org builds breaks extensions

2012-03-03 Thread Barry Alan Scott
Barry Alan Scott added the comment: Pysvn binary kits can be downloaded from http://pysvn.tigris.org/files/documents/1233/49180/py27_python_org_pysvn_svn1617-1.7.6-1457-intel.dmg and http://pysvn.tigris.org/files/documents/1233/49178/py27_apple_com_pysvn_svn1617-1.7.6-1457-intel.dmg

[issue14188] Sharing site-packages between Apple and python.org builds breaks extensions

2012-03-04 Thread Barry Alan Scott
Barry Alan Scott added the comment: I have wxPython installed. Uninstalling it changes the order of sys.path to this: ['', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.

[issue18863] Encoding a unicode with unicode() and ignoring errors

2013-08-27 Thread G. Scott Johnston
New submission from G. Scott Johnston: I've come up with the following series of minimal examples to demonstrate my bug. >>> unicode("") u'' >>> unicode("", errors="ignore") u'' >>> unicode("abcü")

[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

2012-06-24 Thread Barry Alan Scott
Barry Alan Scott added the comment: I'm happy to review patches or create them for you. I see a related set of errors on Mac OS X that are down to issues in bytes_methods.py that mirror the pyport.h issues. In C++ isspace and friends are functions not macros. You cannot go around def

[issue16821] bundlebuilder broken in 2.7

2012-12-30 Thread Barry Alan Scott
New submission from Barry Alan Scott: bundlebuild in pytthon 2.7 fails to create usable applications. After examining the code there are a number of coding errors: 1. optimize will puts the -O in the wrong place in the argv 2. Modules.zip is never added to the path The bunderbuilder in 2.6

[issue16821] bundlebuilder broken in 2.7

2012-12-30 Thread Barry Alan Scott
Barry Alan Scott added the comment: I'm using the pysvn workbench sources to find the problem. Test cases for Mac Apps are not that simple. You need a GUI framework for starters. But I'm happy to test any candidate fix using workbench. As I said a code inspection of the changes sinc

[issue16821] bundlebuilder broken in 2.7

2012-12-31 Thread Barry Alan Scott
Barry Alan Scott added the comment: Why not use IDLE? Workbench is a lot of code and dependencies. I expect that it works because idle.app was created using the --no-zipimport option that is new in 2.7. However with zip import the code is badly broken. Build IDLE.app with zip import and you

[issue6422] timeit called from within Python should allow autoranging

2009-07-05 Thread Scott David Daniels
New submission from Scott David Daniels : timeit.main has a _very_ handy autoranging facility to pick an appropriate number of repetitions when not specified. The autoranging code should be lifted to a method on Timer instances (so non-main code can use it). If number is specified as 0 or None

[issue6422] timeit called from within Python should allow autoranging

2009-07-07 Thread Scott David Daniels
Scott David Daniels added the comment: I've got the code "working" on trunk2 for my tests. Should I port to py3K before checking in, and give diffs from there, or what? -- ___ Python tracker <http://bugs.py

[issue6422] timeit called from within Python should allow autoranging

2009-07-08 Thread Scott David Daniels
Changes by Scott David Daniels : -- keywords: +patch Added file: http://bugs.python.org/file14472/timeit.patch ___ Python tracker <http://bugs.python.org/issue6

[issue6952] deprecated conversion from string constant to char *

2009-09-20 Thread Barry Alan Scott
New submission from Barry Alan Scott : Many Python API functions are causing GCC to rightly complain that const char * strings are being passed to python functions that take char * but do not need to modify the args. g++ reports example.cxx:633: warning: deprecated conversion from string

[issue6952] deprecated conversion from string constant to char *

2009-09-21 Thread Barry Alan Scott
Barry Alan Scott added the comment: I'd guess that this change can first be made against 2.7 and 3.2 so that API's do not change. Where do I find the source code to generate the patch against for 2.7 and 3.2? -- ___ Python trac

[issue6952] deprecated conversion from string constant to char *

2009-10-17 Thread Barry Alan Scott
Barry Alan Scott added the comment: Here is my 1st patch to allow const char * and const Py_UNICODE * It is agsinst http://svn.python.org/projects/python/trunk. What I have attempted to do is stop the public API of python needing char * or Py_UNICODE * where the API clearly does not need to

[issue6952] deprecated conversion from string constant to char *

2009-10-18 Thread Barry Alan Scott
Barry Alan Scott added the comment: I was trying to avoid changing the const ness of output parameters. Given the advice not to go mad on putting const everywhere. 1) I can comment the casts to maintain this goal. 2) Or change the output paramter const ness. Given your feedback I'm gue

[issue6952] deprecated conversion from string constant to char *

2009-10-22 Thread Barry Alan Scott
Barry Alan Scott added the comment: Updated patch with comment explaining cast. -- Added file: http://bugs.python.org/file15184/const_api_r75619.patch ___ Python tracker <http://bugs.python.org/issue6

[issue5903] strftime fails in non UTF-8 locale

2009-05-02 Thread Barry Alan Scott
New submission from Barry Alan Scott : On Mac OS X 10.5 $ LC_ALL=ru_RU.koi8-r python3.0 -c 'import time;print( time.strftime("%A"))' Traceback (most recent call last): File "", line 1, in UnicodeDecodeError: 'utf8' codec can't decode bytes in posi

[issue5904] strftime docs do not explain locale affect on result string

2009-05-02 Thread Barry Alan Scott
New submission from Barry Alan Scott : The result of time.strftime seems to be in the locale encoding but this is not pointed out in the documentation. Ideally an example like this would be in the docs to show how to deal with strftime output: import locale import time locale_encoded_time

[issue6285] Silent abort on XP help document display

2009-06-14 Thread Scott David Daniels
New submission from Scott David Daniels : When running Idle on Windows XP, Python 3.1rc2, a failure to find an entry in the help documents causes Idle to exit (with no visible indication of why). The reason is in a failure of the call to os.startfile, and apparenly the exception causes Idle to

[issue6285] Silent abort on XP help document display

2009-06-14 Thread Scott David Daniels
Scott David Daniels added the comment: I uninstalled 3.1rc1, installed 3.1rc2, was exercising, and went to look up something in the docs, and Idle disappeared. I tried again, same result. So I opened a command window, and ran Idle as: python -m idlelib.idle Tried it again and got an

[issue6285] Silent abort on XP help document display

2009-06-14 Thread Scott David Daniels
Scott David Daniels added the comment: Help / Python31 Instead of docs showing up, all Idle windows closed. To demonstrate for yourself, edit ~/.idlerc/config-main.cfg add a line at the end (where additional docs show up), like: 4 = Python31c1;C:/Python31/Doc/python31c1.chm (where the 4 is

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2015-03-28 Thread Barry Alan Scott
New submission from Barry Alan Scott: I'm seeing a random traceback when starting a new thread on Mac OS X 10.10.2 with python 3.4.3 final. Exception in thread Thread-1: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/th

[issue23797] Mac OS X locale setup in thread happens sometime after run() is called

2015-03-29 Thread Barry Alan Scott
Barry Alan Scott added the comment: I should point out using Python2.7 with wxPython I do not see this issue. This issue was exposed during my efforts to port pysvn from py2.7+wxPython to py3.4+wxpython-phoenix. I do setup locale on the main thread very early before starting the background

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2015-03-29 Thread Barry Alan Scott
Barry Alan Scott added the comment: Mac OS X use the __CF_USER_TEXT_ENCODING env var to setup the locale in for native libraries. I found that for GUI python code I needed to convert the value in __CF_USER_TEXT_ENCODING into a suitable call to setlocale(). The code I use is attached to

<    1   2   3