Vladimir Iofik v-io...@yandex.ru added the comment:
Here is a better patch.
--
nosy: +vj
Added file: http://bugs.python.org/file19332/9291a.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9291
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r85787.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10166
Vladimir Iofik v-io...@yandex.ru added the comment:
UnicodeDecodeException is thrown because 'ctype' is already a string,
so it is first implicitly decoded by default encoder (which is 'ascii') and
then reencoded back. I see no reason in all these actions, so I simply removed
them. I think
Boštjan Mejak bostjan.me...@gmail.com added the comment:
All the words that Georg Brandl fixed for this issue are okay as they stand.
Please leave them as they are written. Thank you.
On Fri, Oct 22, 2010 at 1:19 AM, Marc-Andre Lemburg
rep...@bugs.python.orgwrote:
Marc-Andre Lemburg
Éric Araujo mer...@netwok.org added the comment:
Thanks for the report. To the best of my knowledge, distutils never generates
Python files, and the docs for ext_modules or ext_package don’t imply
__init__.py will be generated. IOW, for “pkg.foo”, you’re supposed to have
pkg/__init__.py and
Changes by Éric Araujo mer...@netwok.org:
--
Removed message: http://bugs.python.org/msg113049
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3902
___
Christoph Gohlke cgoh...@uci.edu added the comment:
Creating bdist_msi installers with files such as 'aixc++' (containing '+'),
'.buildinfo' (starting with '.'), and 'py.~1.5.~' (containing '~') currently
also fails, even with the proposed patch.
The revised patch should fix these cases and
STINNER Victor victor.stin...@haypocalc.com added the comment:
$ LC_ALL=C ./python
Fatal Python error: Py_Initialize: Unable to get the locale encoding
SystemError: NULL result without error in PyObject_Call
Abandon
What is your Python version? I fixed Python 3.2, but I don't plan to fix
Éric Araujo mer...@netwok.org added the comment:
I don’t think warnings should be removed, at least not by default. They’re
warnings, not errors, which is IMO a nice compromise between accepting anything
and requiring that rules be followed. We could add an option like
--no-warnings in
Changes by Éric Araujo mer...@netwok.org:
--
Removed message: http://bugs.python.org/msg113019
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7726
___
Changes by Éric Araujo mer...@netwok.org:
--
assignee: - eric.araujo
nosy: -terry.reedy
versions: +Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1274324
STINNER Victor victor.stin...@haypocalc.com added the comment:
FYI, you should use ascii() instead of a.encode(\utf8\) to dump arguments.
It's easier to check '\u2603' than b'\xe2\x98\x83' for me :-)
So the bug is fixed in Python 3.2, great! I was thinking that we need a test
for that, but
Éric Araujo mer...@netwok.org added the comment:
Can you produce a patch?
(Removing Terry from nosy at his request)
--
components: +Distutils2
nosy: +eric.araujo -terry.reedy
versions: +3rd party, Python 3.2
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
Removed message: http://bugs.python.org/msg113008
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4032
___
Éric Araujo mer...@netwok.org added the comment:
distutils is frozen, new features land into distutils2
(http://bitbucket.org/tarek/distutils2/). Do you want to work on a patch?
--
components: +Distutils2 -Distutils
nosy: +eric.araujo
stage: - needs patch
versions: +3rd party -Python
Éric Araujo mer...@netwok.org added the comment:
“For example, if you installed a new version of Python, this would allow
you to add your already installed pure Python modules to this Python
installation by just going to Add/Remove Programs and selecting the
feature for the new version.”
Would
Christoph Gohlke cgoh...@uci.edu added the comment:
The revised patch for issue7639 now generates better short names for file names
containing spaces, '+', and leading '.'.
http://bugs.python.org/file19334/msilib.diff
Test cases that could be added to MsilibTest.test_makeshort():
TEST
Éric Araujo mer...@netwok.org added the comment:
Skip, do you agree with my proposal (no behavior change in d1, better behavior
in d2) or do you think it could be confusing?
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
You broke many 2.7, 3.1 and 3.x buildbots.
--
priority: high - critical
resolution: fixed -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10126
Steven Bethard steven.beth...@gmail.com added the comment:
Would you have to do this for every installed distribution?
Seems cumbersome.
Well, the feature not being implemented yet, it's hard to tell what it would
do. ;-) But I think the simplest approach would actually yield a dialog where
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I used to create the patch
http://bugs.python.org/file11597/experimental_distutils.patch
in #1706863, but cygwin guys wanted this code implemented
in CCygwinCompiler class (See #2445).
I think #2445 should be resolved before.
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Can you port that patch? I don't have cygwin installed now.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4032
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I created test branch branches/py3k-stat-on-windows and
committed the new patch in r85789. This achieves msg119108.
I tested this on Windows7 buildbot where symlink support
exists, it seems working correct.
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I committed in r85790(release27-maint).
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
title: Skip test_long_key(test_winreg) on win2k + py2.x -
test_long_key(test_winreg) fails on
Changes by R. David Murray rdmur...@bitdance.com:
--
title: Add an assertBytesMultiLineEqual to unittest and use it for bytes
assertEqual - Add an assertBytesEqual to unittest and use it for bytes
assertEqual
___
Python tracker
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: +gpolo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10171
___
___
Python-bugs-list
New submission from Winston C. Yang wins...@cs.wisc.edu:
The following code block in http://docs.python.org/tutorial/errors.html has no
syntax coloring:
import sys
try:
f = open('myfile.txt')
s = f.readline()
i = int(s.strip())
except IOError as (errno, strerror):
print I/O
Éric Araujo mer...@netwok.org added the comment:
I’m trying to build py3k on posix in a subdir called sep-build-dir-éric, with
locale set to C. I get these errors:
gcc [...] -DSVNVERSION=\`LC_ALL=C svnversion ..`\ -o Modules/getbuildinfo.o
../Modules/getbuildinfo.c
svn: Error converting entry
Éric Araujo mer...@netwok.org added the comment:
I’d replace “created stderr” with “printed on stderr”, but otherwise
msvc9_log.diff looks good.
distutils is feature-frozen, but I think any changes that help debugging are
good. Tarek, do you agree?
--
Changes by Éric Araujo mer...@netwok.org:
--
components: +Distutils2
stage: needs patch - patch review
versions: +3rd party -Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9912
___
Marc-Andre Lemburg m...@egenix.com added the comment:
Éric Araujo wrote:
Éric Araujo mer...@netwok.org added the comment:
I’d replace “created stderr” with “printed on stderr”, but otherwise
msvc9_log.diff looks good.
distutils is feature-frozen, but I think any changes that help
Stefan Krah stefan-use...@bytereef.org added the comment:
I've verified the leak manually. The cause is that global variables in
unicodeobject.c, e.g. free_list, are used before _PyUnicode_Init() is
called. Later on _PyUnicode_Init() sets these variables to NULL, losing
the allocated memory.
Skip Montanaro s...@pobox.com added the comment:
I would prefer the gcc-like behavior. I realize there
are constraints on making changes in distutils1, so what
you propose sounds fine to me.
--
nosy: +skip.montanaro
___
Python tracker
Changes by Skip Montanaro s...@pobox.com:
--
nosy: -skip.montanaro
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1371826
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
components: +Distutils2 -Distutils
nosy: +eric.araujo
versions: +3rd party -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5342
___
Changes by Éric Araujo mer...@netwok.org:
--
dependencies: +distutils removing old files, deleting unneeded old files from
installed location.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4673
Éric Araujo mer...@netwok.org added the comment:
Building in the same directory works.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6011
___
Éric Araujo mer...@netwok.org added the comment:
FYI, this is fixed in the new bdist_rpm2 command:
https://bitbucket.org/tarek/pypi2rpm/changeset/ce6626df0225
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4459
Éric Araujo mer...@netwok.org added the comment:
The feature freeze does apply. Tarek has started a standalone project to build
RPMs; I suggest you transfer this bug to https://bitbucket.org/tarek/pypi2rpm/
Happy hacking!
--
resolution: - rejected
stage: - committed/rejected
Changes by Barry A. Warsaw ba...@python.org:
--
assignee: eric.araujo - barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10126
___
___
Éric Araujo mer...@netwok.org added the comment:
The specific problem of gettext+eggs seems to be solved by this project:
https://pypi.python.org/pypi/EggTranslations/
Since the egg format is not retained in distutils2, I don’t think any support
for it should be added in the stdlib.
FWIW, I
Changes by Rafe Kettler rafe.kett...@gmail.com:
--
components: +Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10171
___
___
S S seny...@gmail.com added the comment:
finally was able to figure it out.
i had another product installed, which uses python 2.4 that product during
installation put PYTHONHOME into system variable environment.
as soon as i either change that PYTHONHOME to my latest python path c:\python26
Barry A. Warsaw ba...@python.org added the comment:
I believe all known failures in 2.7, 3.1, and 3.2 both with and without
--enable-shared are now fixed. Let's see what the buildbots say.
--
resolution: - fixed
status: open - closed
___
Python
Changes by Éric Araujo mer...@netwok.org:
--
dependencies: +locale.normalize strips - from UTF-8, which fails on Mac
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10090
___
Éric Araujo mer...@netwok.org added the comment:
Your patch adds a new handler, which is arguably a new feature that has to be
rejected in a bugfix branch.
--
nosy: +eric.araujo
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
About the patch: why should _PyUnicode_Init() try to call
_PyUnicode_InitGlobals() again?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10156
Antoine Pitrou pit...@free.fr added the comment:
Committed with docs in r85793.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5639
Antoine Pitrou pit...@free.fr added the comment:
I've removed the accept4() call in the meantime (in r85796), so that this issue
can be re-classified as a feature request.
--
priority: critical - normal
title: accept4 can fail with errno 90 - Support accept4() for atomic setting
of
Martin v. Löwis mar...@v.loewis.de added the comment:
It possible to script MSI, so that one could write a tool that manages all MSI
files that have the multi-version feature, and add and remove them to Python
installation in batches.
Alternatively, it would also be possible to integrate this
Antoine Pitrou pit...@free.fr added the comment:
Committed in r85797.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9935
Antoine Pitrou pit...@free.fr added the comment:
After thinking about what warning to go with, I take back my python-dev
suggestion of ResourceWarning and switch to DebugWarning.
So what is your advice now?
I've thought about the DebugWarning name myself and I think it's a rather bad
name,
Brett Cannon br...@python.org added the comment:
On Fri, Oct 22, 2010 at 12:49, Antoine Pitrou rep...@bugs.python.org wrote:
Antoine Pitrou pit...@free.fr added the comment:
After thinking about what warning to go with, I take back my python-dev
suggestion of ResourceWarning and switch to
Antoine Pitrou pit...@free.fr added the comment:
The commit broke the Windows buildbots because (un)pickling a TextIOWrapper now
raises an exception:
f = open(LICENSE)
pickle.dumps(f)
b'\x80\x03c_io\nTextIOWrapper\nq\x00)\x81q\x01}q\x02X\x04\x00\x00\x00modeq\x03X\x01\x00\x00\x00rq\x04sb.'
g
Antoine Pitrou pit...@free.fr added the comment:
The difference has to do with the result of __reduce__:
With the patch:
open(LICENSE).__reduce_ex__(3)
(function __newobj__ at 0x7fa392a0ff30, (class '_io.TextIOWrapper',),
{'mode': 'r'}, None, None)
Without:
open(LICENSE).__reduce_ex__(3)
Marc-Andre Lemburg m...@egenix.com added the comment:
I wonder why you think a warning is needed if files aren't closed explicitly.
The fact that they get closed on garbage collection is one of the nice features
of Python and has made programming easy for years.
Explicitly having to close
Brett Cannon br...@python.org added the comment:
But this is meant to be an optional warning; users will never see it. Me as a
developer, I would like to know when I leave a file open as that is a waste of
resources, plus with no guarantee of everything being flushed to disk.
Besides, the
New submission from Antoine Pitrou pit...@free.fr:
unittest.TestCase instances aren't supposed to be picklable, but
test_multiprocessing does it anyway (under Windows). Here is a patch.
--
components: Tests
files: tmp.patch
keywords: patch
messages: 119407
nosy: asksol, jnoller, pitrou
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10173
___
___
Python-bugs-list
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10143
___
___
Python-bugs-list
New submission from Simon de Vlieger si...@ikanobori.jp:
When I have replaced sys.stdin with my own file-like object and I try to do a
multiprocessing.Pool(processes=x) I get errors about sys.stdin not having a
fileno or close method.
For at least fileno it is described in the docs
STINNER Victor victor.stin...@haypocalc.com added the comment:
I’m trying to build py3k on posix in a subdir called
sep-build-dir-éric, with locale set to C.
Ah yes, this particular use case doesn't work: r85800 should fix it. Please
retry.
--
Changes by Andreas Stührk andy-pyt...@hammerhartes.de:
--
nosy: +Trundle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10174
___
___
New submission from Tom Fogal tfo...@alumni.unh.edu:
I have recently attempted to install a couple third party packages
(zope.interface and dulwech, FWIW) and encountered great difficulties. In
particular, the setup complained that it could not find vcvarsall.bat. Even
running these setup
Changes by Jeremy Kloth jeremy.kl...@gmail.com:
--
nosy: +jkloth
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10175
___
___
Python-bugs-list
Case Van Horsen cas...@gmail.com added the comment:
I maintain gmpy and it needs to calculate hash values for integers, floats, and
rationals. I converted my hash calculations to use Py_ssize_t in a 64-bit
Windows enviroment. All my tests pass when I build Python with my previous
patch.
In
R. David Murray rdmur...@bitdance.com added the comment:
If I understand correctly (I'm not a windows user or developer myself), knowing
the bits necessary to compile extension modules is not something very many
people need to know. If an extension module supports Windows, there will
Jeremy Kloth jeremy.kl...@gmail.com added the comment:
A quick look with Dependency Walker gives me the following:
Python 2.4,2.5 -- MSVC .NET 2003 (7.1)
Python 2.6,2.7,3.0,3.1 -- MSVC 2008 (9.0)
Note these are only for the official python.org builds. Each version can also
be built using
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I have come across the same bug. To reproduce, run
Demo/turtle/tdemo_round_dance.py and kill the Tk window before the dance
stops.
The mysterious command name .10170160 is simply the generated name for the
canvas
Case Van Horsen cas...@gmail.com added the comment:
I've uploaded a patch against the current svn trunk that:
1) Defines a Py_uhash_t as equivalent to size_t.
2) Correctly defines _PyHASH_MODULUS on Win64.
3) Replaces several PyLong_FromLong with PyLong_FromSsize_t.
4) Change
Terry J. Reedy tjre...@udel.edu added the comment:
2.7 is in security-fix only mode. I am assuming that this is still a problem in
2.7 (and possibly 3.x). It would be good to confirm this.
--
nosy: +terry.reedy
versions: +Python 2.7 -Python 2.6
___
Terry J. Reedy tjre...@udel.edu added the comment:
I am not sure whether I should attach a zip/tar file with both the attachments
(the sample benchmark and the diff); so I'll attach the diff in a further
comment.
Uploading separate files with .py, .diff extensions that can be viewed in a
Terry J. Reedy tjre...@udel.edu added the comment:
2.7 only (verified); 3.1 and 3.2 are fine.
--
nosy: +terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10172
___
73 matches
Mail list logo