[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor victor.stin...@haypocalc.com added the comment: Even if this issue doesn't fix all the configure complete mess, I think that it improves it a little bit. Open new issues if you would like to fix other parts of the configure script. Viktor, you are still missing the point and please stop closing the issue again and again. Please change the configure.in script to only override the CFLAGS in case they were set before entering the AC_PROG_CC part ! I've explained that over and over again and I don't understand why you are being completely ignorant of the implications of your change. The Mac OS X fix is unrelated to this change. -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8211 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7567] Messed up terminal after calling curses.initscr() twice.
Sreejith Madhavan sreeji...@gmx.com added the comment: Thanks for the patch. I can confirm that the patch works for 64bit builds of python-2.6.5 on Solaris (amd64 and sparc) and RHEL5 amd64. The curses library used was ncurses-5.7 with widechar support. -- nosy: +Sreejith.Madhavan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7567 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8325] improve regrtest command line help
anatoly techtonik techto...@gmail.com added the comment: Thanks for proofreading. I've uploaded a new version here with typo fix, but do not removed 1., 2. numbering. It is a very awesome feature of console UI. When you're in a hurry (and you always in a hurry when you forget something) it is easy to miss the line that starts with Usage: or the line below it that may be thought as continuation of arguments. The digit prefix gives you a clear signal that there is more than one way to run this. If you need an authority, take a look at the tool you are using to commit the patch. =) -- Added file: http://bugs.python.org/file17049/8325.improve-regrtest-help-v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS
Marc-Andre Lemburg m...@egenix.com added the comment: Marc-Andre Lemburg wrote: Marc-Andre Lemburg m...@egenix.com added the comment: Please change the configure.in script to only override the CFLAGS in case they were set before entering the AC_PROG_CC part ! Sorry, this should have read: ... if CFLAGS *were* set before entering AC_PROG_CC ... I've explained that over and over again and I don't understand why you are being completely ignorant of the implications of your change. One of the main purposes of AC_PROG_CC is to setup CFLAGS in case they are not and your change defeats this purpose. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8211 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8325] improve regrtest command line help
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8503] smtpd module does not allow
New submission from mike s sucha...@kovagroup.ca: The SMTPServer supplied by the smtpd library allows clients to send mail to any domain. This makes the server attractive to spammers, thinking they have found an open relay. The patch below adds an accept_domain method to SMTPServer (documented below) which can be overridden by the user to compare the incoming domain against a list, etc, and return True or False (True=accept address, False=reject). My apologies if this is the wrong place to submit this; I have not submitted a patch like this before and am just hoping to help! :) Mike --- smtpd.py.bak2010-04-23 00:22:39.0 -0700 +++ smtpd.py2010-04-23 00:51:22.0 -0700 @@ -241,6 +241,10 @@ if not address: self.push('501 Syntax: RCPT TO: address') return + address_domain = address.split('@')[1] + if self._SMTPChannel__server.accept_domain(address_domain) is False: + self.push('554 Relay access denied') + return self.__rcpttos.append(address) print DEBUGSTREAM, 'recips:', self.__rcpttos self.push('250 Ok') @@ -289,6 +293,15 @@ print DEBUGSTREAM, 'Incoming connection from %s' % repr(addr) channel = SMTPChannel(self, conn, addr) +def accept_domain(self,domain): + domain is a string like domain.com that specifes the domain of + an email address supplied by client's RCPT TO command. + + Override this method to determine whether SMTPServer should + accept mail for a given domain. This is handy for preventing + spammers from thinking you are running an open relay. + return True + # API for doing something useful with the message def process_message(self, peer, mailfrom, rcpttos, data): Override this abstract method to handle messages from the client. -- components: Library (Lib) messages: 103993 nosy: mike.s severity: normal status: open title: smtpd module does not allow versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8503] smtpd module does not allow domain filtering
Changes by mike s sucha...@kovagroup.ca: -- title: smtpd module does not allow - smtpd module does not allow domain filtering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8503] smtpd SMTPServer does not allow domain filtering
Changes by mike s sucha...@kovagroup.ca: -- title: smtpd module does not allow domain filtering - smtpd SMTPServer does not allow domain filtering ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8451] syslog.syslog('msg') logs message with ident python.
Sean Reifschneider j...@tummy.com added the comment: Committed as 80396. Included a change to let openlog(3) pick the ident instead of using the static string python. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8451] syslog.syslog('msg') logs message with ident python.
Sean Reifschneider j...@tummy.com added the comment: Ported to python3 and committed as 80401. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7384] curses crash on FreeBSD
Stefan Krah stefan-use...@bytereef.org added the comment: Mark, thanks for reviewing the patch. In the new patch, I added a skip for OS X. Buildbot testing looks good. In particular, one FreeBSD bot passes test_curses now (the other one is hanging in multiprocessing). For most bots nothing changes. The solaris bot has the same unrelated failures as before. Ubuntu sparc previously did the same weird linking (readline already linked with ncurses, but using -lncursesw) and now uses ncurses throughout. Tests pass. Debian sparc did the same, tests give the same failures as before (getmouse returned ERR, almost certainly unrelated.) Roumen, I do not see a line in configure.in that tests for the libraries that readline is linked against. -- Added file: http://bugs.python.org/file17050/issue7384-4-py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7384] curses crash on FreeBSD
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment: I did some digging on my side, the fact you see ncurses referenced from readline is due to the build linking readline to libtermcap: cc -fstack-protector -shared -Wl,-x -o libreadline.so.8 -Wl,-soname,libreadline.so.8 `lorder readline.So vi_mode.So funmap.So keymaps.So parens.So search.So rltty.So complete.So bind.So isearch.So display.So signals.So util.So kill.So undo.So macro.So input.So callback.So terminal.So text.So nls.So misc.So compat.So xmalloc.So history.So histexpand.So histfile.So histsearch.So shell.So mbutil.So tilde.So | tsort -q` -ltermcap And libtermcap is: % ll /usr/lib/libtermcap.so* 0 lrwxr-xr-x 1 root wheel - 13B 18 apr 08:29 /usr/lib/libtermcap.so@ - libncurses.so That configuration option you referenced, Stefan, is that --with-termlib (generate separate terminfo library)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6
New submission from Tim Lyons guy.lin...@gmail.com: A database created under python 2.5 cannot be opened under python 2.6. It gives the error message DB_RUNRECOVERY: Fatal error, run database recovery -- process-private: unable to find environment , and a database created under python 2.6 cannot be opened under python 2.5 (see http://trac.macports.org/ticket/24310). (This in in Mac OS X: In Windows XP SP3, Python 2.6 can read a Python 2.5 bsddb data base. but not the other way around. If you try, you will end up with a corrupt data base.) python 2.6 bsddb is very much slower than python 2.5. Specifically, in Gramps, import of a 500 person xml file takes 12 sec with python25 and 9 mins 30 secs with python26. The slowness has been observed in Mac OS X (See http://trac.macports.org/ticket/23768) and in Windows (see http://www.gramps-project.org/bugs/view.php?id=3750). I am not sure, but I think that both systems are using the same underlying database module db46, and that the difference may be in the different interface modules: _bsddb.so (on Mac OS X) -- components: Library (Lib) messages: 103998 nosy: guy.linton severity: normal status: open title: bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6 type: crash versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6
Martin v. Löwis mar...@v.loewis.de added the comment: Jesus, any idea? -- assignee: - jcea nosy: +jcea, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7384] curses crash on FreeBSD
Stefan Krah stefan-use...@bytereef.org added the comment: Yes, readline uses only the termcap part of ncurses. I think that --with-termlib is the correct option, see: http://www.mail-archive.com/util-linux...@vger.kernel.org/msg00273.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8325] improve regrtest command line help
Éric Araujo mer...@netwok.org added the comment: Hello I don’t know what “the tool I am using to commit the patch” is (I don’t commit patches), but every program I tested does not use numbers with usage/synopsis lines. Having the name of the program at the start of each line prevents me from thinking it’s a continuation (and my pager, most, colorizes it). That said, I’m not sure it’s useful to include both usage lines. I’d suggest advertising only the ”-m” way. Some of the phrasing of the patch should be improved; if no native speaker does it this week-end, I’ll propose something. Regards -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7384] curses crash on FreeBSD
Stefan Krah stefan-use...@bytereef.org added the comment: Actually this means that we should also look for -ltinfo in the ldd check (A Redhat buildbot would be nice). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8503] smtpd SMTPServer does not allow domain filtering
Eric Smith e...@trueblade.com added the comment: This is the right place, thanks for the patch! Since this is a feature request it can only be added to 3.2 (and 2.8, if such a thing ever exists). -- nosy: +eric.smith priority: - normal stage: - unit test needed type: - feature request versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8468] bz2: support surrogates in filename, and bytes/bytearray filename
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited: r80402 (py3k), r80403 (3.1). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8468 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8477] _ssl: support surrogates in filenames, and bytes/bytearray filenames
STINNER Victor victor.stin...@haypocalc.com added the comment: key_file and cert_file are mandatory (see newPySSLObject()) and bytearray are now more accepted by PyUnicode_FSConverter() (see #8485). New version of the patch is simpler and shorter. Support bytearray is a little bit to much complex for me (because of the GIL and bytearray lock), I prefer to leave 3.1 unchanged (I will not backport this patch). -- Added file: http://bugs.python.org/file17051/ssl_surrogates-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8477 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8242] Improve support of PEP 383 (surrogates) in Python3: meta-issue
Changes by STINNER Victor victor.stin...@haypocalc.com: -- dependencies: +Don't accept bytearray as filenames, or simplify the API ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8242 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8477] _ssl: support surrogates in filenames, and bytes/bytearray filenames
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file17017/ssl_surrogates.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8477 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8124] mywrite() ignores PyFile_WriteString() errors
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited: r80404 (py3k), r80405 (3.1). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8124 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6
Jesús Cea Avión j...@jcea.es added the comment: The database compatibility is dictated by the underlying Berkeley DB library used. Reporter, please do this: (asuming you are using bsddb lib in the standard lib, not external project pybsddb) 1. Open a python2.5 shell. 2. import bsddb 3. print bsddb.__version__, bsddb.db.version() 4. Post the numbers. 5. Repeat under python2.6. In my machine, I get: python2.5: 4.4.5.3 (4, 5, 20) python2.6: 4.7.3 (4, 7, 25) So under python2.5 I would be using Berkeley DB 4.5, and under python2.6 I am using Berkeley DB 4.7. Berkeley DB has a defined procedure to upgrade databases. This is specially important if you are using a transactional datastore. BEWARE: There is *NO* downgrade path. http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/am_upgrade.html Most of the time, the database format doesn't change from version to version, but the environment do (specially the log format). Each Berkeley DB database release documentation includes a very detailed upgrading section. For instance: http://www.oracle.com/technology/documentation/berkeley-db/db/installation/upgrade_11gr2_toc.html Anyway the details are the following: 1. A database created with a X Berkeley DB can not be used in a Y version, if YX. 2. A database created with a X Berkeley DB can be used in a Y version, if YX, if you upgrade the environment/databases first to the new version. The documented upgrade procedure is: http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/upgrade_process.html If you try to use an old format with a new library without updating, you should get a CLEAR error message: Python 2.5.2 (r252:60911, Mar 14 2008, 19:21:46) [GCC 4.2.1] on sunos5 Type help, copyright, credits or license for more information. import bsddb dbenv=bsddb.db.DBEnv() dbenv.open(., bsddb.db.DB_INIT_TXN | bsddb.db.DB_INIT_MPOOL | bsddb.db.DB_INIT_LOG | bsddb.db.DB_CREATE) db=bsddb.db.DB(dbenv) db.open(file.db,flags=bsddb.db.DB_CREATE, dbtype=bsddb.db.DB_HASH) db.close() dbenv.close() Python 2.6.5 (r265:79063, Mar 22 2010, 12:17:26) [GCC 4.4.3] on sunos5 Type help, copyright, credits or license for more information. import bsddb dbenv=bsddb.db.DBEnv() dbenv.open(., bsddb.db.DB_INIT_TXN | bsddb.db.DB_INIT_MPOOL | bsddb.db.DB_INIT_LOG | bsddb.db.DB_CREATE) Traceback (most recent call last): File stdin, line 1, in module bsddb.db.DBError: (-30971, DB_VERSION_MISMATCH: Database environment version mismatch -- Program version 4.7 doesn't match environment version 4.5) The error is pretty obvious. If you go the other way: Python 2.6.5 (r265:79063, Mar 22 2010, 12:17:26) [GCC 4.4.3] on sunos5 Type help, copyright, credits or license for more information. import bsddb dbenv=bsddb.db.DBEnv() dbenv.open(., bsddb.db.DB_INIT_TXN | bsddb.db.DB_INIT_MPOOL | bsddb.db.DB_INIT_LOG | bsddb.db.DB_CREATE) db=bsddb.db.DB(dbenv) db.open(file.db,flags=bsddb.db.DB_CREATE, dbtype=bsddb.db.DB_HASH) db.close() dbenv.close() Python 2.5.2 (r252:60911, Mar 14 2008, 19:21:46) [GCC 4.2.1] on sunos5 Type help, copyright, credits or license for more information. import bsddb dbenv=bsddb.db.DBEnv() dbenv.open(., bsddb.db.DB_INIT_TXN | bsddb.db.DB_INIT_MPOOL | bsddb.db.DB_INIT_LOG | bsddb.db.DB_CREATE) Traceback (most recent call last): File stdin, line 1, in module bsddb.db.DBError: (-30972, DB_VERSION_MISMATCH: Database environment version mismatch -- Program version 4.5 doesn't match environment version 4.7) So, no database corruption, but a clear error message. I guess Gram is reporting database corruption because it can't open the database for some reason, not that the DB is actually corrupted. In your case, anyway, you are saying that you are using the same Berkeley DB both in python2.5 and 2.6, so all this explanation is not actually related. Please CONFIRM that. If you are using actually the same BDB version, the next step is to try to open the DB manually (with a short python script like the posted one). Remember, ALSO, that if you are using a BDB previous to 4.7, you can not simply copy an environment between different endianess machines. For instance, moving from PowerPC to x86. I think that was solved in BDB 4.7, IIRC. Or maybe 4.8. Look at http://forums.oracle.com/forums/thread.jspa?messageID=3725053 About the speed, if you are using the same BerkeleyDB release, the speed should be the same. So the first step would be to actually know if you are using the same BDB version. I guess the importing is doing a new transaction per imported record, flushing them to disk. Flushing is an expensive and slow operation. In a regular HD, that would limit the speed to 30-120 transactions per second, maximum (depending of your filesystem). The dependency of the filesystem could explain the difference between Linux and Windows. The an approach would be to enclose ALL the imported records in a single
[issue8505] 2to3 fix_future.py removes __future__ imports, but should it?
New submission from Barry A. Warsaw ba...@python.org: Lines such as the following are removed by fix_future.py in 2to3 from __future__ import absolute_import, unicode_literals I think this is unnecessary and I have a case where it causes problems. It's unnecessary because this import is essentially a no-op in Python 3, so it does no harm, and serves no actual useful purpose to remove. It causes harm because of a common idiom in doctest setups: def setup(testobj): Test setup. # Make sure future statements in our doctests match the Python code. testobj.globs['absolute_import'] = absolute_import testobj.globs['unicode_literals'] = unicode_literals fix_future.py removes the import so these cause NameErrors. Sure, I can wrap them in try/excepts, but still what's the point of fix_future? -- components: 2to3 (2.x to 3.0 conversion tool) messages: 104008 nosy: barry severity: normal status: open title: 2to3 fix_future.py removes __future__ imports, but should it? versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8505 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8506] SimpleXMLRPCServer Socket not closed after shutdown call
New submission from Erik Schweller othere...@gmail.com: Calling shutdown on a SimpleXMLRPCServer will stop the server but does not close the socket, meaning new connections to the same address will fail. Example: srv = SimpleXMLRPCServer((ip, port), logRequests=False, allow_none=True) srv.serve_forever(poll_interval=2) srv.shutdown() is made available to the registered class instance. The current workaround is to delete the socket (or call close() on the socket) after the server is shutdown, (i.e., del srv.socket) but it seems this should be handled when the server is shutdown. -- components: Library (Lib) messages: 104009 nosy: othererik severity: normal status: open title: SimpleXMLRPCServer Socket not closed after shutdown call type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8506 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5639] Support TLS SNI extension in ssl module
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6
Peter Landgren peter.tal...@telia.com added the comment: I could add what I have found using bsddb in Python 2.5 and 2.6 under Windows XP SP3. In my installation: Python 2.5.4 bsddb 4.4.5.3 Python 2.6.4 bsddb 4.7.3 What I did: In Gramps imported an XML backup file to a empty bsddb database. It took about 1 hour with 2.6.4 and 2 minutes with 2.5.4! I have also instelled bsddb3: Python 2.6.4 bsddb3 4.8.4 and with the same import I'm back to 2 minutes. I have pstat logs which I could provide. -- nosy: +PeterL ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8477] _ssl: support surrogates in filenames, and bytes/bytearray filenames
Antoine Pitrou pit...@free.fr added the comment: key_file and cert_file are mandatory No, they are not. Not for a client connection, at least. Also, please add at least a simple test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8477 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8507] abc.abstractproperty does not copy docstring
New submission from Robert Escriva bugs.pyt...@mail.robescriva.com: Attached file shows interpreter session where the bug manifests. It was my expectation that abc.abstractproperty would copy the docstring just like property. Instead, the docstring is the one for abc.abstractproperty itself. -- components: Library (Lib) files: python.abc.abstractproperty.bug messages: 104012 nosy: rescrv severity: normal status: open title: abc.abstractproperty does not copy docstring type: behavior versions: Python 2.6 Added file: http://bugs.python.org/file17052/python.abc.abstractproperty.bug ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8507 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8507] abc.abstractproperty does not copy docstring
Changes by Antoine Pitrou pit...@free.fr: -- priority: - normal versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8507 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1563] asyncore and asynchat incompatible with Py3k str and bytes
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file11018/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1563 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1563] asyncore and asynchat incompatible with Py3k str and bytes
R. David Murray rdmur...@bitdance.com added the comment: Since no doc only patch has been proposed and there is some disagreement as to whether it is needed anyway, I'm closing this per msg88559. -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1563 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7806] httplib.HTTPConnection.getresponse closes socket which destroys the response
R. David Murray rdmur...@bitdance.com added the comment: Hearing no further argument to the contrary, I'm closing this as invalid. -- resolution: - invalid stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7806 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8508] 2to3 fixer for gettext's .ugettext
New submission from Barry A. Warsaw ba...@python.org: gettext module in Python 3 does not have a .ugettext method because everything's already unicodes. Here's a fixer for that. -- components: 2to3 (2.x to 3.0 conversion tool) files: fix_ugettext.py messages: 104015 nosy: barry severity: normal status: open title: 2to3 fixer for gettext's .ugettext versions: Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file17053/fix_ugettext.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8508 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6
Jesús Cea Avión j...@jcea.es added the comment: I need to know the Berkeley DB version you are using in python 2.5, 2.6, both with bsddb and pybsddb (bsddb3). Also, I would need a testcase I can try without installing Gram myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8509] fix autoconf quoting in help strings and code snippets
New submission from Matthias Klose d...@debian.org: the attached patch adds quoting to help strings and code snippets, following the autoconf quotation rule of thumb One pair of quotes per pair of parentheses. checked that the generated files are identical. -- components: Build files: configure.in.diff keywords: needs review, patch messages: 104017 nosy: doko severity: normal status: open title: fix autoconf quoting in help strings and code snippets versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file17054/configure.in.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8509 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8510] update to autoconf2.65
New submission from Matthias Klose d...@debian.org: update to autoconf2.65 -- components: Build files: autoconf2.65.diff keywords: needs review, patch messages: 104018 nosy: doko severity: normal status: open title: update to autoconf2.65 versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file17055/autoconf2.65.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6
Peter Landgren peter.tal...@telia.com added the comment: Requested data on my Windows box: Python 2.5 bsddb 4.4.5.3 4.4.20 Python 2.6 bsddb 4.7.3 4.7.25 Python 2.6 bsddb 4.8.4 4.8.26 OK? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6
Peter Landgren peter.tal...@telia.com added the comment: Maybe I should add that there is no speed degradation between 2.5 and 2.5 when doing the same thing in Linux. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8510] update to autoconf2.65
Matthias Klose d...@debian.org added the comment: see http://mail.python.org/pipermail/python-dev/2010-April/099639.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8325] improve regrtest command line help
R. David Murray rdmur...@bitdance.com added the comment: The numbers should definitely not be there. I favor just documenting the -m version, and you'll see why in the attached patch. I've incorporated Anatoly's improvement to the argument description and the option updates, and made some additional improvements. I've also more extensively rewritten the -s docs, but Florent and I are still discussing where the pynexttest file should really go (currently -s is broken on trunk). Or maybe we should just get rid of -s. -- nosy: +r.david.murray Added file: http://bugs.python.org/file17056/regrtest-help.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8325] improve regrtest command line help
Changes by R. David Murray rdmur...@bitdance.com: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6
Jesús Cea Avión j...@jcea.es added the comment: Peter, and which Berkeley DB versions are used in Linux?. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8325] improve regrtest command line help
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall
Matthew Cowles mdcow...@users.sourceforge.net added the comment: if you get this type of error, it's probably because you're using non- blocking sockets That's what I thought at first too. But the user's sockets were set to blocking. spinning around the send call trying to resend the data isn't going to improve things, you should probably wait a little before retrying The user switched to using send() and adding a short delay before retrying the send solved the problem. In fact, I think it's a little silly that OS X raises the error rather than just saying that 0 bytes were sent (which is what I suppose that other OSes do). But I think it's also not ideal that Python's socket.sendall() can't be used with confidence under OS X because it can fail under pretty normal circumstances. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8493 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8510] update to autoconf2.65
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8510] update to autoconf2.65
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6
Peter Landgren peter.tal...@telia.com added the comment: In Linux it is: 4.4.5.3 (4, 6, 21) You asked for a test case. I'm not sure how I can provide one without you having Gramps installed to test it. Do you mean the whole database environment? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof
Stefan Krah stefan-use...@bytereef.org added the comment: The buildbots are generally happy with the change. However, on OpenBSD test_itimer_prof fails seemingly unrelated to machine load. I'm not so familiar with the signal module, but how can the signal handlers in the tests be guaranteed to work? For example, if you set a variable inside a signal handler (self.hndl_called=True), it should be a sig_atomic_t. If you call a function, it should be listed as signal-safe ( http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html ), but setitimer is not. I say this because there might be further assumptions in the tests that could generate hard to track down failures in the future. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8424 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4835] SIZEOF_SOCKET_T not defined
Dave Malcolm dmalc...@redhat.com added the comment: I'm seeing this with gcc-4.4.3 with -Wall -Werror, leading to fatal errors trying to build an extension module against python 3.1 The references to SIZEOF_SOCKET_T within longobject.h appear to be just in the py3k branch, not trunk, and were added in r59009. I'm marking this issue as python3, and as both Interpreter Core and Extension Modules. There didn't seem to be a natural place to put these types, so I'm attaching a patch against the py3k branch which adds a new public/installed header file: Include/socketrepr.h, specifically to contain them. How does this look? -- components: +Extension Modules, Interpreter Core keywords: +patch nosy: +dmalcolm stage: - patch review type: - compile error versions: +Python 3.1, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file17057/add-socketrepr.h-to-py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4835 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8511] Small mistake in tutorial web page
New submission from Matthew Cowles mdcow...@users.sourceforge.net: [Originally from a post to the python-help list] Over at: http://docs.python.org/py3k/tutorial/datastructures.html#sets it says: fruit = ['apple', 'orange', 'apple', 'pear', 'orange', 'banana'] fruit = set(basket) # create a set without duplicates I suspect that the first line should begin: basket = -- assignee: georg.brandl components: Documentation messages: 104028 nosy: georg.brandl, mdcowles severity: normal status: open title: Small mistake in tutorial web page versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4835] SIZEOF_SOCKET_T not defined
Dave Malcolm dmalc...@redhat.com added the comment: I'm seeing this with gcc-4.4.3 with -Wall -Werror, leading to fatal errors trying to build an extension module against python 3.1 Specifically, with gcc, I'm seeing this warning (trying to port SELinux Python support to Python3), which, with -Werror becomes fatal: In file included from /usr/include/python3.1/Python.h:72, from audit2why.c:1: /usr/include/python3.1/longobject.h:36:5: error: SIZEOF_SOCKET_T is not defined cc1: warnings being treated as errors -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4835 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6
Tim Lyons guy.lin...@gmail.com added the comment: On Mac OS X,I get tim$ python Python 2.5.5 (r255:77872, Mar 21 2010, 22:08:39) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type help, copyright, credits or license for more information. import bsddb print bsddb.__version__, bsddb.db.version() 4.4.5.3 (4, 6, 21) tim$ /opt/local/bin/python2.6 Python 2.6.5 (r265:79063, Apr 8 2010, 22:42:38) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type help, copyright, credits or license for more information. import bsddb print bsddb.__version__, bsddb.db.version() 4.7.3 (4, 7, 25) So the database versions are: python 2.5 bsddb 4.4.5.3 (4, 6, 21) python 2.6 bsddb 4.7.3 (4, 7, 25) On python 2.5: Python 2.5.5 (r255:77872, Mar 21 2010, 22:08:39) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type help, copyright, credits or license for more information. import bsddb dbenv=bsddb.db.DBEnv() dbenv.open(., bsddb.db.DB_INIT_TXN | bsddb.db.DB_INIT_MPOOL | bsddb.db.DB_INIT_LOG | bsddb.db.DB_CREATE) db1=bsddb.db.DB(dbenv) db1.open(note.db,flags=bsddb.db.DB_RDONLY,dbtype=bsddb.db.DB_UNKNOWN) and on python 2.6: Python 2.6.5 (r265:79063, Apr 8 2010, 22:42:38) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type help, copyright, credits or license for more information. import bsddb dbenv=bsddb.db.DBEnv() dbenv.open(., bsddb.db.DB_INIT_TXN | bsddb.db.DB_INIT_MPOOL | bsddb.db.DB_INIT_LOG | bsddb.db.DB_CREATE) Traceback (most recent call last): File stdin, line 1, in module bsddb.db.DBError: (-30971, DB_VERSION_MISMATCH: Database environment version mismatch -- Program version 4.7 doesn't match environment version 4.6) The incompatibility between the two environments is therefore resolved as being due to different versions of bsddb. Thanks for all your help in determining this. The database slowdown still remains to be resolved. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1128] msilib.Directory.make_short only handles file names with a single dot in them
Bill Janssen bill.jans...@gmail.com added the comment: So what happens if the original file name is something like foo~1.txt? Couldn't there be a name collision? -- nosy: +janssen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1128 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8511] Small mistake in tutorial web page
Ezio Melotti ezio.melo...@gmail.com added the comment: Duplicate of #4570. -- nosy: +ezio.melotti, rhettinger resolution: - duplicate stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8511 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4570] Bad example in set tutorial
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +mdcowles priority: - normal stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4570 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6
Peter Landgren peter.tal...@telia.com added the comment: To make it 100% clear: The versions are almost the same for Linux and Windows. Python 2.5Python 2.6 Windows 4.4.5.3 (4, 6, 20)4.7.3 (4.7.25) Linux4.4.5.3 (4, 6, 21)4.7.3 (4.7.25) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7639] bdist_msi fails on files with long names
Bill Janssen bill.jans...@gmail.com added the comment: This looks a lot like bug 1128, too. I think the patch there would also fix this one. -- nosy: +janssen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1128] msilib.Directory.make_short only handles file names with a single dot in them
Bill Janssen bill.jans...@gmail.com added the comment: Here's how Microsoft does it: http://support.microsoft.com/kb/142982/en-us -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1128 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7319] Silence DeprecationWarning by default
Changes by Brett Cannon br...@python.org: -- priority: critical - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7319 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate configure
Changes by Brett Cannon br...@python.org: -- priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7997 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8451] syslog.syslog('msg') logs message with ident python.
R. David Murray rdmur...@bitdance.com added the comment: Assuming that it is OK for this to be in 2.7 beta2 (it smells almost like a feature, but I'm certainly willing to let it pass as a bugfix myself), the 2.7 doc change in the commit contains a typo (it says versionchanged 3.2 instead of versionchanged 2.7). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8451] syslog.syslog('msg') logs message with ident python.
R. David Murray rdmur...@bitdance.com added the comment: Oh, and you forgot about your note to yourself to update the argument syntax for the 3.2 commit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8451 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8325] improve regrtest command line help
anatoly techtonik techto...@gmail.com added the comment: Éric: svn merge R.David Murray: The numbers should definitely not be there. is not an argument. `python regrtest.py` should also be a supported way to run regression suite. With only -m favor documented somebody can quickly forget about it. I use Mercurial clones for development, I also can't compile Windows binaries (no money, space and time for VS), so it is important for me to be able to run regrtest.py manually from the same directory I am hacking tests and global interpreter. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8503] smtpd SMTPServer does not allow domain filtering
Giampaolo Rodola' g.rod...@gmail.com added the comment: Idea: wouldn't it be better to provide a more powerful accept_mail method instead of accept_domain? -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8503] smtpd SMTPServer does not allow domain filtering
mike s sucha...@kovagroup.ca added the comment: I don't think that is a suitable solution for this problem, because the expected SMTP behavior is to reject an unsuitable RCPT TO directly after it is proposed by the client. However, I think it would be a great idea to have such a method being called after the end of the DATA segment (immediately before the message is queued - or not). Mike On 2010-04-23, at 12:00 PM, Giampaolo Rodola' wrote: Giampaolo Rodola' g.rod...@gmail.com added the comment: Idea: wouldn't it be better to provide a more powerful accept_mail method instead of accept_domain? -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8503 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8503 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1379416] email.Header encode() unicode P2.6
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1379416 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8325] improve regrtest command line help
R. David Murray rdmur...@bitdance.com added the comment: You are correct, it wasn't an argument. I've never seen numbered alternatives anywhere *except* the svn merge help (which I've never looked at before, since I/we don't use it for python development). And I don't like them. (svn merge uses them to cross reference the explanatory comments that follow, but I still don't like them and I think the svnmerge help would read better without them.) I see your point about the alternate form, though you could still use -m by making sure your modified Lib dir was in PYTHONPATH, or run it with the Lib dir as the CWD. Without doing that I don't think you'd be testing your modified Lib directory anyway (though you would be running the modified test files). I'm not sure about that, though, I haven't run enough experiments :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8325] improve regrtest command line help
anatoly techtonik techto...@gmail.com added the comment: To reach a consensus we can drop line numbering, but I still would like to see two variants of invocation. Sometimes I indeed copy library from trunk/ to main Lib/ for testing, but there is no better way to work with the test suite inside version control and outside of this main library on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8325 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5
Martin v. Löwis mar...@v.loewis.de added the comment: Peter, please stay out of this bug report unless you are certain that you have the very problem that the OP reported, namely that a database created by Python 2.5 cannot be imported in 2.6. I'm taking the performance issues out of this bug report; anybody interested in them should create a separate bug report. One bug per bug report, please. -- title: bsddb databases in python 2.6 are not compatible with python 2.5 and are slow in python 2.6 - bsddb databases in python 2.6 are not compatible with python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6768] asyncore file_wrapper leaking file descriptors?
Giampaolo Rodola' g.rod...@gmail.com added the comment: I'm not sure how to reproduce this issue but I doubt calling close() from __del__ would solve the problem, neither would be a good idea as close() might end up being called more than once, which is not desirable. Try to paste the code you're using: the problem might be that your application is not calling close() for some reason. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6768 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8467] subprocess: surrogates of the error message (Python implementation on non-Windows)
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited in py3k (r80413), blocked in 3.1 (r80414). Python 3.1 uses pickle to encode the traceback and pickle supports surrogates (see #8383). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8467 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5
Martin v. Löwis mar...@v.loewis.de added the comment: I just noticed that Tim reports in msg104030 that the original problem is resolved. So I'm closing this report as fixed. If you create a new one on the performance issue, please make sure to include a repeatable test case, with instructions on how to repeat it. Notice that Jesus suggests that the performance difference may be caused by the difference in bsddb version, in which case it wouldn't be a Python bug at all. I find that theory very plausible. Most likely, the bug would be in Gramps, for using bsddb incorrectly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8504] bsddb databases in python 2.6 are not compatible with python 2.5
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8510] update to autoconf2.65
Martin v. Löwis mar...@v.loewis.de added the comment: I don't think Python 2.7 should upgrade to a newer autoconf version at this point. For 3.2, we could try it out. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8510 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8495] test_gdb: use utf8+surrogateescape charset?
STINNER Victor victor.stin...@haypocalc.com added the comment: @loewis: I think the replace handler would be more appropriate here. Right. Fixed by r80416 (py3k, blocked in 3.1: r80417). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8495 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8390] tarfile: use surrogates for undecode fields
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +lars.gustaebel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8390 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8505] 2to3 fix_future.py removes __future__ imports, but should it?
Benjamin Peterson benja...@python.org added the comment: You can just turn off fix_future with -x future. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8505 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1128] msilib.Directory.make_short only handles file names with a single dot in them
Martin v. Löwis mar...@v.loewis.de added the comment: MSI short names must be 8.3 names. Microsoft has them in MSI in case the MSI file gets installed on an 8.3 system, or in case 8.3 applications want to access files and want to be sure they access the right one. So the actual numbering is completely irrelevant (since we only support systems with long file name support, and will always use long names to access the files). They still need to be in the 8.3 space, though, else Installer might be unhappy. So having two dots in the short name is incorrect. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1128 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue751758] ftplib.retrbinary fails when called from retrlines callback
Giampaolo Rodola' g.rod...@gmail.com added the comment: Closing this out as rejected. -- resolution: - rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue751758 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8508] 2to3 fixer for gettext's .ugettext
Benjamin Peterson benja...@python.org added the comment: You should follow the model of fix_getcwdu, which handles more cases. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8508 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8242] Improve support of PEP 383 (surrogates) in Python3: meta-issue
Changes by STINNER Victor victor.stin...@haypocalc.com: -- dependencies: +Check that _PyUnicode_AsString() result is not NULL ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8242 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8108] test_ftplib fails with OpenSSL 0.9.8m
Antoine Pitrou pit...@free.fr added the comment: Ok, I've backported the shutdown fixes to 2.6 (r80419) and 3.1 (r80420). Thanks again everyone. -- status: pending - closed versions: +Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8108 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7384] curses crash on FreeBSD
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Roumen, I do not see a line in configure.in that tests for the libraries that readline is linked against. The test in configure is how to link application to readline libs. Platforms that support linking of shared libraries with unresolved symbols cannot link readline to termcap compatible library if they offer more then one. I think that this is the bug in package build on those system as this limit applications to use other termcap libraries. Not all linux link readline to termcap compatible library: - SuSe (checked on 11.0) linked to ncurses :( - Fedora (verified v 12) and Slackware - not linked . So no issue (before) on those platforms as application can link to any termcap compatible library and python will select ncursesw. On those platforms I expect Stefan patch to return empty string and python to fail to build readline module. As configure detect how to link readline we could uncomment READLINE_LIBS and to add as makefile macroand to use by setup.py. If READLINE_LIBS contain only -lreadline = on this platform readline is already linked to termcap compatible library. Also detection of dependent libraries that use ldd is limited to platforms that has this command, i.e. is not portable. If distutils support a method that return dependency libraries we could use. ( I'm not familiar with python curses module to propose a patch . Is possible to to run sample program to detect readline curses library ? Or may be to try to link sample int main() { readline(); } and to ask compiler/linker to warn for duplicate symbols. Something like : $ gcc -Wl,--warn-common test-readline.c -lreadline -lncursesw -lncursesw $ gcc -Wl,--warn-common test-readline.c -lreadline -ltermcap -lncurses .../libncurses.so: warning: common of `ospeed' overridden by larger common .../libtermcap.so: warning: larger common is here $ gcc -Wl,--warn-common test-readline.c -lreadline -ltermcap -lncursesw /libncursesw.so: warning: common of `ospeed' overridden by larger common /../libtermcap.so: warning: larger common is here FIXME with more portable and more correct command. Roumen -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8391] os.execvpe() doesn't support surrogates in env
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited: r80421 (py3k), blocked in 3.1 (80422). The commit fixes also os.getenv() to support bytes environment name. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8391 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5103] ssl.SSLSocket timeout not working correctly when remote end is hanging
Antoine Pitrou pit...@free.fr added the comment: New patch fixing test_poplib failures. -- Added file: http://bugs.python.org/file17058/ssltimeout2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5103 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7384] curses crash on FreeBSD
Roumen Petrov bugtr...@roumenpetrov.info added the comment: Stefan Krah wrote: Stefan Krahstefan-use...@bytereef.org added the comment: Actually this means that we should also look for -ltinfo in the ldd check (A Redhat buildbot would be nice). Or may be this mean that in configure to add test with -ltinfo and if readline link succeed then is save to link python curses module with first curses library found. ldd - what about platforms without GNU libc ? Roumen -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7384 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8512] os.execvpe()
Changes by STINNER Victor victor.stin...@haypocalc.com: -- components: Library (Lib) nosy: haypo severity: normal status: open title: os.execvpe() versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8512] os.execv*e(): fix formatting of the environment variables
New submission from STINNER Victor victor.stin...@haypocalc.com: os.execve() and os.execvpe() of Python 3.1 eats some bytes of the environment variables: see msg103459. The problem is that it counts *characters* to allocate the *byte* string buffer. Attached patch fixes this issue. It contains a test which may stay specific to Python 3.1 because Python 3.2 have its own test for non-ASCII environment variables: test_undecodeable_env in test_subprocess (introduced by #8391). See also #8391. -- keywords: +patch nosy: +Arfrever title: os.execvpe() - os.execv*e(): fix formatting of the environment variables Added file: http://bugs.python.org/file17059/os_execve_env.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8513] subprocess: support bytes program name
New submission from STINNER Victor victor.stin...@haypocalc.com: While fixing #8391, I realized that subprocess doesn't support bytes program name if it's not an absolute path: --- $ ./python import subprocess subprocess.call([b'echo']) Traceback (most recent call last): File stdin, line 1, in module File /home/SHARE/SVN/py3k/Lib/subprocess.py, line 449, in call return Popen(*popenargs, **kwargs).wait() File /home/SHARE/SVN/py3k/Lib/subprocess.py, line 681, in __init__ restore_signals, start_new_session) File /home/SHARE/SVN/py3k/Lib/subprocess.py, line 1116, in _execute_child for exe in executable_list) File /home/SHARE/SVN/py3k/Lib/subprocess.py, line 1115, in genexpr executable_list = tuple(fs_encode(exe) File /home/SHARE/SVN/py3k/Lib/subprocess.py, line 1114, in genexpr for dir in path_list) File /home/SHARE/SVN/py3k/Lib/posixpath.py, line 75, in join if b.startswith(sep): TypeError: expected an object with the buffer interface [62826 refs] --- I'm working on a patch. -- components: Library (Lib), Unicode messages: 104059 nosy: haypo severity: normal status: open title: subprocess: support bytes program name versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8513 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8513] subprocess: support bytes program name
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8513 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7943] Memory leak due to circular references in ssl.SSLSocket
Antoine Pitrou pit...@free.fr added the comment: Committed with test in r80423 (trunk) and r80425 (2.6). Also ported the test to py3k/3.1. Thanks! -- nosy: +pitrou resolution: - fixed stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7943 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8513] subprocess: support bytes program name
STINNER Victor victor.stin...@haypocalc.com added the comment: Attached patch (draft version) fixes this issue. -- keywords: +patch Added file: http://bugs.python.org/file17060/subprocess_bytes_program.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8513 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5238] ssl makefile never closes socket
Antoine Pitrou pit...@free.fr added the comment: The makefile issue is fixed in r80428 (trunk) and r80431 (2.6). Also ported the additional test to py3k and 3.1. The other issue pointed out by Marcin Bachry doesn't seem fixable without breaking backwards compatibility, for applications which close() the SSL object but expect the underlying socket to still be usable for clear-text communications. Therefore I prefer to close this issue. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8514] Create fs_encode() and fs_decode() functions in os.path
New submission from STINNER Victor victor.stin...@haypocalc.com: Python3 uses unicode filenames in Windows and bytes filenames (but support also unicode filenames) on other OS. We have to support both types. On POSIX system, bytes filenames can be stored in unicode filenames using sys.getfilesystemencoding() and the surrogateescape error handler (to store undecodable bytes as unicode surrogates, see PEP 383). I would like to create fs_encode() and fs_decode() in os.path to ease the manipulation of filenames in the two bytes (str and bytes). * Use fs_decode() to convert a filename from the OS native format to unicode * Use fs_encode() to convert an unicode filename to the OS native format On Windows, fs_decode() and fs_encode() don't touch the filename, but reject filenames of types different than str (unicode) with a TypeError, especially bytes filename. Mac OS X rejects invalid UTF-8 filenames, and so surrogateescape should maybe not be used on this OS. Attached patch is an implementation of this issue. -- components: Library (Lib), Unicode files: os_path_fs_encode_decode.patch keywords: patch messages: 104063 nosy: haypo severity: normal status: open title: Create fs_encode() and fs_decode() functions in os.path versions: Python 3.2 Added file: http://bugs.python.org/file17061/os_path_fs_encode_decode.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8514 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8514] Create fs_encode() and fs_decode() functions in os.path
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +lemburg, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8514 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8514] Create fs_encode() and fs_decode() functions in os.path
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue #8513 would benefit from these functions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8514 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8513] subprocess: support bytes program name
STINNER Victor victor.stin...@haypocalc.com added the comment: I proposed the creation of fs_encode() and fs_decode() functions in os.path: see #8514. There functions would simplify my patch, but also make it correct on all OS (Windows, Mac, Linux). -- dependencies: +Create fs_encode() and fs_decode() functions in os.path ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8513 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8512] os.execv*e(): fix formatting of the environment variables (Python 3.1)
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: os.execv*e(): fix formatting of the environment variables - os.execv*e(): fix formatting of the environment variables (Python 3.1) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com