Georg Brandl ge...@python.org added the comment:
Yes, that seems a good idea.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6879
___
___
Martin v. Löwis mar...@v.loewis.de added the comment:
This can't possibly work. Extension modules that also link with the CRT
will thus end with a separate copy of the CRT global state, causing
crashes.
--
nosy: +loewis
___
Python tracker
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6412
___
___
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
I cannot reproduce it with the python.org version:
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
(Intel)] on
win32
Type help, copyright, credits or license for more information.
py import Tkinter
py import os
py
New submission from Yinon Ehrlich yino...@users.sourceforge.net:
on Ubuntu 8.04 -
I downloaded the sources, then:
./configure --prefix=$HOME
make make install
in ~/bin/idle3 when I press Ctrl+Space (according to the Edit menu,
should show completions) idle crashes with the following
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
If you provide a test case the patch has a greater chance of being
accepted.
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6895
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6880
___
___
Georg Brandl ge...@python.org added the comment:
Thanks, added a reference in r74818.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6880
___
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r74819.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6876
___
Georg Brandl ge...@python.org added the comment:
Commented out the link for now in r74820.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6891
Georg Brandl ge...@python.org added the comment:
I don't think the iterator type needs to be documented; many other such
iter types aren't.
Also, the argument names needn't match (since C doesn't have the notion
of keyword arguments). They can be changed in the docs to be more
obvious than
Georg Brandl ge...@python.org added the comment:
Fixed in r74821.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6885
___
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4749
___
___
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
@Robert: Yes, I'd say this is the same problem as issue4749
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2320
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6829
___
___
Georg Brandl ge...@python.org added the comment:
This is caused by the special displayhook that pdb uses.
Normally, the displayhook suppresses output when it would print None;
this is not done in pdb's displayhook. This was a conscious decision,
because it can remove confusion when you try to
Ezio Melotti ezio.melo...@gmail.com added the comment:
This is a duplicate of #1028.
--
nosy: +ezio.melotti
resolution: - duplicate
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
The patch submission was correct.
I edited the patch a bit, moved the example from augmented assignment to
the regular assignment and added a link from there to the new section.
Committed in r74822.
--
resolution: works for me -
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Isn't this better implemented via a codec error handler?
--
nosy: +amaury.forgeotdarc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1028
Barry A. Warsaw ba...@python.org added the comment:
I agree that this is a release blocker for 2.6.3
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6844
___
Barry A. Warsaw ba...@python.org added the comment:
Agreed this should be a release blocker for 2.6.3
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6851
___
Barry A. Warsaw ba...@python.org added the comment:
Agreed this should be a release blocker for 2.6.3
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6918
___
Barry A. Warsaw ba...@python.org added the comment:
I'm willing to leave this as a release blocker for 2.6.3, but I will
re-evaluate it if no progress is made on it.
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
Ask Solem a...@opera.com added the comment:
Amaury Forgeot d'Arc, wrote:
And I'd follow the same path: provide a way to build a launcher -
a .exe file that simply starts python with the given script.
Sounds good, but how would you expect to set the process name
for a subprocess, like a
Georg Brandl ge...@python.org added the comment:
That one has to close open files should be common knowledge.
And it's already documented that the filehandle returned is to be
treated as if coming from `os.open`, so the isn't a file object is
documented as well.
Insofar, I'm in agreement with
Georg Brandl ge...@python.org added the comment:
Fixed (by adding the add_help_option=False argument to OptionParser) in
r74824.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6892
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed in r74825 (trunk) and r74827 (release26-maint), thanks!
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Georg Brandl ge...@python.org:
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6919
___
Jean-Paul Calderone exar...@divmod.com added the comment:
I'm not sure I'll be able to work on this again for a while after this
morning, so here's a patch. I don't really understand how the exception
structs are involved here, so I don't really know why the patch works,
but it seems to. If
Benjamin Peterson benja...@python.org added the comment:
We are trying to cut down on the number of warning directives in the
docs; I think a note directive would be appropriate for yours.
--
nosy: +benjamin.peterson
___
Python tracker
anatoly techtonik techto...@gmail.com added the comment:
Yep, the patch at #6267 is an extension of this one except for the last
chunk where I also check if sockets are ssl-enabled. I am not sure why
it was needed. It also may have been already fixed somewhere else. As
this bug doesn't have
Jean-Paul Calderone exar...@divmod.com added the comment:
prctl is not portable. I always thought that the premise of stdlib is to
provide portable interfaces. BSD, for example, uses setprocname instead
of prctl. Also, prctl does not modify the process name shown in ps
uxww. Here's how
New submission from David Hanney spam2...@nney.com:
I was playing about with ideas behind b-plus-trees
and found i python bug
the important bit of code is:
for p, k in enumerate(self.keys):
self.ptrs[p].dump(indent+1, kmin=lk, kmax=k)
Zvezdan Petkovic zvez...@zope.com added the comment:
The patch `readline-libedit.patch` has the following problems:
- a typo causing an undefined variable error;
- a missing #endif;
- it doesn't refer to the new __APPLE__ specific doc string anywhere.
It fails to compile `readline.c`. ::
STINNER Victor victor.stin...@haypocalc.com added the comment:
@techtonik: I don't think that testing socket._have_ssl is better than testing
for HTTPSConnection. socket._have_ssl might be True, whereas
HTTPSConnection is missing for a random reason. xmlrpclib uses
HTTPSConnection, not directly
Boya Sun boya@case.edu added the comment:
Martin,
Corrected the patch accordingly. Can you verify whether the fix is
correct or not now?
Boya
--
Added file: http://bugs.python.org/file14900/patch_6873.diff
___
Python tracker
darkspork cjd.d01...@gmail.com added the comment:
I can confirm this as well. It also locks up when pasting text. The EDIT
menu retains its glow, and the pasted text appears after a few seconds,
along with another blank square window titled idle. Idle then locks up.
Using the scrollbar in any
anatoly techtonik techto...@gmail.com added the comment:
There should be a better way to do this check, because HTTPConnection
method may exists, but HTTPConnection may be impossible, because of
other reasons.
And I still would like to see this fix in Python 2.6 - too bad it hadn't
enough
Mitchell Model m...@acm.org added the comment:
No problem with the None's -- I see your point about that. Just that
maybe the alias example should point out that the Nones will be
printed so people won't be surprised and try to figure out what's wrong.
--- Mitchell
On Sep 16, 2009, at
Georg Brandl ge...@python.org added the comment:
Actually, Guido hates the Nones. :) Fixed in r74839.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6903
STINNER Victor victor.stin...@haypocalc.com added the comment:
@techtonik: We wrote HTTPConnection twice. I don't really understand your
request. Do you think that the issue is fixed in Python trunk or not? If not,
please open a new issue since this issue is closed.
techtonik And I still would
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1613573
___
___
Python-bugs-list mailing
STINNER Victor victor.stin...@haypocalc.com added the comment:
@techtonik: You wrote HTTPConnection twice. I don't really understand your
request. Do you think that the issue is fixed in Python trunk or not? If not,
please open a new issue since this issue is closed.
techtonik And I still would
Robert Lehmann lehman...@gmail.com added the comment:
If I understand you correctly, your proposal is the following: use
Shelf.cache to cache *all* objects instead of only keeping live
references. Your patch retains the cache forever instead of purging it
on sync. (All these changes only apply
New submission from Alex malicious.wiz...@gmail.com:
*** Prerequisites:
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
(Intel)] on win32
*** Description:
'utf_32_le' and 'utf_32_be' codecs are overconsuming memory when input
data are damaged and kwarg 'errors' to str.decode
Martin v. Löwis mar...@v.loewis.de added the comment:
Yes, it looks correct now. I still wish it could be tested on a system
where the problem actually occurs.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6873
Mark Dickinson dicki...@gmail.com added the comment:
This is almost certainly not a bug in Python. At a guess, in the
outermost 'else' clause of your dump method, self.keys can be empty. Then
the 'for p, k in enumerate(self.keys):' does zero iterations, so p is not
defined in the assert;
Mark Dickinson dicki...@gmail.com added the comment:
Ah, I see the problem now: you're expecting that after
for p, elt in enumerate(mylist):
do_stuff
p will be equal to len(mylist)-1. That's true if mylist is nonempty
(because on the last round of the for loop, p gets the value
Georg Brandl ge...@python.org added the comment:
The patch leads to crashes with all the exceptions that have their own
structs; since they are derived from BaseException they must start with
the same binary layout as PyBaseExceptionObject (pointers to any
exception will be cast to
Georg Brandl ge...@python.org added the comment:
Huh. I just made some tests to find out if exceptions with a message set
survive pickling in 2.6.2 and unpickling in patched trunk.
I found that the message attribute isn't pickled at all in 2.6.2, so
there should be no cross-version
Alan Isaac alan.is...@gmail.com added the comment:
I hope it is not too annoying to link these ...
I asked thhis of Jean-Paul but now I'll ask it of George.
Since you are working on this, can you see if
http://bugs.python.org/issue6108
is related or in any case can be fixed at the same time?
Mark Dickinson dicki...@gmail.com added the comment:
Updated patch, with minor changes:
- remove an incorrect Py_DECREF(str)
- rename _PyLong_ToDecimal; no need for the _Py prefix, since this
function isn't shared across files
- absorb special case for 0 into the rest of the code
-
Georg Brandl ge...@python.org added the comment:
Yes, it should be fixed, but it is not related. I'm setting it as a
release blocker as well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6844
Changes by Georg Brandl ge...@python.org:
--
priority: high - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6108
___
___
Georg Brandl ge...@python.org added the comment:
And this is a duplicate of (the somewhat complicated-named) #6108.
--
nosy: +georg.brandl
resolution: - duplicate
status: open - closed
superseder: - unicode(exception) behaves differently on Py2.6 when
len(exception.args) 1
Brett Cannon br...@python.org added the comment:
Just looked at the patch and it looks good to me. I say go ahead and
commit, Georg.
--
assignee: loewis - georg.brandl
stage: - commit review
___
Python tracker rep...@bugs.python.org
New submission from Thomas Wouters tho...@python.org:
In order to properly handle multiple threads and fork()-calls from C code
(rather than os.fork()), Python should provide pthread_atfork()-like
functionality: a function to call before a fork, to acquire any locks
that need to be acquired,
Thomas Wouters tho...@python.org added the comment:
Checked in the patch to fix the forks-through-os.fork() cases, which
should be most of them. Forks from other C code will need some more work,
created http://bugs.python.org/issue6923 to track that.
--
resolution: - fixed
status:
Ronald Oussoren ronaldousso...@mac.com added the comment:
Annoyingly PyObjC suffers from the same issue. I hadn't noticed this yet
because I've been linked to the system copy of libffi the last couple of
months.
Luckily Apple has already released the source code for libffi in 10.6
(see
Georg Brandl ge...@python.org added the comment:
OK, I added another test for pickling, committed in r74845, and
backported to 2.6 in r74848.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Kevin Walzer wordt...@users.sourceforge.net added the comment:
The bug with the edit menu sounds like the same issues I noted in
http://bugs.python.org/issue6463. I think it was related to something in
Tk-Cocoa 8.5, which was resolved in a later build of Tk, and which is why
I closed the bug.
Travis H. travis+w-python@subspacefield.org added the comment:
I have coded up a first draft at implemented {get,set}res{gid,uid}
functions. This completes the exposure of the user and group setting
functions, and enables python programmers to be able to safely drop
privileges, for example
Ronald Oussoren ronaldousso...@mac.com added the comment:
The attached patch seems to fix the issue, but needs further testing.
Warning: the patch is not entirely clean, the patch contains an
unrelated change to setup.py.
The patch replaces some code that uses ctypes to read configuration
Ronald Oussoren ronaldousso...@mac.com added the comment:
kevin: do you know if there is a plain Tcl script that shows the bug? If
there is we can file a bugreport with Apple that clearly shows a problem
in the Tk framework and hence makes it more likely that the issue will get
fixed.
Kevin Walzer wordt...@users.sourceforge.net added the comment:
Ronald: No, unfortunately I was never able to reproduce the bug in pure
Tcl. I tried various examples with the Tk text widget. I also tried
various examples with the text widget via Tkinter. Each time the text
widget, cutting,
New submission from Emmanuel Bengio beng...@gmail.com:
Using the following command in Python 2.6.1:
struct.unpack(BI,12345)
Traceback (most recent call last):
File pyshell#1, line 1, in module
struct.unpack(BI,12345)
error: unpack requires a string argument of length 8
I get this error
Mark Dickinson dicki...@gmail.com added the comment:
I think this is expected behaviour: the key point is that structs can
include padding bytes. From the documentation:
By default, C numbers are represented in the machine’s native format and
byte order, and properly aligned by skipping pad
Dave Malcolm dmalc...@redhat.com added the comment:
I cannot test this in my current environment because I'm stuck with Red
Hat and it does not have a recent enough automake to re-create configure
from configure.in.
FWIW, it may be an _autoconf_ version issue; I'm able to recreate a
Mark Dickinson dicki...@gmail.com added the comment:
Applied long_decimal_conversion_py3k_2.patch in r74851; backported to
trunk in r74853.
Still to do:
- look at the 'two-digits-at-a-time' optimization.
- rip out the non-binary-base code from _PyLong_Format
While we're at it, it would
David Hanney spam2...@nney.com added the comment:
Ooops. I'm just learning Python and it never occurred to me that I could
get through the for without k begin defined. At least not until about an
hour ago in the cinema. I came here ASAP but you'd already got to it.
Sorry for wasting your time.
New submission from Jason R. Coombs jar...@jaraco.com:
It appears that somewhere between Python 2.5 and Python 2.6, some socket
constants were lost in Windows builds.
Python 2.6.2 (r262:71605, Apr 14 2009, 22:46:50) [MSC v.1500 64 bit
(AMD64)] on win32
Type help, copyright, credits or license
New submission from Terry J. Reedy tjre...@udel.edu:
Doc for locals(): after correctly stating
Update and return a dictionary representing the current local symbol table.
Note
The contents of this dictionary should not be modified; changes may not
affect the values of local variables used by
Jason R. Coombs jar...@jaraco.com added the comment:
This comment from the MSDN docs may be relevant:
On the Microsoft Windows Software Development Kit (SDK) released for
Windows Vista and later, the organization of header files has changed
and IPPROTO_IPV6 level is defined in the Ws2def.h
Changes by Terry J. Reedy tjre...@udel.edu:
--
assignee: - georg.brandl
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294232
___
New submission from Terry J. Reedy tjre...@udel.edu:
3.3.3. Customizing class creation
3.1/3.2 docs say
If the metaclass keyword argument is based with the bases, it is used.
(new version for 3.x) I presume 'based' was meant to be 'passed'.
However, with that correction, would it really be
New submission from Terry J. Reedy tjre...@udel.edu:
For 3.x, I think 7.7 Class Definitions should mention the metaclass
keyword arg and cross-reference 3.3.3 Customizing class creation. Since
it is no longer a 'special' name, let alone a 'special method name',
there is no reason to know to look
Yuv Gre ubershme...@gmail.com added the comment:
You're right, I was confused by the statement arg is not a Python
function. I didn't realize 'arg' meant the function I passed to
getargspec, I thought it was just strange.
After digging a bit into inspect.py, may I suggest line 814 be changed
Jason R. Coombs jar...@jaraco.com added the comment:
I think I found the problem.
It appears Python is compiled with
#define _WIN32_WINNT 0x0500
But IPPROTO_IPV6 (and other constants) are only defined
#if(_WIN32_WINNT = 0x0501)
What's the proper fix for this issue?
--
Jason R. Coombs jar...@jaraco.com added the comment:
I think a suitable test case for this issue is:
if hasattr(sys, 'getwindowsversion'):
if sys.getwindowsversion() = (5,1):
assert hasattr(socket, 'IPPROTO_IPV6')
--
___
Python tracker
Jeff Bradberry jeff.bradbe...@gmail.com added the comment:
This patch adds the requested behavior to the current 2.7 svn trunk.
Both 'encoding' and 'errors' may be used as keyword arguments for
encode() and decode().
--
keywords: +patch
nosy: +jbradberry
Added file:
Benjamin Peterson benja...@python.org added the comment:
They should also probably be added to unicode(), str(), unicode.decode,
and unicode.encode then. (Also some tests, please!)
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
Zhigang Wang w1z...@gmail.com added the comment:
Thanks Robert for pointing out issue553171.
After read that issue, I still think we paid too much to make shelf less
surprising.
We should at lease provide a option for the *smart* programmers to get
better speed and less exceptions.
The
82 matches
Mail list logo