[issue16848] Mac OS X: python-config --ldflags and location of Python.framework

2013-01-03 Thread Samuel John
New submission from Samuel John: Some tools use `python-config --ldflags` to get the flags in order to link against the Python lib on OS X (for example gst-python from pygtk (2.x). For framework builds, `python-config --ldflags` returns (among few other): -u _PyMac_Error Python.framework

[issue16848] Mac OS X: python-config --ldflags and location of Python.framework

2013-01-03 Thread Samuel John
Samuel John added the comment: Agreed. My patch, I did for Homebrew is to use the full path like so: PYTHONFRAMEWORKDIR= full/path/to/Frameworks/Python.framework instead of just `Python.framework`. -- ___ Python tracker <http://bugs.python.

[issue16398] deque.rotate() could be much faster

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue16398> ___ ___ Python-bugs-list mailing list Unsubsc

[issue16465] dict creation performance regression

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue16465> ___ ___ Python-bugs-list mailing list Unsubsc

[issue1508475] transparent gzip compression in urllib

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue1508475> ___ ___ Python-bugs-list mailing list Unsubsc

[issue11695] Improve argparse usage/help customization

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue11695> ___ ___ Python-bugs-list mailing list Unsubsc

[issue16445] SEGFAULT when deleting Exception.message

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue16445> ___ ___ Python-bugs-list mailing list Unsubsc

[issue15948] Unchecked return value of I/O functions

2013-01-09 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker <http://bugs.python.org/issue15948> ___ ___ Python-bugs-list mailing list Unsubsc

[issue16920] multiprocessing.connection listener gets MemoryError on recv

2013-01-10 Thread John Brearley
New submission from John Brearley: Using a multiprocessing.connection listener, I can accept an incoming socket OK, but when I do conn.recv(), I get memory error. The attached script mpl_bug.py will readily reproduce the issues on WinXP & WinVista, see sample output below: c:\>

[issue16920] multiprocessing.connection listener gets MemoryError on recv

2013-01-10 Thread John Brearley
Changes by John Brearley : -- versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/issue16920> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16920] multiprocessing.connection listener gets MemoryError on recv

2013-01-10 Thread John Brearley
John Brearley added the comment: In V3.2.2.3, the conn.accept() was failing to resolve the socket address. -- ___ Python tracker <http://bugs.python.org/issue16

[issue16398] deque.rotate() could be much faster

2013-01-11 Thread John O'Connor
John O'Connor added the comment: Looking at the implementation (rather quickly)[1]. I'm wondering if there is a reason why the appendleft(pop()) loop is required. It would seem the best way would be to determine the new head link, make the previous link the new end link and conca

[issue16920] multiprocessing.connection listener gets MemoryError onrecv

2013-01-13 Thread John Brearley
John Brearley added the comment: Hi Richard: Thanks for the update. Yes, the multiprocessing.communication.Client works much better. The residual issue left here is wether Python is vulnerable to a DOS attack. If someone used regular sockets deliberately, they could crash multiprocessing server

[issue16955] multiprocessing.connection poll() always returns false

2013-01-13 Thread John Brearley
New submission from John Brearley: In the attached multiprocessing.connection simple client script, the poll() method is always returning false. If I force the temp variable to 1, the recv()method happily gets the incoming data. I had hoped to use the poll() method to implement a timeout

[issue16955] multiprocessing.connection poll() always returns false

2013-01-14 Thread John Brearley
John Brearley added the comment: Hi Rchard: Thanks very much. The wait() method works fine. Regards, John Brearley 613-259-5622 (H) -- ___ Python tracker <http://bugs.python.org/issue16

[issue16920] multiprocessing.connection listener gets MemoryErroronrecv

2013-01-14 Thread John Brearley
John Brearley added the comment: Hi Richard: Thanks for pointers on other methods. I am coming from a TCL background, and learning Python. I have gone through regular sockets, select, asyncore, sockserv, threading and multiprocessing modules. Only multiprocessing seems to be able to use more

[issue16966] Publishing multiprocessing listener code

2013-01-14 Thread John Brearley
New submission from John Brearley: Hi Richard: I have published my multiprocessing server & client scripts on the 2 web sites shown below in the hopes that they will help others learning this module. I haven't seen anyplace on the python.org web site that might be suitable for a copy. A

[issue18907] urllib2.open FTP open times out at 20 secs despite timeout parameter

2013-09-14 Thread John Nagle
John Nagle added the comment: The server operator at the US Securities and Exchange Commission writes to me: "There was a DNS issue that affected the availability of FTP at night. We believe it is resolved. Please let us know if you encounter any further problems. Thanks, SEC Webmaster&

[issue19138] doctest.IGNORE_EXCEPTION_DETAIL doesn't match when no detail exists

2013-10-01 Thread John Murphy
New submission from John Murphy: The doctest.IGNORE_EXCEPTION_DETAIL optionflag does not seem to have the desired behavior when the exception does not provide a message, due to the regular expressions in doctest.DocTestRunner.__run expecting a colon in the second group:: elif

[issue18306] os.stat gives exception for Windows junctions in v3.3

2013-10-27 Thread John Jefferies
John Jefferies added the comment: Hello Tim, The fact that it works on 64-bit Python obviously reduces the priority. I will make a point of choosing the 64-bit version in the future. FWIW. I'm dubious about the problem being solely attributable to WOWs handling of junctions because my P

[issue19651] Mac OSX 10.9 segmentation fault 11 with Python 3.3.3

2013-11-19 Thread John Dobson
New submission from John Dobson: 2 consecutive commands into interactive shell still results in segmentation fault 11, patch 18458 reports skipped as patch not needed for 3.3 -- assignee: ronaldoussoren components: Macintosh messages: 203347 nosy: johndobson, ronaldoussoren priority

[issue19651] Mac OSX 10.9 segmentation fault 11 with Python 3.3.3

2013-11-19 Thread John Dobson
John Dobson added the comment: mysite $ python -c 'import sys;print(sys.version)' 3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] mysite $ python -c 'import readline;print(readline.__file__)' /System/Library/Frameworks/Python.fr

[issue19651] Mac OSX 10.9 segmentation fault 11 with Python 3.3.3

2013-11-19 Thread John Dobson
John Dobson added the comment: Many thanks for your prompt assistance -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue1690201] Added support for custom readline functions

2014-06-22 Thread John Cherian
Changes by John Cherian : -- nosy: +John.Cherian ___ Python tracker <http://bugs.python.org/issue1690201> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6094] Python fails to build with Subversion 1.7

2014-06-28 Thread John O'Connor
John O'Connor added the comment: I encountered the same problem w/ 2.7.7. Temporary workaround: SVNVERSION="Unversioned directory" ./configure make ... -- nosy: +jcon ___ Python tracker <http://bugs.py

[issue21891] sysmodule.c, #define terminated with semicolon.

2014-06-30 Thread John Malmberg
New submission from John Malmberg: Minor issue, the #define TAG line incorrectly is terminated with a semicolon. This results in a double semicolon on the following line where the macro is expanded. As this is an informational message, this is just cosmetic. Listing fragment

[issue21893] unicodeobject.c not using PY_FORMAT_SIZE_T

2014-06-30 Thread John Malmberg
New submission from John Malmberg: unicodeobject.c is using %zd instead of the PY_FORMAT_SIZE_T as set by configure. Comments in pymacconfig.h state that this will cause problems on OS-X 10.4 with binaries build on OS-X 10.5. The attached patch unicodeobject.giff changes unicodeobject.c to

[issue21892] hashtable.c not using PY_FORMAT_SIZE_T

2014-06-30 Thread John Malmberg
New submission from John Malmberg: hashtable.c is using %zd instead of the PY_FORMAT_SIZE_T as set by configure. Comments in pymacconfig.h state that this will cause problems on OS-X 10.4 with binaries build on OS-X 10.5. The attached patch hashtable.giff changes hashtable.c to be like the

[issue9745] MSVC .pdb files not created by python 2.7 distutils

2014-07-09 Thread John Ehresman
John Ehresman added the comment: Are you saying close this as a duplicate? That would be fine with me. I still think the /pdb:None should be removed if it hasn't been already. -- ___ Python tracker <http://bugs.python.org/i

[issue9745] MSVC .pdb files not created by python 2.7 distutils

2014-07-09 Thread John Ehresman
Changes by John Ehresman : -- resolution: -> duplicate ___ Python tracker <http://bugs.python.org/issue9745> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue22119] Some input chars (i.e. '++') break re.match

2014-08-01 Thread John Fisher
New submission from John Fisher: Some characters repeated in the pattern break re.match: Linux python 2.7.6 ### # test.py import re #diffitem = "libstdc+" succeeds #diffitem = "libstdc++" fails #diffitem = "libstdc**" fails #di

[issue22148] frozen.c should #include instead of "importlib.h"

2014-08-05 Thread John Beck
New submission from John Beck: Background: on Solaris, we build Python and various modules 64-bit. To make this work with our general 64-bit changes, we use foo/64 as the path for our shared objects (.so files) rather than foo, for various values of foo (e.g., "/usr/lib", "/us

[issue22148] frozen.c should #include instead of "importlib.h"

2014-08-11 Thread John Beck
John Beck added the comment: Hm, that is strange. My reading of the semantics of vs "foo.h" was that they are almost the same, except that "foo.h" has the additional semantic of searching the local directory (wherever the .c file is that is #include'ing it) firs

[issue22211] Remove VMS specific code in expat.h & xmlrole.h

2014-08-16 Thread John Malmberg
New submission from John Malmberg: The Modules/expat/expat.h and Modules/expat/xmlrole.h contain VMS specific code that actually breaks building python 3.5 on VMS. Per http://bugs.python.org/issue16136, such VMS specific code should be removed for Python 3.5. This code may still be needed

[issue22212] zipfile.py fails if zlib.so module fails to build.

2014-08-16 Thread John Malmberg
New submission from John Malmberg: If the zlib.so fails to build while building python, subsequent runs of setup.py fail, which prevents a trying again to build zlib.so after the issue is fixed unless all the .so modules built are deleted. File "/PRJ_ROOT/CPYTHON/Lib/zipfile.py"

[issue21412] Solaris/Oracle Studio: Fatal Python error: PyThreadState_Get when built --with-pymalloc

2014-08-18 Thread John Beck
John Beck added the comment: Ned: yes, I can confirm that the patch from http://bugs.python.org/issue21166 does indeed fix the problem. Thank you very much! -- ___ Python tracker <http://bugs.python.org/issue21

[issue22309] distutils/spawn.py handle fork() not implemented.

2014-08-30 Thread John Malmberg
New submission from John Malmberg: Distutils currently can not handle a Posix platform that does not implement fork(). This patch retries with the _spawn_nt to use the spawn() methods if fork() is not implemented. A platform that does not implement fork() can provide spawn*() methods for

[issue22310] Report actual EOF character instead of assuming Ctrl-D

2014-08-30 Thread John Malmberg
New submission from John Malmberg: Have setquit() use the actual EOF character where available instead of assuming Ctrl-D. -- components: Library (Lib) files: lib_site_py.gdiff messages: 226154 nosy: John.Malmberg priority: normal severity: normal status: open title: Report actual EOF

[issue22309] distutils/spawn.py handle fork() not implemented.

2014-08-30 Thread John Malmberg
John Malmberg added the comment: There are multiple degrees of Posix compliance. While X/Open documents the Posix requirements for implementing fork(), so far I have not found anything that requires that fork() be present. Configure tests for c-python also test for the presence of fork

[issue22310] Report actual EOF character instead of assuming Ctrl-D

2014-08-31 Thread John Malmberg
John Malmberg added the comment: The existing Python text is uppercase D for Ctrl-D, so I maintained it. stty documentation also uses upper case for control characters. The EOF character can be viewed or set via the stty utility or the tcsetattr() or equivalent routine. Some platforms may not

[issue22309] distutils/spawn.py handle fork() not implemented.

2014-08-31 Thread John Malmberg
John Malmberg added the comment: Note that Python directly supports Unixes which supply fork() and Microsoft Windows that supplies spawn*() methods. So as long as a platform supports either the fork() or the the Microsoft Windows spawn() methods, there should not be barriers implementing

[issue22038] Implement atomic operations on non-x86 platforms

2014-09-01 Thread John Malmberg
Changes by John Malmberg : -- nosy: +John.Malmberg ___ Python tracker <http://bugs.python.org/issue22038> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17095] Modules/Setup *shared* support broken

2014-09-07 Thread John Malmberg
Changes by John Malmberg : -- nosy: +John.Malmberg ___ Python tracker <http://bugs.python.org/issue17095> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22389] Generalize contextlib.redirect_stdout

2014-09-29 Thread John Isidore
John Isidore added the comment: There is stdout_redirected() function [1] that allows to redirect a file object given as `stdout` patameter including `sys.stderr`. It works at a file descriptor level i.e. it supports redirecting subprocess' output too but it doesn't work for Strin

[issue16136] Removal of VMS support

2013-12-22 Thread John Malmberg
John Malmberg added the comment: Access to VMS licenses and media: 1. Hobby - non-commercial applications - Free with 1 year time-bombed license keys with free media download. A self-service mostly web based system. http://www.openvms.org/pages.php?page=Hobbyist Easiest way to get a

[issue16136] Removal of VMS support

2014-02-01 Thread John Malmberg
John Malmberg added the comment: Encompasserve.org is now back up. It took a little longer than expected. Should be no issues now in getting free hobby license keys for VMS on VAX, Alpha, and Itanium by using the web forms. -- ___ Python tracker

[issue6479] platform.py writes to hard coded platform dependant "dev/null"

2009-07-13 Thread John Burnett
New submission from John Burnett : The functions _syscmd_uname and _syscmd_file are hard-coded to pipe stderr to "/dev/null", as opposed to os.devnull. On Windows, this has the effect of creating a file called "null" to a local "dev" directory (if the directo

[issue6479] platform.py writes to hard coded platform dependant "dev/null"

2009-07-13 Thread John Burnett
John Burnett added the comment: I'm not sure how you're seeing that those functions bypass external commands? I'm running Vista64, and it certainly looks like calling platform.architecture calls _syscmd_file, which then immediately calls os.popen("file %s 2> /dev/null&

[issue6479] platform.py writes to hard coded platform dependant "dev/null"

2009-07-13 Thread John Burnett
John Burnett added the comment: You're right, Vista64 is returning "win32" for the platform. And ahh, I see what I did: in Python 2.5.2, _syscmd_file wasn't using a sys.platform check. Then when I looked at the current version, I saw it was still using "/dev/null&qu

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2009-07-29 Thread John Levon
John Levon added the comment: Any progress on this regression? A patch is available... thanks. -- ___ Python tracker <http://bugs.python.org/issue1975> ___ ___

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-03 Thread John Machin
John Machin added the comment: Problem is memory leak from repeated calls of e.g. compiled_pattern.search(some_text). Task Manager performance panel shows increasing memory usage with regex but not with re. It appears to be cumulative i.e. changing to another pattern or text doesn't re

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-10 Thread John Machin
John Machin added the comment: Adding to vbr's report: [2.6.2, Win XP SP3] (1) bug mallocs memory inside loop (2) also happens to regex.findall with patterns 'a{0,0}' and '\B' (3) regex.sub('', 'x', 'abcde') has

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-11 Thread John Machin
John Machin added the comment: What is the expected timing comparison with re? Running the Aug10#3 version on Win XP SP3 with Python 2.6.3, I see regex typically running at only 20% to %50 of the speed of re in ASCII mode, with not-very-atypical tests (find all Python identifiers in a line

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-15 Thread John Machin
John Machin added the comment: Simplification of mark's first two problems: Problem 1: looks like regex's negative look-head assertion is broken >>> re.findall(r'(?!a)\w', 'abracadabra') ['b', 'r', 'c', 'd', 'b

[issue6862] exec(), locals() and local variable access

2009-09-08 Thread john zeng
New submission from john zeng : Can you help me understand why variable `u' is not accessible after exec()? Is this sort of a late binding issue? def test(v1): print(v1) print("Before exec(): " + str(locals())) exec(v1) print("After exec(): " + str(

[issue5621] Add description of special case to "Assignment statements" section

2009-09-08 Thread John Posner
John Posner added the comment: George, here is a patch file for this bug. It modifies file doc/reference/simple_stmts.rst Please let me know if this was the wrong way to submit the patch file. -- keywords: +patch status: pending -> open Added file: http://bugs.python.org/file14

[issue7476] pipes.quote does not handle zero-length args correctly

2009-12-10 Thread John Wiseman
New submission from John Wiseman : In python 2.5.2, I believe pipes.quote gives the wrong result for zero- length arguments. >>> from pipes import quote >>> args = ['arg1', '', 'arg3'] >>> print 'mycommand %s' % (' 

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2009-12-14 Thread John Levon
John Levon added the comment: The spec broken is here: http://docs.python.org/library/signal.html Namely: # Some care must be taken if both signals and threads are used in the same program. The fundamental thing to remember in using signals and threads simultaneously is: always perform

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2009-12-15 Thread John Levon
John Levon added the comment: I still do not understand the objection you have to the simple patch which restores old behaviour, works the same across all OSes, and doesn't require new APIs. What is the objection? -- ___ Python tracker

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2009-12-15 Thread John Levon
John Levon added the comment: To quote Andriy in the first comment: "It doesn't bring any visible changes to readline behavior either." Are you saying this is not the case? -- ___ Python tracker <http://bugs.py

[issue7521] PyEval_GetRestricted should be removed from C API reference

2009-12-15 Thread John Millikin
New submission from John Millikin : In <http://docs.python.org/3.1/c-api/reflection.html#PyEval_GetRestricted>, the PyEval_GetRestricted() procedure does not exist. HISTORY indicates it was removed during the 3.0 development cycle. It ought to be removed from the docs a

[issue7531] datetime.timedelta doc has incorrect output

2009-12-17 Thread John Gardner
New submission from John Gardner : The output example for timedelta in datetime package has the wrong output for the supplied commands. For example: >>> ten_years, ten_years.days // 365 (datetime.timedelta(3650), 10) should be: >>> ten_years, ten_years.days (datetime.tim

[issue7521] PyEval_GetRestricted should be removed from C API reference

2009-12-18 Thread John Millikin
John Millikin added the comment: Ditto Py_GetBuildNumber() < http://docs.python.org/3.1/c-api/init.html#Py_GetBuildNumber > -- only mentioned in docs and HISTORY, nothing in the headers or source. Appears to have been removed. -- ___ Python t

[issue7549] 2.6.4 Win32 linked to debug DLLs?

2009-12-19 Thread John Wells
New submission from John Wells : I installed 2.6.4 x86 on Win7 x64. My Python app runs fine, but I get daily errors in the event app log: SOURCE: SideBySide EVENT ID: 33 MESSAGE: Activation context generation failed for "C:\WinUtils\Python26\Lib\distutils\command\wininst-8_d.exe".

[issue7549] 2.6.4 Win32 linked to debug DLLs?

2009-12-20 Thread John Wells
John Wells added the comment: Thanks for the quick follow-up. You're right -- given your explanation of what wininst-8_d.exe is, the interesting question now is why it is running. I get two errors every day, in the early hours of the morning. Before I delete this file, I will s

[issue7558] Python 3.1.1 installer botches upgrade when installation is not on C drive.

2009-12-21 Thread John Nagle
New submission from John Nagle : I just installed "python3.1.1.msi" on a system that had "python3.1.msi" installed in "D:/python31". In this situation, the installer does not ask the user for a destination directory. The installer found the old installation in &

[issue7558] Python 3.1.1 installer botches upgrade when installation is not on C drive.

2009-12-21 Thread John Nagle
John Nagle added the comment: Cancel bug report. It was my error. The installer says it is replacing the existing installation, but by default installs it in C:. But that can be overridden in the directory entry field below the big empty white entry box

[issue1759169] clean up Solaris port and allow C99 extension modules

2009-02-17 Thread John Levon
John Levon added the comment: > However, experience tells that systems can break in surprising ways > if the system headers are compiled with different defines. This is indeed a reasonable concern (for which the best solution is dropping the defines in the Python compile). > I do

[issue4847] csv fails when file is opened in binary mode

2009-02-23 Thread John Machin
John Machin added the comment: Sorry, folks, we've got an understanding problem here. CSV files are typically NOT created by text editors. They are created e.g. by "save as csv" from a spreadsheet program, or as an output option by some database query program. They can have

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2009-02-28 Thread John Levon
John Levon added the comment: Surely readline is irrelevant anyway. The Python spec guarantees behaviour, and that guarantee is currently broken. ___ Python tracker <http://bugs.python.org/issue1

[issue5455] csv module no longer works as expected when file opened in binary mode

2009-03-08 Thread John Machin
John Machin added the comment: This is in effect a duplicate of issue 4847. Summary: The docs are CORRECT. The 3.X implementation is WRONG. The 2.X implementation is CORRECT. See examples in my comment on issue 4847. -- message_count: 3.0 -> 4.0 nosy: +sjmachin nosy_count: 2.0 -&g

[issue4847] csv fails when file is opened in binary mode

2009-03-08 Thread John Machin
John Machin added the comment: Before patching, could we discuss the requirements? There are two different concepts: (1) "text" file (assume that CR and/or LF are line terminators, and provide methods for accessing a line at a time) versus "binary" file (no such assumptions

[issue4847] csv fails when file is opened in binary mode

2009-03-08 Thread John Machin
John Machin added the comment: ... and it looks like Option 2 might already *almost* be in place. Continuing with the previous example (book1.csv has embedded lone LFs): C:\devel\csv>\python30\python -c "import csv; print(repr(list(csv.reader(open('book1.csv',&#x

[issue4847] csv fails when file is opened in binary mode

2009-03-09 Thread John Machin
John Machin added the comment: pitrou> Please look at the doc for open() and io.TextIOWrapper. The `newline` parameter defaults to None, which means universal newlines with newline translation. Setting to '' (yes, the empty string) enables universal newlines but disables newlin

[issue5095] msi missing from "bdist --help-formats"

2009-03-25 Thread John Machin
John Machin added the comment: The 2.6.1 documentation consists of a *single* line: "distutils.command.bdist_msi — Build a Microsoft Installer binary package". AFAICT this is the *only* mention of "msi" in the docs (outside the msilib module). I heard about it only by word-o

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-03-30 Thread John Ehresman
John Ehresman added the comment: I'll try to work on a patch for this, but the reproduce.py script seems to spawn dozens of sub-interpreters right now when run with trunk (python 2.7) on win32 -- nosy: +jpe ___ Python tracker

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-03-30 Thread John Ehresman
Changes by John Ehresman : Added file: http://bugs.python.org/file13493/reproduce.py ___ Python tracker <http://bugs.python.org/issue3551> ___ ___ Python-bugs-list mailin

[issue5039] Adjust reference-counting note

2009-03-30 Thread John Hitz
John Hitz added the comment: Attached patch -- keywords: +patch nosy: +John Added file: http://bugs.python.org/file13495/issue5039.diff ___ Python tracker <http://bugs.python.org/issue5

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-03-30 Thread John Ehresman
John Ehresman added the comment: Latest version works -- question is why prior versions spawned many subprocesses. It's really another bug because prior version wasn't hitting the write length limit. -- title: multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCE

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-03-30 Thread John Ehresman
John Ehresman added the comment: It turns out that the original reproduce.py deadlocks if the pipe buffer is smaller than message size -- even with a fix to the bug. Patch to fix is coming soon. -- Added file: http://bugs.python.org/file13498/reproduce.py

[issue5039] Adjust reference-counting note

2009-03-30 Thread John Hitz
John Hitz added the comment: Sorry about that. First one I've ever done. Consecrating more on how than what. John > Subject: [issue5039] Adjust reference-counting note > To: johnhitz...@msn.com > From: rep...@bugs.python.org > Date: Tue, 31 Mar 2009 02:20:45 + >

[issue5621] Add description of special case to "Assignment statements" section

2009-03-31 Thread John Posner
New submission from John Posner : The subsection "Augmented assignment statements" includes a note on this special case: a.x += 1 But the parent section "Assignment statements" does not include such a note, even though it's essentially the same situation. I sugge

[issue5621] Add description of special case to "Assignment statements" section

2009-03-31 Thread John Posner
John Posner added the comment: The "Assignment statements" section *does* talk about the RHS -- but in a subtle way: For targets which are attribute references, the initial value is retrieved with a getattr() The retrieving of the initial value (maybe "current value&q

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-03-31 Thread John Ehresman
John Ehresman added the comment: Attached is a patch, though I have mixed feelings about it. The OS error can still occur even if a smaller amount is written in each WriteFile call; I think an internal OS buffer fills up and the error is returned if that buffer is full because the other

[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread John Ehresman
New submission from John Ehresman : I'm interested in adding support for debugger watchpoint's in the core. A watchpoint would cause the debugger to stop when a value in a namespace changes. This hook would be called when PyDict_SetItem & PyDict_DelItem is invoked. I realize

[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread John Ehresman
Changes by John Ehresman : Added file: http://bugs.python.org/file13550/testhook.py ___ Python tracker <http://bugs.python.org/issue5654> ___ ___ Python-bugs-list mailin

[issue1608921] PyThread_release_lock with pthreads munges errno

2009-04-01 Thread John Ehresman
John Ehresman added the comment: Any possibility of a test case? -- nosy: +jpe ___ Python tracker <http://bugs.python.org/issue1608921> ___ ___ Python-bugs-list m

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-04-01 Thread John Ehresman
John Ehresman added the comment: Looking into this a bit more and reading the documentation (sorry, I picked this up because I know something about win32 and not because I know multiprocessing), it looks like a connection is supposed to be message oriented and not byte oriented so that a

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-04-01 Thread John Ehresman
John Ehresman added the comment: New patch which raises ValueError if WriteFile fails with ERROR_NO_SYSTEM_RESOURCES. I wasn't able to reliably write a test since putting the send_bytes in a try block seems to allow the call succeed. This is probably OS, swap file size, and timing depe

[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread John Ehresman
John Ehresman added the comment: Oops, the multiprocessing changes should not be in the patch -- nosy: +sdeibel ___ Python tracker <http://bugs.python.org/issue5

[issue5654] Add C hook in PyDict_SetItem for debuggers

2009-04-01 Thread John Ehresman
John Ehresman added the comment: My hope is that the runtime performance cost will be negligible but if it isn't, it probably shouldn't go in. The issue with not putting it in another build is that many python debugger users won't want to recompile, so I see it as being of

[issue4111] Add DTrace probes

2009-04-22 Thread John Levon
John Levon added the comment: Robert, I have no idea how Mac OS does pstack helpers without generating object files, sorry. > no simply pid$target:a.out:: probes available. Hmm. Try adding -Z to see if that helps. > /Users/rkern/hg/Python-2.5.4/Include/phelper.d: line 110: relo

[issue1712522] urllib.quote throws exception on Unicode URL

2009-04-22 Thread John Nagle
John Nagle added the comment: Note that the problem can't be solved by telling end users to call a different "quote" function. The problem is down inside a library module. "robotparser" is calling "urllib.quote". One of those tw

[issue4111] Add DTrace probes

2009-04-22 Thread John Levon
John Levon added the comment: Yes, my mistake. I noticed this typo in the original patch: 207 +PyObject * 208 +PyEval_EvalFrameexEx(PyFrameObject *f, int throwflag)) Can you: - verify that HAVE_DTRACE is indeed defined for ceval.c - do an nm on ceval.o and look which Eval

[issue5907] repr of time.struct_time type does not eval

2009-05-02 Thread John Morton
New submission from John Morton : The output of repr on an object of type time.struct_time has changed from 2.5 to 2.6, and can no longer be read in with an eval. 2.5 behaviour: Python 2.5.4 (r254:67916, Apr 4 2009, 17:55:16) [GCC 4.3.3] on linux2 Type "help", "copyright

[issue5907] repr of time.struct_time type does not eval

2009-05-03 Thread John Morton
John Morton added the comment: While it's true that repr() methods cannot generally be expected to eval back into an object of the same type, the old repr behaviour of the struct_time object did effectively do so. Admittedly it was a kludge due to the time module functions originally prod

[issue5945] PyMapping_Check returns 1 for lists

2009-05-05 Thread John Millikin
New submission from John Millikin : In Python 2, PyMapping_Check will return 0 for list objects. In Python 3, it returns 1. Obviously, this makes it rather difficult to differentiate between mappings and other sized iterables. In addition, it differs from the behavior of the

[issue3425] posixmodule.c always using res = utime(path, NULL)

2009-05-28 Thread John Szakmeister
John Szakmeister added the comment: It seems reasonable to prefer utimes() over utime() in all cases, when utimes() is available, since utime() is considered obsolete. I've attached a patch with the required change and ran all the tests. There are some tests failing on trunk with my s

[issue4829] confusing error for file("foo", "w++")

2009-05-29 Thread John Szakmeister
John Szakmeister added the comment: On trunk, it seems that it's perfectly happy if you specify more than one '+': Python 2.7a0 (trunk, May 29 2009, 05:57:26) [GCC 4.0.1 (Apple Inc. build 5470) (Aspen 5470.3)] on darwin Type "help", "copyright", "cr

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

2009-05-29 Thread John Szakmeister
Changes by John Szakmeister : -- nosy: +jszakmeister ___ Python tracker <http://bugs.python.org/issue3329> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    2   3   4   5   6   7   8   9   10   11   >