[issue6829] Frendly error message when inheriting from function

2009-09-07 Thread anatoly techtonik
anatoly techtonik added the comment: How about: Error running metaclass bases (attempt to inherit from object that is not a class) -- ___ Python tracker <http://bugs.python.org/issue6

[issue6829] Frendly error message when inheriting from function

2009-09-04 Thread anatoly techtonik
Changes by anatoly techtonik : -- status: closed -> pending ___ Python tracker <http://bugs.python.org/issue6829> ___ ___ Python-bugs-list mailing list Un

[issue6829] Frendly error message when inheriting from function

2009-09-04 Thread anatoly techtonik
anatoly techtonik added the comment: Ok, but why not to change the message to less cryptic "Impossible to inherit class from function(), string or int"? -- ___ Python tracker <http://bugs.python.

[issue6829] Frendly error message when inheriting from function

2009-09-03 Thread anatoly techtonik
New submission from anatoly techtonik : It is an error to try to inherit from function and the error message in this case is: {{{ Traceback (most recent call last): File "", line 1, in File "m:\p\pb.py", line 4, in class PostgreSQLConnection(DatabaseConnection): T

[issue6310] Windows "App Paths" key is not checked when installed for current user

2009-06-18 Thread anatoly techtonik
New submission from anatoly techtonik : I found that if Python installed only for current user on Windows XP Home Edition SP3 Python fails to run from Start -> Run dialog or using ShellExecute() call. It is because it creates "App Paths" key in HKEY_CURRENT_USER\Software\Micr

[issue798520] os.popen with invalid mode differs on Windows and POSIX

2009-06-05 Thread anatoly techtonik
anatoly techtonik added the comment: I can confirm this but, but os.popen() is deprecated in 2.6 hence there is no point in fixing generated exception even though in a language that claims to be cross-platform exceptions should be unified. I would add os.popen to keywords list for future

[issue5717] os.defpath includes unix /bin on windows

2009-04-08 Thread anatoly techtonik
anatoly techtonik added the comment: On the second try it was much easier. For py3k I saw a post about removing defpath and some of its friends, with which I partially agree. http://groups.google.com/group/comp.lang.python/browse_thread/thread/e8072370bfbef398/a0215b5820f76c0e

[issue5717] os.defpath includes unix /bin on windows

2009-04-08 Thread anatoly techtonik
Changes by anatoly techtonik : -- keywords: +patch Added file: http://bugs.python.org/file13651/issue5717.py25.patch ___ Python tracker <http://bugs.python.org/issue5

[issue4828] patch suggestion for webbrowser

2009-04-07 Thread anatoly techtonik
anatoly techtonik added the comment: Windows has a plenty of executable extensions that can be dynamically added. You may want to look at patch at issue 2200 http://bugs.python.org/file11359/spawn.patch.txt for workaround. -- nosy: +techtonik

[issue5717] os.defpath includes unix /bin on windows

2009-04-07 Thread anatoly techtonik
New submission from anatoly techtonik : >>> import os >>> os.defpath '.;C:\\bin' >>> os.path.defpath '.;C:\\bin' >>> These are invalid paths on windows. -- components: Library (Lib) messages: 85708 nosy: techtonik severity: nor

[issue4015] [patch] make installed scripts executable on windows

2009-04-02 Thread anatoly techtonik
anatoly techtonik added the comment: I've updated the script to parse unlimited number of parameters on NT, to return %errorcode% and to fallback to default Python compiler. It is based on similar workarounds we've made for SCons in http://scons.tigris.org/source/browse/scons/branche

[issue4015] [patch] make installed scripts executable on windows

2009-04-02 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file13577/executable.scripts.on.nt.patch ___ Python tracker <http://bugs.python.org/issue4015> ___ ___

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread anatoly techtonik
anatoly techtonik added the comment: The solution with launcher is complex (if not complicated). It will make scripts unportable - consider using a removable disk with your Python and application script. The interpreter was not installed on target system, but with .bat file application is still

[issue4015] [patch] make installed scripts executable on windows

2009-04-01 Thread anatoly techtonik
anatoly techtonik added the comment: The point is not in generating .bat files. The point is to make scripts executable with exactly the same version of Python the script was installed. It works well on POSIX, but doesn't work on windows at all. There is no other way to fix this on wi

[issue2057] difflib: add patch capability

2009-03-25 Thread anatoly techtonik
anatoly techtonik added the comment: Tool is ready. diff/patch lib is not. http://code.google.com/p/python-patch/ -- ___ Python tracker <http://bugs.python.org/issue2

[issue5366] setupscript examples for dependency keywords in setup.py

2009-02-26 Thread anatoly techtonik
anatoly techtonik added the comment: Another thing for setupscript is to state that long_description is actually ReStructured text. -- title: examples for dependency keywords in setup.py -> setupscript examples for dependency keywords in setup

[issue5366] examples for dependency keywords in setup.py

2009-02-25 Thread anatoly techtonik
New submission from anatoly techtonik : When documentation grows too large it is nice to have clear examples that stand out of text. Explanation is important to get the idea, but for a reference cookbook examples work better. Here is a patch to clarify the usage of *requires* and *provides

[issue5293] socket timeouts even in blocking mode

2009-02-20 Thread anatoly techtonik
anatoly techtonik added the comment: Thanks for pointing me to the list of possible network errors. This information is invaluable. Too bad it is easily lost among other details. I've seen similar errors in other modules that use socket module and it's no wonder now why people can

[issue5293] socket timeouts even in blocking mode

2009-02-17 Thread anatoly techtonik
anatoly techtonik added the comment: Isn't it a job of crossplatform programming language to abstract from low-level platform details? The scope of this bug is not about handling all possible Winsock errors. It is about proper handling the sole timeout error from the list http://www.wi

[issue5293] socket timeouts even in blocking mode

2009-02-17 Thread anatoly techtonik
anatoly techtonik added the comment: After rewriting my reply several times I've noticed my mistake, but it took more time to understand the problem than could be expected for a language that we all would like to see as easy and intuitive as possible. That why I still would like to see

[issue5293] socket timeouts even in blocking mode

2009-02-17 Thread anatoly techtonik
anatoly techtonik added the comment: Because documentation doesn't say that Python should timeout after 20 seconds after entering blocking mode if socket to remote host can not be opened. ___ Python tracker <http://bugs.python.org/i

[issue5293] socket timeouts even in blocking mode

2009-02-17 Thread anatoly techtonik
New submission from anatoly techtonik : The code below exits with timeout after about 20 secs on Windows + Python 2.5.4 import socket # address of server routable, but offline server = "192.168.1.2" s = socket.socket() s.setblocking(1) s.connect((server, 139)) s.close() The

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-29 Thread anatoly techtonik
anatoly techtonik added the comment: I attach for Python 2.5 as well. People will use gzip module for a long time to build packages and patch will help them to get correct archives. Added file: http://bugs.python.org/file12490/python25.issue4750.diff

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-29 Thread anatoly techtonik
anatoly techtonik added the comment: I attach patch for Python 2.6 gzip I clarified the meaning of self.name to be the basename corresponding to FNAME field in GZIP file header. There is a trace of deprecated gzip.filename API - I haven't found any references to it in documentation,

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-29 Thread anatoly techtonik
anatoly techtonik added the comment: For MSYS gzip added a bugreport here: https://sourceforge.net/tracker2/index.php?func=detail&aid=2474481&group_id=2435&atid=102435 ___ Python tracker <http://bugs.pytho

[issue1886] Permit to easily use distutils "--formats=tar, gztar, bztar" on all systems

2008-12-28 Thread anatoly techtonik
anatoly techtonik added the comment: Roumen, could you be more specific about what are you trying to say with this 200kB piece of code? Was it the intention to post a link to man or another piece of spec? ___ Python tracker <http://bugs.python.org/issue1

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-28 Thread anatoly techtonik
anatoly techtonik added the comment: 7zip can decompress both, but it still creates "dist/" directory when decompressing file that is made with Python. I've noticed this bug with extra path component is actual with "tar" + "gzip" under windows. If they are e

[issue1886] Permit to easily use distutils "--formats=tar, gztar, bztar" on all systems

2008-12-26 Thread anatoly techtonik
anatoly techtonik added the comment: What are the systems where does this original tar still exist as a default utility? If there is no tarfile module on this systems and "tar" version is so old then you need a more modern system to wrap your releases or more modern "tar"

[issue1886] Permit to easily use distutils "--formats=tar, gztar, bztar" on all systems

2008-12-26 Thread anatoly techtonik
anatoly techtonik added the comment: Oh, my mistake - the bug with extra dir component in archive is in issue4750 Second shell call to compression program is removed only for the case when tarfile or any of required compression modules are not available

[issue1886] Permit to easily use distutils "--formats=tar, gztar, bztar" on all systems

2008-12-26 Thread anatoly techtonik
anatoly techtonik added the comment: I attach an improved patch1886.use.tarfile.module.diff that fixes all bugs addressed in this issue. It also removes second call to compression program leaving that privilege to tar. > I notice that the archive generated by tarfile module looks > dif

[issue1885] [distutils] - error when processing the "--formats=tar" option

2008-12-26 Thread anatoly techtonik
anatoly techtonik added the comment: Please reopen this bug. issue#1886 is different it take a long time until it is committed. I attach patch from Giampaolo here. -- keywords: +patch nosy: +techtonik versions: +Python 2.5, Python 2.7 Added file: http://bugs.python.org/file12455

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-26 Thread anatoly techtonik
Changes by anatoly techtonik : -- keywords: +patch Added file: http://bugs.python.org/file12452/tarfile.directory.fix.diff ___ Python tracker <http://bugs.python.org/issue4

[issue4750] tarfile keeps excessive dir structure in compressed files

2008-12-26 Thread anatoly techtonik
New submission from anatoly techtonik : When tarfile is directed to create tar.gz compressed archive file in a path different from current, it saves full path information in .gz header where only filename is required. This causes problems with decompression utilities, such as 7zip. The

[issue4635] no reference for optparse methods

2008-12-11 Thread anatoly techtonik
New submission from anatoly techtonik : optparse documentation misses reference for at least these three methods: print_help() print_usage() print_version() -- assignee: georg.brandl components: Documentation messages: 77622 nosy: georg.brandl, techtonik severity: normal status: open

[issue1173134] improvement of the script adaptation for the win32 platform

2008-11-17 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: The idea with "-x" option and renaming .py to .bat is nice, but if I want to execute the script with another version of Python or manually without -x option I may become confused. Would it be better to provide separat

[issue453489] Using deiconify() hangs on exit

2008-11-17 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: With Python 2.6 the support for Windows 95, 98, ME and NT4 has been dropped. But it is not only that - I would advise closing as "won't fix" for same reason as listed in aforementioned bug #216289 comment http://bu

[issue973507] sys.stdout problems with pythonw.exe

2008-11-17 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: Duplicate of #706263 -- nosy: +techtonik ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.

[issue4022] 2.6 dependent on c:\python26\ on windows

2008-11-17 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: flomana: Have you tried installing Python in c:\python26\ ? If that didn't help then it is better start a new issue. -- nosy: +techtonik ___ Python tracker <[EMAIL PRO

[issue4137] update SIG web pages

2008-10-17 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: Distutils SIG pages contain largely outdated information. http://www.python.org/community/sigs/current/distutils-sig/ It would be good to replace CVS instructions with SVN, add wiki link, mark download page as "archived v

[issue4015] [patch] make installed scripts executable on windows

2008-10-16 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: The same issue in "Roundup Tracker" bugtracker http://sourceforge.net/tracker2/index.php?func=detail&aid=1163804&group_id=31577&atid=402788 ___ Python tracker <[EMAIL PROT

[issue4015] [patch] make installed scripts executable on windows

2008-10-04 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: 1. Associations still do not show Scripts/ among executable files in Run dialog. 2. Association works only for one version of properly installed Python. It won't work if Python is installed for different user, if extensi

[issue4015] [patch] make installed scripts executable on windows

2008-10-02 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: Distutils contains code to make scripts executable on posix platform. Here is a patch to for the same feature for nt. It adds .bat file for every script that doesn't have executable launcher. -- components: Dist

[issue2200] find_executable fails to find .bat files on win32

2008-09-03 Thread anatoly techtonik
Changes by anatoly techtonik <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11359/spawn.patch.txt ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2200] find_executable fails to find .bat files on win32

2008-09-03 Thread anatoly techtonik
Changes by anatoly techtonik <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11358/spawn.patch.txt ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2200] find_executable fails to find .bat files on win32

2008-09-03 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: I've run into the same problem. Attached patch (updated with Lev code) is almost the same except that it doesn't attempt to return executable files without executable extension. It also accounts that os2 executables ca

[issue3359] add 'rbU' mode to open()

2008-07-24 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: This '\r' makes things worse. I am also on Windows and didn't thought that "rb" processes '\r\n' linefeeds as a side-effect of '\n' being the last character. Thanks. newline=''

[issue3359] add 'rbU' mode to open()

2008-07-24 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: Thanks for the hints. It appeared that "universal text mode" is not for crossplatform but for platform-specific programming. =) So I gave it up and ended with my own 'rb' newlines counter and 'wb' wr

[issue3359] add 'rbU' mode to open()

2008-07-20 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: If lineends are mixed I would like to leave them as is. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3359] add 'rbU' mode to open()

2008-07-20 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: That's fine with me. I just need a 'rbU' mode to know in which format should I write the output file if I want to preserve proper line endings regardless of platform. As for Python 2.6 note - I would replace "m

[issue3359] add 'rbU' mode to open()

2008-07-16 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: > This behavior is inherited from the C-level fopen() and therefore > "normal text mode" is whatever that defines. > Is this really nowhere documented? Relation to fopen() function may be documented, but there

[issue3341] "Suggest a change" link

2008-07-16 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: Any links to alpha code? ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3341> ___ _

[issue3359] add 'rbU' mode to open()

2008-07-15 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: That's weird and the worst is that it is not documented. Manual says: "If Python is built without universal newline support a mode with 'U' is the same as normal text mode." but no information about what

[issue3359] add 'rbU' mode to open()

2008-07-15 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: If you open file with 'r' - all line endings will be mapped precisely to '\n' anyways, so it has nothing to do with 'U' mode. ___ Python tracker <[EMAIL PROTEC

[issue3359] add 'rbU' mode to open()

2008-07-14 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: 'rU' universal newline support is useless, because read lines end with '\n' regardless of actual line end in the source file. Applications that care about line ends still open file in binary mode and gather th

[issue3349] search for 'patch' produces roundup error

2008-07-12 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: Thanks. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3349> ___ ___ Python-bugs

[issue3349] search for 'patch' produces roundup error

2008-07-12 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: If you'll try to search 'patch' word in this bugtracker, you will likely to get the error saved in attached file. -- files: bugs.python.org.txt messages: 69588 nosy: techtonik severity: normal status: o

[issue2823] "Report bug" links

2008-07-11 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: Filed a proposal for online documentation editing tool. http://bugs.python.org/issue3341 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3341] "Suggest a change" link

2008-07-11 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: It would be convenient to have "Suggest a change" link in the bottom of documentation pages to allow people propose fixes and additions. This can be a simple feedback form with an optional "patch" field that

[issue3340] optparse print_usage(),.. methods are not documented

2008-07-11 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: optparse API documentation is incomplete. It doesn't mention at least some useful functions such as print_usage(), get_usage(), get/print_version() present in optparse.py docstrings. -- assignee: georg.brandl

[issue648658] xmlrpc can't do proxied HTTP

2008-07-01 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: I will be second to emphasize the importance of using XML-RPC through a proxy. bzr behind a proxy can't be used with launchpad because of this bug. -- nosy: +techtonik ___ Pyt

[issue1613573] xmlrpclib ServerProxy uses old httplib interface

2008-07-01 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: * use newer 2.0 public interface of httplib for connection handling Attached patch is for trunk/ Tested for Python 2.5 issue1767370 is a separate issue that can be fixed later -- keywords: +patch nosy: +techtonik ve

[issue1005895] curses for win32

2008-05-28 Thread anatoly techtonik
Changes by anatoly techtonik <[EMAIL PROTECTED]>: -- nosy: +techtonik ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1005895> ___ _

[issue2988] Invalid cookies crash web applications

2008-05-28 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: Current BaseCookie and SimpleCookie may crash web-application when running on the same domain with other scripts. Other scripts may create invalid cookies that lead to Cookie.CookieError: Illegal key value in Python. This c

[issue2889] curses for windows (alternative patch)

2008-05-15 Thread anatoly techtonik
Changes by anatoly techtonik <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10340/curses_win_compile.bat __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2889] curses for windows (alternative patch)

2008-05-15 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: Make curses available on Windows by using PDCurses library. Alternative patch for issue 1005895 using current trunk. Attached .bat file is used to compile it under MinGW, but I'd be glad to know how to integrate the patch

[issue2837] OpenID wannabe

2008-05-15 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: I mean that it is rather common practice for internet projects that every member of community has one one login that works for all services this community uses. This is called "single sign-on" or SSO http://en.wi

[issue2837] OpenID wannabe

2008-05-12 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: What kind of registered users are available? I thought this site uses single sign on system. __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2837] OpenID wannabe

2008-05-12 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: I haven't found any traces of requests to add OpenID URLs for authentication into account details for registered users, so I take the privilege to be the first one to say that it will be handy. -- components: No

[issue2824] zipfile to handle duplicate files in archive

2008-05-12 Thread anatoly techtonik
anatoly techtonik <[EMAIL PROTECTED]> added the comment: How about adding optional "replace=True" attribute to the write method? So that people who are not aware enough to adjust the code and handle new warning could still get valid archives. __

[issue2824] zipfile to handle duplicate files in archive

2008-05-11 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: ZipFile allows to add the same file to archive twice. I bet it is not intended behavior for many users who would like to either replace file inside of archive or get runtime warning about duplicate file to be added

[issue2823] "Report bug" links

2008-05-11 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: It would be convenient to use links in the bottom of documentation pages for bugreporting that directly connect to bugtracker search form. I.e. "Report bug on this page" and "Report bug in this module". ---

[issue2614] Console UnicodeDecodeError s once more

2008-04-11 Thread anatoly techtonik
New submission from anatoly techtonik <[EMAIL PROTECTED]>: Python debugging under console is a PITA, because it has a bad habit to fail with UnicodeEncodeError in case of unknown encoding in output. It quickly turns into a headache when inspecting methods like in the following example r

[issue2188] [patch] urllib2 hint - disabled ProxyHandler()

2008-02-25 Thread anatoly techtonik
New submission from anatoly techtonik: Patch documents that empty dictionary is used to make ProxyHandler() with disabled proxy autodetection. Empty constructor doesn't give the desired effect. P.S. An ideal approach would be, of course, to change the API. Even though it can be ch

[issue2057] difflib: add patch capability

2008-02-09 Thread anatoly techtonik
New submission from anatoly techtonik: difflib alone and bundled Tools\Scripts\diff.py utility are both very useful, esp. on windows platforms where standard unix diffutils are absent. However, python difflib still doesn't have a patch counterpart to apply at least unified diff f

[issue1694155] Python 2.5 installer ended prematurely

2008-01-18 Thread anatoly techtonik
anatoly techtonik added the comment: It appears to be well known issue with MSI installer which is unable to handle subst'ed drives correctly. _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.or

[issue1694155] Python 2.5 installer ended prematurely

2008-01-16 Thread anatoly techtonik
anatoly techtonik added the comment: The similar issue is just reported - http://img106.imageshack.us/img106/6892/pythonjo4.png -- nosy: +techtonik _ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/iss

[issue1333] merge urllib and urlparse functionality

2007-10-26 Thread anatoly techtonik
New submission from anatoly techtonik: The purpose is to encapsulate all URL handling functions in one module. At the moment there are three modules that dissect URLs for various bits of information. These are urlparse - to split url into components, urllib - to decode splitted data and cgi - to

<    5   6   7   8   9   10