[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-08-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Can this fix be considered for inclusion in 3.1.2? I don't think it should be integrated into 3.1. It *is* a new feature. -- title: Add os.link() and os.symlink() and os.path.islink() support for Windows -> Add os.link() and os.symlink() and

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you provide a patch? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6741] Garbage collector release method

2009-08-20 Thread Lev
Lev added the comment: I,m trying to develop this patch now, but I'm facing the challenge (wrong ref_count or list corruption in dict objects). If I can solve it, I publish patch here. -- ___ Python tracker _

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2009-08-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: > `make` will return error: No it will not. I just tested it: on my Linux system, _bsddb was not built, yet make reported success even after installing your patch. -- ___ Python tracker

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-20 Thread Peter Manis
New submission from Peter Manis : The zipfile support in 2.6 that allows you pass a zipfile(with __main__.py inside) as the "script", does not support encrypted zipfiles. I view this as being a feature that could be useful to some. -- components: Library (Lib) messages: 91800 nosy: ma

[issue735515] urllib / urllib2 should cache 301 redirections

2009-08-20 Thread Senthil
Changes by Senthil : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

2009-08-20 Thread Senthil
Changes by Senthil : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue6747] test test_multiprocessing failed

2009-08-20 Thread Thomas Kowaliczek
Thomas Kowaliczek added the comment: On my Netbook Fedora 11 32 Bit the test works but not on my NoteBook Fedora 11 64Bit -- ___ Python tracker ___ __

[issue6747] test test_multiprocessing failed

2009-08-20 Thread Brett Cannon
Changes by Brett Cannon : -- components: +Extension Modules -Tests stage: -> test needed type: -> behavior ___ Python tracker ___ ___

[issue6747] test test_multiprocessing failed

2009-08-20 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> jnoller nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6748] test test_telnetlib failed

2009-08-20 Thread Thomas Kowaliczek
New submission from Thomas Kowaliczek : test test_telnetlib failed -- Traceback (most recent call last): File "/home/LinuxDonald/Downloads/Python-3.1.1/Lib/test/test_telnetlib.py", line 409, in test_debuglevel self._test_debuglevel([a, EOF_sigil], b) File "/home/LinuxDonald/Downloads/Pyth

[issue6747] test test_multiprocessing failed

2009-08-20 Thread Thomas Kowaliczek
New submission from Thomas Kowaliczek : test test_multiprocessing failed -- Traceback (most recent call last): File "/home/LinuxDonald/Downloads/Python-3.1.1/Lib/test/test_multiprocessing.py", line 1077, in test_number_of_objects self.assertEqual(refs, EXPECTED_NUMBER) AssertionError: 4 !=

[issue6746] ValueError raised by IDLE during tooltip open on 64-bit Centos 5.3

2009-08-20 Thread Guilherme Polo
Guilherme Polo added the comment: >> I can reproduce it here, unfortunately Tcl/Tk 8.5 isn't really supported >> by Python 2.5 and the changes required to get this fixed won't be >> backported. It was suggested backporting before and it was rejected. > > Thank you for giving an update. Was it re

[issue6746] ValueError raised by IDLE during tooltip open on 64-bit Centos 5.3

2009-08-20 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On Thu, 20 Aug 2009 16:52:12 -0700, Guilherme Polo wrote: > I can reproduce it here, unfortunately Tcl/Tk 8.5 isn't really supported > by Python 2.5 and the changes required to get this fixed won't be > backported. It was suggested backporting before and

[issue6746] ValueError raised by IDLE during tooltip open on 64-bit Centos 5.3

2009-08-20 Thread Guilherme Polo
Changes by Guilherme Polo : -- components: +Tkinter -IDLE ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue6746] ValueError raised by IDLE during tooltip open on 64-bit Centos 5.3

2009-08-20 Thread Guilherme Polo
Guilherme Polo added the comment: I can reproduce it here, unfortunately Tcl/Tk 8.5 isn't really supported by Python 2.5 and the changes required to get this fixed won't be backported. It was suggested backporting before and it was rejected. -- nosy: +gpolo resolution: -> wont fix stat

[issue6746] ValueError raised by IDLE during tooltip open on 64-bit Centos 5.3

2009-08-20 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : Linux (Centos 5.3) 32-bit with Python 2.5.4 1. Start an idle session. 2. enter "help(" at the prompt The open bracket triggers a traceback in the console: Exception in Tkinter callback Traceback (most recent call last): File "/home/qatest/APyE/lib/pyt

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2009-08-20 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: > Ok - but your patch does not implement that. If the extension > fails to compile because the header files are not installed at all, > even with your patch, there is no error indication. `make` will return error: $ cat Makefile x:

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2009-08-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: >> Wouldn't be more interesting to add an option where you tell >> exactly which modules aren't expected to be compiled successfully ? >> If any modules besides those specified are not built, then setup.py >> returns 1. > > It's good idea. The option of `confi

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2009-08-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: > When building of an extension has failed due to external reasons (e.g. > headers from too old version of a Python dependency), user might prefer > to be forced to fix these reasons, than to have Python built without an > extension. Ok - but your patch does n

[issue6742] Embedding python into shared library crash on AIX

2009-08-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: If you get differing results from Py_IsInitialized, my guess is that you managed to link two different copies of the Python VM into your application, each with its own set of global variables. An AIX expert would be required to diagnose this in more detail; un

[issue6741] Garbage collector release method

2009-08-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you propose a patch? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6745] (curses) addstr() takes str in Python 3

2009-08-20 Thread Trundle
Changes by Trundle : Added file: http://bugs.python.org/file14751/umlaut3x.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2009-08-20 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: > Wouldn't be more interesting to add an option where you tell > exactly which modules aren't expected to be compiled successfully ? > If any modules besides those specified are not built, then setup.py > returns 1. It's good idea. The opti

[issue6745] (curses) addstr() takes str in Python 3

2009-08-20 Thread Trundle
New submission from Trundle : In Python 3, curses requires a str for addstr() where I think it should take bytes instead. Otherwise it is impossible to output anything other than ASCII (which is even more or less stated on top of curses' documentation). See the attached script "umlaut2x.py" for

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2009-08-20 Thread Guilherme Polo
Guilherme Polo added the comment: Wouldn't be more interesting to add an option where you tell exactly which modules aren't expected to be compiled successfully ? If any modules besides those specified are not built, then setup.py returns 1. I, for instance, don't care if the _bsddb extension d

[issue6693] New functions in site.py to get user/global site packages paths

2009-08-20 Thread Tarek Ziadé
Tarek Ziadé added the comment: applied in r74526 and r74529 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue6731] Add option of non-zero exit status of setup.py when building of extensions has failed

2009-08-20 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: When building of an extension has failed due to external reasons (e.g. headers from too old version of a Python dependency), user might prefer to be forced to fix these reasons, than to have Python built without an extension. If `make` doesn

[issue6744] calling kevent repr raises a TypeError

2009-08-20 Thread Jessica McKellar
New submission from Jessica McKellar : kqueue_event_repr uses PyBytes_FromString when every other repr uses PyUnicode_FromString, and this gets you a "TypeError: __repr__ returned non-string (type bytes)". The patch swaps in PyUnicode_FromString and adds a very simple unittest to test_kqueue. --

[issue1294959] Problems with /usr/lib64 builds.

2009-08-20 Thread jan matejek
jan matejek added the comment: well in our patch, at least, the directory is governed by sys.lib which is defined through configure. i don't understand the configure language well enough, but i'd assume that making it parametrized isn't too hard? --

[issue6641] strptime doesn't support %z format ?

2009-08-20 Thread David House
David House added the comment: Yes and no. Firstly, %z isn't listed as deprecated in the documentation of the time module's strftime -- although %Z is (note differing case). Secondly, I still think the bug is invalid, because the documentation of datetime.datetime.strptime says it behaves like

[issue6740] Compounded expressions with lambda functions are evaluated incorrectly

2009-08-20 Thread Eric Smith
Eric Smith added the comment: This isn't the right forum to ask for help. You should try comp.lang.python, where someone would be happy to explain this to you. Having said that, here's the explanation: This is not a bug. Disregarding side effects, the expression: a = b or c is essentially th

[issue2637] urllib.quote() escapes characters unnecessarily and contrary to docs

2009-08-20 Thread Senthil
Senthil added the comment: I see adding this information to the docs, might clarify a bit. "By default, this function is intended for quoting the path section of the URL." This is already present in the function docstring. If there is no objection, I shall commit the attached patch and clos

[issue6711] macurl2path has typos that raise AttributeError

2009-08-20 Thread Senthil
Changes by Senthil : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue1424148] urllib.FancyURLopener.redirect_internal looses data on POST!

2009-08-20 Thread Senthil
Senthil added the comment: I agree with John on this ticket. At the outset, this is Not a bug. And reading through the referenced ticket indicates the design decision for the behavior. In summary: This suggests to me that *no* automatic repeat of POST requests should ever be done, and that in t

[issue6743] pprint.pprint should support no objects to print blank lines & allow args

2009-08-20 Thread Mary Stern
Mary Stern added the comment: Sorry: you also need to print out the args! :) .. like this: def pprint(object='\n', *args, stream=None, indent=1, width=80, depth=None): """Pretty-print a Python object to a stream [default is sys.stdout].""" printer = PrettyPrinter( stream=stream,

[issue6734] Imap lib implicit conversion from bytes to string

2009-08-20 Thread STINNER Victor
STINNER Victor added the comment: > It seems most IMAP4 methods accept str as arguments right now (I > checked: list, lsub, myrights, select, status, search, fetch) and > login() is a sole exception. I know the protocol is mostly ascii only, > but still having possibility of using str in the API

[issue6743] pprint.pprint should support no objects to print blank lines & allow args

2009-08-20 Thread Mary Stern
New submission from Mary Stern : Using print in python 3 I would like to simple "replace" print with pprint.pprint. However pprint cannot be called with no arguments, so this cannot currently be done (the error is "TypeError: pprint() takes at least 1 positional argument (0 given)"). A simple im

[issue6742] Embedding python into shared library crash on AIX

2009-08-20 Thread damahay123
New submission from damahay123 : Hi there, I'm trying to embedding my python code into a .so on AIX and load it with my main application. Since there is no libpython2.6.so available on AIX, I have to link my .so with libpython2.6.a. I have to make some twist to make it compile. And so far so good

[issue6741] Garbage collector release method

2009-08-20 Thread Lev
New submission from Lev : WinCRT debug detects several memory leaks after calling py_Initialize (); py_Finalize(); functions. Most of them are garbage collector visible python's objects. I suggest to create "release" method in garbage collector which will distruct all objects in GC list without

[issue6722] collections.namedtuple: confusing example

2009-08-20 Thread Alexey Shamrin
Alexey Shamrin added the comment: Roundup broke formatting... I've attached a text file with the proposed example. -- Added file: http://bugs.python.org/file14747/namedtuple_doc_example.txt ___ Python tracker _

[issue6722] collections.namedtuple: confusing example

2009-08-20 Thread Alexey Shamrin
Alexey Shamrin added the comment: Raymond, sorry if I wasn't clear. I'm fine with the API (haven't used it yet though, because I was stuck after skimming through its documentation). I suggest to make *first* example simple (without verbose=True) and to move an example with verbose=True little f

[issue1294959] Problems with /usr/lib64 builds.

2009-08-20 Thread Matthias Klose
Matthias Klose added the comment: both patches assume that everybody uses lib64 for 64bit libs, which is not true for Debian/Ubuntu. Even the FHS doesn't mandate the use of lib64. -- nosy: +doko ___ Python tracker

[issue6734] Imap lib implicit conversion from bytes to string

2009-08-20 Thread Marcin Bachry
Marcin Bachry added the comment: It seems most IMAP4 methods accept str as arguments right now (I checked: list, lsub, myrights, select, status, search, fetch) and login() is a sole exception. I know the protocol is mostly ascii only, but still having possibility of using str in the API feels co

[issue6734] Imap lib implicit conversion from bytes to string

2009-08-20 Thread STINNER Victor
STINNER Victor added the comment: > I can't find any reference to needing to encode information > myself for the login procedure. Is there some other > documentation you are referring to? Exactly, the Python imaplib documentation should be fixed (the doc, not the code). -- _

[issue6740] Compounded expressions with lambda functions are evaluated incorrectly

2009-08-20 Thread Michal Vyskocil
New submission from Michal Vyskocil : The compounded expressions with lambda functions are evaluated incorrectly. The simple expressions, or a named functions are evaluated good. The problem is only in the evaluation of compounded expressions. It seems that after evaluate of the first lambda func

[issue6734] Imap lib implicit conversion from bytes to string

2009-08-20 Thread Eric
Eric added the comment: I checked the latest documentation for 3.1.1 (http://docs.python.org/3.1/library/imaplib.html), but I can't find any reference to needing to encode information myself for the login procedure. Is there some other documentation you are referring to? In any case, the error

[issue6444] multiline exception logging via syslog handler

2009-08-20 Thread Max Arnold
Max Arnold added the comment: Sorry for long delay, I was on vacation. I have installed sysklogd, metalog and syslog-ng on a virtual machine and executed test script. First two daemons log exception as single concatenated line. Syslog-ng splits it as described in original report. Do you sugge

[issue6641] strptime doesn't support %z format ?

2009-08-20 Thread Andrew Brown
Andrew Brown added the comment: I think this bug is just a doc bug. If you check http://docs.python.org/library/datetime.html?highlight=strptime#strftime-behavior and http://docs.python.org/library/time.html?highlight=strptime#time.strptime You can see that the first link lists %z as a val

[issue6739] IDLE window won't start or show up after assgining new key in options v2.5.2 and 3.1.1

2009-08-20 Thread CaribbeanCruise
New submission from CaribbeanCruise : I tried to assign a new key(lctrl+lshift instead of lctrl+F5) for run- mode in option in v.2.5.2. I tried the new key and it didn't work. And then I got lots of messages. So I killed the IDLE and the rest of python. And run IDLE again, background process in

[issue6738] Wrong doc strings in itertools

2009-08-20 Thread Hagen Fürstenau
New submission from Hagen Fürstenau : The doc strings of itertools.combinations and itertools.combinations_with_replacement are wrong: The parameter "r" is not optional here (like it is for itertools.permutations). Attached trivial patch. -- components: Library (Lib) files: docstring.pa