[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as universal

2011-05-06 Thread James Tatum
Changes by James Tatum jta...@gmail.com: -- nosy: +James.Tatum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11623 ___ ___ Python-bugs-list

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-04 Thread James Hutchison
James Hutchison jamesghutchi...@gmail.com added the comment: Yes and no, I can give you a single process single child example that just shows that python 3.2 uses binary output while python 3.1 used system default when piping, but trying to reproduce the multiprocessing output inconsistencies

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-03 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: In windows, 64-bit, python *mostly* writes only a \n to stdout even though it's mode is 'w'. However it sometimes writes a \r\n on certain print statements and erratically when I have multiple processes writing to stdout. Output

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-03 Thread James Hutchison
James Hutchison jamesghutchi...@gmail.com added the comment: Sorry there isn't more info but I'm really busy right now In fact a workaround would be appreciated if known. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11990

[issue11990] redirected output - stdout writes newline as \n in windows

2011-05-03 Thread James Hutchison
James Hutchison jamesghutchi...@gmail.com added the comment: Nevermind, I have a workaround that didn't require rewriting all the print statements but its in the C# code not the python code -- ___ Python tracker rep...@bugs.python.org http

[issue11652] urlib{, 2} returns a pair of integers as the content-length value

2011-04-05 Thread James Whisnant
James Whisnant jwhisn...@gmail.com added the comment: Varnish on the sourceforge server has been upgraded and/or reconfigured (yesterday) to fix the issue that was happening with this file (and others). Just an FYI that you will no longer be able to re-create the triggering error. 'content

[issue11122] bdist_rpm fails

2011-02-05 Thread James
James purplei...@gmail.com added the comment: I'll write a docs and script patch for this next week... I'm happy to do the work, Thanks for the comments. James -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11122

[issue11122] bdist_rpm fails

2011-02-04 Thread James
New submission from James purplei...@gmail.com: Hi distutils, When I run: ./setup.py bdist --formats=rpm on my source directory, I get the error: rpm -ba --define _topdir /home/james/code/scantran/build/bdist.linux-x86_64/rpm --clean build/bdist.linux-x86_64/rpm/SPECS/scantran.spec -ba

[issue11122] bdist_rpm fails

2011-02-04 Thread James
James purplei...@gmail.com added the comment: In the source for distutils it seems to attempt to use 'rpmbuild' if it exists, but otherwise falls back on regular 'rpm', however in my rpm: $ rpm --version RPM version 4.8.1 this fails as there is no -ba option. James

[issue2650] re.escape should not escape underscore

2011-01-13 Thread James Y Knight
James Y Knight f...@users.sourceforge.net added the comment: Show your speed test? Looks 2.5x faster to me. But I'm running this on python 2.6, so I guess it's possible that the re module's speed was decimated in Py3k. python -m timeit -s $(printf import re\ndef escape(s):\n return re.sub

[issue2650] re.escape should not escape underscore

2011-01-13 Thread James Y Knight
James Y Knight f...@users.sourceforge.net added the comment: Right you are, it seems that python's regexp implementation is terribly slow when doing replacements with a substitution in them. (fixing the broken test, as you pointed out changed the timing to 97.6 usec vs the in-error-reported

[issue10890] IDLE Freezing

2011-01-11 Thread James
New submission from James jamgoo...@gmail.com: Recently installed Python 2.7.1 on my MacBook running OS X 10.6.6 and have not been able to use IDLE without it freezing. When I force quit it doesn't show that it's not responding. I can run scripts fine, but if I were to try to copy-paste

[issue2650] re.escape should not escape underscore

2011-01-07 Thread James Y Knight
James Y Knight f...@users.sourceforge.net added the comment: I just ran into the impl of escape after being surprised that '/' was being escaped, and then was completely amazed that it wasn't just implemented as a one-line re.subn. Come on, a loop for string replacement

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-03 Thread James Eric Pruitt
James Eric Pruitt eric.pru...@gmail.com added the comment: Also, why is the result put in parens? Without them, something like 'eval(100 * + repr(imaginary))' would not work properly. -- nosy: +ericpruitt ___ Python tracker rep...@bugs.python.org

[issue1731717] race condition in subprocess module

2010-11-27 Thread James Lamanna
James Lamanna jlama...@gmail.com added the comment: stubbing out subprocess._cleanup does not work around the problem from this example on 2.6.5: import subprocess, signal subprocess._cleanup = lambda: None signal.signal(signal.SIGCLD, signal.SIG_IGN) subprocess.Popen(['echo','foo']).wait

[issue10376] ZipFile unzip is unbuffered

2010-11-09 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: The Unzip module is always unbuffered (tested v.3.1.2 Windows XP, 32-bit). This means that if one has to do many small reads it is a lot slower than reading a chunk of data to a buffer and then reading from that buffer. It seems

[issue10376] ZipFile unzip is unbuffered

2010-11-09 Thread James Hutchison
James Hutchison jamesghutchi...@gmail.com added the comment: I should clarify that this is the zipfile constructor I am using: zipfile.ZipFile(filename, mode='r', allowZip64=True); -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue10332] Multiprocessing maxtasksperchild results in hang

2010-11-05 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: v.3.2a3 If the maxtasksperchild argument is used, the program will just hang after whatever that value is rather than working as expected. Tested in Windows XP 32-bit test code: import multiprocessing def f(x): return 0

[issue10150] Local references not released after exception

2010-10-19 Thread James Bowman
New submission from James Bowman bowmana...@gmail.com: import sys def foo(): x = [o] * 100 raise ArithmeticError o = something print sys.getrefcount(o) try: foo() except ArithmeticError: pass print sys.getrefcount(o) --- Gives: 4 104

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-23 Thread James Hutchison
James Hutchison jamesghutchi...@gmail.com added the comment: Is there a way to get this so it behaves more intuitively? You'd think adding a managed list to a managed dictionary (or another managed list) or making a deep copy would work but it still doesn't. When you get an item from a managed

[issue9847] Binary strings never compare equal to raw/normal strings

2010-09-13 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: Tested on Python 3.1.2 Windows XP 32-bit Binary strings (such as what is returned by filereader.readline()) are never equal to raw or normal strings, even when both strings are empty if(b == ): print(Strings are equal

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-08 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: tested python 3.1.2 Man = multiprocessing.Manager(); d = man.dict(); d['l'] = list(); d['l'].append(hey); print(d['l']); [] using debugger reveals a KeyError. Extend also does not work. Only thing that works is += which means you

[issue9803] IDLE closes with save while breakpoint open

2010-09-08 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: I have multiple versions of python - 2.6.1 and 3.1.2. 2.6.1 is the primary install (i.e., right click on a file and edit with IDLE brings up 2.6), and was installed first. This issue occurs on 3.1.2, Windows XP 32-bit If I

[issue7501] python -m unittest path_to_suite_function errors

2010-08-20 Thread James Westby
James Westby jw+deb...@jameswestby.net added the comment: Hi, I think this was misdiagnosed: from unittest.py in 2.6, loadTestFromName: elif hasattr(obj, '__call__'): test = obj() if isinstance(test, TestSuite): return test elif

[issue6786] readline and zero based indexing

2010-08-09 Thread James
James purplei...@gmail.com added the comment: I'd be writing a patch which would allow a programmer the option to explicitly use/instantiate the library in a zero-based way. This way throughout their particular program, the indexing of elements could be consistent. Not having this causes you

[issue6786] readline and zero based indexing

2010-08-04 Thread James
James purplei...@gmail.com added the comment: It's an incompatible change; it would definitely break my code, however I think it should be wishlisted for an API-break release like 3.5 or 4.0 or something like that. IMHO, the bindings should be pythonic, even if the underlying library isn't

[issue1303434] Please include pdb with windows distribution

2010-08-03 Thread James Lee
James Lee j...@jbit.net added the comment: Attached is a simple patch against msi.py from the py3k branch. It generates a .zip file containing all the PDB files (minus a select few) in the PCbuild directory. I imagine most people only want python31.pdb, but it is very frustrating when you

[issue1195571] simple callback system for Py_FatalError

2010-08-02 Thread James William Pye
James William Pye x...@jwp.name added the comment: Would it be possible to require the embedding application to define the Py_FatalError symbol? Admittedly, it would be nice to not have the callback installation code. =\ -- ___ Python tracker rep

[issue1195571] simple callback system for Py_FatalError

2010-08-02 Thread James William Pye
James William Pye x...@jwp.name added the comment: I guess it seemed so unlikely that (C) extensions should be installing the callback that installation should be restricted pre-Py_Initialize(); the area completely controlled by the embedding app. However, I have no strong attachment

[issue1195571] simple callback system for Py_FatalError

2010-08-02 Thread James William Pye
Changes by James William Pye jw...@users.sourceforge.net: -- nosy: -jwpye ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1195571 ___ ___ Python

[issue1303434] Please include pdb with windows distribution

2010-08-01 Thread James Lee
James Lee j...@jbit.net added the comment: Right now if you have any moderately complex Python based application (or extension set) the only way to easily debug it on windows is by building Python yourself, which is a horrible solution since it means you may end up with a subtly different

[issue1303434] Please include pdb with windows distribution

2010-08-01 Thread James Lee
James Lee j...@jbit.net added the comment: Ah, sorry, I see what you mean now... I thought the request for patch was to modify the installer itself, but it meant just make the msi.py script generate a separate zip file alongside the .msi installer. I'll take a look at providing a patch

[issue5154] OSX broken poll testing doesn't work

2010-07-29 Thread James Y Knight
James Y Knight f...@users.sourceforge.net added the comment: The reason it's a problem is because a device is everything other than a socket, pipe, slave-side of tty, or file. That is, /dev/null, /dev/zero, /dev/tty, psuedo-tty masters from openpty (e.g. for running subprocesses), etc. I find

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
New submission from James Tatum jta...@gmail.com: ConfigParser defines a number of exception classes which all ultimately derive from ConfigParser.Error. ConfigParser.Error, however, only derives from Exception. These should all derive from StandardError. -- components: Library (Lib

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum jta...@gmail.com: Removed file: http://bugs.python.org/file18237/ConfigParser.StandardError.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9406

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum jta...@gmail.com: Added file: http://bugs.python.org/file18238/ConfigParser.StandardError.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9406

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum jta...@gmail.com: Removed file: http://bugs.python.org/file18238/ConfigParser.StandardError.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9406

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum jta...@gmail.com: Added file: http://bugs.python.org/file18239/ConfigParser.StandardError.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9406

[issue9243] sndhdr erroneously detects files as vox

2010-07-13 Thread James Lee
New submission from James Lee j...@jbit.net: http://svn.python.org/view/python/branches/py3k/Lib/sndhdr.py?r1=56957r2=56987 seems to have broken sndhdr as it incorrectly detects files as voc (all that time ago and nobody has noticed...): [j...@miku]~$ xxd test.wav | head -n 1 000: 5249

[issue9243] sndhdr erroneously detects files as vox

2010-07-13 Thread James Lee
James Lee j...@jbit.net added the comment: Thanks for the update... The link was actually just a diff to previous of the changelist that caused the problem (r56987), sorry for the confusion. :) Attached is a quick and dirty unittest complete with some test files. It only tests the format

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-15 Thread James Teh
Changes by James Teh ja...@nvaccess.org: -- nosy: +jteh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8959 ___ ___ Python-bugs-list mailing list

[issue8955] import doesn't notice changes to working directory

2010-06-09 Thread James
New submission from James purplei...@gmail.com: Attempting to change the working directory and then import based on that change has no effect. Import seems impossible. Attached is tarball example. As seen below, bar1.py can import foo from src, however bar2.py bar3.py and bar4.py cannot

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
New submission from James Morgan jmorg1...@gmail.com: Hi, For some reason I have recently lost the ability to open IDLE for python 2.6.2. I was able to open it for 2.5 without issue. I reinstalled 2.6.2 several times, removed 2.5, tried 2.6.5 instead, still cannot load IDLE. I can load

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
James Morgan jmorg1...@gmail.com added the comment: Thanks for the reply. I have used idle before on this system without issue, and since 2.5 worked I figured there was some difference between 2.5 and 2.6 which was causing the issue. I have found since that the issue is likely not with idle

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
James Morgan jmorg1...@gmail.com added the comment: Sorry, I guess I misunderstood the function as I saw some issues which appeared similar in style to my own. Never mind this then I will seek help elsewhere. Thankyou. -- ___ Python tracker rep

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
Changes by James Morgan jmorg1...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8723 ___ ___ Python-bugs-list

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2010-04-13 Thread James Cooper
Changes by James Cooper james.coo...@solidodesign.com: -- nosy: +jamescooper ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1856 ___ ___ Python

[issue6142] Distutils doesn't remove .pyc files

2010-04-08 Thread James
James purplei...@gmail.com added the comment: i'm fine with that and willing to contribute patches, however i would feel better if whoever upstream was, was more supportive of the idea. someone let me know. a thought: - it's true (as mentioned) that distclean isn't necessarily directly related

[issue7912] Error in additon of decimal numbers

2010-02-11 Thread James Sparenberg
New submission from James Sparenberg linuxre...@gmail.com: Python produces rounding errors when adding decimals. ython 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. 13.04 + 158.00 171.03 13 +158 171

[issue7537] test_format

2009-12-17 Thread James G. sack (jim)
New submission from James G. sack (jim) jgs...@users.sourceforge.net: With -r 76870, on Fedora 11, amd x80_64, regrtest of test_format fails when the -j option is combined with the -v option. It happens whether testing everything or just the one test. ./python -Ebb Lib/test/regrtest -j3

[issue7108] test_commands.py failing on OS X 10.5.7 due to '@' in ls output

2009-12-16 Thread James G. sack (jim)
James G. sack (jim) jgs...@users.sourceforge.net added the comment: test_commands test_getstatus also fails on linux with SELinux enabled On gnu/linux, info ls reports: Following the file mode bits is a single character that specifies whether an alternate access method

[issue6922] Interpreter hangs up while trying to decode invalid utf32 stream.

2009-12-15 Thread James G. sack (jim)
James G. sack (jim) jgs...@users.sourceforge.net added the comment: It seems that on my Fedora 11 AMD X86_64, the problem still exists. In test_codecs.UTF32Test, test_handlers() seems to run forever, gobbling memory to 99+% and then activating swap until it fills up swap. tested by svn up

[issue6922] Interpreter hangs up while trying to decode invalid utf32 stream.

2009-12-15 Thread James G. sack (jim)
James G. sack (jim) jgs...@users.sourceforge.net added the comment: Clarification of my last message (msg96468): The test_handler in the current revision (76850) also exhibits the same memory-gobbling behavior. I only refered to -r 74869 because that's where the test was introduced

[issue7205] bz2file deadlock

2009-12-15 Thread James G. sack (jim)
James G. sack (jim) jgs...@users.sourceforge.net added the comment: On my Fedora 11 AMD x86_64 system, it appears the deadlock still occurs (up to the limit of my patience, ie: several minutes). If I reduce to say 3, I can get the test to succeed sometimes. Observed in: trunk -r 76850

[issue7396] regrtest single: iterator not subscriptable

2009-12-15 Thread James G. sack (jim)
James G. sack (jim) jgs...@users.sourceforge.net added the comment: Thanks, it seems to work now. My test method uses the command format ./python -Ebb Lib/test/regrtest.py -s test_calendar Sorry for the delayed response, I discovered problems with test_bz2 test_codecs which I wanted

[issue7396] regrtest single: iterator not subscriptable

2009-12-15 Thread James G. sack (jim)
James G. sack (jim) jgs...@users.sourceforge.net added the comment: Update: I was doing something wrong and getting false failures. I forgot to do ./configure and make after major revision-switches so the failures I was seeing in bz2 and codecs (and others, :-[ ) was bogus. Repeating

[issue7205] bz2file deadlock

2009-12-15 Thread James G. sack (jim)
James G. sack (jim) jgs...@users.sourceforge.net added the comment: IMPORTANT Correction: Please disregard msg96472. I was forgetting to do .configure and make, and evidently getting bogus failures. test_bz2 works fine now, ..sorry for the false alarm. ~jim

[issue6922] Interpreter hangs up while trying to decode invalid utf32 stream.

2009-12-15 Thread James G. sack (jim)
James G. sack (jim) jgs...@users.sourceforge.net added the comment: IMPORTANT Correction: Please disregard msg 96468 96470. I was forgetting to do ./configure and make, and evidently getting bogus failures. test_codecs works fine now, ..sorry for the false alarm. ~jim

[issue7396] regrtest single: iterator not subscriptable

2009-11-25 Thread James G. sack (jim)
New submission from James G. sack (jim) jgs...@users.sourceforge.net: file Lib/tests/regrtest.py Evidently rev 76260 (trunk) / 76261 (py3k) broke code at rev 76324 line 655 (py3k) rev 76321 line 620 (trunk) which is if tests[0] == alltests[i] because tests was rebound from a list

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

2009-11-19 Thread James Lingard
New submission from James Lingard j...@aristanetworks.com: 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

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

2009-11-19 Thread James Lingard
New submission from James Lingard j...@aristanetworks.com: 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 always

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

2009-11-19 Thread James Henstridge
New submission from James Henstridge ja...@jamesh.id.au: 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

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

2009-11-19 Thread James Henstridge
James Henstridge ja...@jamesh.id.au 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

[issue7315] os.path.normpath doesn't normalize ../path/something.py

2009-11-13 Thread James
New submission from James purplei...@gmail.com: os.path.normpath doesn't normalize paths that start with ../ you would expect the final output line in the secpnd run to read: normpath: badnormpath.py instead of: normpath: ../tmp/badnormpath.py example: ja...@home:~$ cd tmp/ ja...@home:~/tmp

[issue7315] os.path.normpath doesn't normalize ../path/something.py

2009-11-13 Thread James
James purplei...@gmail.com added the comment: i looked at the source for normpath. i know that it doesn't look at the filesystem. assuming you're not currently sitting at the root directory, in all? cases ../xyz brings you back to where you started. we expect normpath to clean up a path string

[issue6872] Support system readline on OS X 10.6

2009-09-10 Thread James
James purplei...@gmail.com added the comment: it seems to me, that any and all readline interfaces should/could standardize to the indexing scheme as used by the language; maybe i'm wrong, but since python is zero based, so could the readline interfaces. it's definitely more logical

[issue6786] readline and zero based indexing

2009-09-10 Thread James
James purplei...@gmail.com added the comment: @mark: thanks for the comment; i suppose we should investigate why and if c readline is 1 based... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6786

[issue6786] readline and zero based indexing

2009-09-10 Thread James
James purplei...@gmail.com added the comment: i found this: http://tiswww.case.edu/php/chet/readline/history.html search for: Variable: int history_base perhaps we can set this to 0 in the python bindings. more so, perhaps someone is using 1 because they made a mistake

[issue6786] readline and zero based indexing

2009-08-26 Thread James
New submission from James purplei...@gmail.com: why is it that the zeroth readline history item is seemingly always none. I would expect this to support zero-based indexing in python, but perhaps I have missed some detail in readline somewhere. Cheers, _J ja...@work:~$ python Python 2.5.2

[issue6633] No handlers could be found for logger

2009-08-05 Thread James
James purplei...@gmail.com added the comment: very well, i didn't notice the http://docs.python.org/library/logging.html#configuring-logging-for-a-library and i thank you for your time and efforts! cheers, _J -- ___ Python tracker rep

[issue6633] No handlers could be found for logger

2009-08-03 Thread James
New submission from James purplei...@gmail.com: I was trying to suppress the error message as shown in the title, when I found out (by searching through the source) that there is a NullHandler for precisely this purpose. http://svn.python.org/view/python/trunk/Lib/logging/__init__.py?r1=66211r2

[issue6608] asctime causing python to crash

2009-08-02 Thread James Abbatiello
James Abbatiello abb...@gmail.com 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 think

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

2009-07-31 Thread James Abbatiello
James Abbatiello abb...@gmail.com 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

[issue6608] asctime causing python to crash

2009-07-31 Thread James Abbatiello
James Abbatiello abb...@gmail.com 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

[issue6599] 2to3 test_print_function_option fails on Windows

2009-07-29 Thread James Abbatiello
New submission from James Abbatiello abb...@gmail.com: 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) ... snip\2to3\lib2to3\refactor.py:194: DeprecationWarning

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

2009-07-29 Thread James Abbatiello
James Abbatiello abb...@gmail.com 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

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

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

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-07-04 Thread James William Pye
James William Pye x...@jwp.name added the comment: Seeing this in 3.1 when I try to compile with mingw32 under wine: error: Unable to find vcvarsall.bat --compiler=mingw32 works in 3.0. I assume it's related to this bug? -- nosy: +jwp versions: +Python 3.1

[issue6358] os.popen exit code inconsistent

2009-06-28 Thread James Abbatiello
New submission from James Abbatiello abb...@gmail.com: 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

[issue6290] cPickle can misread data type

2009-06-23 Thread Alex James
Alex James ac.ja...@shaw.ca 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

[issue6290] cPickle can misread data type

2009-06-23 Thread Alex James
Changes by Alex James ac.ja...@shaw.ca: -- components: +Library (Lib) -Documentation, Extension Modules, Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6290

[issue6290] cPickle can misread data type

2009-06-22 Thread Alex James
Alex James ac.ja...@shaw.ca 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

[issue6205] sdist doesn't include data_files

2009-06-15 Thread James
James purplei...@gmail.com added the comment: great, thanks for the info. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6205 ___ ___ Python

[issue6250] Python compiles dead code

2009-06-15 Thread James Abbatiello
James Abbatiello abb...@gmail.com 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 cases

[issue6290] cPickle can misread data type

2009-06-15 Thread Alex James
New submission from Alex James ac.ja...@shaw.ca: 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

[issue6260] os.utime should allow None values for ATIME or MTIME

2009-06-12 Thread James
James purplei...@gmail.com added the comment: very well, this is a good point. i'm guessing nobody would every accept a patch for upstream utime? (in c) thanks for your comment. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue1191964] asynchronous Subprocess

2009-06-12 Thread James Eric Pruitt
James Eric Pruitt eric.pru...@gmail.com added the comment: Hello, I am working on this patch and some additional features for my Google Summer of Code project (subdev.blogspot.com) and will eventually attempt to get the code committed to Python 3.1 or 3.2 and Python 2.7. I will have the unit

[issue6260] os.utime should allow None values for ATIME or MTIME

2009-06-10 Thread James
New submission from James purplei...@gmail.com: Hi, in using os.utime, it's nice that you can specify `None' for the second argument. However it would be even `nicer' to be able to specify None for either (or potentially both) values for the argument in the tuple. to emulate this, i've been

[issue6250] Python compiles dead code

2009-06-09 Thread James Abbatiello
New submission from James Abbatiello abb...@gmail.com: 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

[issue6227] doctest_aliases doesn't test duplicate removal

2009-06-06 Thread James Abbatiello
New submission from James Abbatiello abb...@gmail.com: 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

[issue6199] test_unittest fails on Windows

2009-06-05 Thread James Abbatiello
New submission from James Abbatiello abb...@gmail.com: test_unittest fails on Windows with: == FAIL: test_find_tests_with_package (test.test_unittest.TestDiscovery

[issue6201] test_winreg fails

2009-06-05 Thread James Abbatiello
New submission from James Abbatiello abb...@gmail.com: test_winreg fails with: == ERROR: testLocalMachineRegistryWorks (test.test_winreg.WinregTests

[issue6205] sdist doesn't include data_files

2009-06-05 Thread James
New submission from James purplei...@gmail.com: Hi, I have shown the output from my terminal below, since it will be easier to follow for explaining the bug. ja...@computer:~/testsetup$ ls helloworld2.py image1.jpg setup.py ja...@computer:~/testsetup$ cat setup.py #!/usr/bin/python import

[issue6197] test__locale fails with RADIXCHAR on Windows

2009-06-04 Thread James Abbatiello
New submission from James Abbatiello abb...@gmail.com: regrtest.py test__locale fails with: test__locale test test__locale crashed -- type 'exceptions.ImportError': cannot import name RADIXCHAR 1 test failed: test__locale The attached patch backports the fix from issue5643

[issue6198] test_float fails on Windows

2009-06-04 Thread James Abbatiello
New submission from James Abbatiello abb...@gmail.com: test_float fails on Windows with: == FAIL: test_format_testfile (test.test_float.IEEEFormatTestCase

[issue6142] Distutils doesn't remove .pyc files

2009-06-02 Thread James
James purplei...@gmail.com added the comment: Currently, I have (had) a make file with a clean target that would remove these files. Would you recommend keeping this file and it's associated functionality, or is the idea to be able to integrate this into distutils and be able to do away

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James purplei...@gmail.com added the comment: Hi, the patch only removes them if one adds the --pyc option. I think it is a good idea to have some option or target somewhere to remove the types of files that can be regenerated because often developers want to get them out of the way. Example

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James purplei...@gmail.com added the comment: I could agree with R. David Murray, and I think that it's fine that this be included under a dist clean command. Ultimately I'm writing an application and I'm trying to use distutils with it. I'll potentially run a: $ setup.py build_ext -i

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James purplei...@gmail.com added the comment: ps: included is a platform independent version of the code, so that it doesn't depend on os.system() specific commands. HTH, _J -- Added file: http://bugs.python.org/file14146/clean.py.patch ___ Python

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James purplei...@gmail.com added the comment: Antoine: Okay sorry not a mess then. I just figure that if i'm using the distutils tool for doing all the fun things to my local source directory that I potentially used to do with say a makefile, then would it not be beneficial to have a useful

<    1   2   3   4   5   6   >