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

2013-07-07 Thread Ned Deily

Ned Deily added the comment:

Thanks for the patch, Mateusz. That basic approach should work on all current 
releases (although it would be nice if Apple also fixed the problem).  I'll 
test it on the various releases.  If you haven't already, please submit a 
contributor form as described in the developer's guide 
(http://docs.python.org/devguide/patch.html#licensing).

--
stage:  - patch review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17557
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6386] importing yields unexpected results when initial script is a symbolic link

2013-07-07 Thread Senko Rasic

Senko Rasic added the comment:

Yep, signed.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6386
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 does what we want.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15661
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 change from #17860
http://hg.python.org/cpython/rev/83810f67d16b

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17860
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18377
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18377
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in Python Launcher
http://hg.python.org/cpython/rev/d7a59e6f48df

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18377
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18377] Python Launcher code cleanup

2013-07-07 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


--
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18377
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-07-07 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage: needs patch - committed/rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18231
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Decimal addition in function 
_json.c:encoder_listencode_obj() of my patch:
The addition of

else if (PyObject_IsInstance(obj, (PyObject*)PyDecimalType)) {
PyObject *encoded = encoder_encode_decimal(s, obj);
if (encoded == NULL)
return -1;
return _steal_accumulate(acc, encoded);
}

was has to be located AFTER lists and dicts are handled in the JSON encoder, 
otherwise the unittest test_highly_nested_objects_encoding() from 
test_recursion.py fails with a nasty, unrecoverable Python exception.
My guess is that this is due additional stack allocation when the stack space 
is almost used up by the deeply nested recursion code.

--
hgrepos: +202
keywords: +patch
nosy: +ralhei
Added file: http://bugs.python.org/file30836/json_decimal.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16535
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 privileges to install new packages without 
hassle, removing the group write permissions will IMHO just lead to tutorials 
that tell users to use sudo to install and that would be worse than the current 
situation.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14299
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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).

--
resolution:  - out of date
stage:  - committed/rejected
status: open - closed
type:  - crash

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15553
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 an app bundle would result in a window 
that pops up in front when the app is launched).

I'm unassigning the issue because I'm no longer interested in working on this.

--
assignee: ronaldoussoren - 

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11571
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: +larry
priority: normal - release blocker

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue17557
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 alternatives to get the OSX release; and a fallback 
at that.

A stackoverflow user has done some sleuthing and discovered that the gestalt 
function uses the same XML file to determine the OSX release as is used by the 
primary alternative used by the platform module (see 
http://stackoverflow.com/questions/11072804/mac-os-x-10-8-replacement-for-gestalt-for-testing-os-version-at-runtime).
 The gestalt alternative will therefore likely be useful at all (it is only 
used when the file it reads is not available in the first place).

The easiest solution to avoid this deprecated API is therefore to drop the  
_gestalt extension and remove its use in platform.mac_ver()

--
assignee: ronaldoussoren
components: Macintosh
keywords: easy
messages: 192526
nosy: ned.deily, ronaldoussoren
priority: normal
severity: normal
stage: test needed
status: open
title: Gestalt() is deprecated on OSX 10.8, remove support?
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18393
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18020
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18020
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Microsoft, we can only hope they make it right.

--
status: pending - open

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17797
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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('x' * 1010)   # ResourceWarning
test_fieldstorage.py:29: ResourceWarning: unclosed file _io.BufferedRandom 
name=3
  check('x' * (maxline - 1))  # ResourceWarning

--
components: Library (Lib)
files: test_fieldstorage.py
messages: 192530
nosy: flox, orsenthil, serhiy.storchaka
priority: normal
severity: normal
status: open
title: cgi.FieldStorage triggers ResourceWarning sometimes
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30837/test_fieldstorage.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18394
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue16223
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-07-07 Thread Tomasz Maćkowiak

Changes by Tomasz Maćkowiak kur...@kurazu.net:


--
keywords: +patch
Added file: http://bugs.python.org/file30838/bug16223.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16223
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/ceval.c:4614
4614PyErr_SetString(PyExc_ImportError,
(gdb) l
4609PyErr_Clear();
4610dict = _PyObject_GetAttrId(v, PyId___dict__);
4611if (dict == NULL) {
4612if (!PyErr_ExceptionMatches(PyExc_AttributeError))
4613return -1;
4614PyErr_SetString(PyExc_ImportError,
4615from-import-* object has no __dict__ and no __all__);
4616return -1;
4617}
4618all = PyMapping_Keys(dict);
(gdb) 


This is with an optimized build, the debugger isn't as useful as I'd like and 
some information seem suspect (such as a frame object with an obviously invalid 
value for f_code.

This is probably a red herring, I haven't been able to reproduce this 
particular problem with a debug build.

In the production build I got a (non-functional) popup for entering some 
information, in the debug build I don't even get that and the proces hangs in 
CFRunLoopRunSpecific (called by Tk). And that's due to a call to tkwait window 
... (aka the wait_window method from tkinter.Misc).

Debugging is slightly annoying because 'pyo' from the gdb macros works, but the 
printing a python stack trace does not.

The call is eventually traceable to calling simpledialog.askinteger in 
EditorWindow.tabify_region_event (through _asktabwidth) and is likely a bug 
where TkCocoa doesn't like callbacks into Tk from an event handler (IIRC we've 
had those before)

A quick hack to test this theorie is to redefine tabify_region_event:

def tabify_region_event(self, event):
self.after(200, lambda: self._tabify_region_event(event))

def _tabify_region_event(self, event):
# original method


This doesn't actually help, IDLE still hangs and my theory is likely wrong.

The easiest workaround is likely to give up for now and disable the ^5 and ^6 
shortcuts (as well as ^3 and ^4 as those don't crash but don't do anything 
either, while the menu entries do work).

Annoyingly other commands in the format menu work just fine (CTRL-T, CMD-], 
CMD-[)



(all of this with the tip of the default branch and a freshly installed copy of 
ActiveTcl 8.5 on OSX 10.8)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16023
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.FieldStorage to parse the W3C sample form.
http://hg.python.org/cpython/rev/2ab2a2bfea49

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18013
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18013
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue17198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 compiler, which is needed to be able to build 
extensions out of the box on all supported OSX releases) and doesn't work 
everywhere because it uses non-standard shell commands.

I'll provide a patch that ensures that the python version gets used on OSX, 
that will reduce the number of issues we get about this. 

Larry: python-config is shipped in the binary installers, and as it currently 
is doesn't work.  That's a problem because some software uses python-config to 
get the compiler options needed to use this python (for embedding, building 
extensions using a makefile, ...).  

I don't use python-config myself, but do try to keep the OSX version as closely 
as possible a normal unix install (another example of this: in a framework 
install, such as the binary installers, we ship a libpython.a at the expected 
location that is a symlink to the real *shared* library. That symlink isn't 
need for Python itself, but was added because some popular Linux software 
(can't remember which package) assumed that the library would be there).

Anyway, I'll push a patch for this when I'm home.  I'm slowly closing down my 
involvement with the EP sprints and will then head to the airport.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 month (people 
 are always coming up with more PRNGs that make various trade-offs
 between speed, size of stored state, period, etc).

Agreed with Raymond.

--
nosy: +pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18386
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 with 3.3.
http://hg.python.org/cpython/rev/e91e9b9ba180

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue17198
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18342
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5262] PythonLauncher considered harmfull

2013-07-07 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


Removed file: http://bugs.python.org/file18266/smime.p7s

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5262
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5262] PythonLauncher considered harmfull

2013-07-07 Thread Ronald Oussoren

Changes by Ronald Oussoren ronaldousso...@mac.com:


--
priority: normal - low
versions: +Python 3.4 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5262
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18257] Two copies of python-config

2013-07-07 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue16223
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 a fix for 
the shell script seems to be the better approach.  Tweaking the CFLAGS in the 
shell script should be possible too.  Maybe you could describe what exactly 
needs tweaking, as I cannot find this in the python implementation either.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 .
readlink: illegal option -- h
usage: readlink [-n] [file ...]

--
Added file: http://bugs.python.org/file30842/issue-18257.txt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18106
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18106
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 propect of having to reimplement the logic in 
_osx_support in shell code...  I've written loads of large, portable shell 
scripts in the past (when portable meant supporting a dozen or so different 
unix flavors), and that's not really an experience worth repeating :-/

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18257] Two copies of python-config

2013-07-07 Thread Matthias Klose

Matthias Klose added the comment:

 Again, why is does does have to be a shell script anyway? 

please see above. I explained it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-07 Thread Ron Adam

Changes by Ron Adam ron3...@gmail.com:


Removed file: http://bugs.python.org/file30831/pdoc_symbols.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18387
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18387] Add 'symbols' link to pydoc's html menu bar.

2013-07-07 Thread Ron Adam

Ron Adam added the comment:

New slightly improved patch.  Combined the topic index's, topics, keywords, and 
the new symbols case, into a single html_topicsindex(title) function.

--
Added file: http://bugs.python.org/file30843/pdoc_symbols.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18387
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18257] Two copies of python-config

2013-07-07 Thread Matthias Klose

Matthias Klose added the comment:

and see issue16235 (as mentioned in NEWS) for the complete discussion.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16547] IDLE raises an exception in tkinter after fresh file's text has been rendered

2013-07-07 Thread Andrea Griffini

Andrea Griffini added the comment:

The error cannot be reproduced on 2.7, 3.3 or 3.4 because the problem has been 
fixed with 1e5e497ee33b (issue 17614)

--
nosy: +ag6502

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16547
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18156] Add an 'attr' attribute to AttributeError

2013-07-07 Thread Dražen Lučanin

Dražen Lučanin added the comment:

OK, thanks for the feedback. I signed the CLA.

I'll then wait with the remaining work, until a final decision has been made. 
We have a rough idea of how it could be implemented if it comes to this - 
adding a wrapper function in Python/errors.c:

PyErr_SetAttributeError(PyObject *attr, const char *format, ...)

that would replace all the PyErr_SetObject, PyErr_SetString and PyErr_Format 
calls (in around 50 files), create the kwargs object, format the message (if 
provided) and call PyErr_SetObject or PyErr_SetFormat.

I put the last patch as a commit in the attr bookmark on BitBucket (took me 
quite some time to figure out that's the alternative to git branches), so that 
subsequent changes go more easily.

--
hgrepos: +203

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18156
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12606] Mutable Sequence Type works different for lists and bytearrays in slice[i:j:k]

2013-07-07 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti
versions: +Python 3.4 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12606
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9177] ssl.read/write on closed socket raises AttributeError

2013-07-07 Thread Senko Rasic

Senko Rasic added the comment:

Here's a patch that adds checks and ValueError raises to SSLSocket.read and 
SSLSocket.write.

My first attempt was to add the check to _checkClosed to mirror the 
IOBase._checkClosed, but in SSLSocket its semantics are different (the idea is 
for the subclass to add custom checks if needed), and it's called from a lot of 
places that do gracefully handle closed sockets.

So I opted to add it manually to only the read and write methods (which allowed 
for more specific error messages).

--
keywords: +patch
nosy: +senko
Added file: 
http://bugs.python.org/file30844/ssl-socket-readwrite-after-close.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9177
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18395] Make _Py_char2wchar() and _Py_wchar2char() public

2013-07-07 Thread STINNER Victor

New submission from STINNER Victor:

The Python C API has two very useful functions: _Py_char2wchar() and 
_Py_wchar2char(). They must be used to handle correctly undecodable byte 
sequences. _Py_char2wchar() and _Py_wchar2char() use the surrogateescape error 
handler (PEP 383). _Py_char2wchar() forces also the ASCII encoding on FreeBSD 
and Solaris when the LC_CTYPE locale is C.

Py_Main() expects an array of wide character strings (wchar_t*) for the command 
line argument, whereas main() gets an array or byte strings (char*). 
_Py_char2wchar() must be used to be able to call Py_Main().

I propose the following names:

wchar_t* Py_DecodeLocale(const char* arg, size_t *size);
char* Py_EncodeLocale(const wchar_t *text, size_t *error_pos);

See Python/fileutils.c for more information about these functions.


Python 3.3 has already higher level functions (calling _Py_char2_wchar() and 
_Py_wchar2char()):

PyObject* PyUnicode_DecodeLocale(const char *str, const char *errors);
PyObject* PyUnicode_EncodeLocale(PyObject *unicode, const char *errors);

But these functions cannot be used before Python is initialized.

--
messages: 192557
nosy: haypo
priority: normal
severity: normal
status: open
title: Make _Py_char2wchar() and _Py_wchar2char() public
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18395
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18395] Make _Py_char2wchar() and _Py_wchar2char() public

2013-07-07 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18395
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18394] cgi.FieldStorage triggers ResourceWarning sometimes

2013-07-07 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18394
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17372] provide pretty printer for xml.etree.ElementTree

2013-07-07 Thread Alex Henderson

Alex Henderson added the comment:

I have attached a proposed patch.

This makes some design decisions which I would like someone to review:
 a) To incorporate pretty-printing into the main write() method rather than 
adding a separate toprettyxml() method. Disadvantages: greater complexity of 
_serialize_xml(). Advantages: Reduced duplication of code, easy to add other 
pretty-printing (eg HTML) in the same way.
 b) Existing whitespace on the ends of existing text is mutated. Disadvantages: 
existing whitespace content may get changed. Advantages: Greater readability 
(which is the whole point), idempotence of pretty-printing.
 c) Not to add a trailing newline. I am undecided as to whether this is a bad 
idea or a good one, but am documenting it to ensure it gets visibility.

Of these, I think b) is the only potentially controversial one, and notably its 
behaviour differs from minidom's toprettyxml. I think it's the right thing to 
do though; and for the cases where whitespace is important, perhaps we can 
respect the xml:space attribute when pretty-printing?
http://www.w3.org/TR/xml/#sec-white-space

If these design choices are deemed suitable I'm happy to update the patch to 
support pretty-printing HTML also.

--
keywords: +patch
nosy: +alex.henderson
Added file: http://bugs.python.org/file30845/issue17372.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17372
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18203] Replace direct calls to malloc() with PyMem_Malloc() or PyMem_RawMalloc()

2013-07-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 213d6d7f5979 by Victor Stinner in branch 'default':
Issue #18203: Fix Py_Finalize(): destroy the GIL after the last call to
http://hg.python.org/cpython/rev/213d6d7f5979

New changeset 18bb92b0c458 by Victor Stinner in branch 'default':
Issue #18203: Replace malloc() with PyMem_RawMalloc() at Python initialization
http://hg.python.org/cpython/rev/18bb92b0c458

New changeset 41ef797e6639 by Victor Stinner in branch 'default':
Issue #18203: Replace malloc() with PyMem_Malloc() in Python modules
http://hg.python.org/cpython/rev/41ef797e6639

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18203
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18257] Two copies of python-config

2013-07-07 Thread Ronald Oussoren

Ronald Oussoren added the comment:

Matthias: sorry, I completely missed the message where you explained why the 
script is now a shell script. 

The customization is performed by _osx_xsupport.customize_config_vars.

What this is used for:

* We ship binaries build with a specific compiler configuration
  (IIRC Xcode 3 on OSX 10.5 for the 32-bit installers)

* That configuration does not work on all supported platforms:

  - OSX 10.3 (which is more less supported on a we'll try to fix
if you scream basis) does not support -arch flags or
-isysroot at all.
 
  - On OSX 10.4 you must use an SDK to build fat binaries (such as 
for the 32-bit binary installers).

  - Xcode 4, which must be used on more recent systems (at least 10.7
and 10.7, possibly 10.6 as well), is different. A particular worry
is that the gcc command for Xcode 4 is a gcc frontend for the 
LLVM system and that miscompiles parts of Python 3.3. Therefore we
use clang instead of gcc when detecting that compiler. In future
versions of Xcode there will likely not be a gcc compiler at all.

  - We cannot use the same SDK on all platforms, because Xcode ships
with a limited number of SDK (basicly just the SDK for the current
and previous releases). We therefore automaticly select the most
appropriate SDK at runtime.

(Different SDKs isn't as problematic as it sounds, you can build
with the OSX 10.8 SDK and deploy to OSX 10.4; except for PPC you
must use Xcode 3 for PPC support because Xcode 4 does not contain
a compiler that does that).

  - OSX 10.9 (currently in beta) also contains changes that affect 
compiler support. I won't comment on those changes right now because
I haven't fully investigated them yet, and because 10.9 is 
in a closed SDK.

I may have missed some details because I haven't looked at the code while
writing this, but this should at least explain why I was upset with a change to 
a shell script.  

The customization can be written as shell scripts, but it is more code to 
maintain in an inelegant scripting system.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18257
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17840] base64_codec uses assert for runtime validity checks

2013-07-07 Thread Alex Henderson

Alex Henderson added the comment:

Having discussed this with Ezio, I think the better option might be to raise 
ValueError instead - if someone is expecting to be able to silently recover 
from errors they won't be able to, and should find out about this sooner rather 
than later.
I'll upload an updated patch shortly.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17840
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17372] provide pretty printer for xml.etree.ElementTree

2013-07-07 Thread Alex Henderson

Alex Henderson added the comment:

One other design decision - currently it doesn't deal with the indentation of 
comments or processing instructions: it leaves them unindented. Should they be 
indented the same as other tags?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17372
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18203] Replace direct calls to malloc() with PyMem_Malloc() or PyMem_RawMalloc()

2013-07-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fc01f9497da7 by Victor Stinner in branch 'default':
Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as 
_Py_char2wchar()
http://hg.python.org/cpython/rev/fc01f9497da7

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18203
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue979407] urllib2 digest auth totally broken

2013-07-07 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue979407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue979407] urllib2 digest auth totally broken

2013-07-07 Thread Christian Heimes

Christian Heimes added the comment:

The bug has been fixed a while ago. Python 2.7 as well as Python 3.x have tests 
to verify digest auth.

Farewell Aaron...

--
nosy: +christian.heimes
resolution:  - fixed
stage: test needed - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue979407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18396] test_signal.test_issue9324() fails on buildbot AMD64 Windows7 SP1 3.x

2013-07-07 Thread STINNER Victor

New submission from STINNER Victor:

ERROR: test_issue9324 (test.test_signal.WindowsSignalTests)
--
Traceback (most recent call last):
  File C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_signal.py, 
line 213, in test_issue9324
signal.signal(sig, signal.signal(sig, handler))
TypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a callable 
object

Related issue: #9324 (closed 3 years ago).

--
components: Windows
messages: 192566
nosy: haypo
priority: normal
severity: normal
status: open
title: test_signal.test_issue9324() fails on buildbot AMD64 Windows7 SP1 3.x
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18396
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5262] PythonLauncher considered harmfull

2013-07-07 Thread Ronald Oussoren

Ronald Oussoren added the comment:

I thinking about closing this issue, but need to do some more research before 
doing so. In particular, I need to check the behavior of double clicking on 
python files on Windows and the main Linux desktops. IIRC double clicking a .py 
file on Windows will execute that file, it might be useful to stay consistent 
with that and not disallow making Python Launcher the default action.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5262
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7686] redundant open modes 'rbb', 'wbb', 'abb' no longer work on Windows

2013-07-07 Thread Christian Heimes

Christian Heimes added the comment:

For Python 2.7 we can no longer do anything about it. Any chance might break 
3rd party software. Python 3.x and Python 2.7's io module don't allow redundant 
information.

I suggest that you follow Ezio's advice and check for redundancy in your 
application.

--
nosy: +christian.heimes
resolution:  - wont fix
stage: test needed - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7686
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8786] Add support for IEEE 754 contexts to decimal module.

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
nosy: +christian.heimes

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8786
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2281] Enhanced cPython profiler with high-resolution timer

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
versions: +Python 3.4 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2281
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2281] Enhanced cPython profiler with high-resolution timer

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
versions: +Python 3.4 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2281
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18227] Use Python memory allocators in external libraries like zlib or OpenSSL

2013-07-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a876d9d2e4fc by Victor Stinner in branch 'default':
Issue #18227: Use PyMem_RawAlloc() in bz2, lzma and zlib modules
http://hg.python.org/cpython/rev/a876d9d2e4fc

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18227
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2281] Enhanced cPython profiler with high-resolution timer

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
versions: +Python 3.4 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2281
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2281] Enhanced cPython profiler with high-resolution timer

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
versions: +Python 3.4 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2281
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17234] python-2.7.3-r3: crash in visit_decref()

2013-07-07 Thread Christian Heimes

Christian Heimes added the comment:

Are you using any 3rd party components with C extension modules? That kind of 
error is often caused by an extension with erroneous reference counting.

--
nosy: +christian.heimes
status: open - languishing

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17234
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17873] _ctypes/libffi missing bits for aarch64 support

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
nosy: +christian.heimes, ronaldoussoren
stage:  - patch review
versions: +Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17873
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9119] Python download page needs to mention crypto code in Windows installer

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
nosy: +christian.heimes
versions: +Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9119
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18227] Use Python memory allocators in external libraries like zlib or OpenSSL

2013-07-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 12f26c356611 by Victor Stinner in branch 'default':
Issue #18227: Free function of bz2, lzma and zlib modules has no return value 
(void)
http://hg.python.org/cpython/rev/12f26c356611

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18227
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18203] Replace direct calls to malloc() with PyMem_Malloc() or PyMem_RawMalloc()

2013-07-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 638d43665356 by Victor Stinner in branch 'default':
Issue #18203: Replace malloc() with PyMem_Malloc() in _ssl for the password
http://hg.python.org/cpython/rev/638d43665356

New changeset 9af1905f20af by Victor Stinner in branch 'default':
Issue #18203: Replace malloc() with PyMem_RawMalloc() to allocate thread locks
http://hg.python.org/cpython/rev/9af1905f20af

New changeset fb7d346b45fa by Victor Stinner in branch 'default':
Issue #18203: Replace malloc() with PyMem_Malloc() to allocate arena objects
http://hg.python.org/cpython/rev/fb7d346b45fa

New changeset 10db0c67fc72 by Victor Stinner in branch 'default':
Issue #18203:  Replace malloc() with PyMem_Malloc() in 
_PySequence_BytesToCharpArray()
http://hg.python.org/cpython/rev/10db0c67fc72

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18203
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3329] API for setting the memory allocator used by Python

2013-07-07 Thread STINNER Victor

STINNER Victor added the comment:

Buildbots are happy, changeset 51ed51d10e60 fixed the memory leak on Windows 
XP. Let's close this issue, 5 years after its creation!

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3329
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17372] provide pretty printer for xml.etree.ElementTree

2013-07-07 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
nosy: +eli.bendersky

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17372
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18227] Use Python memory allocators in external libraries like zlib or OpenSSL

2013-07-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7f17c67b5bf6 by Christian Heimes in branch 'default':
Issue #18227: pyexpat now uses a static XML_Memory_Handling_Suite. cElementTree 
uses the same approach since at least Python 2.6
http://hg.python.org/cpython/rev/7f17c67b5bf6

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18227
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15028] PySys_SetArgv escapes quotes in argv[]

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
nosy: +christian.heimes
status: open - languishing

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15028
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15035] array.array of UCS2 values

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
nosy: +christian.heimes
versions: +Python 3.4 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15035
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6818] remove/delete method for zipfile/tarfile objects

2013-07-07 Thread Christian Heimes

Christian Heimes added the comment:

Yuval has submitted a CLA. I'm moving the proposal to 3.4 as 3.3 is in feature 
freeze mode.

--
nosy: +christian.heimes
stage:  - patch review
versions: +Python 3.4 -Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6818
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2459] speedup for / while / if with better bytecode

2013-07-07 Thread Christian Heimes

Christian Heimes added the comment:

Is this enhancement still relevant?

--
nosy: +christian.heimes
status: open - languishing
versions: +Python 3.3, Python 3.4 -Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2459
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9939] Add a pipe type (FIFO) to the io module

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
nosy: +christian.heimes
versions: +Python 3.4 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9939
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6739] IDLE window won't start or show up after assgining new key in options v2.5.2 and 3.1.1

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
stage:  - patch review
versions: +Python 3.3, Python 3.4 -Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6739
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10898] posixmodule.c redefines FSTAT

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
nosy: +christian.heimes
versions: +Python 3.3, Python 3.4 -Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10898
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3329] API for setting the memory allocator used by Python

2013-07-07 Thread Kristján Valur Jónsson

Kristján Valur Jónsson added the comment:

Well done.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3329
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue949667] setblocking() method on file objects

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
nosy: +christian.heimes
versions: +Python 3.4 -Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12957] mmap.resize changes memory address of mmap'd region

2013-07-07 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
stage:  - needs patch
versions: +Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12957
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14268] _move_file is broken because of a bad mock

2013-07-07 Thread Christian Heimes

Christian Heimes added the comment:

I assume the commit has fixed the problem, hasn't it?

--
nosy: +christian.heimes
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14268
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16595] Add resource.prlimit

2013-07-07 Thread Christian Heimes

Christian Heimes added the comment:

Does anybody want to review the code before I commit it?

--
nosy: +haypo, pitrou

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16595
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue896330] pyconfig.h is not placed in --includedir

2013-07-07 Thread Christian Heimes

Christian Heimes added the comment:

I found the reason for the issue. pyconfig.h is installed to CONFINCLUDEPY. The 
other header files are copied to INCLUDEPY

INCLUDEDIR= @includedir@
CONFINCLUDEDIR= $(exec_prefix)/include

INCLUDEPY=  $(INCLUDEDIR)/python$(LDVERSION)
CONFINCLUDEPY=  $(CONFINCLUDEDIR)/python$(LDVERSION)


@for i in $(srcdir)/Include/*.h; \
do \
echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
$(INSTALL_DATA) $$i $(DESTDIR)$(INCLUDEPY); \
done
$(INSTALL_DATA) pyconfig.h $(DESTDIR)$(CONFINCLUDEPY)/pyconfig.h

--
stage:  - needs patch
versions: +Python 3.3, Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue896330
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue949667] setblocking() method on file objects

2013-07-07 Thread STINNER Victor

STINNER Victor added the comment:

See the PEP 466 which proposes to add a new os.set_blocking() function on UNIX, 
and blocking parameter to socket constructor.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue949667
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-07-07 Thread Nicholas Riley

Nicholas Riley added the comment:

I don't have time to check it, but it's easy enough to test - set your umask to 
077 and try building an installer, see if the files get the correct permissions 
when installed.

I would hope tutorials would tell users to install the packages somewhere else, 
but you're probably right - sudo is the path of least resistance and is even 
less secure.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14299
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18028] Warnings with -fstrict-aliasing

2013-07-07 Thread Christian Heimes

Christian Heimes added the comment:

The warning is caused by the X86_64 code for timestamps:

#define READ_TIMESTAMP(val) \
__asm__ __volatile__(rdtsc : \
 =a (((int*)(val))[0]), =d (((int*)(val))[1]));

The patch fixes the issue with two temp vars.

--
keywords: +patch
nosy: +christian.heimes
priority: normal - low
stage:  - patch review
type:  - compile error
versions: +Python 3.4
Added file: http://bugs.python.org/file30846/tsc_strict_aliasing.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18028
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6739] IDLE window won't start or show up after assgining new key in options v2.5.2 and 3.1.1

2013-07-07 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +roger.serwy, terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6739
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-07-07 Thread Ronald Oussoren

Ronald Oussoren added the comment:

Right. And I'm even more sensitive as usual about that after reading webpage 
that appearently popular with newbies and explains that you install Python by 
first removing /System/Library/Frameworks/Python.framework.  I still can't 
understand that the author of that page thought that this would be a good idea 
(not linking to it to avoid giving it more prominence).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14299
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-07-07 Thread Ned Deily

Ned Deily added the comment:

Removing the group write permissions on the framework directory would be a 
significant change in the user interface so I agree that change should not be 
made until and if we have something better for user installation.  The rest of 
the patch is still valid in the sense that nothing has changed in 
build-installer.py to ensure permissions (when not using /usr/bin/install).  
This hasn't been a problem with building python.org installers because of the 
environment used to build them.  The patch is now out-of-date, though, due to 
subsequent changes to build-installer.py.  I'll look at refreshing and applying 
that part of it in conjunction with other updates in the pipeline.

--
priority: normal - low

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14299
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18397] Python with MinGW

2013-07-07 Thread Friedrich Spee von Langenfeld

New submission from Friedrich Spee von Langenfeld:

I think, there are some users which are going to compile Python, but disagree 
with the restriction of Visual Studio (use only with account after 90 days). 
Should we provide makefiles to compile Python with MinGW (this could be easily 
done with the Export function of Visual Studio, see 
http://oldwiki.mingw.org/index.php/ConvertVisualStudioWorkspace for Details)? 
Or should we provide a CMakeList.txt to give the user the ability to make his 
own makefiles?

--
components: Build
messages: 192585
nosy: Friedrich.Spee.von.Langenfeld
priority: normal
severity: normal
status: open
title: Python with MinGW

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18397
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >