[issue8384] Distutils C extension build with MinGW on Windows fails

2010-04-14 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8384] Distutils C extension build with MinGW on Windows fails

2010-04-14 Thread Tarek Ziadé
Tarek Ziadé added the comment: Ok thanks for you test. If it can't get the ld version I'll display this message: "could not detect the ld version. Make sure MinGW is installed and its bin directory is in the path" I'll do this for 2.7/3.2 -- priority: -> low type: crash -> behavior

[issue1083299] Distutils doesn't pick up all the files it should.

2010-04-14 Thread Éric Araujo
Éric Araujo added the comment: Hello. (If this comes out of the blue, since the bug was opened years ago, read http://bugs.python.org/issue1083299.) Akira is right about “depends”. Regarding “data_files”, if they’re not picked up it’s a bug. Mike, can you still reproduce it with current Pyth

[issue5341] A selection of spelling errors and typos throughout source

2010-04-14 Thread Georg Brandl
Georg Brandl added the comment: OK, fixed the two typos in r80067, r80068. Please open a new issue for further fixes, this one gets a bit confusing :) -- ___ Python tracker ___

[issue8394] ctypes.dlopen() doesn't support surrogates

2010-04-14 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: PyUnicode_FSConverter returns bytes and bytearray objects unchanged; otherwise it always return bytes. Your patch should handle the case when name2 is a bytearray. -- nosy: +amaury.forgeotdarc ___ Python trac

[issue5341] A selection of spelling errors and typos throughout source

2010-04-14 Thread Éric Araujo
Éric Araujo added the comment: Raymond didn’t want the quote characters changed, sorry if I failed to channel him. I’ll port the “builtin” typo fixes to the other branches and let this report closed. Thanks for the guidance. -- ___ Python tracker

[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-04-14 Thread Michael Foord
Changes by Michael Foord : -- assignee: cjerdonek -> michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue8396] tarfile.open does fails with UnicodeDecodeError if parent dir is unicode

2010-04-14 Thread Parth Malwankar
New submission from Parth Malwankar : If any directory higher up in the hierarchy contains unicode chars, tarfile.open fails with UnicodeDecodeError. Attached script reproduces this error. [tmp]% python tarfilefail.py Traceback (most recent call last): File "tarfilefail.py", line 9, in

[issue8396] tarfile.open does fails with UnicodeDecodeError if parent dir is unicode

2010-04-14 Thread STINNER Victor
STINNER Victor added the comment: It looks like tarfile doesn't support unicode filenames. You should try to encode your input filename to the file system default encoding (sys.getfilesystemencoding()), or avoid using unicode for tar filenames. -- nosy: +haypo ___

[issue8396] tarfile.open does fails with UnicodeDecodeError if parent dir is unicode

2010-04-14 Thread STINNER Victor
STINNER Victor added the comment: I proposed a workaround, the real bug is that os.path.abspath() doesn't support unicode... And this bug was already fixed 7 weeks ago by r78247 (issue #3426). http://svn.python.org/view/python/trunk/Lib/posixpath.py?r1=78247&r2=78246&pathrev=78247 Python 2.6.5

[issue8389] Incomprehensible import error

2010-04-14 Thread R. David Murray
Changes by R. David Murray : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue8395] shutil.copytree() add a copy_func parameter.

2010-04-14 Thread R. David Murray
Changes by R. David Murray : -- nosy: +tarek priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8395] shutil.copytree() add a copy_func parameter.

2010-04-14 Thread Tarek Ziadé
Tarek Ziadé added the comment: Have you seen the ignore option ? You can use it to filter out some files. See the doc and the examples in docs.python.org -- assignee: -> tarek ___ Python tracker

[issue8395] shutil.copytree() add a copy_func parameter.

2010-04-14 Thread Ray.Allen
Ray.Allen added the comment: Thanks for your help! I see the 'ignore' parameter, but I need not just ignore some file, but also treat some file totally differently, for example, changing file name, or replace some text in the destination file. --

[issue2028] _fmode = O_TEXT is obsolete

2010-04-14 Thread anatoly techtonik
anatoly techtonik added the comment: Why Guido can't speak for py3k here in personal? I've just wasted two days debugging this O_BINARY flag when HgGit stopped to work on windows. https://bugs.edge.launchpad.net/dulwich/+bug/557585 We need at least document this for os.open() properly. --

[issue8389] Incomprehensible import error

2010-04-14 Thread Ray.Allen
Ray.Allen added the comment: The 'as' trigger some more instructions after import, not just renaming the loaded file name, to be specific in your example is, load attribute 'b' from 'a', and then load attribute 'c' from 'b'. 'import a.b.t' do import a.b.t and then just store 'a' in local name

[issue8392] unit tests rather light on testing __import__(..., level)

2010-04-14 Thread Skip Montanaro
Skip Montanaro added the comment: The attached diff adds a PackageTest class which exercises both "from . import blah" and its __import__() equivalent. The diff is against the release26-maint branch but I suspect it will apply cleanly to trunk and probably py3k. -- keywords: +patch Add

[issue8392] unit tests rather light on testing __import__(..., level)

2010-04-14 Thread Skip Montanaro
Skip Montanaro added the comment: Unassigning so someone else can pick it up and review to see if this makes sense. -- assignee: skip.montanaro -> ___ Python tracker ___ ___

[issue8397] BZ2File doesn't protect against mixed iterator and read usage

2010-04-14 Thread Alex Stapleton
New submission from Alex Stapleton : Normal files throw exceptions if you mix methods. >>> f = open("words") >>> for l in f: ... break ... >>> f.tell() 8192L >>> f.readline() Traceback (most recent call last): File "", line 1, in ValueError: Mixing iteration and read methods would lose d

[issue8398] Modules with a dot in the filename don't load

2010-04-14 Thread marco stamazza
New submission from marco stamazza : On my windows Xp system running Python 2.6 (from the (x,y) package) I tried to load a module named "GetMy.com_MOD.py". I kept receiving the error Traceback (most recent call last): File "D:\Docs\Futures-Strategy\StCHF\Test\GetMy.com_2.py", line 6, in

[issue8399] Document os.open

2010-04-14 Thread anatoly techtonik
New submission from anatoly techtonik : Need to document the that os.O_BINARY flag is obligatory for cross-platform behavior of os.open() on Windows. By default os.open() opens file as binary on Unix, but as text on Windows. See also issue2028 for discussion of making os.O_BINARY default on p

[issue8398] Modules with a dot in the filename don't load

2010-04-14 Thread Ezio Melotti
Ezio Melotti added the comment: If you do "import GetMy.com_MOD" Python will search for the module named "com_MOD" in the package "GetMy". The name of the module should be a valid Python identifier -- possibly all lowercase (see PEP8). GetMy.com_MOD is not a valid identifier, so you wouldn't

[issue8399] Document os.open

2010-04-14 Thread anatoly techtonik
anatoly techtonik added the comment: s/ can / can't / -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8399] Document os.open

2010-04-14 Thread Georg Brandl
Georg Brandl added the comment: Since there is no distinction between text and binary mode on Unix, you shouldn't claim the behavior is not consistent - you get text mode. You need O_BINARY on Windows to get binary mode. O_BINARY is already documented; I've added a better link to it from th

[issue8370] change module "builtins" to "__builtin__" in __import__ documentation

2010-04-14 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8400] zipimporter find_module fullname mis-documented

2010-04-14 Thread Karen Tracey
New submission from Karen Tracey : The fullname parameter to zipimporter find_module is documented to be a "fully qualified (dotted) module name". (From http://docs.python.org/library/zipimport.html#zipimport.zipimporter.find_module.) However, passing a fully-qualified dotted module appears to

[issue8401] Strange behavior of bytearray slice assignment

2010-04-14 Thread Eugene Kapun
New submission from Eugene Kapun : >>> a = bytearray() >>> a[:] = 0 # Is it a feature? >>> a bytearray(b'') >>> a[:] = 10 # If so, why not document it? >>> a bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') >>> a[:] = -1 Traceback (most recent call last): File "", line 1, in ValueError:

[issue7316] Add a timeout functionality to common locking operations

2010-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you! Checked in in r80071. -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue8401] Strange behavior of bytearray slice assignment

2010-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: It looks rather like a bug to me, and should be forbidden. -- nosy: +pitrou priority: -> normal stage: -> needs patch versions: +Python 2.6, Python 2.7, Python 3.2 ___ Python tracker

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-14 Thread Mark Dickinson
Mark Dickinson added the comment: Victor, that patch looks fine to me. Do you want to go ahead and apply it, and add the skip to test_execvpe_with_bad_program ? The fix should be backported to 3.1, but not to 2.x (I think), since we don't have a problem there, and arguably the new os.confstr

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-14 Thread Mark Dickinson
Mark Dickinson added the comment: And just for reference, http://www.python.org/dev/buildbot/builders/x86%20gentoo%203.x/builds/2192 shows that the relevant versions on this machine are: glibc 2.3.4 linuxthreads-0.10 and from http://www.python.org/dev/buildbot/builders/x86%20gentoo%203.x, i

[issue8401] Strange behavior of bytearray slice assignment

2010-04-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: pitrou: I agree, it should be a TypeError. -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-

[issue8399] Document os.open

2010-04-14 Thread anatoly techtonik
anatoly techtonik added the comment: On Unix all files are opened in binary mode. On Windows linefeeds are translated to CRLF corrupting files that are meant to be binary. This is the reason of HgGit failure - it uses Dulwich library that creates corrupted Git index file, because on Windows i

[issue5277] email message.get_params() and related methods sometimes fail.

2010-04-14 Thread R. David Murray
R. David Murray added the comment: Thanks Mark and Ryan for the patches, and Shashwat for the review. Committed to trunk in r80062, 2.6 in r80063, py3k in r80078, and 3.1 in r80079. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed

[issue8339] urlunparse(urlparse('x://')) now returns 'x:' instead of 'x://'

2010-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: It looks like any change for this specific case would make tests like handling anyscheme fail. I am less inclined to do that as opposed to handling this case for invalid url, I suggest this be handled at user end to fix the proper parsing and constructing

[issue8399] Document os.open

2010-04-14 Thread Georg Brandl
Georg Brandl added the comment: I've added a paragraph about O_BINARY in r80080. -- status: open -> closed ___ Python tracker ___ ___

[issue4356] Add "key" argument to "bisect" module functions

2010-04-14 Thread Brian Scearce
Brian Scearce added the comment: This was closed over a year ago, but since mark.dickinson was asking for convincing use-cases: I'm breaking up a file into line-delimited chunks. These chunks are non-overlapping, contiguous, and tend to be fairly large, so I'm just recording the start line o

[issue8389] Incomprehensible import error

2010-04-14 Thread Brett Cannon
Brett Cannon added the comment: First off, the 'as' clause is not influencing anything; simply try to assign ``t = a.b.t`` and you still get the error. Second, you are trying to reference a.b in a.b.c through your a.b.t import before a.b has finished importing. This is causing the import syst

[issue4356] Add "key" argument to "bisect" module functions

2010-04-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll take another look at this one. -- status: closed -> open ___ Python tracker ___ ___ Python-b

[issue7301] Add environment variable $PYTHONWARNINGS

2010-04-14 Thread Philip Jenvey
Philip Jenvey added the comment: py3k should be taken care of as of r80066+r80075 -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ _

[issue8392] unit tests rather light on testing __import__(..., level)

2010-04-14 Thread Éric Araujo
Éric Araujo added the comment: Adding Brett and Nick to nosy, per Misc/maintainers.rst (Disclaimer: I’m new to issue triaging, tell me if I do something wrong.) Regards -- keywords: +needs review nosy: +brett.cannon, merwok, ncoghlan type: -> behavior ___

[issue3854] Document sqlite3 vs. threads

2010-04-14 Thread Jakub Turski
Changes by Jakub Turski : -- nosy: +Jakub.Turski ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7316] Add a timeout functionality to common locking operations

2010-04-14 Thread Torsten Landschoff
Torsten Landschoff added the comment: While you are at it, you might want to submit the patch from http://bugs.python.org/issue850728 as well. It adds timeouts for semaphores. :) -- ___ Python tracker ___

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-14 Thread Georg Brandl
Georg Brandl added the comment: Committed a similar patch in r80081. Thanks very much! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue8392] unit tests rather light on testing __import__(..., level)

2010-04-14 Thread Nick Coghlan
Nick Coghlan added the comment: Yep, this is the right sort of thing to kick in our direction. There's a reasonable amount of implicit testing of import's level argument through the relative import tests in test_import and test_runpy, but some explicit tests of direct invocation can't hurt.

[issue8370] change module "builtins" to "__builtin__" in __import__ documentation

2010-04-14 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r80082. The builtins rename happened in 3.0; there are no "version added" or "version changed" marks for 3.0 in the docs, since we regard it as a "clean start". -- resolution: -> fixed status: open -> closed _

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-14 Thread Chris Rebert
Chris Rebert added the comment: This might need to be reopened. There's a verb missing from he following sentence of the patch: "This is consistent with the lookup of special methods that called on instances, only that in this case the instance is itself a class." Secondly, and more important

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-14 Thread Georg Brandl
Georg Brandl added the comment: Fixed the missing verb in r80084. I don't think the new special methods need to be mention in isinstance() or issubclass() docs; they are very rarely needed, and other builtins don't mention their special methods either (e.g. abs(), complex(), or getattr().)

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-04-14 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Some more remarks: - COND_TIMED_WAIT macro modifies timeout_result when pthread_cond_timewait expires. But timeout_result is not an int pointer, just an int. So it is never updated, and as a result, bfs_check_depleted is never set after a thread has

[issue4356] Add "key" argument to "bisect" module functions

2010-04-14 Thread Brian Scearce
Brian Scearce added the comment: For what it's worth, after I posted my comment, I realized I could use tuple comparison semantics: loc = bisect.bisect(mapping, (line,)) since my key happens to be at index 0. "key=" would still be nice. -- ___

[issue8326] Cannot import name SemLock on Ubuntu lucid

2010-04-14 Thread Matthias Klose
Matthias Klose added the comment: this was caused by r76567, introduction of the sem_open configure checks. The build machines building the binary packages for lucid use kernels from the last stable LTS release: ./a.out; echo $? sem_open: Function not implemented 1 $ uname -r 2.6.24-25-server

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-04-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I'm the one who recently added FTPS support to ftplib.py and wrote tests for both FTP and FTPS. I'm not the "maintaner" of the module but I'd like to be notified in case of issues about it, so would it make sense for me to appear in the list? -- n

[issue4356] Add "key" argument to "bisect" module functions

2010-04-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: What would you guys think about adding a class that uses bisect internally so that the keyfunc() never gets called more than once per key? This could be added to the docs as a cut-and-pastable recipe or it could be added to the module directly: sd = Sort

[issue8326] Cannot import name SemLock on Ubuntu lucid

2010-04-14 Thread R. David Murray
Changes by R. David Murray : -- nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8344] test_tag_configure fails on FreeBSD

2010-04-14 Thread Ezio Melotti
Ezio Melotti added the comment: The buildbot seems happy starting from build 486 [1], can this be closed? [1]: http://www.python.org/dev/buildbot/builders/x86%20FreeBSD%207.2%20trunk/builds/486 -- nosy: +ezio.melotti priority: -> normal resolution: -> fixed stage: -> commit review

[issue8402] glob returns empty list with "[" character in the folder name

2010-04-14 Thread george hu
New submission from george hu : Have this problem in python 2.5.4 under windows. I'm trying to return a list of files in a directory by using glob. It keeps returning a empty list until I tested/adjusted folder name by removing "[" character from it. Not sure if this is a bug. glob.glob("c:\a

[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-04-14 Thread ivank
New submission from ivank : If you run >>> dis.dis(lambda: 99**103) and press Ctrl-C immediately, you'll see the numbers without constant folding: 1 0 LOAD_CONST 1 (99) 3 LOAD_CONST 2 (103) 6 BINARY_POWER

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-14 Thread Timothy Fitz
Timothy Fitz added the comment: Does that mean you agree that the behavior is a bug? If we're agreed that the behavior is a bug, then it's just a matter of solving the implementation details. One suggestion is to compile in a __debug__ check at the top of every .pyo file, effectively prependi

[issue8402] glob returns empty list with "[" character in the folder name

2010-04-14 Thread Shashwat Anand
Shashwat Anand added the comment: When you do : glob.glob("c:\abc\afolderwith[test]\*") returns empty list It looks for all files in three directories: c:\abc\afolderwitht\* c:\abc\afolderwithe\* c:\abc\afolderwiths\* Ofcourse they do not exist so it returns empty list 06:35:05 l0nwlf-MBP:Desk

[issue8402] glob returns empty list with "[" character in the folder name

2010-04-14 Thread Eric Smith
Eric Smith added the comment: See the explanation at http://docs.python.org/library/fnmatch.html#module-fnmatch , which uses the same rules. -- nosy: +eric.smith resolution: -> invalid status: open -> closed ___ Python tracker

[issue8402] glob returns empty list with "[" character in the folder name

2010-04-14 Thread george hu
george hu added the comment: Ok, what if the name of the directory contains "[]" characters? What is the escape string for that? -- status: closed -> open ___ Python tracker ___

[issue8404] Set operations don't work for dictionary views

2010-04-14 Thread A.M. Kuchling
New submission from A.M. Kuchling : The examples of set operations in http://docs.python.org/dev/library/stdtypes#dictionary-view-objects don't work in the current 2.7 trunk: -> ./python.exe Python 2.7b1+ (trunk:80084:80085M, Apr 14 2010, 21:17:06) [GCC 4.0.1 (Apple Inc. build 5465)] on darwi

[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-04-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Probably due to the fact that the peepholer avoids constant folding when any exception happens. -- nosy: +benjamin.peterson priority: -> low ___ Python tracker ___

[issue8404] Set operations don't work for dictionary views

2010-04-14 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue8402] glob returns empty list with "[" character in the folder name

2010-04-14 Thread Eric Smith
Eric Smith added the comment: The documentation for fnmatch.translate, which is what ultimately gets called, says: There is no way to quote meta-characters. Sorry. If you want to see this changed, you could open a feature request. If you have a patch, that would help! You probably want to

[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-04-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Probably due to the fact that the peepholer > avoids constant folding when any exception happens. Yes. And that is a feature, not a bug. It would better though if the keyboard interrupt was not swallowed. -- assignee: -> rhettinger nosy: +rhet

[issue8404] Set operations don't work for dictionary views

2010-04-14 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8403] dis.dis gives different results if Ctrl-C is pressed

2010-04-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/4/14 Raymond Hettinger : > > Raymond Hettinger added the comment: > >> Probably due to the fact that the peepholer >> avoids constant folding when any exception happens. > > Yes.  And that is a feature, not a bug. > > It would better though if the keybo

[issue8402] glob returns empty list with "[" character in the folder name

2010-04-14 Thread Shashwat Anand
Shashwat Anand added the comment: glob module does not provide what you want. As a workaround you can try: os.listdir("c:\abc\afolderwith[test]") 07:02:52 l0nwlf-MBP:Desktop $ ls -R test\[123\]/ 1 2 3 >>> os.listdir('/Users/l0nwlf/Desktop/test[123]') ['1', '2', '3'] Changing type to 'Feature

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-14 Thread R. David Murray
R. David Murray added the comment: No, Brett said he thought it was not a bug. If Raymond disagrees, he'll say so. If I may attempt to channel Brett, I suspect his logic for closing it "won't fix" went more or less like this: "it might be theoretically possible to change this behavior, but

[issue8402] glob returns empty list with "

2010-04-14 Thread george hu
george hu added the comment: Well, the listdir doesn't support "wildcard", for example, listdir("*.app"). I know the glob is kind of unix shell style expanding, but my program is running under windows, it's my tiny script to walk through a huge directory in my NAS. And there are many directories

[issue8402] glob returns empty list with "

2010-04-14 Thread george hu
george hu added the comment: Well, the listdir doesn't support "wildcard", for example, listdir("*.app"). I know the glob is kind of unix shell style expanding, but my program is running under windows, it's my tiny script to walk through a huge directory in my NAS. And there are many director

[issue8402] glob returns empty list with "

2010-04-14 Thread Shashwat Anand
Shashwat Anand added the comment: You repeated the same comment twice and added an 'unnamed' file. I assume you did it by mistake. -- ___ Python tracker ___

[issue8402] glob returns empty list with "[" character in the folder name

2010-04-14 Thread Shashwat Anand
Changes by Shashwat Anand : -- title: glob returns empty list with " -> glob returns empty list with "[" character in the folder name ___ Python tracker ___ _

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-14 Thread Brett Cannon
Brett Cannon added the comment: On Wed, Apr 14, 2010 at 18:35, R. David Murray wrote: > > R. David Murray added the comment: > > No, Brett said he thought it was not a bug. If Raymond disagrees, he'll > say so. If I may attempt to channel Brett, I suspect his logic for closing > it "won't fi

[issue8404] Set operations don't work for dictionary views

2010-04-14 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: It is a bug. First, the dictviews_as_number is broken; the field for classic division was removed in 3.x, so everything is shifted by one. I included a patch to fix this. Unfortunately, this isn't enough to fix the issue. There seems to be some overly

[issue8404] Set operations don't work for dictionary views

2010-04-14 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti : -- keywords: +patch Added file: http://bugs.python.org/file16927/fix_dictviews_as_number.diff ___ Python tracker ___

[issue8402] glob returns empty list with "[" character in the folder name

2010-04-14 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file16925/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue6257] Idle terminates on source save while debugging

2010-04-14 Thread Jim Shaw
Jim Shaw added the comment: I am having the same problem with Windows Vista and Windows 7. -- components: +IDLE nosy: +JimShaw versions: +Python 3.1 -Python 3.0 ___ Python tracker __

[issue8405] Improve test_os._kill (failing on slow machines)

2010-04-14 Thread Brian Curtin
New submission from Brian Curtin : test_os._kill is used by test_kill_sigterm and test_kill_int and is failing on a slow Windows buildbot due to timing issues between the process starting and the signal being sent. I've checked in a few small time.sleep hacks in the meantime to see if that wou

[issue4356] Add "key" argument to "bisect" module functions

2010-04-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching a draft of a sorted collection class. Any comments? -- Added file: http://bugs.python.org/file16929/SortedCollection.py ___ Python tracker ___

[issue8406] Make some setup.py paths exclude-able

2010-04-14 Thread Skip Montanaro
New submission from Skip Montanaro : The topic of the vileness of Fink or MacPorts came up in python-dev when discussing building a Mac installer. I remembered that a couple /sw and /opt/local directories are searched unconditionally, making it a bit more challenging for someone to create a fram

[issue8344] test_tag_configure fails on FreeBSD

2010-04-14 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-04-14 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : Linux offers the signalfd syscall since 2.6.22 (with minor changes afterwards). This call allows signals to be handled as bytes read out of a file descriptor, rather than as interruptions to the flow of a program. Quite usefully, this file descriptor

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-04-14 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: I've started on an implementation of this in /branches/signalfd-issue8407. -- ___ Python tracker ___ __

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-04-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: Notice that 2.7 has seen its first beta release, so no new features are allowed for it. I think it's better to target this feature for 3.2. -- nosy: +loewis ___ Python tracker __

[issue8279] python-gdb PyListTests fail

2010-04-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: Dave, file 16727 fails to apply, but apparently still contains necessary pieces. Can you please provide an updated version of the patch against the trunk? -- ___ Python tracker

[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

2010-04-14 Thread Marcin Bachry
Changes by Marcin Bachry : -- nosy: +marcin.bachry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p