Changes by Georg Brandl ge...@python.org:
--
assignee: georg.brandl - asmodai
nosy: +asmodai
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8245
___
Georg Brandl ge...@python.org added the comment:
Thanks, should be fixed now.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8261
___
Georg Brandl ge...@python.org added the comment:
I applied the first part of the patch in r79580. I don't see that the second
part is necessary, the other functions don't have such a note.
--
resolution: - fixed
status: open - closed
___
Python
Georg Brandl ge...@python.org added the comment:
Looks good to me.
--
assignee: georg.brandl - haypo
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8227
___
Changes by Georg Brandl ge...@python.org:
--
assignee: georg.brandl - pitrou
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7696
___
Changes by Mark Dickinson dicki...@gmail.com:
--
priority: - high
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8257
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
I've fixed the using/cmdline and manpage to describe the current behavior.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8213
Mark Dickinson dicki...@gmail.com added the comment:
Float-to-decimal comparisons have been fixed, and the Decimal hash function
changed so that numerically equal Decimal and float instances hash equal, in
r79583.
The idea of raising an exception for float-Decimal comparisons was discarded
Georg Brandl ge...@python.org added the comment:
I think this patch is not correct: a generator really is the same as
generator function. Both generators and genexps return an iterator; I've
fixed that in r79587.
--
resolution: - fixed
status: open - closed
Mark Dickinson dicki...@gmail.com added the comment:
Raymond, do you want this to go into 2.7 as well? I'm assuming that we're not
going to allow mixed-type float+decimal operations in 2.7.
Also, if we're doing this, it seems to me that all the reasons you give for the
Decimal constructor
Florent Xicluna florent.xicl...@gmail.com added the comment:
Additional fixes: r79576, r79577, r79578 (idlelib package and some test modules)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7092
Georg Brandl ge...@python.org added the comment:
I'm not sure about this; what is the advantage? If you already have a list,
calling .sort() on it is more efficient since it doesn't have to create a new
list.
--
___
Python tracker
Mark Dickinson dicki...@gmail.com added the comment:
Thanks, Stefan. Applied to trunk in r79588. Still needs to be forward ported
to py3k.
--
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7279
Mark Dickinson dicki...@gmail.com added the comment:
Allowed hashing of Decimal('nan') in r79589; Decimal('snan') continues to
raise TypeError.
I've also rewritten Decimal.__hash__ a little bit, so that it won't care if
float('inf') raises an exception. This will all be much neater if the
anatoly techtonik techto...@gmail.com added the comment:
Refreshed patches - feel free to apply in any order you want.
Convenience link for reviews:
http://codereview.appspot.com/809043/show
--
___
Python tracker rep...@bugs.python.org
New submission from Florent Xicluna florent.xicl...@gmail.com:
The compile step fails on python-gdb.py on some buildbots.
# sparc solaris 10 gcc
running build_scripts
[51847 refs]
./install-sh -c python-gdb.py
./install-sh: python-gdb.py does not exist
*** Error code 1
make: Fatal
Martin v. Löwis mar...@v.loewis.de added the comment:
David, can you please take a look?
--
assignee: - dmalcolm
nosy: +dmalcolm
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8287
___
Changes by anatoly techtonik techto...@gmail.com:
Added file:
http://bugs.python.org/file16732/issue7585.difflib-tab-update-docs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7585
___
Mark Dickinson dicki...@gmail.com added the comment:
The backport wasn't as straightforward as I'd hoped, and we've pretty much run
out of time for 2.7.
One issue is that long.from_bytes(b, ...) converts b to bytes type using the
equivalent of bytes(b). This doesn't work well in 2.7
Changes by anatoly techtonik techto...@gmail.com:
Removed file:
http://bugs.python.org/file16732/issue7585.difflib-tab-update-docs.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7585
___
Changes by anatoly techtonik techto...@gmail.com:
Added file:
http://bugs.python.org/file16734/issue7585.difflib-tab-updoc-iso8601.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7585
___
Larry Hastings la...@hastings.org added the comment:
Committed in Python 2.7 as revision r79592
Committed in Python 3.2 as revision r79594
Thanks for the patch!
--
assignee: - larry
resolution: - accepted
status: open - closed
versions: +Python 3.2
Eric Smith e...@trueblade.com added the comment:
Committed in trunk in r79596. I'll leave this open until I port to py3k, check
the old tests for this usage, and create the issue to make it a
DeprecationWarning.
--
stage: patch review - committed/rejected
anatoly techtonik techto...@gmail.com added the comment:
If this doesn't relate to multibyte strings anymore, but just to long strings
then I'd open new bug.
If even regedit fails to query then maybe its WinAPI flaw? Maybe it will worth
to try ctypes.
--
Florent Xicluna florent.xicl...@gmail.com added the comment:
The PendingDeprecationWarning is still spit by the bsddb module.
$ ./python -Wd -m test.regrtest test_bsddb
test_bsddb
./Lib/importlib/__init__.py:37: PendingDeprecationWarning: The CObject type is
marked Pending Deprecation in
Michael Foord mich...@voidspace.org.uk added the comment:
Isn't there an issue around having multiple versions of Python installed? The
top level folder should only be removed if the version of Python being
uninstalled is the last installed Python. This means executing code on
uninstall and
anatoly techtonik techto...@gmail.com added the comment:
The top level should be removed only when it is empty after Python that is
being uninstalled removed its own branch.
--
___
Python tracker rep...@bugs.python.org
anatoly techtonik techto...@gmail.com added the comment:
There should be a function to remove key if empty.
BTW, what software is used to create (un)installer and where is Python code for
it?
--
___
Python tracker rep...@bugs.python.org
New submission from Grigory mat...@gmail.com:
Zipfile module documentaion says:
The file-like object is read-only and provides the following methods: read(),
readline(), readlines(), __iter__(), next()
But ZipExtFile class doesn't provide next(), it provides __next__().
--
assignee:
Brian Curtin cur...@acm.org added the comment:
See PC/_msi.c, Lib/msilib, and Tools/msi
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3778
___
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
It was never 100% clear that it ever related to multi-byte strings, so (as the
original reporter) I'd prefer to continue using this bug and just update the
title to: _winreg.EnumValue sometimes raises WindowsError (More data
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
I just wrote a C program that can read the long key name just fine, so it's not
a Windows API bug.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2810
New submission from Ram Rachum cool...@cool-rr.com:
Currently, when you create a Process, all arguments you pass to its __init__
get pickled. I understood this is done because arguments to __init__ almost
always become attributes to the Process. Like this:
def
Ram Rachum cool...@cool-rr.com added the comment:
Sorry, I accidentally typed def instead of class in my code sample.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8289
___
Dave Malcolm dmalc...@redhat.com added the comment:
Sorry about this.
I believe this is the expansion of these fragments from the Makefile.pre.in
(indenting for clarity):
gdbhooks: $(BUILDPYTHON)-gdb.py
$(BUILDPYTHON)-gdb.py: Tools/gdb/libpython.py
$(INSTALL_SCRIPT) $
New submission from LOLLA RADHA KRISHNA MURTHY radhakrishn...@rocketmail.com:
I HAVE TO PERFORM A TASK THAT IS CALENDER.PY
in what way it is easier to me please tell
--
files: day.py
messages: 102175
nosy: krishnalolla
severity: normal
status: open
title: I HAVE A PROBLEM WITH PYTHON
Ezio Melotti ezio.melo...@gmail.com added the comment:
HI!
This is the wrong place where to ask help, try
http://www.python.org/about/help/#got-a-python-problem-or-question
--
nosy: +ezio.melotti
resolution: - invalid
stage: - committed/rejected
status: open - closed
New submission from LOLLA RADHA KRISHNA MURTHY radhakrishn...@rocketmail.com:
i have a doubt with __init__ and .self how it is useful to us?
are we have to define a class in another class?if it is by what function
--
messages: 102177
nosy: krishnalolla, skip.montanaro
severity: normal
Ezio Melotti ezio.melo...@gmail.com added the comment:
Hi!
This is the wrong place where to ask help, try
http://www.python.org/about/help/#got-a-python-problem-or-question
--
nosy: +ezio.melotti
resolution: - invalid
stage: - committed/rejected
status: open - closed
New submission from A.M. Kuchling li...@amk.ca:
While looking at #4440, I grepped for similar problems and found one in
platform.py in the following line:
if no_os_uname or not filter(None, (system, node, release, version, machine))
In 3.x, filter() returns an object, not a list, so 'not
A.M. Kuchling li...@amk.ca added the comment:
Thanks for your bug report and patch!
The original 2.x version was pretty ugly code with a lambda that used default
arguments, so I rewrote the line to be more modern; it now does
' all((x in abbrevs) for x in line.split())'.
Committed my version
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Added the requires decorator as requested.
Committed in r79602. Will backport to 2.7 this weekend.
And yes, I agree that Fraction(somedecimal) should work too. It would be weird
to have Fraction(1.1) work but not
Mark Dickinson dicki...@gmail.com added the comment:
Mark, I do think we should have decimal+float--float in 2.7 also.
That's fine with me in principle. But isn't 2.7 in feature freeze from
tomorrow?
--
___
Python tracker rep...@bugs.python.org
Mark Dickinson dicki...@gmail.com added the comment:
And yes, I agree that Fraction(somedecimal) should work too.
What about Fraction(1.1)?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8257
Michael Foord mich...@voidspace.org.uk added the comment:
After discussion with Brian it seems like it should be possible for
os.kill(...) on Windows to support both pids *and* process handles. This seems
ideal.
--
___
Python tracker
A.M. Kuchling li...@amk.ca added the comment:
Added a warning to 2.x trunk in r79607, and Gabriel's doc change in r79608.
This thread-unsafety seems specialized and rarely of great importance, so I
used the note:: directive, not warning::.
--
nosy: +akuchling
resolution: - fixed
New submission from David Andrzejewski site+python@davidandrzejewski.com:
Python 2.6.4, Windows XP.
If you run the following code:
import httplib
http_connection = httplib.HTTPConnection(192.168.192.196)
http_connection.request(GET, /)
http_connection.sock.settimeout(20)
response =
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +orsenthil
priority: - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8293
___
___
John Posner jjpos...@optimum.net added the comment:
Georg, your change (r79587) makes this the main definition:
generator
A function which returns an iterator.
I'm concerned that this definition does not fit well with the occurrence of
generator object in the following:
Python
Mark Dickinson dicki...@gmail.com added the comment:
I made a couple of experimental checkins to the release26-maint branch (I
didn't want to do a temporary checkin to the trunk with a release imminent):
see r79560 (which didn't work :) and its fix in r79601. Results:
MIN =
Mark Dickinson dicki...@gmail.com added the comment:
A nitpick: on OS X, the gdb script ends up being called:
python.exe-gdb.py
Is this intentional? If it is, then I'll add this filename to the svn:ignore
property. (And also to make distclean, I guess. Is python-gdb.py currently
deleted
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r79615 (only applies to py3k.)
--
resolution: - fixed
status: open - closed
versions: +Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
Larry Hastings la...@hastings.org added the comment:
Yes. I was told it was inappropriate for me to change the bsddb module, as
it's independently maintained by Jesus Cea. I sent Mr. Cea a patch last night;
I hope he chooses to merge it soon.
Since CObjects are marked Pending Deprecation,
Dave Malcolm dmalc...@redhat.com added the comment:
A nitpick: on OS X, the gdb script ends up being called:
python.exe-gdb.py
Is this intentional? If it is, then I'll add this filename to the
svn:ignore property. (And also to make distclean, I guess. Is python-
gdb.py currently
Larry Hastings la...@hastings.org added the comment:
Oh, and, last night I checked in r79590. This is the checkin that ameliorates
the backwards compatibility issues. Specifically, I changed four things:
* PyCObject_AsVoidPtr() can now open capsules. This addresses
most of the remaining
Mark Dickinson dicki...@gmail.com added the comment:
Added python.exe-gdb.py to svn:ignore in r79616.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8032
___
Florent Xicluna florent.xicl...@gmail.com added the comment:
Ok, I put Jésus in the nosy list.
It makes the test___all__ fail on trunk because it checks the warnings raised
during import.
AFAIU, the patch is something like:
-#if (PY_VERSION_HEX 0x0302)
+#if (PY_VERSION_HEX 0x0207)
Mark Dickinson dicki...@gmail.com added the comment:
To my knowledge, OS X doesn't ship with gdb 7
That sounds right. On my OS X 10.6.3 machine, the system gdb is:
Mark-Dickinsons-MacBook-Pro:py3k dickinsm$ gdb --version
GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51
New submission from Mark Dickinson dicki...@gmail.com:
Here's a patch that allows direct construction of a Fraction instance from a
float or Decimal instance, performing an exact conversion in either case.
from fractions import Fraction
from decimal import Decimal
Fraction(1.1)
Mark Dickinson dicki...@gmail.com added the comment:
(The patch is against trunk, btw.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8294
___
Changes by Brian Curtin cur...@acm.org:
Removed file: http://bugs.python.org/file16704/issue1220212.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1220212
___
Brian Curtin cur...@acm.org 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
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
The patch looks like what I expected.
In the docstring, it would be nice if we kept the line with the spec for
decimal strings: [-+]?[0-9]+((/|.)[0-9]+)?
--
assignee: rhettinger - mark.dickinson
resolution: -
Michael Foord mich...@voidspace.org.uk added the comment:
According to earlier discussion in this issue os.spawn() return process handles
on Windows.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1220212
Larry Hastings la...@hastings.org added the comment:
The patch is a bit more involved than that. Capsules didn't exist in 3.0, and
the bsddb module published a CObject in 3.1. So bsddb must continue to use
CObject for those two releases.
Therefore the patch to the line you were addressing
Mark Dickinson dicki...@gmail.com added the comment:
Unfortunately, that line is wrong (or at least incomplete), since decimals in
exponential form are also accepted:
Fraction('2.3e4')
Fraction(23000, 1)
I could try to reinstate a fixed version.
Attaching a second version of the patch:
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Being wrong is a good reason to eliminate that line from the docstring :-)
So, I'm happy with the patch as-is.
--
___
Python tracker rep...@bugs.python.org
Brian Curtin cur...@acm.org added the comment:
Committed to trunk in r79620. I'll do the forward port after 2.7b1.
--
stage: patch review - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7347
Changes by Eric Smith e...@trueblade.com:
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8293
___
___
Python-bugs-list mailing
John Posner jjpos...@optimum.net added the comment:
Fair enough, Georg. Case closed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8012
___
___
John Ehresman j...@wingware.com added the comment:
I'm trying to port an existing C extension to py3k and find myself wanting
something like PyUnicode_AsString so I don't need to introduce other objects to
do memory management. PyUnicode_AsString is equivalent to PyArg_Parse w/ a 's'
format
Ezio Melotti ezio.melo...@gmail.com added the comment:
Here's a new patch. Should be complete but I want to test it some more before
committing.
I decided to follow RFC 3629, putting 0 instead of 5/6 for bytes in range F5-FD
(we can always put them back in the unlikely case that the Unicode
Mark Dickinson dicki...@gmail.com added the comment:
Thanks, Raymond. Committed to trunk in r79629. Will forward port to py3k.
--
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8294
Michael Foord mich...@voidspace.org.uk added the comment:
Committed revision 79632.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8038
___
___
New submission from Tarek Ziadé ziade.ta...@gmail.com:
unpack_archive is the reverse operation of make_archive and works the same way:
it has a registery of function for each archive format.
--
assignee: tarek
components: Library (Lib)
messages: 102212
nosy: tarek
priority: normal
Brian Curtin cur...@acm.org 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
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
Added file: http://bugs.python.org/file16742/distutils2-C++.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1222585
___
Michael Foord mich...@voidspace.org.uk added the comment:
Further commit revision 79643. Needs tests and documentation.
--
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8038
Changes by Michael Foord mich...@voidspace.org.uk:
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8038
___
___
Python-bugs-list mailing list
Michael Foord mich...@voidspace.org.uk added the comment:
Committed revision 79643. Needs test and documentation.
--
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7780
Benjamin Peterson benja...@python.org added the comment:
I think python-LDCXXSHARED.patch is fine.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1222585
___
Changes by Clovis Fabricio nosklo+pyt...@gmail.com:
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5712
___
___
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
I think it would be better to put this in the ASPN recipes cookbook to let it
mature and gather a following. Right now, it is not at all clear that this is
the right thing to do.
--
resolution: - rejected
status:
Grigory mat...@gmail.com added the comment:
What about 2.7? I see the issue there too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8288
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
priority: - low
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6133
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7764
___
New submission from Andrey Vlasovskikh andrey.vlasovsk...@gmail.com:
multiprocessing.Pool methods map, imap, etc. are said to be able to normally
handle exceptions. But it seems that it is true only for synchronous exceptions
inside their first func arguments.
When (typically during a
Brian Curtin cur...@acm.org 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 rep...@bugs.python.org
http://bugs.python.org/issue8296
Andrey Vlasovskikh andrey.vlasovsk...@gmail.com added the comment:
Yes, here is my test case.
--
Added file: http://bugs.python.org/file16743/test_pool_keyboardinterrupt.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8296
Brian Curtin cur...@acm.org added the comment:
You might want to take a look here:
http://jessenoller.com/2009/01/08/multiprocessingpool-and-keyboardinterrupt/
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8296
Andrey Vlasovskikh andrey.vlasovsk...@gmail.com added the comment:
Yes, I've come up with the same solution by myself, but it cannot cover all the
cases of the bug. It works only for cases when ^C is hit during a call to the
users' function:
New submission from Chris Jerdonek chris.jerdo...@gmail.com:
It would be nice if the error message for an AttributeError could include the
module name when getting from a module -- just like it does for getting from a
class.
This would make the message more helpful. For example, it would
New submission from LOLLA RADHA KRISHNA MURTHY radhakrishn...@rocketmail.com:
what is the process to save the module in python?
--
messages: 102225
nosy: krishnalolla
severity: normal
status: open
title: in what way we have to save tha module?
___
Changes by LOLLA RADHA KRISHNA MURTHY radhakrishn...@rocketmail.com:
--
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8298
___
94 matches
Mail list logo