[issue1462525] URI parsing library

2010-04-26 Thread Paul Jimenez
Paul Jimenez added the comment: Since no one else has commented on this in over a year, and the new (2.6+) code works fine, I'll just close this to help clean things up. -- status: open -> closed ___ Python tracker

[issue8545] i didn't get rqrd output for programme in python?(plz... help)

2010-04-26 Thread Georg Brandl
Georg Brandl added the comment: Please use python-h...@python.org or comp.lang.python for usage questions, not the tracker. -- nosy: +georg.brandl resolution: -> invalid status: open -> closed ___ Python tracker

[issue8544] i didn't get rqrd output for programme in python?(plz... help)

2010-04-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: Please use python-h...@python.org or comp.lang.python, not the tracker. Also check the collections module. -- nosy: +orsenthil resolution: -> invalid status: open -> closed ___ Python tracker

[issue8545] i didn't get rqrd output for programme in python?(plz... help)

2010-04-26 Thread LOLLA RADHA KRISHNA MURTHY
New submission from LOLLA RADHA KRISHNA MURTHY : i want to print the all posssibilities that occurs in rearrangement of letter between given input?(repetations are not allowed)? suppose i give input as car => the output is like this car cra acr arc rac rca like that ..i want factorial of leng

[issue8544] i didn't get rqrd output for programme in python?(plz... help)

2010-04-26 Thread LOLLA RADHA KRISHNA MURTHY
New submission from LOLLA RADHA KRISHNA MURTHY : i want to print the all posssibilities that occurs in rearrangement of letter between given input?(repetations are not allowed)? suppose i give input as car => the output is like this car cra acr arc rac rca like that ..i want factorial of leng

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

2010-04-26 Thread David Beazley
David Beazley added the comment: New version of patch that will probably fix Windows-XP problems. Was doing something stupid in the monitor (not sure how it worked on Unix). -- Added file: http://bugs.python.org/file17102/dabeaz_gil.patch ___ Python

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

2010-04-26 Thread David Beazley
Changes by David Beazley : Removed file: http://bugs.python.org/file17094/dabeaz_gil.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2010-04-26 Thread Mark Hammond
Changes by Mark Hammond : -- nosy: +mhammond ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8543] asynchat documentation issues

2010-04-26 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : I recently took a look at asynchat doc and found out it has some issues which should be addressed. In my opinion the following methods and functions should NOT be mentioned: - async_chat.refill_buffer() this has been removed in Python 2.6 and no longer

[issue8005] datetime's comparison methods do not return NotImplemented when they should

2010-04-26 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Thomas, could you write a unit test to go along with your patch? -- ___ Python tracker ___ ___ Pyt

[issue2521] ABC caches should use weak refs

2010-04-26 Thread Michael Foord
Changes by Michael Foord : -- stage: unit test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue2521] ABC caches should use weak refs

2010-04-26 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Someone with appropriate permissions want to update the "Stage"? -- versions: +Python 2.7 ___ Python tracker ___ _

[issue8536] Support new features of ZLIB 1.2.4

2010-04-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: I am documenting a "need" and marking it as "easy". If somebody else want to work on this, perfect. If not, I would adopt it in the future, and provide a patch myself. I rather prefer the first option, and I think is a good issue for a newbie (with C knowled

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

2010-04-26 Thread Nir Aides
Nir Aides added the comment: Dave, there seems to be a bug in your patch on Windows XP. It crashes in ccbench.py with the following output: >python_d.exe y:\ccbench.py == CPython 3.2a0.0 (py3k) == == x86 Windows on 'x86 Family 6 Model 23 Stepping 10, GenuineIntel' == --- Throughput --- Pi ca

[issue2521] ABC caches should use weak refs

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Someone with a better knowledge of ABCs than me should probably do a final review of this. -- ___ Python tracker ___ __

[issue6916] Remove deprecated items from asynchat

2010-04-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I seem to remember that those classes were initially removed and then re-added by Josiah for backward compatibility (see discussions in issue 1641 and issue 1736190). Despite practically useless after the changes applied to asynchat in Python 2.6, both cl

[issue8524] SSL sockets do not retain the parent socket's attributes

2010-04-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: getpeername() "sometimes" failing "soon" after a socket is created is a semi-well-known Windows socket... feature. For whatever that's worth. -- ___ Python tracker _

[issue8536] Support new features of ZLIB 1.2.4

2010-04-26 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Do you intend to provide a patch? -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bu

[issue1712522] urllib.quote throws exception on Unicode URL

2010-04-26 Thread Lino Mastrodomenico
Changes by Lino Mastrodomenico : -- nosy: +mastrodomenico ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue7384] curses crash on FreeBSD

2010-04-26 Thread Roumen Petrov
Roumen Petrov added the comment: Yes , I understand . For the protocol did gcc on FreeBSD warn if library order is -lncursesw -lreadline ? Forget for Also I'm not able to write C test case similar to python msg103231 by Mark Dickinson that fail on system where readline library is not link

[issue5774] _winreg.OpenKey() is documented with keyword arguments, but doesn't take them

2010-04-26 Thread Éric Araujo
Éric Araujo added the comment: Hello See also #8350 Regards -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8524] SSL sockets do not retain the parent socket's attributes

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Well, at the risk of stating the obvious, perhaps the dup() thing > should be eliminated. The justification for it seems less than clear, > and apparently it causes some problems. I've just found another problem while investigating the cause of some sporadic

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-04-26 Thread Brett Cannon
Changes by Brett Cannon : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-04-26 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-04-26 Thread Brett Cannon
Brett Cannon added the comment: Code reviews are always helpful, Éric. I just wanted since that is what is preventing me from committing. And you are right that I can commit my change now and we can fix it after the fact. -- ___ Python tracker

[issue3928] os.mknod missing on Solaris

2010-04-26 Thread Roumen Petrov
Roumen Petrov added the comment: Sorry Jesús, right now I cannot test new patch it but It looks goodand I expect first test to succeed so that second won't be tested as result OCF_XXX to be defined. If there is no spelling error it is fine. Roumen --

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-26 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: @santa4nt: You're correct, the cache is retained only from within the same handler: the other solution would be to keep the cache at the server level, but then you'd have to deal with the cache size (you don't want it to grow forever), and it seems a

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-04-26 Thread Éric Araujo
Éric Araujo added the comment: I don’t own a Windows machine. I just read the code, sorry if that was not helpful. Regarding quick fix vs. right fix, nothing prevents us from using Brett’s fix now and take some time to try the atexit way later. acute-accent-ly yours, Éric --

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > But if someone can get me access to an FTP server on the other end of a slow > link, I'd be glad to do what I can . It's easy to get a slow FTP server. Twisted's FTP support lets you do all kinds of customization; making a server that doesn't read ver

[issue8542] Another test issue

2010-04-26 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8542] Another test issue

2010-04-26 Thread Martin v . Löwis
New submission from Martin v. Löwis : What is the priority now? -- messages: 104275 nosy: loewis priority: normal severity: normal status: open title: Another test issue ___ Python tracker __

[issue8541] Test issue

2010-04-26 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8541] Test issue

2010-04-26 Thread Martin v . Löwis
New submission from Martin v. Löwis : What is the default priority? -- messages: 104274 nosy: loewis severity: normal status: open title: Test issue ___ Python tracker ___ ___

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-04-26 Thread Brett Cannon
Brett Cannon added the comment: I was just following the style already set in __del__ for storing a reference to sys (that and I didn't feel like having to explicitly store all of those references in the __init__ or at the class level just above the methods). As for using atexit, it's possibl

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Matthew Cowles
Matthew Cowles added the comment: > A minimal example which reproduces the behavior. :) Unfortunately the problem wasn't mine originally. I'm just the guy on python-help who happened to figure out the answer. But if someone can get me access to an FTP server on the other end of a slow link, I

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-04-26 Thread STINNER Victor
STINNER Victor added the comment: I'm -1 on Brett's patch: keep a reference to the required functions in the function arguments is ugly to me. The process should be destroyed before unloading the modules. I don't know how (or even if it's possible or not :-)), but I think that Brett's patch i

[issue8540] Make Context._clamp public in decimal module

2010-04-26 Thread Mark Dickinson
Changes by Mark Dickinson : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-04-26 Thread Brett Cannon
Brett Cannon added the comment: Did you run the patch on a Windows machine, Eric? As for Gabriel's comment about not using a __del__ method, it's a general rule of thumb, not something you have to do. __del__ methods exist for those times when you REALLY need them, but otherwise should be avo

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Francesco Del Degan
Francesco Del Degan added the comment: I thinks that isn't a so easy decision to take. And there are some other issues, imho: 1. timegm function is not specified by any standard (POSIX). The portable way (setting TZ, calling mktime, restore TZ) is a pure hack (could not work in future multit

[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC

2010-04-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: > First question: Open a new issue, or discuss it in this one (and repoen it)? Please open a new issue. AFAICT, the original issues request (do not embed manifests in pyd files) is now implemented fully. Feel free to leave a link to the new issue here, but ple

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-26 Thread Santoso Wijaya
Santoso Wijaya added the comment: Please correct my understanding if I am mistaken, but from skimming through the source code, it seems that a new BaseHTTPRequestHandler is instantiated per request. If a caching mechanism is to be adopted as per the patch, wouldn't it be forgotten when a new

[issue8538] Add ConfigureAction to argparse

2010-04-26 Thread Eric Smith
Changes by Eric Smith : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue7844] Add -3 warning for absolute imports.

2010-04-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Some more comments: - Documentation needs a "versionadded" entry. - A fate of calendar.timegm() needs to be decided. If the decision is to deprecate it, deprecation warning need to be added to calendar module and docs updated accordingly. Given that

[issue3928] os.mknod missing on Solaris

2010-04-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Informal europeans! :-). Hi, Antoine, I am Jesús (sunny Spain!). Deprecation request mailed to python-dev. -- ___ Python tracker ___

[issue8537] Add ConfigureAction to argparse

2010-04-26 Thread Eric Smith
Eric Smith added the comment: Sorry for the dupes. My ISP keeps disconnecting, but apparently it was able to create this issue 3 times for me. -- resolution: -> duplicate status: open -> closed ___ Python tracker

[issue8540] Make Context._clamp public in decimal module

2010-04-26 Thread Mark Dickinson
New submission from Mark Dickinson : The Context class in the decimal module has a hidden _clamp attribute, that controls whether to clamp values with large exponents. (Clamping a Decimal value involves adding extra significant zeros to decrease its exponent, while not altering the numeric va

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-04-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It is too late to get new features in 2.x. Francesco, Please double-check timemodule-gmtime-r312.diff, it does not seem to reflect your reported changes. ('-' vs '--' typo is still there) There is no need to submit multiple patches. A patch for py3k b

[issue7904] urlparse.urlsplit mishandles novel schemes

2010-04-26 Thread Tres Seaver
Tres Seaver added the comment: The fix for this bug breaks any code which worked with non-standard schemes in 2.6.4 (by working around the issue). This kind of backward incompatibility should be called out prominently in NEWS.txt (assuming that such a fix is considered appropriate in a third-do

[issue8539] Add ConfigureAction to argparse

2010-04-26 Thread Eric Smith
Changes by Eric Smith : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8539] Add ConfigureAction to argparse

2010-04-26 Thread Eric Smith
New submission from Eric Smith : >From a python-dev email from Neal Becker, copied here so it won't get lost. steven.beth...@gmail.com made a very nice module for me to enhance argparse called argparse_bool.py, which contains ConfigureAction. This will allow a bool

[issue8538] Add ConfigureAction to argparse

2010-04-26 Thread Eric Smith
New submission from Eric Smith : >From a python-dev email from Neal Becker, copied here so it won't get lost. steven.beth...@gmail.com made a very nice module for me to enhance argparse called argparse_bool.py, which contains ConfigureAction. This will allow a bool

[issue8537] Add ConfigureAction to argparse

2010-04-26 Thread Eric Smith
New submission from Eric Smith : >From a python-dev email from Neal Becker, copied here so it won't get lost. steven.beth...@gmail.com made a very nice module for me to enhance argparse called argparse_bool.py, which contains ConfigureAction. This will allow a bool

[issue3262] re.split doesn't split with zero-width regex

2010-04-26 Thread Matthew Barnett
Matthew Barnett added the comment: You could try the regex module mentioned in issue 2636. -- ___ Python tracker ___ ___ Python-bugs-l

[issue8536] Support new features of ZLIB 1.2.4

2010-04-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- title: Support new features of ZLIB 1.2.5 -> Support new features of ZLIB 1.2.4 ___ Python tracker ___

[issue8536] Support new features of ZLIB 1.2.5

2010-04-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Relevant links: http://www.zlib.net/ http://www.zlib.net/manual.html My mistake: these new features were added in zlib 1.2.4, not 1.2.5. -- ___ Python tracker _

[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2010-04-26 Thread bugs-pyt...@vendor.thewrittenword.com
bugs-pyt...@vendor.thewrittenword.com added the comment: Python is using the wrong ffi code, it should be using ffi_darwin.c -- keywords: +patch nosy: +bugs-pyt...@vendor.thewrittenword.com Added file: http://bugs.python.org/file17098/pyffi.patch __

[issue8536] Support new features of ZLIB 1.2.5

2010-04-26 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : Zlib 1.2.5 adds new features like "inflateReset2()", "inflateMark()", or "Z_TREES" flags. We should support them if we have zlib 1.2.5 installed. I think the patch is trivial, beside testing that we have a recent zlib version. -- keywords: easy me

[issue7583] Improve explanation of tab expansion in doctests

2010-04-26 Thread R. David Murray
R. David Murray added the comment: The problem is that it would be equally reasonable for someone to want to put real tab characters in the output section (which results in strange looking doctest text) or to put expanded spaces in the doctest output section based on the assumption that outpu

[issue3928] os.mknod missing on Solaris

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Reading PEP11, I don't see the procedure to propose a platform for > deprecation. Just mailing python-dev? Yes. > Thanks for the review, Pitrou. You can call me Antoine. -- ___ Python tracker

[issue3928] os.mknod missing on Solaris

2010-04-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Pitrou, the code configures correctly in Linux. Reading PEP11, I don't see the procedure to propose a platform for deprecation. Just mailing python-dev? I will delay the patch committing a couple of days, just in case somebody else want to comment. Thanks

[issue8325] improve regrtest command line help

2010-04-26 Thread R. David Murray
R. David Murray added the comment: Committed (with both call formats) to trunk in r80503 and py3k in r80505. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue3928] os.mknod missing on Solaris

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Jesus, this looks ok, have you checked the changes work fine under e.g. Linux? I don't think DEC Unix is supported anymore, actually I'm not sure anyone still uses it. -- priority: release blocker -> high ___ Python

[issue3928] os.mknod missing on Solaris

2010-04-26 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Please, Review. Roumen?. I plan to commit this to 2.7, 2.6, 3.1 and 3.2, if you agree. -- Added file: http://bugs.python.org/file17097/mknod-solaris_3.diff ___ Python tracker ___

[issue3928] os.mknod missing on Solaris

2010-04-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : Removed file: http://bugs.python.org/file16536/mknod-solaris_2.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue8523] shutil.rmtree and os.listdir cannot recover on error conditions

2010-04-26 Thread rubenlm
rubenlm added the comment: Your solution sounds fine to me. Currently we don't get a NameError because "names" is set to [] before the "try". What happens is that the "for" is skipped and later rmdir fails with "directory not empty". -- ___ Python

[issue8527] [PEP 3147] compileall.compile_dir() called multiple times creates empty __pycache__/__pycache__ subdirectories

2010-04-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: er, make that r80501 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8527] [PEP 3147] compileall.compile_dir() called multiple times creates empty __pycache__/__pycache__ subdirectories

2010-04-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Thanks for the patch! I added a test and committed your patch in r80497. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC

2010-04-26 Thread Christoph Gohlke
Christoph Gohlke added the comment: I mentioned the problem with pythoncom.dll and suggested a solution in issue7833. -- ___ Python tracker ___ _

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > If there's something else that would be useful and I can provide it, I'd be > glad to. A minimal example which reproduces the behavior. :) -- ___ Python tracker __

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: None of that has much relevance when the socket is in *non-blocking* mode. -- ___ Python tracker ___ __

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Matthew Cowles
Matthew Cowles added the comment: [Replying to various posts] [neologix] > That's one broken networking stack... I'm not disagreeing, but you'd have to take that up with Apple. > How would you circumvent this problem anyway ? The code has to go around again in the case of an incomplete send.

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > I don't see any evidence in support of this statement. >From Microfost Windows' documentation: "The parameter writefds identifies the sockets that are to be checked for writability. If a socket is processing a connect call (nonblocking), a socket

[issue5099] subprocess.Popen.__del__ causes AttributeError (os module == None)

2010-04-26 Thread Éric Araujo
Éric Araujo added the comment: Hello Brett’s patch contains strange-looking docstrings. Since they are for private methods, they could be comments instead. The patch looks otherwise good to me. Does anyone have an idead on how to not write a __del__ method at all, according to Gabriel’s fi

[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC

2010-04-26 Thread egaudry
egaudry added the comment: Hi Thomas, I think we should open a new issue (child from issue 4120), just to make sure the whole thing remains understandable. Regards, Eloi Thomas Heller wrote: > Thomas Heller added the comment: > > I'm not sure this issue is really done. The current state wo

[issue4120] Do not embed manifest files in *.pyd when compiling with MSVC

2010-04-26 Thread Thomas Heller
Thomas Heller added the comment: I'm not sure this issue is really done. The current state works fine, but there is one problem remaining: There are Python extensions that seem to need a manifest pointing to the MSVC runtime libs: dlls that start in-process com servers, like pythoncom.dll (

[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-04-26 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file17082/os_path_fs_encode_decode-2.patch ___ Python tracker ___ ___ Python-b

[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-04-26 Thread STINNER Victor
STINNER Victor added the comment: Version 3 of the patch: fix also os.getenv() which rejects now bytes on Windows (one of the goals of this issue). -- Added file: http://bugs.python.org/file17096/os_path_fs_encode_decode-3.patch ___ Python tracker

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > But as I said, it's not reliable. I don't see any evidence in support of this statement. Did you notice that the FreeBSD thread you referenced is: * 6 years old * about UDP It's not obvious to me that it's actually relevant here. > Maybe it woul

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

2010-04-26 Thread David Beazley
David Beazley added the comment: I've also attached a new file schedtest.py that illustrates a subtle difference between having the GIL monitor thread and not having the monitor. Without the monitor, every thread is responsible for its own scheduling. If you have a lot of threads running, yo

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

2010-04-26 Thread David Beazley
David Beazley added the comment: I've updated the GIL patch to reflect concerns about the monitor thread running forever. This version has a suspension mechanism where the monitor goes to sleep if nothing is going on for awhile. It gets resumed if threads try to acquire the GIL, but timeout

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

2010-04-26 Thread David Beazley
Changes by David Beazley : Removed file: http://bugs.python.org/file17084/dabeaz_gil.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: [...] > we call internal_select(s, 1) (1 for writting) before sending. Oh, sorry, you are right. -- ___ Python tracker ___

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-04-26 Thread STINNER Victor
STINNER Victor added the comment: Write to stderr instead of stdout might change buildbot output order. -- ___ Python tracker ___ ___

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > What is the mnemonic corresponding to errno 35 under OS X? (under Linux I get EDEADLOCK, which probably isn't the right one) >From the first message: "errno 35 (resource temporarily unavailable)". It's >actually EAGAIN on Linux (which makes sense on

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-04-26 Thread STINNER Victor
STINNER Victor added the comment: > A better resolution IMO would be to output tracebacks on stderr instead. Yeah, that sounds easier and safer. Attached patch writes the tracebacks to stderr. I don't remember how to reproduce this issue :-/ I guess that stdout/stderr encoding should be ASCI

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Matthew, can you confirm whether the socket had a timeout set to it? (either through settimeout() or setglobaltimeout()) I think this is a bug in Python's socket module. recv()-like functions are written so as to first call select() before actually receiving

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-26 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > What is the mnemonic corresponding to errno 35 under OS X? EAGAIN -- ___ Python tracker ___

[issue3262] re.split doesn't split with zero-width regex

2010-04-26 Thread Tim Pietzcker
Tim Pietzcker added the comment: Sorry to revive this dormant (?) topic - has anybody brought this any further? This "feature" has tripped me up a few times, and I would be all for adding a flag to enable the "split on zero-size matches" behavior, but I myself am not competent enough to code

[issue8534] multiprocessing not working from egg

2010-04-26 Thread simon
Changes by simon : -- keywords: +patch Added file: http://bugs.python.org/file17092/forking.patch ___ Python tracker ___ ___ Python-bug

[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-04-26 Thread STINNER Victor
STINNER Victor added the comment: Le lundi 26 avril 2010 13:06:48, vous avez écrit : > I don't see what environment variables have to do with the file > system. A POSIX system only offers *one* function about the encoding: nl_langinfo(CODESET) and Python3 uses it for the filenames, environment

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-26 Thread STINNER Victor
STINNER Victor added the comment: > In real life applications, you do run into these problems quite > often Yes, I'm agree 100% with you :-) > > Python3 prefers unicode, eg. print expects an unicode string, not a byte > > string. I mean it's more pratical to use unicode everywhere in Python, >

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-04-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: A better resolution IMO would be to output tracebacks on stderr instead. -- nosy: +flox, pitrou ___ Python tracker ___ _

[issue8534] multiprocessing not working from egg

2010-04-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> jnoller nosy: +jnoller priority: -> low stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker __

[issue8535] passing optimization flags to the linker required for builds with gcc -flto

2010-04-26 Thread Matthias Klose
Matthias Klose added the comment: > It's probably better to just pass OPT to the linker instead. not enough, because -fno-strict-aliasing might be passed in BASE_CFLAGS. -- ___ Python tracker _

[issue8535] passing optimization flags to the linker required for builds with gcc -flto

2010-04-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Matthias Klose wrote: > > New submission from Matthias Klose : > > Building with -flto (GCC 4.5.0) requires passing the very same optimization > flags to the linker (lto1) as well. The attached patch just does this. > Tested on Linux only, I don't know

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > >> Please follow the naming convention used in os.path. The functions >> would have to be called os.path.fsencode() and os.path.fsdecode(). > > Ok > >> Other than that, I'm +0 on the patch: t

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

2010-04-26 Thread David Beazley
David Beazley added the comment: Greg, I like the idea of the monitor suspending if no thread owns the GIL. Let me work on that. Good point on embedded systems. Antoine, Yes, the gil monitor is completely independent and simply ticks along every 5 ms. A worst case scenario is that an

[issue8514] Create fsencode() and fsdecode() functions in os.path

2010-04-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > Oh! In Python3, ntpath.expanduser() supports bytes path and uses > sys.getfilesystemencoding() to encode an unicode environment variable to a > byte string. > > Should we remove bytes path

[issue8535] passing optimization flags to the linker required for builds with gcc -flto

2010-04-26 Thread Matthias Klose
New submission from Matthias Klose : Building with -flto (GCC 4.5.0) requires passing the very same optimization flags to the linker (lto1) as well. The attached patch just does this. Tested on Linux only, I don't know what will/could break on on other systems/compilers. Tested with a static

  1   2   >