[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-11 Thread James Oakley
James Oakley added the comment: load_verify_locations() is not available in Python 2.x. It was added in 3.x. Also, there is no way to load a directory-based certificate store at all in Python 2.x, which is why the bug was opened. -- ___ Python

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-11 Thread James Oakley
James Oakley added the comment: Fair enough. What about a patch to handle a directory store passed through the ca_certs parameter? As it stands now, it's impossible to load the distribution-supplied cert store on openSUSE. -- ___ Python tr

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-11 Thread James Oakley
James Oakley added the comment: Something like this perhaps? --- a/Lib/urllib/request.py Fri May 11 13:11:02 2012 -0400 +++ b/Lib/urllib/request.py Fri May 11 11:03:02 2012 -0700 @@ -135,16 +135,19 @@ _opener = None def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread James Henstridge
James Henstridge added the comment: Benjamin: if you are after a use case for this feature, see https://code.djangoproject.com/ticket/15901 In Django, there are multiple database backends, each of which currently catch the adapter's DatabaseError and reraise it as Django's Databa

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread James Henstridge
Changes by James Henstridge : -- type: behavior -> enhancement ___ Python tracker <http://bugs.python.org/issue12029> ___ ___ Python-bugs-list mailing list Un

[issue14667] No IDLE

2012-05-13 Thread James Lu
James Lu added the comment: thanks! james On Thu, Apr 26, 2012 at 1:02 AM, Brian Curtin wrote: > > Brian Curtin added the comment: > > James, since you attached a Windows executable I'll assume that's the > platform you're on. > > Try the following: &g

[issue14780] urllib.request could use the default CA store

2012-05-16 Thread James Oakley
James Oakley added the comment: Ok, here's a patch with a test and documentation updates. -- Added file: http://bugs.python.org/file25617/cpython-urllib_urlopen_cadefault.patch ___ Python tracker <http://bugs.python.org/is

[issue14780] urllib.request could use the default CA store

2012-05-16 Thread James Oakley
James Oakley added the comment: Ok, perfect. I submitted a copy of the agreement. -- ___ Python tracker <http://bugs.python.org/issue14780> ___ ___ Python-bug

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
New submission from James Kyle : This behavior is present on OS X 10.7 and framework builds. In this case, the /Library/Python/ paths are included in every install. I would consider this behavior non-standard as in most manual python installs only that installations library paths are

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
James Kyle added the comment: Am I missing something or were the problems delineated in issue #4865 solvable by simply sys.path.append("/Library/Python/2.7/site-packages")? What would the process be for reopening this issue for discussion? I'm not sure this is the right way

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
James Kyle added the comment: Fair enough. Thanks! -- ___ Python tracker <http://bugs.python.org/issue15048> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9527] Add aware local time support to datetime module

2012-06-11 Thread James Henstridge
James Henstridge added the comment: One problem I can see with using a fixed offset tzinfo for localtime is that it might confuse people when doing date arithmetic. For example: >>> d = datetime.localtime() + timedelta(days=7) While it will give a correct answer as a point i

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-12 Thread James Kyle
James Kyle added the comment: I think Ned does have some good points regarding the minimal impact a reversion would have. The most poignant point is that /Library/ on OS X is not a user controlled directory whereas ~/.local is. If ~/.local exists and has packages installed, it's becaus

[issue15246] Line coverage for collectionts.abc.Set

2012-07-03 Thread James King
New submission from James King : I'm working on increasing the line-coverage of the tests for the Set ABC in the collections.abc module. I encountered something a little funky IMO that I'm not sure is an issue or bug... but the __and__ method passes a generator object to the cons

[issue15246] Line coverage for collectionts.abc.Set

2012-07-05 Thread James King
James King added the comment: How about a working test instead? Let me know if it looks right. -- Added file: http://bugs.python.org/file26267/set_abc_coverage.patch ___ Python tracker <http://bugs.python.org/issue15

[issue15702] Multiprocessing Pool deadlocks on join after empty map operation

2012-08-16 Thread James Hutchison
New submission from James Hutchison: Following code deadlocks on Windows 7 64-bit, Python 3.2.3 If you have a pool issue a map operation over an empty iterable then try to join later, it will deadlock. If there is no map operation or blah in the code below isn't empty, it does not dea

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
New submission from James Hutchison: Windows 7 64-bit, Python 3.2.3 This is a very odd issue and I haven't figured out what caused it. I have a python script that runs continuously. When it receives a request to do a task, it creates a new thread (not a new process), does the task, then

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: This is the traceback I was getting where it was just a script that simply made an SMTP connection then closed it. This fails before it attempts to connect to the server. Traceback (most recent call last): File "C:\tmp\manysmtptest.py",

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: That makes no sense. Why does: s = socket.socket() s.bind(('',50007)) s.listen(1); s.close(); fix the issue then? Re-opening, this issue should be understood because having such an operation randomly fail is unacceptable for a production system

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2012-08-24 Thread James Hutchison
New submission from James Hutchison: One issue I've encountered is someone else's software setting PYTHONPATH to their install directory of python. We have some old software that installs and uses python 2.3 scripts and unfortunately this prevents the IDLE shortcuts for newer v

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: It's from the example. http://docs.python.org/library/socket.html#example -- ___ Python tracker <http://bugs.python.org/is

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: The firewall is disabled for my machine. So the options are: 1. Port was in-use: possible except that is normally a different error 2. Port was firewalled: firewall was disabled 3. Port mis-use: not likely because this wouldn't be random 4. Port w

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: I can connect to all of the IPs for my server without issue. Found this: Another possible reason for the WSAEACCES error is that when the bind function is called (on Windows NT 4.0 with SP4 and later), another application, service, or kernel mode driver is

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
Changes by James Hutchison : -- status: closed -> open ___ Python tracker <http://bugs.python.org/issue15779> ___ ___ Python-bugs-list mailing list Unsubscri

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
James Hutchison added the comment: Looks to me like python grabs an outgoing port number via unrandom means and if it happens to map to a port taken by a service that demands exclusive access, then it returns the WSAEACCESS error instead of WSAEADDRINUSE. Because this is a fairly new "fe

[issue15779] socket error [Errno 10013] when creating SMTP object

2012-08-24 Thread James Hutchison
Changes by James Hutchison : -- components: +Windows ___ Python tracker <http://bugs.python.org/issue15779> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16031] relative import headaches

2012-09-24 Thread James Hutchison
New submission from James Hutchison: This might even be a bug I've stumbled upon but I'm listing it as an enhancement for now. I really feel that relative imports in Python should just work. Regardless of the __name__, I should be able to import below me. Likewise, it should wor

[issue16026] csv.DictReader argument names documented incorrectly

2012-09-28 Thread James Salt
James Salt added the comment: This diff shows a correction of the documentation to reflect the name for the csv file used in the implementation - this change seemed like the easiest and simplest thing to do and avoids potential backwards incompatibility issues. -- nosy: +James.Salt

[issue14667] No IDLE

2012-10-06 Thread James Lu
Changes by James Lu : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue14667> ___ ___ Python-bugs-list mailing list Unsubscri

[issue14667] No IDLE

2012-10-06 Thread James Lu
Changes by James Lu : -- resolution: -> works for me ___ Python tracker <http://bugs.python.org/issue14667> ___ ___ Python-bugs-list mailing list Unsubscri

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2012-10-18 Thread James Teh
James Teh added the comment: This issue is much nastier than it seems when dealing with character sets that contain multi-byte characters in Python 2.7 on Windows. For example, on a Japanese system: 1. The ANSI code page is cp932 and Python 2.7 will return the TEMP environment variable as a

[issue16352] Error call

2012-10-28 Thread James Lu
New submission from James Lu: >>>x="y" >>>y=x >>>x=y >>>print x x >>>print y x It should raise a RuntimeError -- components: None messages: 174086 nosy: James.Lu priority: normal severity: normal status: open t

[issue16352] Error call

2012-10-28 Thread James Lu
Changes by James Lu : -- versions: -Python 2.6 ___ Python tracker <http://bugs.python.org/issue16352> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16352] Error call

2012-10-28 Thread James Lu
James Lu added the comment: srry -- resolution: invalid -> rejected ___ Python tracker <http://bugs.python.org/issue16352> ___ ___ Python-bugs-list mai

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-03-14 Thread James Bailey
New submission from James Bailey: After xml.etree.ElementInclude.include inserts an Xinclude'd href it does not walk the just-inserted subtree to see if it contains any Xincludes itself. I think the behaviour should be modified to walk the included subtree and perform any Xincludes cont

[issue1677872] Efficient reverse line iterator

2014-04-15 Thread James Emerton
James Emerton added the comment: Attached is an implementation of BufferedReader.readprevline(), as suggested by Antoine. At this point, it seems to be working but I would like to improve the tests when a single result spans multiple chunks. I would particularly like to ensure correct

[issue837046] pyport.h redeclares gethostname() if SOLARIS is defined

2014-04-20 Thread James Bostock
James Bostock added the comment: I have not compiled Python from source code for many years and no longer have access to Solaris machines so I cannot say whether or not this is still a problem. -- ___ Python tracker <http://bugs.python.

[issue16827] Remove the relatively advanced content from section 2 in tutorial

2014-04-23 Thread James Brewer
James Brewer added the comment: It seems like this issue lost traction, so I decided to go ahead and apply Eric's feedback. I've attached the relevant patch. With that said, I agree with Senthil that sections 2.2.4 and 2.2.5 would be better off between sections 13.1 and 13.2 -

[issue21468] NNTPLib connections become corrupt after long periods of activity

2014-05-10 Thread James Meneghello
New submission from James Meneghello: After establishing an NNTP connection for a long-running process (up to hours at a time), the connection will eventually die and start producing infinite random garbage output, a small part of which is seen below. Any subsequent calls to the connection

[issue21468] NNTPLib connections become corrupt after long periods of activity

2014-05-27 Thread James Meneghello
James Meneghello added the comment: Yeah, I didn't have a lot of time so I chose just to work around it. When I get a chance I'll have a better look. Good point: I didn't think to try it with SSL off (SSL is enabled for all connections by default with this application). I'

[issue19318] break more than once

2013-10-20 Thread James Lu
New submission from James Lu: break 2 would break out of one loop then break out of another. break break would just break once and not execute the second break. break 2 when there are only 1 thing to break would raise raise a SyntaxError: Can only break 1 time, need to break 2 times

[issue19318] break more than once

2013-10-20 Thread James Lu
James Lu added the comment: You would have to do this: for i in range(1,10): broke = True for x in range(2,5): break else: broke = False if broke: break to break twice, and you can't break only

[issue19318] break more than once

2013-10-20 Thread James Lu
James Lu added the comment: Big example: pygame, event proccessing loop running. the user clicks "Quit", you do break 2. psuedocode: while True: for event in pygame.events.get(): if event.type==pygame.QUIT: break 2 james On Sun, Oct 20, 2013 at 2:36 PM, Marti

[issue19318] break more than once

2013-10-20 Thread James Lu
James Lu added the comment: Every new feature takes on new challenges and harder ways to debug. But what about using that very confusing code that I showed that only let's you break one amount, that would be harder to debug! -- ___ Python tr

[issue19318] break more than once

2013-10-20 Thread James Lu
James Lu added the comment: Oh, yes,yes,yes! -- ___ Python tracker <http://bugs.python.org/issue19318> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-19 Thread James Powell
New submission from James Powell: Decorator syntax currently allows only a dotted_name after the @. As far as I can tell, this was a gut-feeling decision made by Guido. [1] I spoke with Nick Coghlan at PyTexas about this, and he suggested that if someone did the work, there might be interest

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-19 Thread James Powell
Changes by James Powell : -- keywords: +patch Added file: http://bugs.python.org/file32717/decorator-syntax.patch ___ Python tracker <http://bugs.python.org/issue19

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread James Powell
James Powell added the comment: I see this as removing a restriction and a special-case from the decorator syntax (noting, of course, that these were introduced deliberately.) In terms of whether the new forms are improvements, my preference is to leave this up to the judgement of the

[issue19660] decorator syntax: allow testlist instead of just dotted_name

2013-11-20 Thread James Powell
Changes by James Powell : Added file: http://bugs.python.org/file32745/decorator-syntax.patch ___ Python tracker <http://bugs.python.org/issue19660> ___ ___ Python-bug

[issue11571] Turtle window pops under the terminal on OSX

2013-11-24 Thread James Cook
James Cook added the comment: This problem still exists with the version of turtle bundled with python 3.3.3 and ActiveState ActiveTcl8.5.15.1. While it may be an issue with the underlying platform, it's unfortunate for young beginners just learning python who don't understand the

[issue21984] list(itertools.repeat(1)) causes the system to hang

2014-07-14 Thread James Paget
New submission from James Paget: In Python 3.4, type: >>> import itertools >>> list(itertools.repeat(1)) The system will hang, and a cold reboot is necessary (at least on Windows). I expected some sort of "infinite list" exception to be thrown. -- c

[issue22293] mock could be less memory-intensive

2014-08-28 Thread James Westby
New submission from James Westby: Hi, I'm looking in to the memory usage of our testsuite, which does a fair amount of def setUp(): patcher = patch.multiple(...) self.mock_whatever = patcher.start() self.addCleanup(patcher.stop) or other ways of creating a moc

[issue17835] test_io broken on PPC64 Linux

2014-09-24 Thread James Spurin
James Spurin added the comment: I encountered similar issues to those discussed in this issue whilst compiling 3.4.1 on 'Red Hat Enterprise Linux Server release 6.5 (Santiago)' In particular, the following tests were failing - [root@lonlx90800 ~]# /local/0/python-3.4.1/bin/python3

[issue17835] test_io broken on PPC64 Linux

2014-09-25 Thread James Spurin
James Spurin added the comment: fcntl doesnt seem to like the parameter you mentioned - # cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago) # /local/0/opt/python-3.4.1/bin/python Python 3.4.1 (default, Sep 24 2014, 12:23:21) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on

[issue22498] frozenset allows modification via -= operator

2014-09-25 Thread James Paget
New submission from James Paget: The operator -= modifies a frozenset (this should not be possible), instead of signaling a TypeError. Contrast with the += operator. >>> f=frozenset([1,2]) >>> f frozenset([1, 2]) >>> f -= frozenset([1]) >>> f frozense

[issue17835] test_io broken on PPC64 Linux

2014-09-29 Thread James Spurin
James Spurin added the comment: With both the kernel parameters defined and undefined, I get the following output - # /local/0/opt/python-3.4.1/bin/python Python 3.4.1 (default, Sep 29 2014, 13:31:39) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux Type "help", "copyright

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2014-02-10 Thread James Skinner
New submission from James Skinner: When using the Path class in Lib/pathlib.py under Windows, calling p.owner() or p.group() fails with an ImportError due to importing the pwd and grp modules respectively, as neither of those exist. The documentation doesn't mention this behaviour.

[issue20589] pathlib.owner() and pathlib.group() raise ImportError on Windows

2014-02-11 Thread James Skinner
James Skinner added the comment: Ok, I'm not sure when I got the idea they should return ids instead of the names :) But raising NotImplementedError is certainly an improvement on ImportError. As to implementing it on Windows, the answer by eryksun on this page works without requ

[issue20781] BZ2File does decompress some .bz2 files correctly

2014-02-26 Thread James Dominy
New submission from James Dominy: bz2.BZ2File does not decompress a file (see attached) correctly. This file can be decompressed and compressed via stadard unix tools (bzip2 and bunzip2) without change. Consider ... $ python Python 2.7.6 (default, Dec 7 2013, 22:49:16) [GCC 4.8.2] on

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread James Dominy
Changes by James Dominy : -- title: BZ2File does decompress some .bz2 files correctly -> BZ2File doesn't decompress some .bz2 files correctly ___ Python tracker <http://bugs.python.org

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-26 Thread James Dominy
James Dominy added the comment: Whoops, forget to add the output from the standard binutils $ bzcat example-file.csv.bz2 | wc -c 909602 $ bzcat example-file.csv.bz2 | md5sum 48f4b69b2b8bb0b171ebc36313eb6616 - As you can see file sizes and hashes do not match

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-27 Thread James Dominy
James Dominy added the comment: How does one create a multi-stream bzip2 file in the first place? And how do I tell it's multi-stream. -- ___ Python tracker <http://bugs.python.org/is

[issue20781] BZ2File doesn't decompress some .bz2 files correctly

2014-02-28 Thread James Dominy
James Dominy added the comment: Ah, I did some digging. It turns out pbzip2 is installed on the system in question, and more annoyingly, /usr/bin/bzip2 is a symlink to pbzip2. I didn't realise the file was compressed by pbzip2. Thanks for the

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

2009-07-17 Thread James Broadhead
James Broadhead added the comment: +1 to the above. (imo, this is a bugfix, not a new feature) -- ___ Python tracker <http://bugs.python.org/issue1424

[issue6599] 2to3 test_print_function_option fails on Windows

2009-07-29 Thread James Abbatiello
New submission from James Abbatiello : test_print_function_option is failing on Windows. Patch attached. Output of failure: C:>python test.py test_all_project_files (lib2to3.tests.test_all_fixers.Test_all) ... \2to3\lib2to3\refactor.py:194: DeprecationWarning: the 'print_function&#x

[issue5093] 2to3 with a pipe on non-ASCII script

2009-07-29 Thread James Abbatiello
James Abbatiello added the comment: The --no-diffs option was recently added which looks like a good workaround. Here's an attempt at a solution. If sys.stdout has an encoding set then use that, just as is being done now. If there is no encoding (implying "ascii") then use

[issue5093] 2to3 with a pipe on non-ASCII script

2009-07-31 Thread James Abbatiello
James Abbatiello added the comment: In what case(s) do you propose the output to be encoded in UTF-8? If output is to a terminal and that terminal is set to Latin-1 or cp437 or whatever then outputting UTF-8 in that case will only show garbage characters to the user. If output is to a file

[issue6608] asctime causing python to crash

2009-07-31 Thread James Abbatiello
James Abbatiello added the comment: Since there's no good way to disable the assertion (see issue4804), checking the validity of the argument beforehand looks like an option. The checking that's currently being done in the strftime() implementation looks useful but it is not en

[issue6608] asctime causing python to crash

2009-08-02 Thread James Abbatiello
James Abbatiello added the comment: Further investigation shows that MS asctime() doesn't like leap seconds and causes an assertion when passing (2008, 12, 31, 23, 59, 60, 2, 366, -1) -> 'Wed Dec 31 23:59:60 2008'. Given that and since asctime() is such a simple function I t

[issue7362] Incorrect error message with def((x)=0)

2009-11-19 Thread James Lingard
New submission from James Lingard : def f((x)=0): pass gives the following incorrect error message: SyntaxError: non-default argument follows default argument "def f((x)): pass" is treated exactly the same as "def f(x): pass", so it would seem sensible for the same to

[issue7364] Traceback contains incorrect line number for duplicate argument in lambda definition

2009-11-19 Thread James Lingard
New submission from James Lingard : The following python file: lambda a, a: 0 when executed gives the following backtrace: File "/tmp/test.py", line 0 SyntaxError: duplicate argument 'a' in function definition Note that the line number is 0, not 1. (It's al

[issue7366] weakref module example relies on behaviour not guaranteed by id()

2009-11-19 Thread James Henstridge
New submission from James Henstridge : The documentation for the weakref module contains an example that uses WeakValueDictionary to implement a id2obj() lookup function that doesn't store strong references to those objects. This example implicitly assumes that the id() of an object wi

[issue7366] weakref module example relies on behaviour not guaranteed by id()

2009-11-19 Thread James Henstridge
James Henstridge added the comment: Forgot to include a link to the documentation I was talking about: http://docs.python.org/library/weakref#example This example also appears in the 2.7a0 and 3.2a0 documentation. -- ___ Python tracker <h

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2009-02-16 Thread James Henstridge
New submission from James Henstridge : The datetime module does not support time zones whose offset from UTC is not an integer number of minutes. The Olson time zone database (used by most UNIX systems and Mac OS X) has a number of time zones with historic offsets that use second resolution

[issue5305] imaplib should support international mailbox names

2009-02-17 Thread James Henstridge
New submission from James Henstridge : The IMAP4rev1 specification allows for non-ASCII mailbox names using a modified UTF-7 encoding (section 5.1.3 of RFC 2060 or 3501). However, the imaplib routines taking a mailbox name just pass the string straight through without any encoding. It would be

[issue5305] imaplib should support international mailbox names

2009-02-19 Thread James Henstridge
James Henstridge added the comment: I'll have a go at implementing the algorithm. It looks like the modifications to UTF-7 are large enough that you can't do a search and replace on the output of the existing UTF-7 codec, so it'll probably require new code. Would Str

[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2009-02-26 Thread James Mills
Changes by James Mills : -- nosy: +prologic ___ Python tracker <http://bugs.python.org/issue5322> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5642] multiprocessing.Pool.map() docs slightly misleading

2009-04-01 Thread James McDermott
New submission from James McDermott : I found the documentation for the multiprocessing.Pool.map() method to be a little misleading, because it claims to be equivalent to the built- in map(), but it's not quite. When the function to be applied takes just one argument, both map()s behav

[issue1759169] clean up Solaris port and allow C99 extension modules

2009-05-02 Thread James Andrewartha
James Andrewartha added the comment: I'm jhbuilding GNOME on Solaris, and the attached patch fixes the problem for me, having compiled Python with it I can now compile dbus-python, pycairo and pyorbit against it. -- nosy: +trs80 ___ Python tr

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

2009-05-20 Thread James Broadhead
James Broadhead added the comment: Has there been any progress on this since January? It is causing/affecting: http://www.selenic.com/mercurial/bts/issue967 -- nosy: +jamesbroadhead ___ Python tracker <http://bugs.python.org/issue1424

[issue6107] Pipes fail to return subprocess output on Windows

2009-05-25 Thread Alex James
Changes by Alex James : -- components: IO, Windows nosy: ac.james severity: normal status: open title: Pipes fail to return subprocess output on Windows type: behavior versions: Python 2.6 ___ Python tracker <http://bugs.python.org/issue6

[issue6107] Subprocess.Popen output fails on Windows

2009-05-25 Thread Alex James
New submission from Alex James : When calling p=subprocess.Popen(findstr "string" filename, stdout=PIPE) both p.stdout.read() and p.communicate()[0] are returning None even when the shell process has output (ie string was found in filename). Further, redirecting stdout to a file wil

[issue6107] Subprocess.Popen output fails on Windows

2009-05-26 Thread Alex James
Alex James added the comment: >>> import subprocess >>> fileName = 'test_a5.py.out' >>> locator = 'step 5200 ' >>> p = subprocess.Popen('findstr /O /B /C:"' + locator + '" '+ fileName, stdout=subprocess.PI

[issue6107] Subprocess.Popen output fails on Windows

2009-05-26 Thread Alex James
Alex James added the comment: Um, nevermind. I completely missed cwd=os.path.split(sys.argv[0])[0] so the shell command wasn't operating in the same relative path as the script. And that never mattered on Unix because we always ran from commandline, not IDLE, so the shell inherite

[issue6134] 2to3 tests fail on Windows due to line endings

2009-05-27 Thread James Abbatiello
New submission from James Abbatiello : The tests for 2to3 currently fail on Windows. Data is read from a file in binary mode and then written to a temporary file in text mode which doubles up the carriage returns. Additionally, several files are missing the svn:eol-style property. The

[issue6147] multithreading.Pool.map() crashes Windows computer

2009-05-29 Thread Alex James
New submission from Alex James : When calling multithreading.Pool().map() to distribute computational load I've recently got system crashes. The attached minimalist script exhibits this issue. On a Windows Vista home premium sp1 running Python 2.6.2 on a dual-core laptop, the script

[issue6147] multithreading.Pool.map() crashes Windows computer

2009-05-31 Thread Alex James
Alex James added the comment: Ok Jesse, that did stop the bomb problem. Unfortunately the real code belongs in a scientific research distributable module that is called by another function in the module where both have been imported into the script that is run. So it isn't being call

[issue6197] test__locale fails with RADIXCHAR on Windows

2009-06-04 Thread James Abbatiello
New submission from James Abbatiello : regrtest.py test__locale fails with: test__locale test test__locale crashed -- : cannot import name RADIXCHAR 1 test failed: test__locale The attached patch backports the fix from issue5643 -- components: Tests, Windows files

[issue6198] test_float fails on Windows

2009-06-04 Thread James Abbatiello
New submission from James Abbatiello : test_float fails on Windows with: == FAIL: test_format_testfile (test.test_float.IEEEFormatTestCase) -- Traceback (most

[issue6199] test_unittest fails on Windows

2009-06-04 Thread James Abbatiello
New submission from James Abbatiello : test_unittest fails on Windows with: == FAIL: test_find_tests_with_package (test.test_unittest.TestDiscovery

[issue6201] test_winreg fails

2009-06-04 Thread James Abbatiello
New submission from James Abbatiello : test_winreg fails with: == ERROR: testLocalMachineRegistryWorks (test.test_winreg.WinregTests) -- Traceback (most recent

[issue6227] doctest_aliases doesn't test duplicate removal

2009-06-06 Thread James Abbatiello
New submission from James Abbatiello : The file Lib/test/doctest_aliases.py is used by test_doctest to check the handling of duplicate removal. The "g = f" line in this file is one indent too far to the right so instead of creating an alias for f called g it is just unreachable code i

[issue6250] Python compiles dead code

2009-06-09 Thread James Abbatiello
New submission from James Abbatiello : Python currently emits bytecode for code that is unreachable (e.g. following a return statement). This doesn't hurt anything but it takes up space doing nothing. This patch attempts to avoid generating any bytecode in this situation. There's a

[issue6250] Python compiles dead code

2009-06-15 Thread James Abbatiello
James Abbatiello added the comment: I should add that the patch doesn't only address dead user-code. It also eliminates code that the compiler generates itself but that would be unreachable at runtime. Consider the following function: def foo(x): if x: raise Something else:

[issue6250] Python compiles dead code

2009-06-15 Thread James Abbatiello
James Abbatiello added the comment: Raymond, I've updated peephole.c to allow code to terminate with any of RETURN_VALUE, END_FINALLY or RAISE_VARARGS [0-3]. I also added tests to test_peepholer.py to make sure the peepholer still works in these

[issue6290] cPickle can misread data type

2009-06-15 Thread Alex James
New submission from Alex James : When using cPickle to pickle / unpickle an object instance whose __dict__ contains a dictionary of NumPy Arrays (on a windows32 system), some of the array elements have the wrong type raising a ValueError: could not convert string to float. On UNIX platform

[issue6290] cPickle can misread data type

2009-06-22 Thread Alex James
Alex James added the comment: I have now pinpointed the error to a list of infinities (see attached). When using pickle.py to read the cPickle'd data we get a different, and more, informative error: ValueError: invalid literal for float(): 1.#INF -- Added file: http://bugs.pytho

[issue6290] cPickle can misread data type

2009-06-23 Thread Alex James
Alex James added the comment: Your test prints: '(1p1\nF1.#INF\naF-1.#INF\naF-1.IND\na.' [inf, -inf, nan] My installation is Python 2.6.2 as currently distributed. Specifying protocol 1 or 2 does circumvent the error. Thank you. -- components: +Documentation, Extensi

[issue6290] cPickle can misread data type

2009-06-23 Thread Alex James
Changes by Alex James : -- components: +Library (Lib) -Documentation, Extension Modules, Windows ___ Python tracker <http://bugs.python.org/issue6290> ___ ___

[issue6358] os.popen exit code inconsistent

2009-06-28 Thread James Abbatiello
New submission from James Abbatiello : Start a process with os.popen() and then try to get its exit code by closing the resulting file handle. The value returned is inconsistent between 2.x and 3.x. Example: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32

<    1   2   3   4   5   6   >