Charles-François Natali neolo...@free.fr added the comment:
Hi. I can submit a patch for the first part. Should I submit on this issue
tracker item?
Sure.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12545
Ram Rachum cool...@cool-rr.com added the comment:
David, I don't think you've read my message carefully enough. I'm well aware
that there are other ways in Python to import than the `import` statement. I'm
proposing that it doesn't matter.
I asked, isn't a circular import when you try to
Changes by Bharadwaj barbi.br...@gmail.com:
Added file: http://bugs.python.org/file22704/http_example2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12524
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
So I'd suggest forgetting about this part.
If someone really wants this feature (relative seek of more than 2^63), he/she
should open a new issue.
This issue remembers me a mktime() issue: mktime() may return -1 even if it is
New submission from rpointel pyt...@xiri.fr:
Hi,
I tested to build Python 2.7 and Python 3.2.1 (it would be the same with others
versions of Python) and it failed to build on OpenBSD 5.0 (beta version).
This is the diff to correctly work on OpenBSD 5.x:
--- configure.in.orig Sat Jul 9
New submission from rpointel pyt...@xiri.fr:
Hi,
Could you define OpenBSD in enable_shared section of the configure.in ?
I just tested with Python 3.2.1, but it could be usefull to add it in the other
versions of Python 3.x.
This is the diff which seems to work :
--- configure.in.orig Sat
R. David Murray rdmur...@bitdance.com added the comment:
This isn't a problem with ConfigParser, it's a problem with the text file
object returned by Subprocess. You can reproduce the bug by trying to iterate
over the TextIOWrapper returned by subprocess.
(It is true, however, that the
R. David Murray rdmur...@bitdance.com added the comment:
It might. Although I did miss your message about the flag, my point really was
that you'll find that import is very complicated when you try to write the
patch to do it. There may not be one central place you can set and query that
Stefan Krah stefan-use...@bytereef.org added the comment:
This is a duplicate of #12560.
--
nosy: +skrah
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - libpython.so not built on OpenBSD
type: - behavior
Changes by Stefan Krah stefan-use...@bytereef.org:
--
nosy: +rpointel
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12560
___
___
Python-bugs-list
Austin Bingham austin.bing...@gmail.com added the comment:
Has a decision been made to implement some form of parametric tests? Is working
being done?
Along with parameterizing individual test methods, I'd also like to throw out a
request for parametric TestCases. In some cases I find that I
Brian Curtin br...@python.org added the comment:
By this issue existing, that's the decision that we should probably do this,
and I think the discussion shows we agree it should happen. How it's done is
another way, and we have roughly a year to get it figured out before 3.3 gets
closer.
I
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7897
___
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset ab4d403cb0c0 by Senthil Kumaran in branch '3.2':
Fix closes issue12524 - update http.client POST example with a working example.
http://hg.python.org/cpython/rev/ab4d403cb0c0
New changeset bc71fff2b6c7 by Senthil
R. David Murray rdmur...@bitdance.com added the comment:
Brian, if you don't have time to work on it in the next little while, maybe you
could post your partial patch in case someone else wants to work on it? Might
be a good project for someone on the mentoring list.
Unless someone sees a
Michael Foord mich...@voidspace.org.uk added the comment:
*If* we add this to unittest then we need to decide between test load time
parameterised tests and test run time parameterisation.
Load time is more backwards compatible / easier (all tests can be generated at
load time and the number
Senthil Kumaran sent...@uthcode.com added the comment:
Thanks for the patch, Bharadwaj.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12524
___
Michael Foord mich...@voidspace.org.uk added the comment:
And yes, parameterising test cases is a different issue. bzr does this IIRC.
This is easier in some ways, and can be done through load_tests, or any other
test load time mechanism.
--
___
R. David Murray rdmur...@bitdance.com added the comment:
Michael, would your single test clearly indicate all the individual failures
by name? If not, then I would not find it useful. I can already easily
parameterize inside a single test using a loop, it's the detailed reporting
piece that
R. David Murray rdmur...@bitdance.com added the comment:
The reporting piece, and ideally being able to use the arguments to unittest to
run a single one of the parameterized tests. (I can get the reporting piece
now using the locals() hack, but that doesn't support test selection). Does
Michael Foord mich...@voidspace.org.uk added the comment:
Test selection would require load time parameterisation - although the current
test selection mechanism is through importing which would probably *not* work
without a specific fix. Same for run time parameterisation.
Well how *exactly*
Michael Foord mich...@voidspace.org.uk added the comment:
Dammit, I've reversed my thinking in some of those messages. Load time
parameterisation *does* give you separate test reporting. It is run time
parameterisation that doesn't.
Depending on how you do it (i.e. if the decorator generates
Michael Foord mich...@voidspace.org.uk added the comment:
So if we do import time *or* test load time parameterisation then we can do
separate failure reporting. We may still want to improve test selection for
parameterised tests.
There are use cases for run time parameterisation (for example
Éric Araujo mer...@netwok.org added the comment:
If possible, the code example would use only Python, not httplib2 or Active
State Python :)
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8728
Changes by Éric Araujo mer...@netwok.org:
Added file: http://bugs.python.org/file22705/40ae82fafaed.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12555
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for your willingness to contribute to Python and your work on a patch.
We’re currently debating whether we should update or remove the Misc/Vim files,
on #9893, so if we reach an agreement that maintaining these files is too
costly for
Changes by Antoine Pitrou pit...@free.fr:
--
components: +Library (Lib)
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12555
___
Éric Araujo mer...@netwok.org added the comment:
The patch looks good. I can’t comment on details of the C code, but I’ve seen
the changed Python code and the tests and I like this.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
New submission from Christoph Schindler h...@30hopsmax.at:
In http://docs.python.org/py3k/using/mac.html#getting-and-installing-macpython
and
http://docs.python.org/py3k/using/mac.html#distributing-python-applications-on-the-mac
.
--
assignee: docs@python
components: Documentation
Éric Araujo mer...@netwok.org added the comment:
I worked on this some time ago; the problem was the size of the
documentation, i.e. it was difficult to stay consistent.
I think it’s okay to improve the docs one patch at a time, starting with the
simple example referenced in the first message
New submission from Tobias Pfaff tobias.pf...@inf.ethz.ch:
Compiling 'Python.h' with g++ and -Wredundant-decls produces warnings
Testcase:
test.cpp:
#include Python.h
int main() { return 0; }
g++ test.cpp -I/usr/include/python3.2mu/ -Wredundant-decls
In file included from
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 5f7b03dcd523 by R David Murray in branch 'default':
#665194: support roundtripping RFC2822 date stamps in the email.utils module
http://hg.python.org/cpython/rev/5f7b03dcd523
--
nosy: +python-dev
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12581
___
R. David Murray rdmur...@bitdance.com added the comment:
Fixed a bug (parsedate_to_datetime wasn't producing naive datetimes for -)
and checked this in.
Note that I have added Alexander's 'localtime' function to email.utils in my
feature branch/pypi release, to facilitate testing date
Éric Araujo mer...@netwok.org added the comment:
I temporarily retract my request for addition of build_distinfo.
Other build_spam/install_spam commands have clear responsibilities: build
creates files, install moves them. This is the classic make/make install
division of work, where you may
New submission from Philipp Mölders philipp.moeld...@googlemail.com:
I think there is a problem within cPickle. I wanted to store a dictionary with
only one entry with cPickle.dump() this works fine and can be loaded with
cPickle.load(). But if you store the loaded data with cPickle.dump()
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7897
___
___
Python-bugs-list
Changes by Philipp Mölders philipp.moeld...@googlemail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12596
___
___
R. David Murray rdmur...@bitdance.com added the comment:
If the load produces the same result, why does it matter that what is on disk
differs?
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12596
Philipp Mölders philipp.moeld...@googlemail.com added the comment:
The file on disk matters for a replication service, so if a file is touched but
not changed it will not be replicated, but in this special case the data change
even when the structures have not changed. So if this happens very
New submission from Сергій Загорія xintx...@gmail.com:
Next code:
def ill(row):
row[1]=1
list_manual=[[0,0,0],[0,0,0],[0,0,0]]
list_generated=[[0,0,0]]*3
ill(list_manual[1])
print(list_manual)
ill(list_generated[1])
print(list_generated)
Will output:
[[0, 0, 0], [0, 1, 0], [0, 0, 0]]
[[0,
Sandro Tosi sandro.t...@gmail.com added the comment:
Hi,
no it's not a bug :)
What you actually get with [[0]]*3 is a list of 3 references to the same list,
[0]:
a = [[0], [0], [0]]
b = [[0]]*3
for i in a: print(id(i))
...
139807725184032
139807725300280
139807725300520
for i in b:
R. David Murray rdmur...@bitdance.com added the comment:
Well, if the test doesn't fail before applying the remainder of the patch, then
it doesn't test the bits that haven't been applied yet.
I don't know enough about aifc to construct a test that fails or to understand
the remainder of the
Сергій Загорія xintx...@gmail.com added the comment:
So the workaround is
for i in range(len(list_generated)):
list_generated[i]=list(tuple(list_generated[i]))
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12597
Carl Meyer c...@dirtcircle.com added the comment:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Éric Araujo mer...@netwok.org added the comment:
[Carl]
there's an implicit assumption that a .pth file is the most likely
strategy.
If you have other ideas, please share them.
No, I think
Landry Breuil lan...@openbsd.org added the comment:
$python3.2
Python 3.2.1 (default, Jul 18 2011, 10:56:33)
[GCC 4.2.1 20070719 ] on openbsd4
int(float('inf'))
0
$sysctl hw
hw.machine=macppc
--
Landry Breuil lan...@openbsd.org added the comment:
(gdb) r
Starting program: /usr/obj/ports/Python-3.2.1/Python-3.2.1/Modules/_testembed
--- Pass 0 ---
interp 0x90ae7300, thread state 0x87b48a00: id(modules) = 2363177552
interp 0x90ae7a40, thread state 0x87b48a80: id(modules) = 2243881408
R. David Murray rdmur...@bitdance.com added the comment:
I'm not sure what your example is trying to achieve, but the list(tuple(...))
looks redundant.
Your initial example could be written:
b = [[0] for i in range(3)]
--
nosy: +r.david.murray
Ned Deily n...@acm.org added the comment:
Thanks for the report. The whole Using Python on a Macintosh section is very
out-of-date and needs a major update.
--
assignee: docs@python - ned.deily
nosy: +ned.deily
stage: - needs patch
versions: +Python 2.7, Python 3.3 -Python 3.1
Roumen Petrov bugtr...@roumenpetrov.info added the comment:
Hi Landry , what is result if you move _testembed to upper directory and run it
with environment so that shared python library from upper to be loaded
(LD_LIBRARY_PATH= )?
--
nosy: +rpetrov
Barry A. Warsaw ba...@python.org added the comment:
I think this is also a regression in Python 2.7, as reported here:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/813295
--
nosy: +barry
versions: +Python 2.7
___
Python tracker
Landry Breuil lan...@openbsd.org added the comment:
You get the same issue :
[23:08] mikey:/usr/obj/ports/Python-3.2.1/Python-3.2.1/ $cp Modules/_testembed
.
[23:08] mikey:/usr/obj/ports/Python-3.2.1/Python-3.2.1/ $LD_LIBRARY_PATH=. gdb
_testembed
GNU gdb 6.3
Copyright
Brett Cannon br...@python.org added the comment:
For the ImportWarning docs, there could stand to be more; patches welcome. =)
As for ImportError being postmortem on an error, that is not always true as
plenty of people use the trick, e.g.:
try: import json
except ImportError: import
Nick Coghlan ncogh...@gmail.com added the comment:
Load time parameterisation seems more of a worthwhile addition to me, too. As
David noted, runtime parameterisation is pretty easy to do by looping and
consolidating failures into the one error message via self.fail().
For test naming, trying
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset cb44fef5ea1d by Antoine Pitrou in branch 'default':
Issue #12551: Provide a get_channel_binding() method on SSL sockets so as
http://hg.python.org/cpython/rev/cb44fef5ea1d
--
nosy: +python-dev
Antoine Pitrou pit...@free.fr added the comment:
Patch is now committed. Thanks for your contribution!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
New submission from Eric Snow ericsnowcurren...@gmail.com:
Several import-related sys variables are set in _PyImportHooks_Init (in
Python/import.c), which is called in Python/pythonrun.c. I have included a
patch that moves that initialization from _PyImportHooks_Init to a new
Changes by Nick Coghlan ncogh...@gmail.com:
--
nosy: +brett.cannon, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12598
___
___
Changes by Eric Snow ericsnowcurren...@gmail.com:
--
nosy: +ericsnow
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7897
___
___
Python-bugs-list
New submission from Nick Coghlan ncogh...@gmail.com:
Problems noted by PJE on import-sig:
For example, PathFinder's find_module treats an empty path the same as
sys.path, and will also fail if for some reason the bool() of a PEP 302 finder
or loader object
Michael Foord mich...@voidspace.org.uk added the comment:
That all sounds good to me Nick. Some notes / questions.
How should parameterised tests be marked? I'm happy with a
unittest.parameterized decorator (it would do no work other than mark the test
method, with the parameterisation being
Michael Foord mich...@voidspace.org.uk added the comment:
Oh, and if we're not going to get clever with naming, how is the TestResult
going to include the parameter repr in the failure report? That information
will have to be stored on the TestCase.
I would prefer this feature not to touch
Terry J. Reedy tjre...@udel.edu added the comment:
This nasty bug really can cause severe problems. If a zombie process ran a
tkinter (tk) window, then attempting to logout/restart/shutdown eventually
brings up a window I have never seen before: End Process -- EmbeddedMenuWindow.
The message
Ori Livneh ori.liv...@gmail.com added the comment:
Yes, I seem to have gotten confused about this. Sorry for the confusion, and
thanks for clearing it up.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11197
Terry J. Reedy tjre...@udel.edu added the comment:
Restart is not required to create a zombie. Just start IDLE and quit, and the
second, user process does not disappear.
Reverting completely does not seem possible. I first just ran the 3.2 installer
and it did not complain, that I noticed,
Nick Coghlan ncogh...@gmail.com added the comment:
Here's a sketch for a possible decorator factory:
def parameters(params, *, builder=_default_param_builder):
def make_parameterized_test(f):
return ParameterizedTest(f, params, builder)
return make_parameterized_test
(default
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12540
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
Personally I would be happy if I could pass in a dictionary that maps names to
argument tuples, or an iterator yielding (name, (argtuple)) pairs, and just
have the failure report the name. That is, make me responsible for generating
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7897
___
___
Python-bugs-list
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +belopolsky, eric.araujo, ezio.melotti, lemburg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12266
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Here's a patch.
I don't think it's necessary to update the docstring.
--
assignee: docs@python - ezio.melotti
keywords: +patch
stage: - commit review
Added file: http://bugs.python.org/file22708/issue12204.diff
Ezio Melotti ezio.melo...@gmail.com added the comment:
New patch that factors out the definition of cased characters adding it to a
footnote.
--
Added file: http://bugs.python.org/file22709/issue12204-2.diff
___
Python tracker rep...@bugs.python.org
Ezio Melotti ezio.melo...@gmail.com added the comment:
Indeed this seems a different issue, and might be worth fixing it.
Given this definition:
str.capitalize()¶
Return a copy of the string with its first character capitalized and the
rest lowercased.
we might implement capitalize
Ezio Melotti ezio.melo...@gmail.com added the comment:
To distinguish the 'int' in functions.rst from the one in stdtypes.rst (if it
works...).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11975
Ezio Melotti ezio.melo...@gmail.com added the comment:
+1
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12301
___
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +needs review
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3665
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Having them in different mappings would be good, but I expect that for most
real world application a single mappings that includes them all is the way to
go. If I'm parsing a supposedly HTML page that contains an apos; I'd rather
have it
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
stage: patch review - commit review
versions: -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8887
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
keywords: +easy
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12298
___
New submission from Austin Bingham austin.bing...@gmail.com:
In the discussion about adding support for parameterized tests (issue 7897), it
seemed clear that parameterizing individual tests was a different issue from
parameterizing TestCases. This, then, is a request to support
Austin Bingham austin.bing...@gmail.com added the comment:
OK, I created issue 12600 for dealing with parameterized TestCases as
opposed to individual tests.
On Wed, Jul 20, 2011 at 4:03 PM, R. David Murray rep...@bugs.python.org wrote:
Unless someone sees a clever way to implement both with
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +Yaroslav.Halchenko, brian.curtin, eric.araujo, ericsnow, exarkun,
ezio.melotti, fperez, michael.foord, nchauvat, ncoghlan, pitrou, r.david.murray
versions: +Python 3.3 -Python 2.7, Python 3.2
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12401
___
___
Python-bugs-list
Aneesh aneeshb...@gmail.com added the comment:
We are also noticed same issue and reverted to Python 3.1. Whenever we run a
script, two new pythonw.exe process is started and it is really irritating to
see all in Windows Task Manager.
Last day I killed around 14 Pythonw.exe to clean up
Ezio Melotti ezio.melo...@gmail.com added the comment:
FWIW the typo has been fixed in 13c9b93e97ad.
If the example is failing another issue should be created.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
85 matches
Mail list logo