Ben Finney added the comment:
Attached is a patch which is more comprehensive (covering the additional
locations pointed out to me by ncoghlan), and also consolidating the details
into the library documentation so they're not verbosely repeated in so many
places.
I agree with Nick's position
Ben Finney added the comment:
Apologies, my previous comment and patch was sent to the wrong issue (should
have gone to #8810).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15731
___
Ben Finney added the comment:
Attached is a patch which is more comprehensive (covering the additional
locations pointed out to me by ncoghlan), and also consolidating the details
into the library documentation so they're not verbosely repeated in so many
places.
I agree with Nick's position
Kevin Chen added the comment:
Hi I made the following patch for this issue.
It addresses the #2051 security bug. So the .pyc and .pyo files are created
using the same permission as .py
The MS_WINDOWS version will chmod the permission of .pyc and .pyo files to
write accessible before deleting
Andrea Griffini added the comment:
I missed all the macrology present :-( ... the following is a patch that takes
it into account (also defines a VISIT_QUIT macro to make more visible the exit
points). The handling has been also extended to visit_stmt because the macros
are shared.
Of course
Nick Coghlan added the comment:
Just a heads up that I'm about to check in a fairly major change to the
sequence docs layout. I'm leaving the memoryview block alone, so hopefully this
won't cause you any problems, but there's going to be a merge in your future :)
--
nosy: +ncoghlan
Martin v. Löwis added the comment:
I still can't reproduce it. I'm attaching client and server scripts that
communicate over 127.0.0.1. This works just fine.
--
Added file: http://bugs.python.org/file26914/server.py
___
Python tracker
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: - ncoghlan
versions: -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4966
___
Changes by Martin v. Löwis mar...@v.loewis.de:
Added file: http://bugs.python.org/file26915/client.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11631
___
Andrea Griffini added the comment:
On Mon, Aug 20, 2012 at 12:27 AM, Antoine Pitrou rep...@bugs.python.org wrote:
Indeed I don't like the introduction of COMPILER_STACK_FRAME_SCALE.
Re-using the existing infrastructure would be much easier to maintain.
The default recursion limit is 1000,
Ronald Oussoren added the comment:
I'm pretty sure this is a generic Makefile bug. I could reproduce this problem
with a clean install into a new prefix, after cleaning up the source tree:
'make clean' won't remove the generated file when srcdir != builddir.
This line in the Makefile seems
Roundup Robot added the comment:
New changeset 463f52d20314 by Nick Coghlan in branch 'default':
Close #4966: revamp the sequence docs in order to better explain the state of
modern Python
http://hg.python.org/cpython/rev/463f52d20314
--
nosy: +python-dev
resolution: - fixed
stage:
Michael Dorman added the comment:
I'd suggest this is an issue in the doc for the InteractiveInterpreter class.
Try locals=global() and your problem goes away. (namespace == __main__)...
--
keywords: +patch
nosy: +mjdorma
Added file: http://bugs.python.org/file26917/issue8943.diff
danblack added the comment:
Antoine,
I copied off your http example for all the other protocols.
tested with:
import smtplib
a = smtplib.SMTP_SSL('gmail-smtp-in.l.google.com.')
a.starttls()
a = smtplib.SMTP_SSL('mail.internode.on.net')
a = smtplib.SMTP_SSL('smtp.gmail.com')
import ftplib
#
New submission from Stefan Krah:
Coverity found an unchecked return value in _PySequence_BytesToCharpArray().
Patch attached.
A demonstration:
import _posixsubprocess
class Z(object):
def __len__(self):
return 1
_posixsubprocess.fork_exec(1,Z(),3,[1,
Martin v. Löwis added the comment:
LGTM. Please apply to all affected branches.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15732
___
aliles added the comment:
Submitted patch. Patch creates a new unit test suite with basic unit tests for
InteractiveConsole. Enhances InteractiveConsole to call sys.excepthook instead
of it's own handler if the user has overridden the excepthook.
The unit tests use the new unittest.mock
Changes by Michael Dorman mjdo...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8943
___
___
Python-bugs-list
Sandro Tosi added the comment:
I tend to agree with Terry that this report can be closed: base 16 is quite
known and it's high likely that if you know what hexadecimal is, you also aware
of the concept of base X and viceversa.
If no-one objects, I'd just close it.
--
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
keywords: +needs review, patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13370
___
___
Roundup Robot added the comment:
New changeset cfddcf964ff0 by Stefan Krah in branch '3.2':
Issue #15732: Fix (constructed) crash in _PySequence_BytesToCharpArray().
http://hg.python.org/cpython/rev/cfddcf964ff0
--
nosy: +python-dev
___
Python
Stefan Krah added the comment:
Thanks for reviewing!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15732
New submission from Robin Schreiber:
Changes proposed in PEP3121 and PEP384 have now been applied to the winapi
module!
--
components: Extension Modules
files: _winapi_pep3121-384_v0.patch
keywords: patch
messages: 168639
nosy: Robin.Schreiber, astrand, effbot, loewis
priority: normal
Robin Schreiber added the comment:
Forgot to change the macro definition...
--
Added file: http://bugs.python.org/file26922/_winapi_pep3121-384_v1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15733
New submission from Robin Schreiber:
Changes proposed in PEP3121 and PEP384 have now been applied to the spwd module!
--
components: Extension Modules
files: spwd_pep3121-384_v0.patch
keywords: patch
messages: 168641
nosy: Robin.Schreiber
priority: normal
severity: normal
status: open
New submission from Robin Schreiber:
Changes proposed in PEP3121 and PEP384 have now been applied to the ossaudio
module!
--
components: Extension Modules
files: ossaudiodev_pep3121-384_v0.patch
keywords: patch
messages: 168642
nosy: Robin.Schreiber
priority: normal
severity: normal
New submission from Stefan Krah:
A Py_ssize_t overflow can be constructed in _PySequence_BytesToCharpArray().
Patch attached.
Demonstration (requires revision = 2af78f8a98e1):
Python 3.3.0b2+ (default:2af78f8a98e1, Aug 20 2012, 11:38:54)
[GCC 4.4.3] on linux
Type help, copyright, credits or
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12643
___
___
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15731
___
___
New submission from Stefan Krah:
There's a use of an unchecked return value in zipimport.c. Patch attached.
--
components: Extension Modules
files: zipimport_null_dereference.diff
keywords: patch
messages: 168644
nosy: skrah
priority: normal
severity: normal
stage: patch review
status:
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15721
___
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
Removed message: http://bugs.python.org/msg168621
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15731
___
Changes by Nick Coghlan ncogh...@gmail.com:
--
Removed message: http://bugs.python.org/msg168622
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15731
___
Changes by Nick Coghlan ncogh...@gmail.com:
Removed file: http://bugs.python.org/file26910/issue8810_reconcile_docs.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15731
___
New submission from Stefan Krah:
Coverity found a missing NULL check in subprocess_fork_exec(). Patch attached.
Demonstration:
import _posixsubprocess
class Z(object):
def __len__(self):
return 1
_posixsubprocess.fork_exec(Z(),[b'1'],3,[1,
2],5,6,7,8,9,10,11,12,13,14,15,16,17)
Nick Coghlan added the comment:
Rejecting - if anyone really wants this. they can do it as their own custom
import hook.
--
resolution: - wont fix
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Ronald Oussoren added the comment:
Patch looks good to me.
I've added 3.3 to the list of python versions because it might be worthwhile to
apply this to 3.3 as well (after 3.3.0 is released).
--
keywords: +needs review
versions: +Python 3.3
___
Martin v. Löwis added the comment:
LGTM.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15737
___
___
Python-bugs-list mailing
Ronald Oussoren added the comment:
Patch seems to be present in the current maintenance and development releases
(2.7, 3.2 and 3.3).
Can you confirm that this issue is no longer present in python 2.7 and later?
--
___
Python tracker
Roundup Robot added the comment:
New changeset c89fe7dc22ee by Stefan Krah in branch 'default':
Closes #15737: Fix potential NULL dereference in zipimport.c.
http://hg.python.org/cpython/rev/c89fe7dc22ee
--
nosy: +python-dev
resolution: - fixed
stage: patch review - committed/rejected
Martin v. Löwis added the comment:
That's fine, please apply
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15738
___
___
aliles added the comment:
New patch to address comments provide by Nick Coghlan in person at PyCon-AU
2012.
--
Added file: http://bugs.python.org/file26928/issue12643_2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12643
Martin v. Löwis added the comment:
It's fine if the Rietveld comments are addressed.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15736
___
Changes by Ralf Schmitt python-b...@systemexit.de:
--
nosy: +schmir
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14406
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 03c98d05b140 by Stefan Krah in branch '3.2':
Issue #15738: Fix a missing NULL check in subprocess_fork_exec().
http://hg.python.org/cpython/rev/03c98d05b140
--
nosy: +python-dev
___
Python tracker
Stefan Krah added the comment:
Thanks again!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15738
Roundup Robot added the comment:
New changeset a812de69b493 by Nick Coghlan in branch 'default':
Issue #12643: Respect sys.excepthook in code.InteractiveConsole
http://hg.python.org/cpython/rev/a812de69b493
--
nosy: +python-dev
___
Python tracker
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: - ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6074
___
___
Python-bugs-list
Ralf Schmitt added the comment:
I think having a lock here is unnecessary. The following code should work:
def _decrement_pending_calls(self):
if self.num_pending_calls == len(self.finished_futures):
self.event.set()
(well, maybe the method should also be renamed then)
--
Richard Oudkerk added the comment:
I don't see why you made has_CancelIoEx part of the module state. Availability
of CancelIoEx only depends on the version of Windows you have, so it will not
change if you reload the module.
BTW, I think you forgot to delete the has_CancelIoEx global, and to
Andrew Svetlov added the comment:
Ok, I'm +0 for that.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14649
___
___
Python-bugs-list mailing
New submission from Apple Grew:
Python crashes when I try to access (by sending http request from borwser) my
Django application.
OS: Mac OSX Lion
Python version: 2.7.1 (This was pre-bundled with OS and not a MacPort).
There isn't a simple test case but I do have an open source app which
New submission from Ronald Oussoren:
On my laptop (running OSX 10.8, but I have noticed the same on earlier OSX
releases) test_ssl fails:
==
FAIL: test_connect (test.test_ssl.NetworkedTests)
Changes by Ronald Oussoren ronaldousso...@mac.com:
--
assignee: ronaldoussoren -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15740
___
___
Andrew Svetlov added the comment:
Is it finished or not?
Also looks like patch applied to 3.3 while issue marked for 2.7 and 3.2 also.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12643
Ross Lagerwall added the comment:
Well the app has an infinite recursion.
This shows on Fedora Linux 17:
Request Method: GET
Request URL:http://127.0.0.1:8000/
Django Version: 1.4
Exception Type: RuntimeError
Exception Value:
maximum recursion depth
New submission from Stefan Krah:
Coverity found a missing NULL check in builtin_compile(). Patch attached.
--
components: Interpreter Core
files: builtin-compile-check-null.diff
keywords: patch
messages: 168664
nosy: skrah
priority: normal
severity: normal
stage: patch review
status:
Nick Coghlan added the comment:
The patch also adds a test suite for the code module, in order to demonstrate
that the issue is actually fixed.
However, due to the interactive nature of the component, the new tests rely on
unittest.mock. Backporting the test suite would mean eliminating that
Changes by Patrick Welche pr...@cam.ac.uk:
--
nosy: +prlw1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14873
___
___
Python-bugs-list mailing
Changes by Patrick Welche pr...@cam.ac.uk:
--
nosy: +prlw1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13789
___
___
Python-bugs-list mailing
Changes by Patrick Welche pr...@cam.ac.uk:
--
nosy: +prlw1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13210
___
___
Python-bugs-list mailing
Changes by Patrick Welche pr...@cam.ac.uk:
--
nosy: +prlw1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13461
___
___
Python-bugs-list mailing
Andrew Svetlov added the comment:
I'm ok with current status.
Thanks for clarification.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12643
___
Martin v. Löwis added the comment:
In addition, I plan to actively drop Windows 2000 support post 3.3, so CancelIO
can be presumed to be present.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15733
Martin v. Löwis added the comment:
That's fine, please apply.
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15741
___
___
Stefan Krah added the comment:
issue15736.diff shows what I meant in the comments. I find this
slightly more readable than casting the big RHS expression.
--
Added file: http://bugs.python.org/file26931/issue15632.diff
___
Python tracker
Changes by Stefan Krah stefan-use...@bytereef.org:
Removed file: http://bugs.python.org/file26931/issue15632.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15736
___
Stefan Krah added the comment:
Sorry, the right diff this time.
--
Added file: http://bugs.python.org/file26932/issue15736.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15736
___
Ronald Oussoren added the comment:
I've tested the patch on OSX 10.5 with GCC and all tests pass.
I'd like to get this into 3.3rc1 as the test failure indicate a problem that
could cause very vague problems for users of the ctypes library that use clang
on OSX to build python (which includes
Roundup Robot added the comment:
New changeset d5ee1a06101f by Stefan Krah in branch '3.2':
Issue #15741: Fix potential NULL dereference. Found by Coverity.
http://hg.python.org/cpython/rev/d5ee1a06101f
New changeset 2b4f6770877e by Stefan Krah in branch '2.7':
Issue #15741: Fix potential NULL
Stefan Krah added the comment:
Thanks, done.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15741
Stefan Krah added the comment:
Thanks for the warning. I see you've already committed, so my natural
inertia has protected me from additional merge work. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15724
Stan Seibert added the comment:
I can also confirm that the patch applied to the current tip (663de4dbb88a)
passes test_ctypes now with Clang 4.0 on OS X 10.8.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13370
Terry J. Reedy added the comment:
I had the impression that there *were* problems with compiling 3.3 on the new
OSX and Xcode or something. If that is wrong or all fixed, great. Sorry for the
noise.
--
___
Python tracker rep...@bugs.python.org
Ronald Oussoren added the comment:
There were some problems building using llvm-gcc, those have been resolved by
detecting falling back to clang when llvm-gcc is detected. That's the only real
problem I know of.
--
___
Python tracker
Ronald Oussoren added the comment:
BTW. I wouldn't mind a patch review, particularly by someone that can easily
test on Linux. I'm not too keen on checking in this patch without a test on
Linux, not this close to 3.3rc1.
--
___
Python tracker
Eugene Voytitsky added the comment:
Hi all, does someone can answer the questions asked by Keith Briggs in 2004:
What is the reason for this limit? Can it easily be removed?
It is causing me many problems.
I also stuck into the problem with this limitation.
Details you can read here -
New submission from Mike Hoy:
In Core-Mentorship we discussed this and decided on the following patch.
--
assignee: docs@python
components: Documentation
files: sqlite3-docs-changes.diff
keywords: patch
messages: 168681
nosy: docs@python, mikehoy, r.david.murray
priority: normal
Changes by Antoine Pitrou pit...@free.fr:
--
resolution: - invalid
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15726
___
Roundup Robot added the comment:
New changeset b96a4b1e7ecb by Antoine Pitrou in branch '3.2':
Issue #15726: Fix incorrect bounds checking in PyState_FindModule.
http://hg.python.org/cpython/rev/b96a4b1e7ecb
New changeset 7789111afe05 by Antoine Pitrou in branch 'default':
Issue #15726: Fix
Petri Lehtinen added the comment:
+ print(c.fetchone())
I don't think this line should be added because it's not there after the first
select.
--
nosy: +petri.lehtinen
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15742
Mike Hoy added the comment:
Removed print function in this patch.
--
Added file: http://bugs.python.org/file26934/sqlite3-docs-remove-print.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15742
Apple Grew added the comment:
Well I tried with Python2.6 (MacPort) now. It too crashes with Bus error. I
guess this has something to do with OSX ports.
Please investigate. Whatever it maybe, but the process must not crash like that.
--
___
Python
Roundup Robot added the comment:
New changeset 80b15cf2611e by R David Murray in branch '3.2':
#15742: clarify sqlite parameter substitution example.
http://hg.python.org/cpython/rev/80b15cf2611e
New changeset 2eafe04cb6ed by R David Murray in branch 'default':
Merge #15742: clarify sqlite
Apple Grew added the comment:
If you believe this is impossible then possibly there could be a memory
overflow issue which triggers this error in OSX builds. In other builds it may
not cause that problem or don't share the same faulty code.
--
assignee: - ronaldoussoren
components:
R. David Murray added the comment:
Thanks, Mike.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15742
Roundup Robot added the comment:
New changeset 20985f52b65e by Petri Lehtinen in branch '2.7':
#15199: Fix JavaScript's default MIME type to application/javascript
http://hg.python.org/cpython/rev/20985f52b65e
New changeset b64947b6f947 by Petri Lehtinen in branch '3.2':
#15199: Fix
Petri Lehtinen added the comment:
Fixed, thanks for the patch.
--
nosy: +petri.lehtinen
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15199
Stefan Krah added the comment:
Bad news: gcc-4.6.3 needs the size_t cast, otherwise it warns with
both the assert() and the (argc 0) version.
So I suggest using the size_t cast and a comment.
--
___
Python tracker rep...@bugs.python.org
New submission from Jeff Knupp:
urllib was updated to deprecate a number of Request methods for 3.3. The
test_urllib2 and test_urllib tests still use some of the deprecated methods.
--
components: Tests
messages: 168692
nosy: Jeff.Knupp
priority: normal
severity: normal
status: open
Jeff Knupp added the comment:
Attaching patch.
--
keywords: +patch
Added file: http://bugs.python.org/file26935/test_urllib.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15743
___
Changes by Senthil Kumaran sent...@uthcode.com:
--
assignee: - orsenthil
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15743
___
Senthil Kumaran added the comment:
The patch looks good to me. Thanks Jeff.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15743
___
___
Changes by Jeff Knupp jkn...@gmail.com:
Removed file: http://bugs.python.org/file26935/test_urllib.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15743
___
Jeff Knupp added the comment:
Updated with correct patch file.
--
Added file: http://bugs.python.org/file26936/test_urllib.patch.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15743
___
Jeff Knupp added the comment:
Senthil, sorry, missed your comment and hadn't realized anyone had seen the
patch yet. I replaced it with an updated version (had missed a few places
deprecated functions were used). Could you review the new patch instead?
--
Senthil Kumaran added the comment:
One change. get_method has only been changed not deprecated. Those test cases
should not change and moreover the current change to assert against .method
results in a failure too. get_method would return GET when .method is None
or empty.
--
Jeff Knupp added the comment:
Yes, that was part of the original patch which was incorrectly uploaded. The
current patch (2) should be correct wrt get_method.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15743
Ross Lagerwall added the comment:
Sorry, I didn't mean that it's impossible; I meant that it shouldn't happen and
it should be fixed :-)
Unfortunately I don't have access to an OS X box to test.
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 9b28dff66ac3 by Senthil Kumaran in branch 'default':
Fix Issue 15743 - improve urllib tests by removing deprecated method usages.
Patch by Jeff Knupp.
http://hg.python.org/cpython/rev/9b28dff66ac3
--
nosy: +python-dev
1 - 100 of 150 matches
Mail list logo