New submission from Brian Curtin :
Most file or file-like objects operate as context managers, except for mmap
(and maybe a few others?). Attached is a patch with tests and documentation.
The patch also introduces an additional attribute to mmap, "closed".
--
components: Li
Brian Curtin added the comment:
The list2cmdline function checks spaces, tabs, etc in line 521 of
subprocess.py. In your first test case, it ends up checking if a string is
contained in a bytes object, which is a TypeError for the str not supporting
the buffer API.
Would it be acceptable
Changes by Brian Curtin :
--
assignee: -> michael.foord
nosy: +michael.foord
priority: -> normal
stage: -> needs patch
versions: -Python 3.1, Python 3.3
___
Python tracker
<http://bugs.python.o
Brian Curtin added the comment:
#6716 is a related issue, but isn't exactly a duplicate.
--
nosy: +brian.curtin
___
Python tracker
<http://bugs.python.org/i
Changes by Brian Curtin :
--
components: +Windows
priority: -> high
stage: -> needs patch
type: -> behavior
___
Python tracker
<http://bugs.python.o
Brian Curtin added the comment:
As documented, this is not supported on Windows.
http://docs.python.org/dev/library/os#os.uname
os.uname is generated in Modules/posixmodule.c, not in platform.py
--
nosy: +brian.curtin
resolution: -> invalid
status: open ->
Brian Curtin added the comment:
FWIW, _winreg.ExpandEnvironmentStrings does the right thing.
D:\python-dev\trunk>PCbuild\amd64\python.exe
Python 2.7a3+ (trunk, Feb 23 2010, 20:22:24) [MSC v.1500 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits"
Brian Curtin added the comment:
Here is a patch for trunk.
It works for me, but my Unicode knowledge isn't the strongest. I believe
sys.getfilesystemencoding() is what we want here. Can anyone confirm?
--
keywords: +patch
nosy: +loewis
Added file: http://bugs.python.org/file
Changes by Brian Curtin :
--
components: +Library (Lib)
priority: -> normal
stage: -> needs patch
versions: +Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/
Brian Curtin added the comment:
I don't really think this is a documentation bug, more of an issue you have
with the policy, in which case this is better being discussed on python-dev.
--
nosy: +brian.curtin
___
Python tracker
Changes by Brian Curtin :
--
components: +Windows
nosy: +brian.curtin
priority: -> normal
stage: -> needs patch
type: -> behavior
___
Python tracker
<http://bugs.python.o
Brian Curtin added the comment:
I've reviewed the patch and do not see any unnecessary whitespace changes in
his patch.
--
nosy: +brian.curtin
___
Python tracker
<http://bugs.python.org/i
Changes by Brian Curtin :
--
priority: -> low
stage: -> needs patch
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue8090>
___
___
P
New submission from Brian Curtin :
Creating an mmap object can crash the interpreter on Windows if a file
descriptor is passed in which is outside of the range for _get_osfhandle. I
noticed the crash possibility while reviewing the Modules/mmapmodule.c code for
work on another issue related
Changes by Brian Curtin :
Removed file: http://bugs.python.org/file16515/mmap_crash.diff
___
Python tracker
<http://bugs.python.org/issue8105>
___
___
Python-bugs-list m
Changes by Brian Curtin :
Added file: http://bugs.python.org/file16516/mmap_crash.diff
___
Python tracker
<http://bugs.python.org/issue8105>
___
___
Python-bugs-list m
Brian Curtin added the comment:
I should add that I tried the same thing on linux and no crash occured, it
properly raised an exception.
--
___
Python tracker
<http://bugs.python.org/issue8
Changes by Brian Curtin :
--
nosy: +janssen
priority: -> normal
___
Python tracker
<http://bugs.python.org/issue8106>
___
___
Python-bugs-list mailing list
Un
Brian Curtin added the comment:
In a command prompt window, type the following:
C:\>set TCL_LIBRARY=
C:\>set TK_LIBRARY=
C:\>C:\Python31\python.exe C:\Python31\Lib\idlelib\idle.py
--
nosy: +brian.curtin
___
Python tracker
<http://bug
Changes by Brian Curtin :
--
components: +Windows
priority: -> normal
stage: -> test needed
versions: -Python 3.3
___
Python tracker
<http://bugs.python.org/
Brian Curtin added the comment:
Also, using platform.system() == 'Windows' would exclude IronPython running on
Mono.
--
nosy: +brian.curtin
___
Python tracker
<http://bugs.python.
Brian Curtin added the comment:
Amaury is right. On Windows, _subprocess is a built-in, so the platform stuff
just currently enables further failure.
Dave: My C# skills aren't the greatest, but looking at PC/_subprocess.c there
are a few Win32 functions you might need to P/Invoke,
Brian Curtin added the comment:
Can you provide a test case which reproduces your issue?
--
components: +Library (Lib)
nosy: +brian.curtin
stage: -> test needed
___
Python tracker
<http://bugs.python.org/iss
Brian Curtin added the comment:
That was an example of the cmd prompt.
Just type "set TCL_LIBRARY=" without the quotes, along with the contents of the
other three lines except for the "C:\>".
--
___
Python tracker
Brian Curtin added the comment:
Just delete the Python22 folder.
Typing "set TCL_LIBRARY=" (note the equal sign) will unset the environment
variable for that command prompt. Can you try running the steps from msg100786?
--
___
Pyth
Changes by Brian Curtin :
--
components: +Library (Lib) -Build
priority: -> normal
stage: -> test needed
type: -> behavior
___
Python tracker
<http://bugs.python.o
Brian Curtin added the comment:
Also, keep in mind that shutil.copytree is more of an example than the
be-all-end-all directory copy function, as stated in both the documentation and
source code.
--
nosy: +brian.curtin
___
Python tracker
<h
Brian Curtin added the comment:
Your MSI works for me and fixes problem 1.
--
___
Python tracker
<http://bugs.python.org/issue6716>
___
___
Python-bugs-list m
Brian Curtin added the comment:
That would depend on the implementation of the system() call on your platform.
There are already two notes for Unix and Windows right below that paragraph.
Going further into lower level specifics of the system() call is outside the
scope of that documentation
Brian Curtin added the comment:
You'll want to look at
http://wiki.python.org/moin/PythonWebsiteCreatingNewTickets
Win 2000 is currently supported, although there have been rumblings of
beginning to drop that support.
The info exists in PEP-11 for now, but I agree that a sentence woul
Changes by Brian Curtin :
--
nosy: +vinay.sajip
priority: -> normal
stage: -> test needed
___
Python tracker
<http://bugs.python.org/issue8148>
___
___
Changes by Brian Curtin :
Removed file: http://bugs.python.org/file16156/issue7347.diff
___
Python tracker
<http://bugs.python.org/issue7347>
___
___
Python-bugs-list m
Brian Curtin added the comment:
Fixed a few a/an word changes and a few tab/space issues. Re-uploaded to
Rietveld at http://codereview.appspot.com/580041
--
Added file: http://bugs.python.org/file16558/issue7347.diff
___
Python tracker
<h
Changes by Brian Curtin :
--
priority: -> normal
stage: -> needs patch
type: -> behavior
versions: +Python 3.1
___
Python tracker
<http://bugs.python.o
Brian Curtin added the comment:
Duplicate of #7773 which was fixed with r77735.
--
nosy: +brian.curtin
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Changes by Brian Curtin :
--
nosy: +vinay.sajip
priority: -> normal
versions: +Python 3.1, Python 3.2
___
Python tracker
<http://bugs.python.org/iss
Brian Curtin added the comment:
#7347 depends on this for proper testing, and arch_misrepresented.diff seems to
have been labeled as acceptable. Would anyone be willing to check it in?
--
___
Python tracker
<http://bugs.python.org/issue7
Brian Curtin added the comment:
This was fixed in r78206 for trunk, but it doesn't look like it made it's way
into any of the other branches.
--
nosy: +brian.curtin
priority: -> low
type: -> behavior
___
Python tracker
<htt
Brian Curtin added the comment:
RegDeleteKeyEx will only work on a Windows version of 5.2 or greater (Vista/XP
x64), and XP is 5.1, so RegDeleteKeyEx can't be a simple drop-in under the
"DeleteKey" name.
CreateKeyEx is different though since it goes as far back as Win2k, and i
Changes by Brian Curtin :
--
resolution: -> invalid
status: open -> closed
title: Hohe Qualitaet und beste Preise garantiert. -> spam
___
Python tracker
<http://bugs.python.o
Changes by Brian Curtin :
--
resolution: -> invalid
status: open -> closed
title: Online kaufen die beste Software! -> spam
___
Python tracker
<http://bugs.python.o
Brian Curtin added the comment:
I'll reopen this for now, no need for duplicate issues.
http://www.python.org/psf/contrib/ has the relevant contributor agreement that
should be signed.
--
resolution: rejected ->
status: closed -> open
___
Brian Curtin added the comment:
Ah, that's simple enough :)
Minor changes to the test patch: uname caches it's results, so I added a few
lines to clear the cache before the uname calls. In order to not affect other
tests, the whole thing is in a try/finally so we don't leave
Brian Curtin added the comment:
Given that this is a feature request, it would go into 2.7 rather than 2.6.
The patch will need a test (see Lib/test/test_zipfile.py) and a documentation
update (see Doc/library/zipfile.rst).
--
nosy: +brian.curtin
priority: -> normal
stage: ->
Brian Curtin added the comment:
Actually this was recently fixed on trunk (r78097) and py3k (r78098). See #6003.
--
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Changes by Brian Curtin :
--
nosy: +benjamin.peterson
priority: -> normal
stage: -> needs patch
type: -> behavior
___
Python tracker
<http://bugs.python.o
Changes by Brian Curtin :
--
nosy: +brian.curtin
priority: -> normal
stage: -> test needed
___
Python tracker
<http://bugs.python.org/issue8224>
___
___
Brian Curtin added the comment:
I believe the problem is with pydoc. In the case of xml.etree, I don't think it
should be displaying anything for MODULE DOCS.
help(xml.etree.ElementTree) does display the proper link.
The attached patch and test fixes the problem.
--
ass
Changes by Brian Curtin :
--
type: performance -> behavior
___
Python tracker
<http://bugs.python.org/issue8225>
___
___
Python-bugs-list mailing list
Unsubscri
Brian Curtin added the comment:
Are you running a service? I can't say I'm too familiar with the file you
uploaded, but the file contains a few things that lead me to believe you may
be. As David said, it would be helpful to know what you were doing.
--
nosy: +br
Brian Curtin added the comment:
I just reproduced this by removing write access from my user for my home
directory.
It seems odd that you wouldn't have write access to your home directory in the
first place, but that's tangent to the issue. I'll see if there are other
accep
Brian Curtin added the comment:
(adding myself to the nosy list as a Windows dev)
--
nosy: +brian.curtin
___
Python tracker
<http://bugs.python.org/issue7
Brian Curtin added the comment:
On Windows, the WindowsDefault class gets used and it doesn't make use of
anything other than the URL (no 'new' or 'autoraise'). All it does is pass the
URL onto os.startfile.
It should make a better attempt at running the URL. Patches
Changes by Brian Curtin :
--
title: webbrowser open(), open_new(), and open_new_tab() Broken Functionality
-> webbrowser.open incomplete on Windows
___
Python tracker
<http://bugs.python.org/iss
Brian Curtin added the comment:
Minor correction: BackgroundBrowser gets used in this case, but it still lacks
in the same area and causes what you are seeing.
--
___
Python tracker
<http://bugs.python.org/issue8
Brian Curtin added the comment:
Fixed in trunk (r79430), release26-maint (r79631), py3k (r79434), and
release31-maint (r79435). Thanks for the patch.
--
assignee: georg.brandl -> brian.curtin
resolution: -> fixed
stage: needs patch -> committed/rejected
status: open ->
Brian Curtin added the comment:
This is fixed as of r79248.
--
nosy: +brian.curtin
priority: -> normal
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.o
Brian Curtin added the comment:
I have this working with process IDs and my vote would be to keep it that way,
as it would stay in-line with the other platforms, and it seems to work so far.
I would imagine that was also IronPython's goal.
I'm still working on the test portion of
Brian Curtin added the comment:
I went through and made a lot of grammar corrections and rewording throughout
the file. See attached patch.
I have no idea if this doc is technically correct. I only made grammar changes
since I'm not a big web developer, but it could probably use a look
Changes by Brian Curtin :
Removed file: http://bugs.python.org/file16692/issue8218_v2.diff
___
Python tracker
<http://bugs.python.org/issue8218>
___
___
Python-bugs-list m
Brian Curtin added the comment:
My first patch removed a lot of the he/him/his wording, but now that you
mentioned it found another one. Updated the patch.
--
Added file: http://bugs.python.org/file16693/issue8218_v3.diff
___
Python tracker
<h
Brian Curtin added the comment:
Duplicate of #5689.
--
nosy: +brian.curtin
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Brian Curtin added the comment:
Here is a patch with some tests and doc changes.
I'm having trouble coming up with tests which will work with CTRL_C_EVENT and
CTRL_BREAK_EVENT. Based on my understanding of GenerateConsoleCtrlEvent, I
figured this example
(http://msdn.microsoft.com/
Changes by Brian Curtin :
Removed file: http://bugs.python.org/file16703/issue1220212.patch
___
Python tracker
<http://bugs.python.org/issue1220212>
___
___
Python-bug
Brian Curtin added the comment:
Removed an unnecessary goto and fixed a few tab/space inconsistencies (ugh).
--
Added file: http://bugs.python.org/file16704/issue1220212.patch
___
Python tracker
<http://bugs.python.org/issue1220
Brian Curtin added the comment:
Fixed in trunk (r79518), release26-maint (r79519), py3k (r79520), and
release31-maint (r79521).
--
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed
versions: +Python 2.7, Python 3.1, P
Brian Curtin added the comment:
Anyone opposed to this being checked in? Other than some style issues which
I'll fix on checkin, I believe this is ready to go. I'd like to get it in so I
can backport it to 2.7 before the beta on Saturday.
--
assignee: eric.smith ->
Brian Curtin added the comment:
Good catch. That was intended to be a single tuple because the other check
above is a tuple, but because this really only checks one thing it could be a
!= until its necessary to be a tuple. I'll f
Brian Curtin added the comment:
Made the change in r79529 through 79532.
--
___
Python tracker
<http://bugs.python.org/issue8225>
___
___
Python-bugs-list mailin
Brian Curtin added the comment:
Gabriel, besides the *Ex naming, do you see anything wrong with the rest of the
patch? I'd like to try and get this into 2.7 before the upcoming beta.
--
___
Python tracker
<http://bugs.python.org/i
Brian Curtin added the comment:
One last issue to solve before this goes in and I start the
backport...test_tarfile.test_extract_hardlink is intermittently failing for me,
which was an issue for Eric and I on an earlier version of Jason's patch.
Sometimes it fails when run as a part o
Changes by Brian Curtin :
--
nosy: +flox
___
Python tracker
<http://bugs.python.org/issue8277>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Changes by Brian Curtin :
--
nosy: +orsenthil
versions: -Python 2.5, Python 3.3
___
Python tracker
<http://bugs.python.org/issue8280>
___
___
Python-bugs-list m
Changes by Brian Curtin :
--
nosy: +brian.curtin
___
Python tracker
<http://bugs.python.org/issue2810>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brian Curtin added the comment:
This is a known issue which is fixed in Windows Installer 5.0. See
http://blogs.msdn.com/heaths/archive/2009/02/02/changes-to-package-caching-in-windows-installer-5-0.aspx
One sentence summary snippet: "But during uninstall, packages would di
Brian Curtin added the comment:
Confirmed on 3.x.
--
versions: +Python 3.1, Python 3.2
___
Python tracker
<http://bugs.python.org/issue3778>
___
___
Python-bug
Brian Curtin added the comment:
See PC/_msi.c, Lib/msilib, and Tools/msi
--
___
Python tracker
<http://bugs.python.org/issue3778>
___
___
Python-bugs-list mailin
Changes by Brian Curtin :
Removed file: http://bugs.python.org/file16704/issue1220212.patch
___
Python tracker
<http://bugs.python.org/issue1220212>
___
___
Python-bug
Brian Curtin added the comment:
Michael, do you have an example of something which returns a handle? This
current patch doesn't work with handles, but it wouldn't be hard to add it. I
could make it work with the _handle object of a Popen object, but you could
just as easily call
Brian Curtin added the comment:
Committed to trunk in r79620. I'll do the forward port after 2.7b1.
--
stage: patch review -> committed/rejected
___
Python tracker
<http://bugs.python.or
Brian Curtin added the comment:
Committed to trunk in r79633 after talking with Michael about it. I'll forward
port it after the 2.7 beta goes out.
--
assignee: -> brian.curtin
stage: -> committed/rejected
type: -> feature request
Brian Curtin added the comment:
Do you have a test case which can reproduce the issue?
--
nosy: +brian.curtin
stage: -> test needed
type: crash -> behavior
___
Python tracker
<http://bugs.python.org/
Brian Curtin added the comment:
You might want to take a look here:
http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/
--
___
Python tracker
<http://bugs.python.org/issue8
Changes by Brian Curtin :
--
versions: -Python 3.3
___
Python tracker
<http://bugs.python.org/issue8304>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brian Curtin added the comment:
How about something like this patch?
--
Added file: http://bugs.python.org/file16765/faq_update.diff
___
Python tracker
<http://bugs.python.org/issue1220
Brian Curtin added the comment:
So far I've only seen this with os.symlink from #1578269 applied, but I will
try more runs on a vanilla py3k to see if I can catch it.
--
components: +Windows
nosy: +brian.curtin
stage: -> needs patch
type: -&g
Changes by Brian Curtin :
--
resolution: -> invalid
___
Python tracker
<http://bugs.python.org/issue8317>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Brian Curtin :
--
nosy: +brian.curtin
___
Python tracker
<http://bugs.python.org/issue1572968>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Brian Curtin :
--
nosy: +jnoller
___
Python tracker
<http://bugs.python.org/issue8296>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Brian Curtin :
--
assignee: -> brian.curtin
priority: -> normal
stage: -> needs patch
versions: -Python 2.4, Python 2.5, Python 3.3
___
Python tracker
<http://bugs.python.o
Changes by Brian Curtin :
--
assignee: brian.curtin ->
___
Python tracker
<http://bugs.python.org/issue2810>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Brian Curtin :
--
components: +Extension Modules -Library (Lib)
nosy: +brian.curtin
priority: -> normal
___
Python tracker
<http://bugs.python.org/iss
New submission from Brian Curtin :
It looks like the bytearray documentation wasn't backported when the bytearray
code was. See Doc/library/functions.rst
--
assignee: georg.brandl
components: Documentation
messages: 102576
nosy: brian.curtin, georg.brandl
severity: normal
stage:
Brian Curtin added the comment:
I have this fixed locally in a version of your os.symlink patch. The solution
is to add the directory sys.executable is from to os.environ["Path"], then that
test should pass the custom environment when the subprocess is created. I meant
to update
Brian Curtin added the comment:
Thanks for reporting this. Fixed in r79906.
--
assignee: georg.brandl -> brian.curtin
nosy: +brian.curtin -georg.brandl
priority: -> normal
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
typ
Brian Curtin added the comment:
I'm with Eric, -0. I don't really think the change is necessary.
--
nosy: +brian.curtin
___
Python tracker
<http://bugs.python.
Changes by Brian Curtin :
--
nosy: +brian.curtin
___
Python tracker
<http://bugs.python.org/issue7334>
___
___
Python-bugs-list mailing list
Unsubscribe:
On 2010-04-09, Eric Smith wrote:
>
> Eric Smith added the comment:
>
> I tried -p1 and it failed, but no matter. The contents were clear enough,
> and exactly how I would have changed the code.
>
> $ patch -p1 < 8355.diff-py-unified-by-default.diff
> patching file Tools/scripts/diff.py
> Hunk #1
Changes by Brian Curtin :
--
components: +IDLE, Windows
nosy: +brian.curtin
priority: -> normal
___
Python tracker
<http://bugs.python.org/issue8378>
___
_
Brian Curtin added the comment:
Ported to py3k in r80008.
FAQ text updated in r80009 and r80010.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/iss
801 - 900 of 1992 matches
Mail list logo