[issue18257] Two copies of python-config

2013-07-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sorry about the confusion, "-f" isn't supported either that's why I noticed there is a problem. $ readlink -f . readlink: illegal option -- f usage: readlink [-n] [file ...] Again, why is does does have to be a shell script anyway? I really don't like the p

[issue18257] Two copies of python-config

2013-07-07 Thread Matthias Klose
Matthias Klose added the comment: the proposed patch won't work once the python implementation is removed. Is -f supported on MacOSX? There seems to be a typo on your side trying -h, which isn't supported on Linux either. -- ___ Python tracker

[issue18106] There are unused variables in Lib/test/test_collections.py

2013-07-07 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> enhancement ___ Python tracker ___

[issue18106] There are unused variables in Lib/test/test_collections.py

2013-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset a5010de76eda by Ezio Melotti in branch 'default': #18106: refactor tests to use subtests and proper assert methods. Patch by Vajrasky Kok. http://hg.python.org/cpython/rev/a5010de76eda -- nosy: +python-dev

[issue18257] Two copies of python-config

2013-07-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: This should do the trick, the shell script version is replaced by the python version when building on OSX. And yes, the use of readlink is guarded but that doesn't help because you then use a command-line flag that isn't supported on OSX: $ readlink -h . rea

[issue18257] Two copies of python-config

2013-07-07 Thread Matthias Klose
Matthias Klose added the comment: > Furthermore the entire readlink command is not present in HP-UX The use of readlink is guarded, the use of readlink -f apparently not. -- ___ Python tracker

[issue18257] Two copies of python-config

2013-07-07 Thread Matthias Klose
Matthias Klose added the comment: > Why use a shell script in the first place? you can't run python for a cross build, unless you "tweak" the interpreter. you can do that with a shell script only. As suggested in the original issue/patch, I did propose to remove the python implementation, so

[issue16223] untokenize returns a string if no encoding token is recognized

2013-07-07 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: Attached corrected ('^' and '$' for regexp in tests) patch. -- Added file: http://bugs.python.org/file30841/bug16223_2.patch ___ Python tracker __

[issue18257] Two copies of python-config

2013-07-07 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue5262] PythonLauncher considered harmfull

2013-07-07 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- priority: normal -> low versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list m

[issue5262] PythonLauncher considered harmfull

2013-07-07 Thread Ronald Oussoren
Changes by Ronald Oussoren : Removed file: http://bugs.python.org/file18266/smime.p7s ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue17198] dbm.whichdb references unitialized 'ndbm' variable

2013-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 65fce1dad331 by Ezio Melotti in branch '3.3': #17198: Fix a NameError in the dbm module. Patch by Valentina Mukhamedzhanova. http://hg.python.org/cpython/rev/65fce1dad331 New changeset e91e9b9ba180 by Ezio Melotti in branch 'default': #17198: merge

[issue18342] Use the repr of a module name for ModuleNotFoundError in ceval.c

2013-07-07 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: Attached patch with renamed test methods (as per Brett's review). -- Added file: http://bugs.python.org/file30840/bug18342_4.patch ___ Python tracker

[issue17198] dbm.whichdb references unitialized 'ndbm' variable

2013-07-07 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: -Python 3.2 ___ Python tracker

[issue18386] Better random number generator

2013-07-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If we were to add another generator, I prefer that we add one with > some completely different characteristics (such as being > cryptographically strong). I don't want to take the default generator > and periodically switch it out with the "flavor of the mont

[issue18257] Two copies of python-config

2013-07-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: Why use a shell script in the first place? The shell script doesn't do everything the python script does (an example of this is that on OSX distutils and sysconfig can tweak the CFLAGS and LDFLAGS as needed based on the curent OSX version and the installed co

[issue17198] dbm.whichdb references unitialized 'ndbm' variable

2013-07-07 Thread Valentina Mukhamedzhanova
Valentina Mukhamedzhanova added the comment: I added a testcase to demonstrate the bug and an import of ndbm to dbm.__init__.py to fix the bug. -- nosy: +umi Added file: http://bugs.python.org/file30839/patch_17198 ___ Python tracker

[issue18013] cgi.FieldStorage does not parse W3C sample

2013-07-07 Thread Florent Xicluna
Florent Xicluna added the comment: Fix committed, with tests. -- resolution: -> fixed status: open -> closed versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___

[issue18013] cgi.FieldStorage does not parse W3C sample

2013-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 406ce103c170 by Florent Xicluna in branch '3.3': Issue #18013: Fix cgi.FieldStorage to parse the W3C sample form. http://hg.python.org/cpython/rev/406ce103c170 New changeset 2ab2a2bfea49 by Florent Xicluna in branch 'default': Merge #18013: Fix cgi.

[issue18257] Two copies of python-config

2013-07-07 Thread Matthias Klose
Matthias Klose added the comment: Proposing to remove the shell script as the first step looks wrong. Do you know about a substitute for readlink on an "enterpricy" unix flavor like MacOSX? Using ls -l and interpreting the last argument of the output comes to mind. -- _

[issue18257] Two copies of python-config

2013-07-07 Thread Larry Hastings
Larry Hastings added the comment: How about if the shell script detected that it was running on OS X and exited with an error instructing the user to use the Python script instead? I don't agree that this is a release blocker. Most people on OS X use the prebuilt binaries. -- __

[issue16023] IDLE freezes on ^5 or ^6 (Un-)Tabify Region with OS X Cocoa Tk 8.5

2013-07-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: Interestingly enough it seems to hang while handling an import error, when I break executation and look at the stack trace I see (amongst others): #5 0x0001000b11f1 in import_all_from [inlined] () at /Users/ronald/Projects/python/rw/default/Python/ceva

[issue16223] untokenize returns a string if no encoding token is recognized

2013-07-07 Thread Tomasz Maćkowiak
Tomasz Maćkowiak added the comment: Attached is a patch for untokenize, it's tests and docs and some minor pep8 improvements. The patch should fix unicode output and some corner cases handling in untokenize. -- ___ Python tracker

[issue16223] untokenize returns a string if no encoding token is recognized

2013-07-07 Thread Tomasz Maćkowiak
Changes by Tomasz Maćkowiak : -- keywords: +patch Added file: http://bugs.python.org/file30838/bug16223.patch ___ Python tracker ___ _

[issue18394] cgi.FieldStorage triggers ResourceWarning sometimes

2013-07-07 Thread Florent Xicluna
New submission from Florent Xicluna: It happens when POSTing a file for example. When running the test suite: ./python.exe -m test test_cgi Or with the script attached: $ ./python test_fieldstorage.py test_fieldstorage.py:28: ResourceWarning: unclosed file <_io.BufferedRandom name=3> check

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2013-07-07 Thread V.E.O
V.E.O added the comment: Hi Christian, The latest runtime Microsoft provided is buggy. Tried fix the PyVerify_fd with more GetFileType verification. But a lot more problems came for isatty returns true in non-console program. The fix in Python side shall be large. Details is reported to Micros

[issue18020] html.escape 10x slower than cgi.escape

2013-07-07 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: +Python 3.4 -Python 3.2, Python 3.3 ___ Python tracker

[issue18393] Gestalt() is deprecated on OSX 10.8, remove support?

2013-07-07 Thread Ronald Oussoren
New submission from Ronald Oussoren: In OSX 10.8 the Gestalt() funtion in CoreServices is deprecated. This function is used in the _gestalt extension and exported to Python code. The only in-tree user of this (private) extension is the platform module, it uses gestalt as one of the alternative

[issue18020] html.escape 10x slower than cgi.escape

2013-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset db5f2b74e369 by Ezio Melotti in branch 'default': #18020: improve html.escape speed by an order of magnitude. Patch by Matt Bryant. http://hg.python.org/cpython/rev/db5f2b74e369 -- nosy: +python-dev ___

[issue17557] test_getgroups of test_posix can fail on OS X 10.8 if more than 16 groups

2013-07-07 Thread Mateusz Lenik
Mateusz Lenik added the comment: I signed it today. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue18257] Two copies of python-config

2013-07-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is IMHO a release blocker: the the shell-script version of python-config doesn't work on a major platform (OSX), and (older) commercial unix systems. The easiest workaround is to remove the shell script and keep using the python script. -- nosy:

[issue11571] Turtle window pops under the terminal on OSX

2013-07-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm revisiting some old issues, and while I don't mind adding workarounds to the various scripts I do not consider this to be a bug. This is unexpected behavior from the platform, and only affects running scripts from the command-line (bundling the script in

[issue15553] Segfault in test_6_daemon_threads() of test_threading, on Mac OS X Lion

2013-07-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm closing this issue because I haven't been able to reproduce and the issue doesn't contain enough information to determine the cause of the crash (the buildbot logs are gone by now, and probably wouldn't have contained the required information anyway). --

[issue14299] OS X installer build script: permissions not ensured

2013-07-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: Ned: is this still relevant? On first glance the patch has not been applied yet, but the funtionality may have been added in another form. Also, I don't agree with the removal of group write-permissions. The current permissions allow users with admin privileg

[issue16535] json encoder unable to handle decimal

2013-07-07 Thread Ralph Heinkel
Ralph Heinkel added the comment: This patch was implemented on Europython 2013 sprint. It's my first addition to Python core ever so please bear with me if it's not perfect. Decimal support is implemented both in the C and Python JSON code. There is one peculiarity to mention about the Decima

[issue18231] What's new in Python should explain what's new in UCD

2013-07-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: needs patch -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue18377] Python Launcher code cleanup

2013-07-07 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue18377] Python Launcher code cleanup

2013-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 738cba2bf849 by Ronald Oussoren in branch '3.3': Issue #18377: Code cleanup in Python Launcher http://hg.python.org/cpython/rev/738cba2bf849 New changeset d7a59e6f48df by Ronald Oussoren in branch 'default': (3.3->default) Issue #18377: Code cleanup

[issue18377] Python Launcher code cleanup

2013-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5d41ebc79738 by Ronald Oussoren in branch '2.7': Issue #18377: Code cleanup in Python Launcher http://hg.python.org/cpython/rev/5d41ebc79738 -- nosy: +python-dev ___ Python tracker

[issue18377] Python Launcher code cleanup

2013-07-07 Thread Ned Deily
Ned Deily added the comment: LGTM. I think it is best to eliminate the warnings everywhere so I'd apply it to all branches. -- ___ Python tracker ___ ___

[issue17860] subprocess docs lack info how to use output result

2013-07-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4747e1ce2b1 by Ronald Oussoren in branch '3.3': Cleanup of documentation change from #17860 http://hg.python.org/cpython/rev/f4747e1ce2b1 New changeset 83810f67d16b by Ronald Oussoren in branch 'default': (3.3->default) Cleanup of documentation cha

[issue15661] OS X installer packages should be signed for OS X 10.8 Gatekeeper feature

2013-07-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: Also worthwhile to look into: http://s.sudre.free.fr/Software/Packages/about.html This is a GUI tool for creating packages, with a command-line tool for scripting. At the very least we could use this to check if it is possible to build a flat installer that

<    1   2