[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-22 Thread Martin Potthast
Martin Potthast added the comment: I'd suggest to better verify the input and return such strings unchanged. -- type: -> behavior ___ Python tracker <http://bugs.python.org

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-22 Thread Martin Potthast
Martin Potthast added the comment: Agreed. Here's a patch for HTMLParser. That was easy enough. With regard to tests, there seems to be already one called test_malformatted_charref in test_htmlparser.py. However, the test tests the whole parser and not only HTMLParser.unescape(). A

[issue10759] HTMLParser.unescape() fails on HTML entities with incorrect syntax (e.g. &#hearts; )

2010-12-22 Thread Martin Potthast
Martin Potthast added the comment: Why not simply remove the additional check in line 168 and leave the responsibility to check the validity of its input to the unescape function (be it explicitly or, like now, lazily). That way, the code changes are minimal, the existing test covers the

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread Georges Martin
New submission from Georges Martin : Both httplib.HTTPMessage and email.message.Message classes[1] implements methods for RFC822 headers parsing. Unfortunately, they have different implementations and they do not provide the same level of functionality. One example that is bugging me is that

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread Georges Martin
Georges Martin added the comment: Hello, David. According to issue4773, httplib.HTTPMessage in Python 3.x is using email.message.Message underneath, so my issue is only with 2.6 (I've not checked 2.7). Georges -- ___ Python tracker

[issue11316] RFC822 header parsing API inconsistencies between httplib.HTTPMessage and email.message.Message

2011-02-25 Thread Georges Martin
Georges Martin added the comment: No problem. I thought important that the issue and a workaround were documented somehow... :-) -- ___ Python tracker <http://bugs.python.org/issue11

[issue15416] 3 * [] gives a list of 3 cross-referenced lists, a[1]='blash

2012-07-21 Thread Martin Mokrejs
New submission from Martin Mokrejs : Hi, I thought that I can easily create a list of, say 3, nested lists: $ python Python 2.7.3 (default, May 17 2012, 21:10:41) [GCC 4.5.3] on linux2 Type "help", "copyright", "credits" or "license" for more inform

[issue15416] 3 * [] gives a list of 3 cross-referenced lists, a[1]='blah' writes in to ALL three!

2012-07-21 Thread Martin Mokrejs
Changes by Martin Mokrejs : -- title: 3 * [] gives a list of 3 cross-referenced lists, a[1]='blash -> 3 * [] gives a list of 3 cross-referenced lists, a[1]='blah' writes in to ALL three! ___ Python tracker <http://bugs.

[issue9694] argparse required arguments displayed under "optional arguments"

2012-08-27 Thread Martin Burger
Changes by Martin Burger : -- nosy: +mburger ___ Python tracker <http://bugs.python.org/issue9694> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16066] Truncated POST data in CGI script on Windows 7

2012-09-27 Thread Alexander Martin
New submission from Alexander Martin: POST data is truncated randomly when sent to a python script running on a simple python CGI server on Windows 7 with Python 3.2.3. The same server and script files run successfully on MAC OSX 10.8 with Python 3.2.3. A similar server (adapted for lower

[issue16066] Truncated POST data in CGI script on Windows 7

2012-09-28 Thread Alexander Martin
Alexander Martin added the comment: The successful script execution was run under Python 2.7.3 (as of today one of the two as "production version" labeled releases). The initial report's reference to Python 2.7.2 was made by mistake. May anyone confirm this error beha

[issue10951] gcc 4.6 warnings

2012-09-30 Thread Martin Pool
Martin Pool added the comment: Hi, Martin, On 20 August 2012 05:25, Martin v. Löwis wrote: > Martin v. Löwis added the comment: > > (As usual), I'm quite skeptical about this "bulk bug report"; it violates the > "one bug at a time" principle, wher

[issue11397] os.path.realpath() may produce incorrect results

2011-08-19 Thread Martin Panter
Martin Panter added the comment: Another infinite loop that isn't caught in Python 3.2.1: With the symbolic link link => link/inside a readlink("link") call will keep looping. Anyhow, the proposed solution in issue11397_py32_2.patch does not account for paths with mu

[issue12791] Yield" leaks exception being handled as garbage

2011-08-19 Thread Martin Panter
New submission from Martin Panter : See attached "leaky_generator.py" demo. Python doesn't appear to delete the exception variable if an exception is thrown back into it (via "throw", "close" or by deleting it). The result is a reference cycle that needs gar

[issue10951] gcc 4.6 warnings

2011-08-21 Thread Martin Pool
Martin Pool added the comment: this fixes the pickle warnings, and cleans up some (I'm pretty sure) dead code in there. the pickle tests all pass. -- keywords: +patch nosy: +poolie Added file: http://bugs.python.org/file22980/20110822-1150-python-warnings

[issue10951] gcc 4.6 warnings

2011-08-21 Thread Martin Pool
Martin Pool added the comment: This fixes every compiler warning so that Python build with -Werror on Ubuntu Oneiric alpha (gcc 4.6.1-7ubuntu1). * PyMem_Resize is a macro that mutates its first argument; the return value shouldn't be used. * Some variables in sre are (appar

[issue1215] Python hang when catching a segfault

2011-08-21 Thread Martin Pool
Martin Pool added the comment: The documentation for this can now point to the faulthandler module (in Python 3). -- nosy: +poolie ___ Python tracker <http://bugs.python.org/issue1

[issue1215] documentation doesn't say that you can't handle C segfaults from python

2011-08-21 Thread Martin Pool
Changes by Martin Pool : -- title: Python hang when catching a segfault -> documentation doesn't say that you can't handle C segfaults from python ___ Python tracker <http://bugs.pyth

[issue1215] documentation doesn't say that you can't handle C segfaults from python

2011-08-21 Thread Martin Pool
Martin Pool added the comment: This patch tries to improve the documentation a bit more to address the issue that confused tebeka and to advertise faulthandler. Could someone review or apply it? -- keywords: +patch Added file: http://bugs.python.org/file22989/20110822-1525-signal

[issue10713] re module doesn't describe string boundaries for \b

2011-08-21 Thread Martin Pool
Martin Pool added the comment: > Note, 366 above confirms it's never true for an empty string. The documentation states that \B "is just the opposite of \b" yet re.match(r'\b', '') returns None and so does \B so \B isn't the opposite of \b in al

[issue10951] gcc 4.6 warnings

2011-08-21 Thread Martin Pool
Martin Pool added the comment: My patch above fixes all the messages so that you get a clean build with the current makefile. -Wuninitialized and 'offset outside constant string' would be worth fixing but I can't reproduce them in Python. I'm personally not so keen on f

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2011-08-21 Thread Martin Pool
Martin Pool added the comment: Z is well established as meaning "UTC time" <http://en.wikipedia.org/wiki/Coordinated_Universal_Time#Time_zones> so shouldn't be used for "zone not known." rfc 3393 is clear that it's equivalent to +00:00. So the questio

[issue12860] http client attempts to send a readable object twice

2011-08-30 Thread Lang Martin
New submission from Lang Martin : on line 765 of client/http.py, the client loops over the read method, sending it's content to the web server. It appears as though the send method should return at this point; instead it falls through and attempts to send the data object through

[issue1215] documentation doesn't say that you can't handle C segfaults from python

2011-08-30 Thread Martin Pool
Martin Pool added the comment: On 31 August 2011 07:56, STINNER Victor wrote: > > STINNER Victor added the comment: > >> def handler(signal, stackframe): >>     print "OUCH" >>     stdout.flush() >>     _exit(1) > > What do you want to do

[issue10363] Embedded python, handle (memory) leak

2011-10-28 Thread Martin Dunschen
Martin Dunschen added the comment: Hello Antoine Unloading would not be necessary if the DLL is just the python interpreter, but if you build a DLL with python embedded that does quite a bit more than some python interpreting (in my case complex C/C++ numerical calculations) unloading the DLL

[issue10278] add time.wallclock() method

2011-11-25 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue10278> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13482] _tkinter.TclError: invalid command name "tixDirSelectBox"

2011-11-26 Thread Martin Unzner
New submission from Martin Unzner : Hi all, while executing the following piece of code: import tkinter import tkinter.tix if __name__=='__main__': root = tkinter.Tk() dirlist = tkinter.tix.DirSelectBox(root) dirlist.pack() root.mainloop() the following erro

[issue13482] _tkinter.TclError: invalid command name "tixDirSelectBox"

2011-11-26 Thread Martin Unzner
Martin Unzner added the comment: Sorry, I just found the programming example in the documentary. Works now. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue13592] repr(regex) doesn't include actual regex

2011-12-13 Thread Martin Häcker
New submission from Martin Häcker : When calling repr() on a compiled regex pattern like this: > import re > repr(re.compile('foo')) you don't get the pattern of the regex out of the compiled form. Also all my research has shown no getter to allow this. I noticed t

[issue13599] Compiled regexes don't show all attributes in dir()

2011-12-14 Thread Martin Häcker
New submission from Martin Häcker : When looking at a regex with dir() you don't get all available attributes - which is inconvenient as some very important ones (like .pattern) are not visible. To demonstrate: > import re > re.compile('foo').pattern '

[issue13599] Compiled regexes don't show all attributes in dir()

2011-12-14 Thread Martin Häcker
Martin Häcker added the comment: Indeed, I'm on version % python --version Python 2.7.1 Sorry. -- status: pending -> closed ___ Python tracker <http://bugs.python.org

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-20 Thread Martin Pool
Martin Pool added the comment: > I'm not sure why having a locale set to C or something invalid should be > considered a Python bug. Programs like bzr that hit these problems can tell their users, either in the docs or an error message, "change your locale to a UTF-8 one&

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-20 Thread Martin Pool
Martin Pool added the comment: On 21 December 2011 11:01, STINNER Victor wrote: > > Again: please read the discussion (in closed issues) explaing why we removed > it (and which problems it introduced). There's a lot of history, so I'm not sure exactly which problems you&#x

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-20 Thread Martin Pool
Martin Pool added the comment: On 21 December 2011 11:26, STINNER Victor wrote: > I never checked which locale is used by default for programs called by cron. > So I checked: on Fedora 16, programs start with a very few environment > variables, and LANG and LC_ALL are not set. Yo

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-20 Thread Martin Pool
Martin Pool added the comment: Thanks for the example. Like you say, realistically, all data exchanged with other programs and with the system needs to be in the same encoding. (User document content may be in something else.) On modern systems, this problem is solved by making the standard

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-20 Thread Martin Pool
Martin Pool added the comment: On 21 December 2011 12:16, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > So, you're complaining about something which works, kind of: > > $ touch héhé > $ LANG=C python3 -c "import os; print(os.listdir())" &g

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 21 December 2011 12:41, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > >> The standard encoding is UTF-8. > > How so? I don't know of any Linux or Unix spec which says so. If you get > the Linux heads to standardiz

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 22 December 2011 11:21, STINNER Victor wrote: > This discussion is becoming very long, I didn't remember the original > purpose. The proposal is that in some cases where Python currently assumes filenames are ascii on Linux, it ought to instead

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 22 December 2011 12:32, STINNER Victor wrote: > > STINNER Victor added the comment: > > On 22/12/2011 02:16, Martin Pool wrote: >> The proposal is that in some cases where Python currently assumes >> filenames are ascii on Linux, it

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-21 Thread Martin Pool
Martin Pool added the comment: On 22 December 2011 13:15, STINNER Victor wrote: > You cannot pass directly "h\xe9.txt", but if you know the "correct" file > system encoding, you can encode it explicitly using str.encode("utf-8"). My recollection was

[issue12922] StringIO and seek()

2011-12-21 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue12922> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-23 Thread Martin Pool
Martin Pool added the comment: Terry, that's fine. Thanks to everyone who contributed to the discussion. -- ___ Python tracker <http://bugs.python.org/is

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2012-01-11 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue4806> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11944] Function call with * and generator hide exception raised by generator.

2012-01-11 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue11944> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2012-01-11 Thread Martin Panter
Martin Panter added the comment: I haven’t tried to understand what the patches do, but Issue 5218 looks like a very similar problem with a patch including a test case. -- ___ Python tracker <http://bugs.python.org/issue4

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

2012-01-11 Thread Martin Panter
Martin Panter added the comment: See also Issue 4806 -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue5218> ___ ___ Python-bugs-list mailin

[issue3132] implement PEP 3118 struct changes

2012-10-26 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue3132> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2909] struct.Struct.unpack to return a namedtuple for easier attribute access

2012-10-26 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue2909> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16349] Document whether it's safe to use bytes for struct format string

2012-10-28 Thread Martin Panter
Martin Panter added the comment: Also it would be nice to clarify if struct.Struct.format is meant to be a byte string. Reading the documentation and examples I expected a character string. It was an issue for me when embedding one structure within another: HSF_VOL_DESC = Struct("<

[issue13238] Add shell command helpers to subprocess module

2012-11-02 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue13238> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8604] Adding an atomic FS write API

2012-11-02 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue8604> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7317] Display full tracebacks when an error occurs asynchronously

2012-11-02 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue7317> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16425] minidom replaceChild(new_child, old_child) removes new_child even if in another document

2012-11-07 Thread Martin Kugler
New submission from Martin Kugler: Calling doc.replaceChild(new_child, old_child) with new_child and old_child being similar nodes in two different documents results in new_child to be removed from its document instead of old_child being removed from doc. Example: new_child

[issue2927] expose html.parser.unescape

2012-11-27 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue2927> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16549] regression: -m json.tool module is broken

2012-11-27 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue16549> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15716] Ability to specify the PYTHONPATH via a command line flag

2012-11-28 Thread Martin Dengler
Changes by Martin Dengler : -- nosy: +mdengler ___ Python tracker <http://bugs.python.org/issue15716> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16499] CLI option for isolated mode

2012-11-28 Thread Martin Dengler
Changes by Martin Dengler : -- nosy: +mdengler ___ Python tracker <http://bugs.python.org/issue16499> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15416] 3 * [] gives a list of 3 cross-referenced lists, a[1]='blah' writes in to ALL three!

2013-01-03 Thread Martin Mokrejs
Martin Mokrejs added the comment: For the sake of internet archives, the following could be included in the FAQ you referred to: http://www.scipy.org/Cookbook/BuildingArrays >>> import numpy as np >>> a=np.array(5*[False],bool) >>> a array([False, False, False

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-01-31 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker <http://bugs.python.org/issue16809> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17207] string format precision misbehaving

2013-02-14 Thread Martin Mokrejs
New submission from Martin Mokrejs: Hi, I don't know if this is related to issue8040 or not. I find the 2.7 string formatting behavior inconsistent. I found out sometimes I have to divide my number by 100 so that the percentage values get printed correctly. Somehow, when a percent

[issue17234] python-2.7.3-r3: crash in visit_decref()

2013-02-19 Thread Martin Mokrejs
New submission from Martin Mokrejs: Hi, I do see relatively often a crash in python. Here is one stacktrace from my Gentoo Linux running 3.7.4 kernel: (gdb) where #0 0x7f624f340f08 in visit_decref () from /usr/lib64/libpython2.7.so.1.0 #1 0x7f624f2a455a in list_traverse () from

[issue1375011] Improper handling of duplicate cookies

2013-02-23 Thread Martin Melin
Martin Melin added the comment: Attached is a patch with Viraj's original fix except using a set instead of a dict as suggested by Björn. This patch also includes a test case and a note in the docs about this behavior. Since Cookie has been moved and the code has been cleaned up som

[issue1375011] Improper handling of duplicate cookies

2013-02-23 Thread Martin Melin
Martin Melin added the comment: Just adding the 3.2 patch -- Added file: http://bugs.python.org/file29179/issue1375011-3.2.patch ___ Python tracker <http://bugs.python.org/issue1375

[issue7504] Same name cookies

2013-02-23 Thread Martin Melin
Martin Melin added the comment: FYI, this looks like the same issue as #1375011 -- nosy: +mmelin ___ Python tracker <http://bugs.python.org/issue7504> ___ ___

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2013-02-23 Thread Martin Melin
Martin Melin added the comment: Not sure if there was anything more to it than this, but please find an attempt to add this attached. -- keywords: +patch nosy: +mmelin Added file: http://bugs.python.org/file29197/issue16709.patch ___ Python tracker

[issue12641] Remove -mno-cygwin from distutils

2013-02-26 Thread Martin Fiers
Martin Fiers added the comment: This also affects our software. I agree with Dan (danmbox): I don't understand; so many people depend on it and yet an out-of-the-box solution doesn't work. I don't want to break the distutils package of our users because we use mingw. Within on

[issue12641] Remove -mno-cygwin from distutils

2013-02-26 Thread Martin Fiers
Martin Fiers added the comment: Dear Eric, I never said that anyone of these volunteers is unresponsible/stupid/whatsoever. It was also never my intention to express myself in this way, so I apologize if you felt harmed in any way. I was just suprised that this issue exists for so long. And

[issue1731717] race condition in subprocess module

2009-09-17 Thread Joel Martin
Joel Martin added the comment: I can reproduce the problem (or at least get the same symptom) by doing this (in 2.4.6, 2.5.4 and 2.6.2): import subprocess, signal signal.signal(signal.SIGCLD, signal.SIG_IGN) subprocess.Popen(['echo','foo']).wait() The echo comman

[issue5672] Implement a way to change the python process name

2009-10-09 Thread Martin Marcher
Changes by Martin Marcher : -- nosy: +martin.marcher ___ Python tracker <http://bugs.python.org/issue5672> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7429] PrettyPrinter cannot print dicts with unsortable keys

2009-12-03 Thread Martin Altmayer
New submission from Martin Altmayer : In the following code I use a class for dictionary-keys that has a __hash__-function but cannot be ordered and try to print that dictionary with a PrettyPrinter. import pprint pp = pprint.PrettyPrinter() # A class that supports hashing and comparison for

[issue7613] [cppcheck] found a regression : Invalid number of character ((). Can't process file.

2009-12-31 Thread Ettl Martin
New submission from Ettl Martin : during a check with the static code analysis tool cppcheck (http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page) the tool found a missing ')' in python-svn/Modules/flmodule.c that leads to a regression. Please refer the attached

[issue7721] Code in xrange documentation does not work

2010-01-16 Thread Martin Manns
New submission from Martin Manns : In the Python 2.6.4 documentation "2. Built-in Functions" at http://docs.python.org/library/functions.html, the section about the xrange function (paragraph "CPython implementation detail") contains the following code: islice(count(start

[issue7721] Code in xrange documentation does not work

2010-01-16 Thread Martin Manns
Martin Manns added the comment: The new snippet does not work for me: >>> list(irange(-12, 20, 4)) [-12, -8, -4, 0, 4] I have attached code that seems to work. It is more than a snipped though. -- Added file: http://bugs.python.org/file15922/

[issue7721] Code in xrange documentation does not work

2010-01-16 Thread Martin Manns
Martin Manns added the comment: The new snippet works better. >>> list(irange(-12, 20, 4)) [-12, -8, -4, 0, 4, 8, 12, 16] However, it does not like large or negative slices: >>> list(irange(-2**65,2**65,2**61)) Traceback (most recent call last): File "", line

[issue7721] Code in xrange documentation does not work

2010-01-16 Thread Martin Manns
Martin Manns added the comment: Great solution! Thank you -- ___ Python tracker <http://bugs.python.org/issue7721> ___ ___ Python-bugs-list mailing list Unsub

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-11 Thread Martin McNickle
Changes by Martin McNickle <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10280/add_header_complete.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-05-11 Thread Martin McNickle
Changes by Martin McNickle <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10201/add_header_complete.patch __ Tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2824] zipfile to handle duplicate files in archive

2008-05-13 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: The mechanism for throwing an error has been written, however for the case of a duplicated filename, it appears to have been deliberatly not been used by the original author.: def _writecheck(self, zinfo): ""&

[issue2868] Problem with urllib and urllib2 in urlopen?

2008-05-17 Thread Martin McNickle
Martin McNickle <[EMAIL PROTECTED]> added the comment: I verified the behaviour but this is a problem with that particular site, not with urllib/urllib2. Should be closed. -- nosy: +BitTorment __ Tracker <[EMAIL PROTECTED]> <http://

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-06-15 Thread Martin Wilck
Martin Wilck <[EMAIL PROTECTED]> added the comment: I am not in my office. I'll be back on June 30, 2008. In urgent cases, please contact: Peter Pols <[EMAIL PROTECTED]> or Gerhard Wichert <[EMAIL PROTECTED]> Best regards Martin Wilck Added file: http://bugs.pytho

[issue3234] subprocess.py strips last character when raising an AttributeError

2008-06-29 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: I try to get working pipe emulation using Popen. I try to pass StringIO object to p1.stdin of the first process and I got the following: File "/usr/lib/python2.5/subprocess.py", line 587, in __init__ errread,

[issue3235] Improve subprocess module usage

2008-06-29 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Although I do appreciate that you try to improve python it is not clear to me from http://docs.python.org/lib/module-subprocess.html: 1. Why the old functions have been deprecated 2. I can pipe together two processes. But how can

[issue3235] Improve subprocess module usage

2008-06-29 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Please link to http://www.python.org/dev/peps/pep-0324/ from the docs webpage at least. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3235] Improve subprocess module usage

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Georg, but would you please improve the docs explaining what communicate really does? The syntax is nice but I don't see how can I use poll() described in the same above to use that. Providing Examples section would be the best.

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Hi, although the issues libraries to be created with -fpic are known I still do believe ./config could do something here: building 'crypt' extension gcc -shared -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Hi, when building on Solaris 2.6 with gcc I get the following error: building '_ctypes' extension gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/.

[issue3266] Python-2.5.2/Modules/mmapmodule.c:915: error: `O_RDWR' undeclared

2008-07-02 Thread Martin Mokrejs
New submission from Martin Mokrejs <[EMAIL PROTECTED]>: Some typo in the sources showing up on Solaris 2.6 only? building 'mmap' extension gcc -shared -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/usr/scratch/Python-2.5.2/./Include -I. -IInc

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: # ar tv /usr/lib/libcrypt.a rw-rw-r-- 0/1 1296 Jul 16 05:57 1997 crypt.o rw-rw-r-- 0/1 4996 Jul 16 05:57 1997 cryptio.o rw-rw-r-- 0/1 1508 Jul 16 05:57 1997 des_encrypt.o rw-rw-r-- 0/1 5356 Jul 16 05:58 1997 des_crypt.o # ls -l

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: A Goggle search gives between many others: http://gcc.gnu.org/ml/gcc/2000-09/msg00054.html http://www.ravenbrook.com/project/mps/master/design/vmso/ http://developers.sun.com/solaris/articles/read_mmap.html Added file: http://bugs.pyth

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: http://unix.derkeiler.com/Newsgroups/comp.unix.solaris/2004-07/0256.html http://source.winehq.org/source/libs/wine/mmap.c I will stop posting URLs. ;-) ___ Python tracker <[EMAIL PROTECTE

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: # ar x /usr/lib/libcrypt.a;nm -g des_crypt.o U ___errno 033c T _des_crypt 0274 T _des_encrypt U _des_encrypt1 01b0 T _des_setkey U _mutex_lock U _mutex_unlock U _thr_getsp

[issue3266] Python-2.5.2/Modules/mmapmodule.c:915: error: `O_RDWR' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: So adding these two lines helped: # diff /usr/scratch/Python-2.5.2/Modules/mmapmodule.c.ori /usr/scratch/Python-2.5.2/Modules/mmapmodule.c 36a37 > #include 38a40 > #include # ___ Python tra

[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2008-07-02 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Thanks, but I can only help with testing. :( ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-03 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Could it be the name clashing problem between -lcrypt and -lcrypto? bash-3.00# ar x /usr/lib/libcrypt.a;nm -g des_crypt.o U ___errno 033c T _des_crypt 0274 T _des_encrypt U _des_encrypt1 01b0 T _des_

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-03 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: You say "did always work"? http://mail.python.org/pipermail/python-list/2002-December/177479.html Maybe the reason why in ruby they forced to -shared flag because it was possible to link only with the shared library? I

[issue3264] Use -lcrypto instead of -lcrypt on Solaris 2.6 when available

2008-07-03 Thread Martin Mokrejs
Martin Mokrejs <[EMAIL PROTECTED]> added the comment: Confirming the enabling line 216 like below helped. Thanks. Maybe change "Resolution"? 204 # Socket module helper for SSL support; you must comment out the other 205 # socket line above, and possibly edit the SSL v

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-08-14 Thread Martin Wilck
Martin Wilck <[EMAIL PROTECTED]> added the comment: I am not in my office. I'll be back on August 25, 2008. In urgent cases, please contact: Peter Pols <[EMAIL PROTECTED]> or Gerhard Wichert <[EMAIL PROTECTED]> Best regards Martin Wilck Added file: http://bu

[issue3942] Usability issue from not being able to use defined start and end code block markers

2008-09-22 Thread Martin Meredith
New submission from Martin Meredith <[EMAIL PROTECTED]>: Recently, a blind user posted on Stack Overflow asking whether there was something that would allow them to use braces within python. They have a point, with only tabs being show in the editor, it can be very confusing for a blin

[issue4094] "Future statements" Doc from 2.6 refers to 2.5

2008-10-09 Thread Martin Marcher
New submission from Martin Marcher <[EMAIL PROTECTED]>: http://docs.python.org/reference/simple_stmts.html#future-statements says this: """ The features recognized by Python 2.5 are absolute_import, division, generators, nested_scopes and with_statement. generators

[issue4224] ** operating incorrectly for negative bases?

2008-10-28 Thread Martin Green
New submission from Martin Green <[EMAIL PROTECTED]>: I suspect that the following behavior is incorrect: Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 >>> -1**2 -1 >>> -2**2 -4 >>> -1**0.5 -1.0 The same happens whe

<    1   2   3   4   5   6   7   8   9   10   >