Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11592
___
Palm Kevin kevin.p...@labsolution.lu added the comment:
Antoine,
Your guess that my issue initially wasn't related to virtualenv is correct
(I've never heard about that project before posting this issue...)
As for passing the output of Py_GetPath directly to Py_SetPath: You are right,
there
Palm Kevin kevin.p...@labsolution.lu added the comment:
Furthermore I would propose to rename this issue: The problem is not that
Py_SetPath cannot be called on pointer returned by Py_GetPath. I think that the
problem is more general: Calling Py_SetPath NEVER works.
-- I get the same
Palm Kevin kevin.p...@labsolution.lu added the comment:
As for this error:
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can't find encoding
It seems to me that this error appears if the path passed to Py_SetPath does
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
I've been thinking about adding a handler= keyword argument to basicConfig(),
and it seems to me that it would not only cover your use case, but also other
cases which require different handlers.
So I'm marking as wontfix for now, but
Éric Araujo mer...@netwok.org added the comment:
A little research has found that building without complex is not possible
anymore, so you’re good: http://bugs.python.org/issue7147
Regarding “unicode”, see line 112.
--
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
Well, config._link() seems to do what is needed here.
My point is that it’s easier to write a few lines of code directly using a
compiler object (copying and simplifying code from try_run or _link) than go
through the distutils command
Éric Araujo mer...@netwok.org added the comment:
Fair argument. Brett is the author of recent changes in site, let him decide.
Brett: Would you agree to 1)?
--
nosy: +brett.cannon
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
Instead of always calling clearerr(), we can only call it on EOF:
diff -r 88fe1ac48460 Parser/myreadline.c
--- a/Parser/myreadline.c Mon Mar 07 08:31:52 2011 +0100
+++ b/Parser/myreadline.c Fri Mar 18 10:57:23 2011 +0100
Antoine Pitrou pit...@free.fr added the comment:
As for this error:
Fatal Python error: Py_Initialize: Unable to get the locale encoding
LookupError: no codec search functions registered: can't find encoding
It seems to me that this error appears if the path passed to
Py_SetPath does
Senthil Kumaran orsent...@gmail.com added the comment:
Why should we have this file served on the web itself? Cannot it be on server
outside of www ( or any directory which is getting served). I would vote for
this.
--
nosy: +orsenthil
___
Python
Antoine Pitrou pit...@free.fr added the comment:
The question is not why, it is how. This file is part of the scripts used
to migrate from svn to hg. These files themselves were maintained in an hg
repository (it could have been an svn repository), for obvious practical
reasons. And that
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11549
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
After reading the related mail thread on python-dev, I realized that you are
talking about TextIOWrapper choice (file content, not file name). My previous
message is about file names.
--
Brandon Craig Rhodes bran...@rhodesmill.org added the comment:
Éric, after checking line 112 of the two patches and then of the new file, I
figured out that you meant line 112 of the old file — and, yes, that test can
go away too since in python3 complex always exists and unicode never
STINNER Victor victor.stin...@haypocalc.com added the comment:
TextIOWrapper is mostly based on locale.getpreferredencoding(), so msg131290 is
still valid: if no env var is set, nl_langinfo() gives 'ASCII' (or something
like that). But it is not easy to detect that env vars are not set.
I
R. David Murray rdmur...@bitdance.com added the comment:
I talked to Martin. He wants the 2.5 mercurial branch to get *exactly* that
set of changes that needs to be applied to the svn repository in order for him
to build the security release, no more no less. Note that 2.5 goes out of
Senthil Kumaran orsent...@gmail.com added the comment:
David, from you message I understand that Martin is planning to
release 2.5 via svn. If that is the case, whatever was pushed for
security fix to hg can remain as such and so that those can be
exported to svn.
The bugs related to buildbot
R. David Murray rdmur...@bitdance.com added the comment:
Yes, although there may be another answer on the compile bug.
--
resolution: - wont fix
stage: - committed/rejected
status: open - closed
type: - behavior
___
Python tracker
Evan Dandrea e...@ubuntu.com added the comment:
David,
Thanks for the pointers. I've updated the patch hopefully adequately addressing
your concerns.
--
components: +Interpreter Core -Library (Lib)
type: behavior -
Added file:
Changes by Evan Dandrea e...@ubuntu.com:
Removed file:
http://bugs.python.org/file21223/tarfile-fix-multiple-exception-on-enoent.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11513
___
R. David Murray rdmur...@bitdance.com added the comment:
I talked to Martin about this at the sprints. He wants the set of patches in
the 2.5 hg repo to be exactly those that he should apply to svn to build the
next release, no more no less. If someone wants to propose a patch that fixes
New submission from Alexander Belchenko bia...@ukr.net:
I'm using LF-only line-endings for development of my IntelHex library. I'm
working on Windows most of the time.
After 2to3 tool has been ran on my library it has not only changed the Python
syntax, but it also saved all files with CRLF
Changes by Daniel Urban urban.dani...@gmail.com:
--
nosy: +durban
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11572
___
___
Python-bugs-list
New submission from Erik Bray erik.m.b...@gmail.com:
Attached is a patch that fixes a few miscellaneous bugs in cfg_to_args() that
were holding me up. Namely:
* A bad variable name (file - path)
* A few more fields needed to be in MULTI_FIELDS
* Added support for packages_root - package_dir
Nadeem Vawda nadeem.va...@gmail.com added the comment:
issue10883 is related; test_urllib2net also leaves sockets open in several
places.
--
nosy: +haypo, nvawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11563
New submission from Lorenz pyt...@xca.ch:
there is an ImportError when there is no bz2 lib and the test_fileinput is
running.
--
components: Tests
files: check_bz2_lib_available.diff
keywords: patch
messages: 131338
nosy: DaMutz
priority: normal
severity: normal
status: open
title:
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nvawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11549
___
___
Python-bugs-list
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nvawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
___
___
Python-bugs-list
New submission from the_isz the_...@gmx.de:
Hey everyone,
I'm having issues writing unicode strings with ConfigParser.write. I don't know
if this is python's fault or my own but I couldn't find help on this, neither by
googling, nor by asking on the python irc channels.
Attached to this
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11594
___
___
Daniel Urban urban.dani...@gmail.com added the comment:
Updated the patch for mercurial.
--
Added file: http://bugs.python.org/file21281/issue11256_4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11256
R. David Murray rdmur...@bitdance.com added the comment:
str(u\u0411)
Traceback (most recent call last):
File stdin, line 1, in module
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0411' in position
0: ordinal not in range(128)
So, clearly configparser in 2.x doesn't support
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Now the question is, is this a bug
or would adding support be a feature?
That may be a good question for python-dev.
Since ConfigParser is a very old module,
if there were a pressing need, we probably
would have heard about it
Éric Araujo mer...@netwok.org added the comment:
Looks good to me.
--
nosy: +eric.araujo, pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11480
___
Roundup Robot devnull@devnull added the comment:
New changeset bb645cc39e60 by briancurtin in branch 'default':
Fix #11596. When bz2 isn't available, skip test_bz2_ext_fake.
http://hg.python.org/cpython/rev/bb645cc39e60
--
nosy: +python-dev
___
Brian Curtin br...@python.org added the comment:
Thanks for the patch!
--
assignee: - brian.curtin
nosy: +brian.curtin
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +brett.cannon
versions: +Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11494
___
R. David Murray rdmur...@bitdance.com added the comment:
Well, python3 is probably pushing some people to try to add better unicode
support to their python2 versions. I think it is more a question of is this
an easy fix? or would it require extensive changes to support unicode
properly. If
Éric Araujo mer...@netwok.org added the comment:
Looks good to me (note: didn’t test).
--
versions: +3rd party
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11595
___
Santoso Wijaya santoso.wij...@gmail.com added the comment:
Do we need each sample--(input - expected output)--to be its own unittest
function?
Why not something like (pseudo-code):
expected = {
'input1': 'output1',
'input2': 'output2',
}
def test_encode(self):# collapse all
for
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. Can you run “python -m test.test_lib2to3”, if possible
with a Python 3.x version? I’ve seen that the tests use binary mode to compare
file contents, so maybe you will get an error message that can get us started.
Éric Araujo mer...@netwok.org added the comment:
Setting it to the version of the current OS is probably the least surprising.
Agreed.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11485
New submission from Carl Meyer c...@dirtcircle.com:
By opening up pcbuild.sln in VS2008 Express, I was able to successfully build
python and pythonw, but when I tried to build bdist_wininst it failed with
Fatal Error RC1015: cannot open include file afxres.h
Googling turned up a number of
New submission from Antoine Pitrou pit...@free.fr:
Really, can't distutils at least display the command-line that failed to
execute?
Traceback (most recent call last):
File /home/antoine/cpython/default/Lib/distutils/unixccompiler.py, line
176, in _compile
extra_postargs)
File
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
It's also a question of adding a feature to a point release. If dev's relied
on the new feature, they would also have to test for version 2.7.1. We
usually try to avoid that (after a minor fiasco with booleans many years ago).
New submission from Antoine Pitrou pit...@free.fr:
One contains the include dirs for Python, not the other:
distutils.sysconfig.get_config_var('PY_CFLAGS')
'-g -O0 -Wall -Wstrict-prototypes'
distutils.sysconfig.get_config_var('PY_CPPFLAGS')
'-I. -IInclude -I./Include'
In Python 2.7 and 3.1,
New submission from Antoine Pitrou pit...@free.fr:
UnixCCompiler always uses compiler_so, not compiler, even when creating a
.o file. It is misleading and begs the question why compiler even exists.
--
assignee: tarek
components: Distutils
messages: 131355
nosy: eric.araujo, pitrou,
Robert Withrow bigbaaad...@gmail.com added the comment:
For completeness: msg131234 states that the issue of 64 bit - 32 bit precision
truncation is covered in the floating point tutorial. I believe that is
incorrect; at least I can't find it explicitly mentioned. Ref:
New submission from Antoine Pitrou pit...@free.fr:
python-config has the following non-trivial code for discovery of
cflags/ldflags, which should be callable as a sysconfig API instead:
elif opt in ('--includes', '--cflags'):
flags = ['-I' + sysconfig.get_path('include'),
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
+1
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11602
___
R. David Murray rdmur...@bitdance.com added the comment:
Until unittest learns to do parameterized tests, it's nice to have each test be
separate so that you can easily see which test cases are failing. (A number of
the existing email tests have a lot of tests in each unit test, and this can
Antoine Pitrou pit...@free.fr added the comment:
Ok, this is what I came up with to build an exe using distutils. At this point,
the complication is downright silly and it doesn't even work under Windows, so
we may prefer to go down the Makefile route instead.
--
Added file:
R. David Murray rdmur...@bitdance.com added the comment:
I understand what you are saying, and I thought about that, too; but
you could say the same thing about any bug fix that makes code work that didn't
work before, yet we don't. So I guess you are right that it should be
discussed on
Changes by R. David Murray rdmur...@bitdance.com:
--
Removed message: http://bugs.python.org/msg131361
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11579
___
R. David Murray rdmur...@bitdance.com added the comment:
I understand what you are saying, and I thought about that, too; but you could
say the same thing about any bug fix that makes code work that didn't work
before, yet we don't. So I guess you are right that it should be discussed on
Georg Brandl ge...@python.org added the comment:
My vote would be that this is a new feature and therefore uneligible for 2.x.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11597
New submission from Carl Banks pythond...@aerojockey.com:
The issue was raised by J Peyret on the following c.l.python thread:
http://groups.google.com/group/comp.lang.python/browse_frm/thread/459e5ec433e7dcab?hl=en#
Several posters reported that the following code either hangs or crashes
Éric Araujo mer...@netwok.org added the comment:
Is it okay to change a public parameter name without deprecation process?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11476
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
Confirmed under 3.2 and 2.7. The attached patch should fix the issue.
--
keywords: +patch
nosy: +Trundle
Added file: http://bugs.python.org/file21283/issue_11603.patch
___
Python tracker
Lorenz pyt...@xca.ch added the comment:
replace the afxres.h by the following lines and then it builds:
#include windows.h
#ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif
but the problem is, that the 'install.rc' file is generated. Unfortunately I do
not know how to solve the root cause.
Changes by Filip Gruszczyński grusz...@gmail.com:
Removed file: http://bugs.python.org/file21020/1559549_1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1559549
___
Changes by Filip Gruszczyński grusz...@gmail.com:
Removed file: http://bugs.python.org/file21031/1559549_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1559549
___
Filip Gruszczyński grusz...@gmail.com added the comment:
Ok, here is a patch created using mq. I have a problem, however. I managed to
solve following situation:
try:
raise ImportError('failed import' module_name='somemodule')
except ImportError as e:
print(e.module_name)
that would
Jeff McNeil j...@jmcneil.net added the comment:
Alright, attaching a patch that reworks urlretrieve to use urlopen internal to
urllib.request.
1. I dropped the local caching as it isn't turned on by default anyway (and
isn't really documented).
2. Updated documentation to reflect caching
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
It's a formal parameter name, in general passed by position rather than
keyword. Anyway, it seems a bit late to change it back now.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Follow the “review” link next to the patch for an initial review.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
___
follower bugs.python@rancidbacon.com added the comment:
I don't think it would be unreasonable to add the old name back in temporarily
and use whichever parameter is supplied--this change has obviously broken code
in the process.
But for future situations I think changes like this
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11594
___
___
Senthil Kumaran orsent...@gmail.com added the comment:
Significant patch. Thanks. I looked at the review too. For the
Context Manager part, don't club it along with this one. We need to
test this thoroughly, after this is in shape, that can be addressed.
--
Terry J. Reedy tjre...@udel.edu added the comment:
With 3.2 on WinXP, I get no error report in interactive mode,
with either IDLE or plain interpreter, nor from 'python file' in Command Prompt
window. But now with the print added to what I ran before, I see no print
output, and I see that IDLE
Jeff McNeil j...@jmcneil.net added the comment:
Made recommended changes. Moved to NamedTemporaryFile. I don't think the
spooled file makes sense here as the existing protocol provides a filename in
the returned tuple, not a f.l.o.
As far as the description? Here are a couple suggestions:
Senthil Kumaran orsent...@gmail.com added the comment:
Changing the description is a minor update. The term 'URL access module' seems
fine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
Roundup Robot devnull@devnull added the comment:
New changeset 80ff78425419 by Raymond Hettinger in branch '3.2':
Issue 7391: Remove questionable and outdated HOWTO document with permission
from its author.
http://hg.python.org/cpython/rev/80ff78425419
--
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
It seems no new issues have arisen.
If something new comes-up, feel free to re-open.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Éric, would you like to apply this to 2.7?
--
assignee: rhettinger - eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10042
Jeff McNeil j...@jmcneil.net added the comment:
Made requested change to Synopsis/Description.
--
Added file: http://bugs.python.org/file21287/issue10050.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10050
New submission from Terry J. Reedy tjre...@udel.edu:
People occasionally ask on python-list about the following error message when
trying to create a class:
TypeError: Error when calling the metaclass bases
module.__init__() takes at most 2 arguments (3 given)
It is a bit cryptic. It is
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
title: sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3but
10.5 during configure - sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now
10.3 but 10.5 during configure
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. What’s the exact command-line you run? In your
message, it looks like you run the pycc command which then outputs the gcc
error.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Martin: Just applying the same changes to distutils2.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9313
___
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report and patch. Has this bug been a problem for existing
projects? Would you have links?
Looks like this should've been done against the py3k branch instead.
Yes, patches should apply to the py3k branch, or to distutils2.
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9410
___
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3873
___
___
Python-bugs-list mailing list
Roundup Robot devnull@devnull added the comment:
New changeset 94c158199277 by Éric Araujo in branch '2.7':
Fix the total_ordering decorator to handle cross-type comparisons
http://hg.python.org/cpython/rev/94c158199277
--
nosy: +python-dev
stage: - committed/rejected
status: open -
Terry J. Reedy tjre...@udel.edu added the comment:
2.5 and 2.6 are only open for security issues.
I am guessing that 2.7, 3.1, and 3.3 are affected.
I cannot test as I only have Windows currently.
--
nosy: +terry.reedy
stage: - test needed
versions: +Python 2.7, Python 3.1, Python 3.3
Terry J. Reedy tjre...@udel.edu added the comment:
My haphazard sample gave 8 without, 5 with.
I suspect trailing dot is analogy with lists:
1. something.
2. something else.
2.1. detail of else
2.2. more detail
Books without generally have extra space instead of '.'.
--
nosy:
Terry J. Reedy tjre...@udel.edu added the comment:
2.6 is only open for security fixes.
--
nosy: +terry.reedy
resolution: - invalid
status: open - closed
superseder: - remove/delete method for zipfile/tarfile objects
versions: -Python 2.6
___
Terry J. Reedy tjre...@udel.edu added the comment:
Methods defined within a class may reference...
would make the tutorial correct without introducing the complication of methods
defined outside a class, let alone in another module.
--
nosy: +terry.reedy
Terry J. Reedy tjre...@udel.edu added the comment:
With fix, test, and news in 3.2 and 3.3, is anything left to do?
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11432
Terry J. Reedy tjre...@udel.edu added the comment:
Eugene has started work on AST optimizer in #11549
--
nosy: +terry.reedy
superseder: - Rewrite peephole to work on AST
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11462
Terry J. Reedy tjre...@udel.edu added the comment:
A couple of somewhat related issues:
#10399 AST Optimization: inlining of function calls
#1346238 A constant folding optimization pass for the AST
Obviously, ast optimizers should work together and not duplicate.
Nice to see increased attention.
Terry J. Reedy tjre...@udel.edu added the comment:
#11549 Rewrite peephole to work on AST
includes constant folding. I have not compared.
--
nosy: +terry.reedy
versions: +Python 3.3 -Python 3.2
___
Python tracker rep...@bugs.python.org
Terry J. Reedy tjre...@udel.edu added the comment:
2.6 is only open for security issues, so any verification should use later
version.
--
nosy: +terry.reedy
status: pending - open
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
Changes by Terry J. Reedy tjre...@udel.edu:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11463
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
There is no end of helpful articles at Wikipedia and elsewhere. Wikipedia
articles are especially easy to find with a special search in some browsers and
on the site. In my experience on python-list, for instance, people have much
more
96 matches
Mail list logo