Christian Heimes added the comment:
Python 2.5 and probably 2.6 suffer from the same problem although it's
harder to trigger it.
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type help, copyright, credits or license
New submission from Christian Heimes:
Python 2.5:
import readline; import rlcompleter; readline.parse_and_bind(tab:
complete)
import sys
sys.stdtabtab
sys.stderr sys.stdin sys.stdout
Python 3.0:
import readline; import rlcompleter; readline.parse_and_bind(tab:
complete)
import sys
New submission from Christian Heimes:
In Python 2.6 and 3.0 the readline module has changed. A new hook to set
a display matches was introduced but no default method is set thus
rendering rlcompleter partly useless.
--
components: Extension Modules, Library (Lib)
keywords: py3k
Christian Heimes added the comment:
http://bugs.python.org/issue1388440
http://bugs.python.org/issue1424
--
assignee: - loewis
nosy: +loewis
priority: - normal
superseder: - py3k: readline and rlcompleter doesn't list choices
__
Tracker [EMAIL
New submission from Christian Heimes:
The readline module needs a review and cleanup. Several functions don't
do enough error checks and the indention is partly borked with mixes of
tab and 2 space indention.
--
keywords: py3k
messages: 57383
nosy: tiran
priority: high
severity: normal
New submission from Christian Heimes:
The patch adds the new syntax to the doc string of property:
Decorators makes defining new or modifying existing properties easy:
class C(object):
@property
def x(self): return self.__x
@x.setter
def x(self, value): self.__x = value
Christian Heimes added the comment:
My patch uses import locale as _locale to avoid ambiguous variables.
It also fixes some additional bugs. I still don't understand how
prweek() should work. self.week is missing.
--
keywords: +patch
nosy: +tiran
priority: - normal
versions: +Python
Changes by Christian Heimes:
Removed file: http://bugs.python.org/file8736/calendar.diff
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1427
__
___
Python-bugs-list mailing
Christian Heimes added the comment:
wrong file
Added file: http://bugs.python.org/file8737/calendar_fix.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1427
__Index: Lib/calendar.py
Christian Heimes added the comment:
Applied in r58935 (trunk)
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1428
Christian Heimes added the comment:
I've applied my patch in r58936 (trunk) and r58937 (2.5 branch).
I'm assigning the bug to Walter. Maybe he is able to shed some light on
the prweek() issue.
$ svn ann Lib/calendar.py | grep self\.week
43483 walter.doerwald print self.week(theweek
Christian Heimes added the comment:
The patch is a good idea. However it doesn't work for VS 2003 and MSVCR71:
import sys
f = open(stderr.txt, w)
f.write(stdin: %i\n % sys.stdin.fileno())
f.write(stdout: %i\n % sys.stdout.fileno())
f.write(stderr: %i\n % sys.stderr.fileno())
pythonw.exe
Christian Heimes added the comment:
Fixed in r58941 (trunk), r58947 (merge) and r58933
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1424
Christian Heimes added the comment:
Fixed in r58950 for Python 2.5. Python 2.6 and 3k are already fixed.
--
nosy: +tiran
resolution: - fixed
status: open - closed
versions: +Python 2.5
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1254
Christian Heimes added the comment:
W/o the closed flag it's impossible to distinguish between closed fd and
invalid fd.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1415
Christian Heimes added the comment:
How do you like;
class TestPkg(unittest.TestCase):
def setUp(self):
self.root = None
self.syspath = list(sys.path)
self.sysmodules = sys.modules.copy()
def tearDown(self):
sys.path[:] = self.syspath
Christian Heimes added the comment:
Fix for test_frozen comitted in r58953
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1414
__
___
Python-bugs-list mailing list
Unsubscribe
Christian Heimes added the comment:
Python 2.6 (trunk) is raising a MemoryError in a non-debug build, too.
The problem is fixed in 2.6 and 3.0.
--
versions: -Python 2.6, Python 3.0
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1704621
Christian Heimes added the comment:
Done
just the on_completion_match_display_hook was in a bad state. The rest
was fine except for some indentions.
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org
Christian Heimes added the comment:
Guido van Rossum wrote:
Guido van Rossum added the comment:
I don't understand. When does the difference matter?
When the check for fd 0 is removed from fileio_init() there is no way
to tell if fd 0 means fd closed or invalid fd.
In order to fix
Christian Heimes added the comment:
Guido van Rossum wrote:
I still don't understand. Why do you need to treat a closed fd
different from an invalid fd. In both cases you can't use it and you
shouldn't close it.
I don't want to treat the fd differently. I want to return a sensible
error
Christian Heimes added the comment:
The mail gateway swallows examples:
import sys
sys.stderr = None
raise Exception(msg)
del sys.stderr
raise Exception(msg)
object : Exception('msg',)
type: Exception
refcount: 4
address : 0x839d274
lost sys.stderr
Christian Heimes added the comment:
Good work Amaury! :)
I also wonder how type(cls) != cls.__class__ is possible with new style
classes. So far I found only one way and it ain't beautiful:
class Meta(type):
... def __getattribute__(self, key):
... if key == __class__: return
Christian Heimes added the comment:
Fixed in r58959
I followed your wish and set sys.stdin, stdout and stderr to None
together with __std?__. I also kept the check for fd 0 in
fileio_init(). A negative fd still raises the correct error with errno 9
(bad file descriptor).
--
resolution
Christian Heimes added the comment:
It's a known feature - and a known gotcha for new Python developers.
--
nosy: +tiran
resolution: - invalid
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1437
Christian Heimes added the comment:
confirmed
The problem is in logging.config._install_handlers(cp, formatters). The
code is usin klass = eval(klass, vars(logging)) args = eval(args,
vars(logging)) to get the logger class from the logging module.
--
nosy: +tiran
versions: +Python 2.6
Changes by Christian Heimes:
--
components: +Interpreter Core -None
priority: - low
type: behavior - rfe
versions: +Python 2.6
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1435
Changes by Christian Heimes:
--
assignee: - vsajip
nosy: +vsajip
priority: - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1436
__
___
Python-bugs-list
Christian Heimes added the comment:
I consider the bug fixed and closed. Objections?
--
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1415
Christian Heimes added the comment:
I like to move _PyExc_Init() before _PySys_Init() and set sys.prefix,
exec_prefix and executable with PyUnicode_DecodeFSDefault().
Without the changes Python is seg faulting on Windows when the path
contains non ASCII chars. With the patch it is failing
Christian Heimes added the comment:
As far as I can see print() works if sys.stdout is either None (discard
output ASAP) or a file like object. Even print(file=syst.stderr) works.
sys.stdout.write() is going to fail when sys.stdout is None but that's
not my concern. It's another well documented
Christian Heimes added the comment:
I'm setting the priority to normal. The issue isn't resolved but it's
not critical for the next alpha release. By the way what's your ETA for
the next alpha, Guido?
--
priority: high - normal
__
Tracker [EMAIL
Christian Heimes added the comment:
The issue isn't fixed yet. The script is still eating precious memory.
--
nosy: +gvanrossum, tiran
priority: high - urgent
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1134
New submission from Christian Heimes:
Can you please review the patch. It's not urgent. It adds additional
tests for std??? == Py_None to some functions to speed up things or
raise more meaningful exceptions when sys.std??? is None.
--
assignee: gvanrossum
components: Interpreter Core
Christian Heimes added the comment:
I've a far better patch that uses Python's infrastructure to report the
error:
Index: Modules/main.c
===
--- Modules/main.c (Revision 58966)
+++ Modules/main.c (Arbeitskopie)
@@ -132,6
Christian Heimes added the comment:
Neal, Thomas, what do you think about the patch? Your knowledge of the
Windows API is greater than mine. Is the duplicate_socket() function ok?
I don't want to apply a patch I don't fully understand.
+#ifdef MS_WINDOWS
+/* On Windows a socket is really
Christian Heimes added the comment:
Guido van Rossum wrote:
The patch looks okay, but I just thought of something -- why not make
sys.stdout and friends be undefined (i.e. NULL) instead of setting them
to None? That way this patch isn't necessary and you only need one
small change
Christian Heimes added the comment:
Hi Janssen!
The patch at http://bugs.python.org/issue1378 adds suport for
_socket.socket.dup() on Windows. It can't dup file descriptors but it
can dup socket handlers. Would it make your patch easier?
__
Tracker [EMAIL
Christian Heimes added the comment:
Port of the socket_fromfd.patch to py3k
Added file: http://bugs.python.org/file8746/py3k_socket_fromfd.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1378
__Index: Lib/socket.py
Christian Heimes added the comment:
I'm disappointed that this doesn't implement socket.fromfd() properly.
Perhaps fromfd() needs to be implemented in socketmodule.c?
On Windows socket.fromfd() is not possible. Socket handlers and file
descriptors are different types using different API
Christian Heimes added the comment:
I've checked the patch on Windows. I've run the regression tests with
-R:: for test_urllib2 test_urllib2net test_urllib test_urllibnet
test_socket. The tests are passing and no ref leak shows up.
--
assignee: tiran - gvanrossum
Christian Heimes added the comment:
Committed in r58974
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1440
__
___
Python
Christian Heimes added the comment:
I'm resetting the target version of all your MSVC patches to 2.6 + 3.0.
While we can't alter the compiler version of Python 2.5 I really like to
update to a new compiler for 2.6 and 3.0.
--
components: +Demos and Tools, Installation
keywords: +patch
Changes by Christian Heimes:
--
components: +Installation
keywords: +patch
priority: - normal
versions: +Python 2.6, Python 3.0 -Python 2.5
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1448
Changes by Christian Heimes:
--
components: +Installation
keywords: +patch
versions: +Python 2.6, Python 3.0 -Python 2.5
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1447
Changes by Christian Heimes:
--
keywords: +patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1444
__
___
Python-bugs-list mailing list
Unsubscribe:
http
Christian Heimes added the comment:
I've checked your patch. It's not enough to move to VS 2005 as the
default compiler. People expect python setup.py to work w/o opening a VS
2005 Command Prompt.
--
nosy: +tiran
__
Tracker [EMAIL PROTECTED]
http
Changes by Christian Heimes:
--
resolution: - invalid
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1446
__
___
Python-bugs-list mailing list
Christian Heimes added the comment:
Thanks for your work! I'm changing the version number to Python 2.6.
It's too late to get it into Python 2.5.
Christian
PS: Next time could you please create the patch in the root of the
Python source tree? It makes it easier to apply the patch
Christian Heimes added the comment:
The patch looks fine but I've a small request. Could you please use a
global var PCBUILD instead of PCBuild / PCBuild8 and change the
dependencies to use either MSVCR 71 or 80 depending on the content of
the var. This way the msi module can handle both
Christian Heimes added the comment:
I'm a bit concerned with the upgrade from DB 4.4. to 4.6 and SQLite from
3.3 to 3.5. Are the APIs backward compatible or can the Python bindings
handle the new APIs? I believe that Python 2.6 is compatible with db4.6
but I'm not sure about SQLite. Have you run
Changes by Christian Heimes:
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1378
__
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options
Christian Heimes added the comment:
Oh, I forgot
Added file: http://bugs.python.org/file8757/py3k_another_socket.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1378
__Index: Include/longobject.h
Christian Heimes added the comment:
Ubuntu Linux 7.10, x86, gcc version 4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2)
/home/heimes/dev/python/py3k/Modules/_ssl.c: In function
'_get_peer_alt_names':
/home/heimes/dev/python/py3k/Modules/_ssl.c:680: warning: passing
argument 2
Christian Heimes added the comment:
Weck,
if you like to help and spend some time on getting VS2008 support into
Python 2.6 and 3.0 I'm willing to assist you. You can download the Beta
2 of the VS C++ 2008 Express Edition from
http://msdn2.microsoft.com/en-us/express/future/bb421473.aspx
IMHO
Christian Heimes added the comment:
I've yet another idea for a tiny improvement. Instead of doing
newfd = _socket.dup(socket_instance.fileno())
I prefer
newfd = _socket.dup(socket_instance)
It removes some confusing magic and makes error checking on Windows
slightly easier
New submission from Christian Heimes:
I've come up with a quick hack to support VS 2008. VS 2008 Standard
Edition doesn't store the include and lib dirs in the registry any more.
However I came up with a nice way to get the env settings from the
vcvarsall.bat. How do you like it?
Do we need
Christian Heimes added the comment:
Neither VS8 Professional nor VS9 Beta 2 Standard are storing the lib and
include directories in the registry. I've searched in HKCU and HKLM. The
best I could find was the path to a XML file in My Documents that
contains the information
Christian Heimes added the comment:
Ok, I'll take it from here. I'm going to wait until it's decided to use
VS 2008 as the new default compiler.
--
assignee: loewis - tiran
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1455
Christian Heimes added the comment:
UPDATES:
* Cleanup and rewrite of the registry related code
* Moved search code to find_vcvarsall().
* Added fallback using the VS90COMNTOOL env var for Express edition
Added file: http://bugs.python.org/file8768/py3k_vs2008_2.patch
Christian Heimes added the comment:
Closed as discussed on IRC.
--
nosy: +tiran
resolution: - invalid
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1456
Christian Heimes added the comment:
I've used parts of the patch for the MSI fix for VS 2008. I've got most
of the VS 2008 related changes done. Have a look.
--
resolution: - wont fix
status: open - closed
__
Tracker [EMAIL PROTECTED]
http
Christian Heimes added the comment:
Martin v. Löwis wrote:
Martin v. Löwis added the comment:
Did you test the change for VS 2003? In my MSMDir
(C:\Programme\Gemeinsame Dateien\Merge Modules), I only have the
following files
GDIPlus.msm
msmask32_X86.msm
msmask32_X86_ENU.msm
Changes by Christian Heimes:
Removed file: http://bugs.python.org/file8779/ml.exe
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1465
__
___
Python-bugs-list mailing list
Christian Heimes added the comment:
I've removed the ml.exe. Please do NOT upload copyright protected
material here.
You should really coordinate your effort with us. :) I've already
created a PCbuild9 directory in the py3k source tree. Once it is
finished I'm going to backport it to 2.6. I'll
Christian Heimes added the comment:
I've solved the issue in the py3k differently. I've checked for
!(defined(_MSC_VER) _MSC_VER1499) but your check is better. Thanks!
--
assignee: - tiran
keywords: +patch, py3k
nosy: +tiran
priority: - normal
resolution: - accepted
versions
Christian Heimes added the comment:
Updated compiler and linker args from the project command lines.
Added file: http://bugs.python.org/file8781/py3k_vs2008_3.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1455
Christian Heimes added the comment:
Just for your information, Kevin:
I've created a PCbuild9 directory for VS 2008 Beta 2 in the py3k branch.
I've also changed msi.py to work with PCbuild and PCbuild9.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org
New submission from Christian Heimes:
The unit test suite of py3k is removing the official %TEMP% directory of
Windows. It's not only causing errors in the test suite but also
creating havoc with other apps.
I'm not sure if it is related to my PCbuild9 or some changes to the unit
test suite
Christian Heimes added the comment:
The issue should be addressed in the C code.
--
assignee: - gvanrossum
nosy: +gvanrossum, tiran
priority: - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1257
Changes by Christian Heimes:
--
keywords: +py3k
priority: - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1276
__
___
Python-bugs-list mailing list
Christian Heimes added the comment:
I think the problem should be addressed after alpha 2.
--
keywords: +py3k
nosy: +tiran
priority: - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1438
Christian Heimes added the comment:
Martin gave some insight into the problem
http://permalink.gmane.org/gmane.comp.python.python-3000.devel/10949
The test isn't going to work on systems that don't support UTF-8.
--
priority: - normal
__
Tracker [EMAIL
Christian Heimes added the comment:
Amaury is planing to remove Win95 code and use the wide api everywhere.
It should fix the bug.
--
assignee: - amaury.forgeotdarc
components: +Interpreter Core, Windows -Library (Lib)
nosy: +amaury.forgeotdarc
priority: high - normal
resolution
Changes by Christian Heimes:
--
assignee: - gvanrossum
nosy: +gvanrossum
priority: - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1374
__
___
Python-bugs
Changes by Christian Heimes:
--
nosy: +gvanrossum
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue718532
___
Python-bugs-list mailing list
Unsubscribe:
http
Changes by Christian Heimes:
--
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1020
__
___
Python-bugs-list mailing list
Unsubscribe:
http
Christian Heimes added the comment:
Guido, what needs to be done here?
--
nosy: +tiran
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1067
__
___
Python-bugs-list
Changes by Christian Heimes:
--
assignee: - gvanrossum
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1234
__
___
Python-bugs-list mailing list
Changes by Christian Heimes:
--
assignee: nnorwitz - gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1372
__
___
Python-bugs-list mailing list
Unsubscribe
Christian Heimes added the comment:
Have you studied my patch http://bugs.python.org/issue1455? I didn't
want to parse some files. Instead I used a much simpler approach in my
patch. I'm using the vcvarsall.bat to set up an environment and set
to read the new environment from stdout. It works
Christian Heimes added the comment:
My bad, os.removedirs is removing all parent directories until it hits a
non empty dir.
Fixed in r59063 and r59064
--
resolution: - fixed
status: open - closed
versions: +Python 2.6
__
Tracker [EMAIL PROTECTED]
http
Christian Heimes added the comment:
Thanks, I've changed the code slightly.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1470
__
___
Python-bugs-list mailing list
Unsubscribe
Changes by Christian Heimes:
--
keywords: patch, py3k
nosy: tiran
priority: low
severity: normal
status: open
title: Small bat files to build docs on Windows
type: rfe
versions: Python 2.6, Python 3.0
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org
Christian Heimes added the comment:
You are right. I've checked the header files of the dependencies or
simply tried what happens when I remove some defines. The only macro
existing macro is BZ2_EXPORT but that's defined unless BZ2_IMPORT is
defined.
What about the remaining defines? I've
New submission from Christian Heimes:
The patch contains the modifications to PCbuild9, socketmodule and some
structmember.h related files after a svn copy py3k/PCbuild9 trunk/
--
assignee: tiran
components: Windows
files: trunk_pcbuild9.patch
keywords: patch
messages: 57695
nosy
New submission from Christian Heimes:
Joseph found the bug during his testing of the py3k branch. The problem
is in subprocess.py line 716.
http://pastebin.com/fa947767
--
assignee: astrand
components: Library (Lib), Tests, Windows
keywords: py3k
messages: 57696
nosy: astrand
Changes by Christian Heimes:
--
priority: - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1475
__
___
Python-bugs-list mailing list
Unsubscribe:
http
Changes by Christian Heimes:
--
assignee: - gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1400
__
___
Python-bugs-list mailing list
Unsubscribe:
http
Christian Heimes added the comment:
I've fixed most of the problems in the last couple of days. On my box VS
2005 builds the ssl, tkinter and msi modules. However the future lies in
PCbuild9 and VS 2008.
--
resolution: - fixed
status: open - closed
Christian Heimes added the comment:
WIN32 is required. Without WIN32 defined I'm getting errors in the
locale module. _WINDOWS seems to be obsolete.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1473
Christian Heimes added the comment:
Thanks ;)
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1476
__
___
Python-bugs-list
Changes by Christian Heimes:
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1473
__
___
Python-bugs-list mailing list
Christian Heimes added the comment:
Fixed in r59079
Thanks again!
--
keywords: +patch, py3k
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1478
Christian Heimes added the comment:
Fixed in r59081 and r59080
py3k will follow at the next svnmerge
--
nosy: +tiran
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1372
Christian Heimes added the comment:
Fixed in r59083
The sentinel in the methods list of XMLparsetype was missing.
--
resolution: accepted - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1020
Christian Heimes added the comment:
Fixed in py3k and soon to be fixed in trunk when my PCbuild9 directory
is ready.
--
resolution: accepted - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1464
Christian Heimes added the comment:
Comitted in r59092
--
resolution: accepted - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1403
Christian Heimes added the comment:
Python 3.0 suffers from an problem with reinitialization but I can't
reproduce the bug with the release branch of 2.5. Python 2.6 also does
fine but leaks some references.
// reinit_test.c
#include Python.h
#define ROUNDS 5
int main(void) {
int i
Christian Heimes added the comment:
I like to have Peter Astrand look over the patch first. He has written
most of the subprocess module.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1475
201 - 300 of 6455 matches
Mail list logo