Göran Uddeborg goe...@uddeborg.se added the comment:
I tried by building Python 3.1.2 with the configuration
... --prefix=$home/ptest --includedir=$home/ptest/myspecialincludedir
pyconfig.h still wound up in $prefix/include/python3.1, while all other header
files were correctly placed in
STINNER Victor victor.stin...@haypocalc.com added the comment:
Le jeudi 19 août 2010 22:40:53, vous avez écrit :
Just please make sure that on other platforms such as BSD, Solaris,
AIX, etc. that don't have this special Python support
the env vars are honored.
I added much more tests on the
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Err, make that r84222.
--
status: pending - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7077
___
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7077
___
___
Changes by Tim Golden m...@timgolden.me.uk:
--
assignee: - tim.golden
components: -Interpreter Core
nosy: +tim.golden
versions: +Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue798876
Ask Solem a...@opera.com added the comment:
@greg
Been very busy lately, just had some time now to look at your patch.
I'm very ambivalent about using one SimpleQueue per process. What is the reason
for doing that?
--
___
Python tracker
Swapnil Talekar swapnil...@gmail.com added the comment:
Mark, are you sure that the above program is sure to cause a crash. I had
absolutely no problem running it with Python 3.1.2. With Python 2.6.5, PC went
terribly slow but the program managed to run till i==14 without crashing. I did
not
Brian Curtin cur...@acm.org added the comment:
(not sure its for this thread though but...) Windows on default limits
the amount of memory for 32 bit processes to 2GB. There's a bit in
the PE image which tells 64 bit windows to give it 4GB (on 32 bit
windows PAE needs to be enabled too)
New submission from Mike Dirolf m...@dirolf.com:
The json module docs state that sort_keys defaults to True. From the source it
looks like it actually defaults to False. Patch attached.
--
assignee: d...@python
components: Documentation
files: sort_keys_json.patch
keywords: patch
New submission from Catherine Devlin fredv8vi...@liquidid.net:
Is there any reason not to include the strftime formatting codes in the
docstrings of time.strftime and time.strptime?
print time.strftime.__doc__
strftime(format[, tuple]) - string
Convert a time tuple to a string according to
Brian Curtin cur...@acm.org added the comment:
+1
These are apparently so commonly looked up that there are even two websites
dedicated to these options: http://strftime.org/ and http://strfti.me/. Even
Sauce Labs put the format options on the side of the coffee mugs they handed
out at
Stefan Behnel sco...@users.sourceforge.net added the comment:
Here's a patch against the latest py3k. The following will call the new code,
for example:
str(memoryview(b'abc'), 'ASCII')
whereas bytes and bytesarray continue to use their own special casing code
(which has also changed a bit
New submission from André Bjärby andre.bja...@gmail.com:
The attached (5 line) file will crash ctypes (Python 2.6.6rc2) with a Floating
point exception (division by zero at _ctypes.c:2533).
There's no crash with python 2.5.5
--
assignee: theller
components: ctypes
files: test.py
Skip Montanaro s...@pobox.com added the comment:
There is the non-zero cost of keeping two copies of that bit of
information in-sync with each other (and the code).
If I execute pydoc time I get a link to the online module
docs. It's not there when I execute pydoc time.strftime.
Perhaps pydoc
Terry J. Reedy tjre...@udel.edu added the comment:
I presume the first example should have been
# cat file | ./test.py
or seceond should have been
# ./test.py test.py
so that test.py gets same input on stdin in either case.
For other readers: kqueue and kevent are bsd-specific functions and
Terry J. Reedy tjre...@udel.edu added the comment:
Doc/howto/doanddont.rst is the source for
Python HOWTOs: Idioms and Anti-Idioms in Python
Moshe Zadka original author (added as nosy)
The gist of the patch is to clarify that using 'with' is best, not the non-with
version that is currently
Terry J. Reedy tjre...@udel.edu added the comment:
Ned, any reason not to close this as a duplicate, with #9227 as superseder?
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9620
Changes by Amaury Forgeot d'Arc amaur...@gmail.com:
--
keywords: +easy
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue843590
___
Ned Deily n...@acm.org added the comment:
Terry, go ahead, I think that's the proper resolution.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9620
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Is there any reason not to include the strftime formatting codes
in the docstrings of time.strftime and time.strptime?
I believe the reason is that time.strftime behavior is platform dependent, so
man strftime is
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
there are even two websites dedicated to these options:
http://strftime.org/ ...
Note the source at one of these sites:
Source: Python’s strftime documentation. :-)
--
___
Terry J. Reedy tjre...@udel.edu added the comment:
In interactive mode, multiline statements are terminated with a blank line.
Your examples lacks that, so the 3rd line is part of the def and lacking the
proper indent, is indeed a syntax error. You get the same with the standard
command-line
Changes by Terry J. Reedy tjre...@udel.edu:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9622
___
___
Python-bugs-list
Changes by Terry J. Reedy tjre...@udel.edu:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9624
___
___
Python-bugs-list
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - patch review
type: - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9632
___
Terry J. Reedy tjre...@udel.edu added the comment:
Are you talking about top-level code within the urllib module or code within
defined functions. If the former, can you quote or point to the place in the
file? If the latter, which functions? Just urlopen or others? Does
urllib2.urlopen have
Antoine Pitrou pit...@free.fr added the comment:
I think the bytearray special-casing should be removed. Otherwise one can
reallocate the buffer in another thread while it is being used for decoding.
--
nosy: +pitrou
versions: -Python 2.7
___
Stefan Krah stefan-use...@bytereef.org added the comment:
Sridhar, thanks for the information. /usr/bin/which is a shell script
on Linux, too, but it does not source any config files.
I think the behavior is odd, but as you say, it can be worked around.
In the worst case, one can set the PATH
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: -Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9602
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
In 3.x, http_error_auth_reqed is a method of
urllib.request.AbstractBasicAuthHandler
(20.5.8. AbstractBasicAuthHandler Objects in 3.1 lib manual)
--
nosy: +terry.reedy
stage: - unit test needed
___
Kirikaza kirik...@rambler.ru added the comment:
Are you talking about ...
I have read no line of code from urllib module. I just try to use
urllib.urlopen() and I see it uses not only http_proxy but also HTTP_PROXY and
urlopen() prefers the latter variable.
Let's consider a two-lines sample
Stefan Behnel sco...@users.sourceforge.net added the comment:
Doesn't the GIL protect the bytearray buffer? Or does decoding free the GIL?
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7415
Terry J. Reedy tjre...@udel.edu added the comment:
In 3.1, and I presume (please check) 2.7, the signature is given as
class json.JSONEncoder(skipkeys=False, ensure_ascii=True, check_circular=True,
allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)
I verified by
Stefan Behnel sco...@users.sourceforge.net added the comment:
Regardless of the answer, I think Antoine is right, special cases aren't
special enough to break the rules, and this is a special case that's more
safely handled as part of the normal buffer case.
Updated patch uploaded.
Antoine Pitrou pit...@free.fr added the comment:
Doesn't the GIL protect the bytearray buffer? Or does decoding free the GIL?
Well, decoding can call arbitrary Python code and therefore, yes,
release the GIL.
Ironically, PyUnicode_Decode() itself (called from
PyUnicode_FromEncodedObject())
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - duplicate
status: open - closed
superseder: - can't import Tkinter / use IDLE after installing Python 2.7 on
Mac OS X
___
Python tracker rep...@bugs.python.org
Stefan Behnel sco...@users.sourceforge.net added the comment:
... and another complete patch that refactors the complete function to make it
clearer what happens. Includes a small code duplication for the bytes object
case, which I think it acceptable.
--
Added file:
Greg Brockman g...@mit.deu added the comment:
Thanks for looking at it! Basically this patch requires the parent process to
be able to send a message to a particular worker. As far as I can tell, the
existing queues allow the children to send a message to the parent, or the
parent to send a
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
3.1 is long gone. Should this be addressed for 3.2?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2226
___
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
How do we mark a test as implementation specific? Is there a decorator for
that?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9131
Brian Curtin cur...@acm.org added the comment:
Your patch works for me on Win7.
I'll put together a patch for the malloc/free thing in your first bullet point.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9445
Changes by Stefan Behnel sco...@users.sourceforge.net:
Removed file:
http://bugs.python.org/file18588/unicodeobject-PyUnicode_FromEncodedObject-buffer-refactored.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7415
Stefan Behnel sco...@users.sourceforge.net added the comment:
Another updated patch with a readability fix (replacing the last one).
--
Added file:
http://bugs.python.org/file18589/unicodeobject-PyUnicode_FromEncodedObject-buffer-refactored.patch
Marc-Andre Lemburg m...@egenix.com added the comment:
Stefan Behnel wrote:
Stefan Behnel sco...@users.sourceforge.net added the comment:
Another updated patch with a readability fix (replacing the last one).
While you're at it, you might as well remove references to the
char buffer -
New submission from Tom Browder tom.brow...@gmail.com:
I would like to be able to change argparse default strings so the first word is
capitalized. In lieu of that, I propose the attached patch to 2.7 which
changes them in the source code.
--
components: Library (Lib)
files:
Stefan Behnel sco...@users.sourceforge.net added the comment:
When I read the comments and exception texts in the function, it didn't occur
to me that char buffer could have been used as a name for the old Py2 buffer
interface. From the context, it totally makes sense to me that the function
New submission from Tom Browder tom.brow...@gmail.com:
When I use the argparse module, and I enter my program name with NO arguments
or options, I would like the argparser to output something like:
Usage: program name [options]
Use option '-h' for help.
I haven't yet found how to do that in
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - bethard
nosy: +bethard
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9653
___
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
Thank you for the patch.
We should only iterate over the shorter set if the longer set is really a set
and not just a sequence. PySequence_Contains may take O(n) time on a list,
making the algorithm an expensive O(n**2)
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
The patch looks good to me, too. The new tests fail without the fix, and pass
with the fix.
--
assignee: stutzbach - rhettinger
stage: unit test needed - patch review
___
Python
New submission from Amaury Forgeot d'Arc amaur...@gmail.com:
The file Modules/getpath.c computes sys.prefix and the initial sys.path.
The Windows version uses its own copy of this file, with a lot of similarities,
but also non-obvious differences.
I propose to merge both files, this would ease
Stefan Krah stefan-use...@bytereef.org added the comment:
I think you are closing too aggressively.
Python 3.2a0 (py3k:81783, Jun 6 2010, 16:07:26)
[GCC 4.1.3 20080623 (prerelease) (Ubuntu 4.1.2-23ubuntu3)] on linux2
Type help, copyright, credits or license for more information.
import
Éric Araujo mer...@netwok.org added the comment:
Could you add tests? There are helpers in distutils2.tests.support than deal
with temporary files, and we use unittest2 which provides decorators to skip
the tests on non-Windows.
--
nosy: +eric.araujo
versions: +Python 2.5, Python 2.6,
Éric Araujo mer...@netwok.org added the comment:
(Removing messages since Terry and I discussed distutils bugs triage in private
email. Thank you Terry for your help.)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue103
Changes by Éric Araujo mer...@netwok.org:
--
Removed message: http://bugs.python.org/msg113011
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue103
___
Changes by Éric Araujo mer...@netwok.org:
--
Removed message: http://bugs.python.org/msg113025
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue103
___
Changes by Éric Araujo mer...@netwok.org:
--
Removed message: http://bugs.python.org/msg114463
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue103
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. distutils does not get new features anymore. This gives
us time to focus on distutils2, the next generation. Thanks to the configure
command (#8254), the functionality you require will be easily supported in
distutils2.
Éric Araujo mer...@netwok.org added the comment:
I suppose we have to reject this request.
For distutils, it is too late, we don’t add new features.
In distutils2, we have removed bdist_rpm and rejected bdist_deb (#1054967),
with the rationale that OS-specific formats are best made by tools
Éric Araujo mer...@netwok.org added the comment:
I added an item to the todo list of distutils2 so that the current behavior is
documented: http://bitbucket.org/tarek/distutils2/wiki/Todo
--
components: +Distutils2 -Distutils, Windows
title: docutils clarification request for rest -
beng umali bpum...@gmail.com added the comment:
apologies for the late reply. issue now resolved. thank you.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9620
___
Éric Araujo mer...@netwok.org added the comment:
This change has been reverted in 2.7 and 3.x, I’ll check distutils2. Thank you.
We should test that warnings stacklevels make sense; it’s on my todo list.
--
assignee: tarek - eric.araujo
components: +Distutils2 -Distutils
nosy:
James Westby jw+deb...@jameswestby.net added the comment:
Hi,
I think this was misdiagnosed:
from unittest.py in 2.6, loadTestFromName:
elif hasattr(obj, '__call__'):
test = obj()
if isinstance(test, TestSuite):
return test
elif
Brett Cannon br...@python.org added the comment:
I think what I need to do is greatly simplify the directory creation code in
set_data and make it much more robust against potential race conditions against
other Python processes. I think as long as I just stop trying to make a
directory when
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
Nevermind, I found it: @support.cpython_only
I'll work on a patch to add the decorator and a comment about why the test is
fragile.
--
___
Python tracker rep...@bugs.python.org
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com:
--
keywords: +needs review, patch
resolution: - accepted
stage: needs patch - patch review
Added file: http://bugs.python.org/file18591/issue9131.patch
___
Python tracker
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com:
Removed file: http://bugs.python.org/file18591/issue9131.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9131
___
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
errr... ignore that first patch (now deleted)
:-)
--
Added file: http://bugs.python.org/file18592/issue9131.patch
___
Python tracker rep...@bugs.python.org
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com:
Removed file: http://bugs.python.org/file18592/issue9131.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9131
___
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com:
Added file: http://bugs.python.org/file18593/issue9131.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9131
___
Benjamin Peterson benja...@python.org added the comment:
r84229
--
nosy: +benjamin.peterson
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue843590
___
Benjamin Peterson benja...@python.org added the comment:
r84230
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2521
___
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
Thanks! :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2521
___
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: -terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue103
___
___
Python-bugs-list
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - duplicate
status: open - closed
superseder: - 2to3 does not convert __builtins__.file
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9648
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: -terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7694
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
It seems to me that this bug should be closed as a duplicate of the original
bug (#3559). It's the same bug, only the proposed solution is different,
unless I'm missing something.
--
nosy: +r.david.murray
Volodymyr Kostyrko c.kw...@gmail.com added the comment:
Ok, I'll try to ask FreeBSD developers, too bad I'm not that familiar with C to
write example other way than test if it's a system problem.
--
nosy: -terry.reedy
___
Python tracker
78 matches
Mail list logo