[ python-Bugs-1648960 ] HP-UX11.23: module zlib missing
Bugs item #1648960, was opened at 2007-01-31 16:13 Message generated for change (Settings changed) made by jabt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1648960&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 >Status: Deleted Resolution: None Priority: 5 Private: No Submitted By: Johannes Abt (jabt) Assigned to: Nobody/Anonymous (nobody) Summary: HP-UX11.23: module zlib missing Initial Comment: The build processes does not build module zlib, so zipimport does not work, either. /usr/local/lib/hpux32/libz.so exists. configure tells me: checking for inflateCopy in -lz... yes -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1648960&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1562193 ] IDLE Hung up after open script by command line...
Bugs item #1562193, was opened at 2006-09-20 13:10 Message generated for change (Comment added) made by faramir2 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1562193&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: IDLE Group: Python 2.5 >Status: Open Resolution: Invalid Priority: 5 Private: No Submitted By: Marek Nowicki (faramir2) Assigned to: Kurt B. Kaiser (kbk) Summary: IDLE Hung up after open script by command line... Initial Comment: Hello, I wrote that code in python and saved as prx.py: --- CUT --- from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler from time import strftime, gmtime import urllib2 import thread from sys import stdout class RequestHandler(BaseHTTPRequestHandler): def serve(self): print "%s %s %s\r\n%s" % (self.command, self.path, self.request_version, self.headers) header={} header["content-length"]=0 for i in str(self.headers).split("\r\n"): j=i.split(":", 1) if len(j)==2: header[j[0].strip().lower()] = j[1].strip() content=self.rfile.read(int(header["content- length"])) print content url="http://faramir2.prv.pl"; u=urllib2.urlopen(url) for i,j in u.info().items(): print "%s: %s" % (i,j) self.server_version = "Apache" self.sys_version = "" self.send_response(200) self.send_header("Content-type", "text/html; charset=ISO-8859-2") self.send_header("Connectin", "close") self.end_headers() def do_POST(self): self.serve() def do_HEAD(self): self.serve() def do_GET(self): self.serve() address = ("", 80) server = HTTPServer(address, RequestHandler) thread.start_new_thread(server.serve_forever, () ) --- CUT --- When I right click on that file and select "Edit with IDLE" it opens. Then when I push F5 the script is running. *Python Shell* is restarting. But when I try to connect by browser to http:// localhost:80/ IDLE Hung-up. I don't see that hung ups when I open IDLE from shortcut and then in IDLE open file prx.py and run it works normally - good. IDLE does't hung up. I don't know why it works like that, but I think that it's bug.. Python version: 2.5c2 Tk version: 8.4 IDLE version: 1.2c2 OS Version: Microsoft Windows XP Professional with SP2 --- Again: * Freeze: > "C:\Python25\pythonw.exe" "C:\Python25\Lib\idlelib\idle.pyw" -n -e "prx.py" // then F5 on IDLE // when run open Browser and try to open page: http:// localhost:80 // IDLE freezes * Works ok: > "C:\Python25\pythonw.exe" "C:\Python25\Lib\idlelib\idle.pyw" -e // open prx.py in IDLE // press F5 on IDLE // run Browwser and try to open page: http:// localhost:80 // all works ok --- regards, Marek -- >Comment By: Marek Nowicki (faramir2) Date: 2007-02-05 11:13 Message: Logged In: YES user_id=1602456 Originator: YES Ok. You can close this now. Thanks for responses. -- Comment By: Kurt B. Kaiser (kbk) Date: 2007-02-05 06:18 Message: Logged In: YES user_id=149084 Originator: NO Well, Tal Einat has more patience than I do, and it sounds like he diagnosed your problem. I'm setting this pending, it will close in a couple of weeks if you don't respond with further comments. -- Comment By: Tal Einat (taleinat) Date: 2006-12-09 17:54 Message: Logged In: YES user_id=1330769 Originator: NO Well, the issue obviously only happens when IDLE is running without a subprocess. The code you pasted is unindtented so I'm not going to try it out... My guess would be that your server is blocking in a way that it blocks all threads. This is why, when it is run in the same process as IDLE's GUI, IDLE hangs. However, when you run IDLE with a subprocess, it's the subprocess which is blocked, so IDLE works normally. (this is what the subprocess is there for :) In any case, IDLE is behaving just fine here. This isn't a bug in IDLE. This could be a bug with the thread module, or a bug in BaseHTTPServer, or several other places. But it is most likely caused by some misunderstanding on your part of blocking operations, threads, and the interaction between them. You should have tried posting this on c.l.py before posting a bug on SF, and I suggest you do so now. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1562193&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archiv
[ python-Bugs-1652387 ] Nested Objects scope problem
Bugs item #1652387, was opened at 2007-02-05 13:35 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: kkelchev (kkelchev) Assigned to: Nobody/Anonymous (nobody) Summary: Nested Objects scope problem Initial Comment: K = MyObj() K.Lines.append('First line to Obj "K"') K.Lines.append('Second line to Obj "K"') L = MyObj() L.Lines.append('First line to Obj "L"') print 'Lines from Obj "K"',K.Lines print 'Lines from Obj "L"',L.Lines Result is: [Dbg]>>> Lines from Obj "K" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] Lines from Obj "L" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] >>> Why data appended into nested list filed “Lines” into different object “K” and “L” appears in both objects ? -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1479785 ] Quitter object masked
Bugs item #1479785, was opened at 2006-05-01 11:01 Message generated for change (Comment added) made by kbk You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1479785&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: IDLE Group: Python 2.5 >Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Jim Jewett (jimjjewett) Assigned to: Kurt B. Kaiser (kbk) Summary: Quitter object masked Initial Comment: 2.5 introduces a Quitter object (defined in site.py) to make the quit/exit message more friendly. Lines 480-482 of PyShell.py override this, so that users of Idle never see the improved feature. Unfortunately, simply removing those lines isn't quite enough to solve the problem, as IDLE catches SystemExit exceptions. Getting around that, I didn't have time to track down yet. -- >Comment By: Kurt B. Kaiser (kbk) Date: 2007-02-05 12:40 Message: Logged In: YES user_id=149084 Originator: NO I don't see how to easily eliminate the dialog. When quit() runs, Quitter.__call__() closes IDLE's sys.stdin, and (since __call__() is still executing) that's trapped by PyShell.py using the logic which requires the user to confirm exit if he clicks on the Shell's close widget (WM_DELETE_WINDOW) while his code is running. If File.close() had a parameter, we might be able to do something about this. The extra confirmation probably doesn't hurt. Aficionados will use Ctrl-D etc. anyway. -- Comment By: Ronald Oussoren (ronaldoussoren) Date: 2006-08-28 12:43 Message: Logged In: YES user_id=580910 When I type quit() in the Python Shell window I get a dialog that says: > The program is still running! > Do you want to kill it? (Python 2.5c1) -- Comment By: Kurt B. Kaiser (kbk) Date: 2006-08-16 01:03 Message: Logged In: YES user_id=149084 Rev 51306: Patch #1540892 -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1479785&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1652387 ] Nested Objects scope problem
Bugs item #1652387, was opened at 2007-02-05 13:35 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: kkelchev (kkelchev) Assigned to: Nobody/Anonymous (nobody) Summary: Nested Objects scope problem Initial Comment: K = MyObj() K.Lines.append('First line to Obj "K"') K.Lines.append('Second line to Obj "K"') L = MyObj() L.Lines.append('First line to Obj "L"') print 'Lines from Obj "K"',K.Lines print 'Lines from Obj "L"',L.Lines Result is: [Dbg]>>> Lines from Obj "K" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] Lines from Obj "L" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] >>> Why data appended into nested list filed “Lines” into different object “K” and “L” appears in both objects ? -- >Comment By: Georg Brandl (gbrandl) Date: 2007-02-05 18:31 Message: Logged In: YES user_id=849994 Originator: NO Sadly you didn't attach the definition of the class "MyObj". I assume it is like this: class MyObj: Lines = [] In this case, the Lines list object is shared by all instances of MyObj. Please post to the python-list mailing list for further questions about this behavior. If your bug is different, please feel free to reopen this. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1652387 ] Nested Objects scope problem
Bugs item #1652387, was opened at 2007-02-05 13:35 Message generated for change (Comment added) made by kkelchev You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: kkelchev (kkelchev) Assigned to: Nobody/Anonymous (nobody) Summary: Nested Objects scope problem Initial Comment: K = MyObj() K.Lines.append('First line to Obj "K"') K.Lines.append('Second line to Obj "K"') L = MyObj() L.Lines.append('First line to Obj "L"') print 'Lines from Obj "K"',K.Lines print 'Lines from Obj "L"',L.Lines Result is: [Dbg]>>> Lines from Obj "K" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] Lines from Obj "L" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] >>> Why data appended into nested list filed “Lines” into different object “K” and “L” appears in both objects ? -- >Comment By: kkelchev (kkelchev) Date: 2007-02-05 20:34 Message: Logged In: YES user_id=1711016 Originator: YES Sorry :( I forgot to paste definision of Class MyObj yes it is: class MyObj: Lines = [] -- is this a bug ? Or always in Python data in nested object are shared between all objects from same class -- Comment By: Georg Brandl (gbrandl) Date: 2007-02-05 18:31 Message: Logged In: YES user_id=849994 Originator: NO Sadly you didn't attach the definition of the class "MyObj". I assume it is like this: class MyObj: Lines = [] In this case, the Lines list object is shared by all instances of MyObj. Please post to the python-list mailing list for further questions about this behavior. If your bug is different, please feel free to reopen this. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1652387 ] Nested Objects scope problem
Bugs item #1652387, was opened at 2007-02-05 13:35 Message generated for change (Settings changed) made by kkelchev You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 >Status: Open Resolution: Invalid Priority: 5 Private: No Submitted By: kkelchev (kkelchev) Assigned to: Nobody/Anonymous (nobody) Summary: Nested Objects scope problem Initial Comment: K = MyObj() K.Lines.append('First line to Obj "K"') K.Lines.append('Second line to Obj "K"') L = MyObj() L.Lines.append('First line to Obj "L"') print 'Lines from Obj "K"',K.Lines print 'Lines from Obj "L"',L.Lines Result is: [Dbg]>>> Lines from Obj "K" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] Lines from Obj "L" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] >>> Why data appended into nested list filed “Lines” into different object “K” and “L” appears in both objects ? -- Comment By: kkelchev (kkelchev) Date: 2007-02-05 20:34 Message: Logged In: YES user_id=1711016 Originator: YES Sorry :( I forgot to paste definision of Class MyObj yes it is: class MyObj: Lines = [] -- is this a bug ? Or always in Python data in nested object are shared between all objects from same class -- Comment By: Georg Brandl (gbrandl) Date: 2007-02-05 18:31 Message: Logged In: YES user_id=849994 Originator: NO Sadly you didn't attach the definition of the class "MyObj". I assume it is like this: class MyObj: Lines = [] In this case, the Lines list object is shared by all instances of MyObj. Please post to the python-list mailing list for further questions about this behavior. If your bug is different, please feel free to reopen this. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1652387 ] Nested Objects scope problem
Bugs item #1652387, was opened at 2007-02-05 13:35 Message generated for change (Settings changed) made by kkelchev You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 >Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: kkelchev (kkelchev) Assigned to: Nobody/Anonymous (nobody) Summary: Nested Objects scope problem Initial Comment: K = MyObj() K.Lines.append('First line to Obj "K"') K.Lines.append('Second line to Obj "K"') L = MyObj() L.Lines.append('First line to Obj "L"') print 'Lines from Obj "K"',K.Lines print 'Lines from Obj "L"',L.Lines Result is: [Dbg]>>> Lines from Obj "K" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] Lines from Obj "L" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] >>> Why data appended into nested list filed “Lines” into different object “K” and “L” appears in both objects ? -- Comment By: kkelchev (kkelchev) Date: 2007-02-05 20:34 Message: Logged In: YES user_id=1711016 Originator: YES Sorry :( I forgot to paste definision of Class MyObj yes it is: class MyObj: Lines = [] -- is this a bug ? Or always in Python data in nested object are shared between all objects from same class -- Comment By: Georg Brandl (gbrandl) Date: 2007-02-05 18:31 Message: Logged In: YES user_id=849994 Originator: NO Sadly you didn't attach the definition of the class "MyObj". I assume it is like this: class MyObj: Lines = [] In this case, the Lines list object is shared by all instances of MyObj. Please post to the python-list mailing list for further questions about this behavior. If your bug is different, please feel free to reopen this. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1652387 ] Nested Objects scope problem
Bugs item #1652387, was opened at 2007-02-05 13:35 Message generated for change (Settings changed) made by kkelchev You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 >Status: Open Resolution: Invalid Priority: 5 Private: No Submitted By: kkelchev (kkelchev) Assigned to: Nobody/Anonymous (nobody) Summary: Nested Objects scope problem Initial Comment: K = MyObj() K.Lines.append('First line to Obj "K"') K.Lines.append('Second line to Obj "K"') L = MyObj() L.Lines.append('First line to Obj "L"') print 'Lines from Obj "K"',K.Lines print 'Lines from Obj "L"',L.Lines Result is: [Dbg]>>> Lines from Obj "K" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] Lines from Obj "L" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] >>> Why data appended into nested list filed “Lines” into different object “K” and “L” appears in both objects ? -- Comment By: kkelchev (kkelchev) Date: 2007-02-05 20:34 Message: Logged In: YES user_id=1711016 Originator: YES Sorry :( I forgot to paste definision of Class MyObj yes it is: class MyObj: Lines = [] -- is this a bug ? Or always in Python data in nested object are shared between all objects from same class -- Comment By: Georg Brandl (gbrandl) Date: 2007-02-05 18:31 Message: Logged In: YES user_id=849994 Originator: NO Sadly you didn't attach the definition of the class "MyObj". I assume it is like this: class MyObj: Lines = [] In this case, the Lines list object is shared by all instances of MyObj. Please post to the python-list mailing list for further questions about this behavior. If your bug is different, please feel free to reopen this. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1652387 ] Nested Objects scope problem
Bugs item #1652387, was opened at 2007-02-05 13:35 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 >Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: kkelchev (kkelchev) Assigned to: Nobody/Anonymous (nobody) Summary: Nested Objects scope problem Initial Comment: K = MyObj() K.Lines.append('First line to Obj "K"') K.Lines.append('Second line to Obj "K"') L = MyObj() L.Lines.append('First line to Obj "L"') print 'Lines from Obj "K"',K.Lines print 'Lines from Obj "L"',L.Lines Result is: [Dbg]>>> Lines from Obj "K" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] Lines from Obj "L" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] >>> Why data appended into nested list filed “Lines” into different object “K” and “L” appears in both objects ? -- >Comment By: Georg Brandl (gbrandl) Date: 2007-02-05 20:54 Message: Logged In: YES user_id=849994 Originator: NO Yes, this is exactly what I had written in my previous answer. -- Comment By: kkelchev (kkelchev) Date: 2007-02-05 20:34 Message: Logged In: YES user_id=1711016 Originator: YES Sorry :( I forgot to paste definision of Class MyObj yes it is: class MyObj: Lines = [] -- is this a bug ? Or always in Python data in nested object are shared between all objects from same class -- Comment By: Georg Brandl (gbrandl) Date: 2007-02-05 18:31 Message: Logged In: YES user_id=849994 Originator: NO Sadly you didn't attach the definition of the class "MyObj". I assume it is like this: class MyObj: Lines = [] In this case, the Lines list object is shared by all instances of MyObj. Please post to the python-list mailing list for further questions about this behavior. If your bug is different, please feel free to reopen this. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Feature Requests-500698 ] Taint a la Perl?
Feature Requests item #500698, was opened at 2002-01-08 03:48 Message generated for change (Comment added) made by jcrocholl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=500698&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Interpreter Core Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Peter Scott (sketerpot) Assigned to: Nobody/Anonymous (nobody) Summary: Taint a la Perl? Initial Comment: This might just add unnecessary bloat, but since Python is being used in CGI scripts, it can be used to narrow a security hole. One way of breaking security is for a naiive programmer (don't try to deny their existance) to run an arbitrary command from the page viewer. Perl has developed an interesting mechanism for helping with this: taint. The way it works is, when something comes directly from the user, like a key in a form, it is considered to have taint unless specifically untainted. Things like os.exec() would create a warning message if you passed tainted strings to them. As I said, this might just add unnecessary bloat, but for an option that can be left out for most builds of Python I think it would be pretty nice. -- Comment By: Johann C. Rocholl (jcrocholl) Date: 2007-02-05 22:55 Message: Logged In: YES user_id=656137 Originator: NO I have come up with a class called SafeString which is the opposite of a tainted string. In my model, all strings are tainted by default, and you have to call untaint() to create a SafeString. Then I replace all functions in the os module with wrapper functions that check all parameters first and raise TaintError if any string is not safe. If I can figure out how to attach a file here, I will post it. Otherwise you may find it on comp.lang.python by the name of taint.py. -- Comment By: Peter Scott (sketerpot) Date: 2003-02-14 18:21 Message: Logged In: YES user_id=252564 Thanks for the idea, phr. I wrote a small class called TaintString, derived from string, that has a taint attribute. This is probably the least difficult part. The difficult part will be in modifying functions like os.system() to raise warnings or exceptions when tainted strings are passed to them. I'm currently thinking of making wrapper modules with names like taint.os, or taint.cgi, but the problem with this is that you have to manually use taint.* for certain functions. If anybody can think of something that can simplify this, please post it. -- Comment By: paul rubin (phr) Date: 2003-02-14 05:47 Message: Logged In: YES user_id=72053 With new-style classes, maybe this can be done by subclassing string somehow. There would be a subclass for tainted strings and trying to do most things with them would raise an exception. With taint checking enabled, functions like os.getenv and cgi.FieldStorage would make objects containing tainted strings. You'd untaint them by passing them to re.search or re.match and pulling out the match variables, like in Per. -- Comment By: Skip Montanaro (montanaro) Date: 2003-01-03 02:25 Message: Logged In: YES user_id=44345 Took awhile for a response to this feature request. ;-) Perl's heavy integration of regular expressions with its taint facility probably wouldn't work all that well in Python. For one, Python has more ways of searching strings than with regular expressions. Second, regular expressions are not nearly as tightly wound into Python as they are in Perl. I think you'd have to add a taint attribute to strings and just rely on the programmer to properly clear that attribute. I think a first cut at an implementation would go much further toward getting the concept seriously considered for addition to Python. -- Comment By: Neal McBurnett (nealmcb) Date: 2003-01-02 22:20 Message: Logged In: YES user_id=105956 I really like taint mode. I think this would make Python a better choice for CGI scripts. See http://www.perldoc.com/perl5.8.0/pod/perlsec.html and http://gunther.web66.com/FAQS/taintmode.html for more background. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=355470&aid=500698&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-791968 ] Arguments tooltip wrong if def contains tuple
Bugs item #791968, was opened at 2003-08-20 11:16 Message generated for change (Comment added) made by kbk You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=791968&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: IDLE Group: Python 2.3 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Christos Georgiou (tzot) Assigned to: Kurt B. Kaiser (kbk) Summary: Arguments tooltip wrong if def contains tuple Initial Comment: This happens in IDLE on Windows 2000, from 2.3 EXE installer. Type the following: >>> def f((a,b), c): print a, b, c >>> f( The tooltip shows up containing the following exact string (but the triple quotes): """(.0, c)""" -- >Comment By: Kurt B. Kaiser (kbk) Date: 2007-02-05 18:03 Message: Logged In: YES user_id=149084 Originator: NO Used your idea of displaying "' Rev 53641 -- Comment By: Kurt B. Kaiser (kbk) Date: 2006-07-22 17:56 Message: Logged In: YES user_id=149084 Problem still exists in 2.5 as of Rev 50739. -- Comment By: Christos Georgiou (tzot) Date: 2003-08-20 12:02 Message: Logged In: YES user_id=539787 I tried this: def f((a,b), c, (d,e)): pass and f.func_code.co_varnames is ('.0', 'c', '.4', 'a', 'b', 'd', 'e') That means .0 and .4 are dummy placeholders for the argument tuples. I couldn't find a direct way to know the length of each tuple, though --unless one analyzes the first UNPACK_SEQUENCE bytecodes of fob.func_code.co_code, and then uses the tuple fob.func_code.co_varnames [fob.func_code.co_argcount:] to recreate the tuples; should we get into this trouble, or just do a regular expression replace a la: argText = "(%s)" % re.sub("\.\d+", "", argText) at line 144? -- Comment By: Christos Georgiou (tzot) Date: 2003-08-20 11:44 Message: Logged In: YES user_id=539787 Quite fast, Neal! :) It seems it's not exactly an IDLE bug; check ToolTip.py, line 134 (vanilla 2.3); it's the f.func_code.co_varnames that returns this tuple: ('.0', 'c', 'a', 'b') -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=791968&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1652788 ] logging formatter %(lineno)d does not work
Bugs item #1652788, was opened at 2007-02-06 00:42 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652788&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: lx_jakal (alex_petry) Assigned to: Nobody/Anonymous (nobody) Summary: logging formatter %(lineno)d does not work Initial Comment: The current line number produced by the module is "1072" which is static over all logging calls. It refers to a the denoted line in logging/__init__.py A possible patch is attached. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652788&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1652788 ] logging formatter %(lineno)d does not work
Bugs item #1652788, was opened at 2007-02-06 00:42 Message generated for change (Comment added) made by alex_petry You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652788&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: lx_jakal (alex_petry) Assigned to: Nobody/Anonymous (nobody) Summary: logging formatter %(lineno)d does not work Initial Comment: The current line number produced by the module is "1072" which is static over all logging calls. It refers to a the denoted line in logging/__init__.py A possible patch is attached. -- >Comment By: lx_jakal (alex_petry) Date: 2007-02-06 02:07 Message: Logged In: YES user_id=1033478 Originator: YES File Added: python-logging-2.5-fixed.patch -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652788&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1562193 ] IDLE Hung up after open script by command line...
Bugs item #1562193, was opened at 2006-09-20 09:10 Message generated for change (Comment added) made by kbk You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1562193&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: IDLE Group: Python 2.5 >Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: Marek Nowicki (faramir2) Assigned to: Kurt B. Kaiser (kbk) Summary: IDLE Hung up after open script by command line... Initial Comment: Hello, I wrote that code in python and saved as prx.py: --- CUT --- from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler from time import strftime, gmtime import urllib2 import thread from sys import stdout class RequestHandler(BaseHTTPRequestHandler): def serve(self): print "%s %s %s\r\n%s" % (self.command, self.path, self.request_version, self.headers) header={} header["content-length"]=0 for i in str(self.headers).split("\r\n"): j=i.split(":", 1) if len(j)==2: header[j[0].strip().lower()] = j[1].strip() content=self.rfile.read(int(header["content- length"])) print content url="http://faramir2.prv.pl"; u=urllib2.urlopen(url) for i,j in u.info().items(): print "%s: %s" % (i,j) self.server_version = "Apache" self.sys_version = "" self.send_response(200) self.send_header("Content-type", "text/html; charset=ISO-8859-2") self.send_header("Connectin", "close") self.end_headers() def do_POST(self): self.serve() def do_HEAD(self): self.serve() def do_GET(self): self.serve() address = ("", 80) server = HTTPServer(address, RequestHandler) thread.start_new_thread(server.serve_forever, () ) --- CUT --- When I right click on that file and select "Edit with IDLE" it opens. Then when I push F5 the script is running. *Python Shell* is restarting. But when I try to connect by browser to http:// localhost:80/ IDLE Hung-up. I don't see that hung ups when I open IDLE from shortcut and then in IDLE open file prx.py and run it works normally - good. IDLE does't hung up. I don't know why it works like that, but I think that it's bug.. Python version: 2.5c2 Tk version: 8.4 IDLE version: 1.2c2 OS Version: Microsoft Windows XP Professional with SP2 --- Again: * Freeze: > "C:\Python25\pythonw.exe" "C:\Python25\Lib\idlelib\idle.pyw" -n -e "prx.py" // then F5 on IDLE // when run open Browser and try to open page: http:// localhost:80 // IDLE freezes * Works ok: > "C:\Python25\pythonw.exe" "C:\Python25\Lib\idlelib\idle.pyw" -e // open prx.py in IDLE // press F5 on IDLE // run Browwser and try to open page: http:// localhost:80 // all works ok --- regards, Marek -- >Comment By: Kurt B. Kaiser (kbk) Date: 2007-02-05 22:23 Message: Logged In: YES user_id=149084 Originator: NO OK, thanks. -- Comment By: Marek Nowicki (faramir2) Date: 2007-02-05 06:13 Message: Logged In: YES user_id=1602456 Originator: YES Ok. You can close this now. Thanks for responses. -- Comment By: Kurt B. Kaiser (kbk) Date: 2007-02-05 01:18 Message: Logged In: YES user_id=149084 Originator: NO Well, Tal Einat has more patience than I do, and it sounds like he diagnosed your problem. I'm setting this pending, it will close in a couple of weeks if you don't respond with further comments. -- Comment By: Tal Einat (taleinat) Date: 2006-12-09 12:54 Message: Logged In: YES user_id=1330769 Originator: NO Well, the issue obviously only happens when IDLE is running without a subprocess. The code you pasted is unindtented so I'm not going to try it out... My guess would be that your server is blocking in a way that it blocks all threads. This is why, when it is run in the same process as IDLE's GUI, IDLE hangs. However, when you run IDLE with a subprocess, it's the subprocess which is blocked, so IDLE works normally. (this is what the subprocess is there for :) In any case, IDLE is behaving just fine here. This isn't a bug in IDLE. This could be a bug with the thread module, or a bug in BaseHTTPServer, or several other places. But it is most likely caused by some misunderstanding on your part of blocking operations, threads, and the interaction between them. You should have tried posting this on c.l.py before posting a bug on SF, and I suggest you do so now. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&a
[ python-Bugs-1652387 ] Nested Objects scope problem
Bugs item #1652387, was opened at 2007-02-05 13:35 Message generated for change (Settings changed) made by kkelchev You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 >Status: Open Resolution: Invalid Priority: 5 Private: No Submitted By: kkelchev (kkelchev) Assigned to: Nobody/Anonymous (nobody) Summary: Nested Objects scope problem Initial Comment: K = MyObj() K.Lines.append('First line to Obj "K"') K.Lines.append('Second line to Obj "K"') L = MyObj() L.Lines.append('First line to Obj "L"') print 'Lines from Obj "K"',K.Lines print 'Lines from Obj "L"',L.Lines Result is: [Dbg]>>> Lines from Obj "K" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] Lines from Obj "L" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] >>> Why data appended into nested list filed “Lines” into different object “K” and “L” appears in both objects ? -- Comment By: Georg Brandl (gbrandl) Date: 2007-02-05 20:54 Message: Logged In: YES user_id=849994 Originator: NO Yes, this is exactly what I had written in my previous answer. -- Comment By: kkelchev (kkelchev) Date: 2007-02-05 20:34 Message: Logged In: YES user_id=1711016 Originator: YES Sorry :( I forgot to paste definision of Class MyObj yes it is: class MyObj: Lines = [] -- is this a bug ? Or always in Python data in nested object are shared between all objects from same class -- Comment By: Georg Brandl (gbrandl) Date: 2007-02-05 18:31 Message: Logged In: YES user_id=849994 Originator: NO Sadly you didn't attach the definition of the class "MyObj". I assume it is like this: class MyObj: Lines = [] In this case, the Lines list object is shared by all instances of MyObj. Please post to the python-list mailing list for further questions about this behavior. If your bug is different, please feel free to reopen this. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[ python-Bugs-1652387 ] Nested Objects scope problem
Bugs item #1652387, was opened at 2007-02-05 13:35 Message generated for change (Settings changed) made by kkelchev You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: Python 2.5 >Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: kkelchev (kkelchev) Assigned to: Nobody/Anonymous (nobody) Summary: Nested Objects scope problem Initial Comment: K = MyObj() K.Lines.append('First line to Obj "K"') K.Lines.append('Second line to Obj "K"') L = MyObj() L.Lines.append('First line to Obj "L"') print 'Lines from Obj "K"',K.Lines print 'Lines from Obj "L"',L.Lines Result is: [Dbg]>>> Lines from Obj "K" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] Lines from Obj "L" ['First line to Obj "K"', 'Second line to Obj "K"', 'First line to Obj "L"'] >>> Why data appended into nested list filed “Lines” into different object “K” and “L” appears in both objects ? -- Comment By: Georg Brandl (gbrandl) Date: 2007-02-05 20:54 Message: Logged In: YES user_id=849994 Originator: NO Yes, this is exactly what I had written in my previous answer. -- Comment By: kkelchev (kkelchev) Date: 2007-02-05 20:34 Message: Logged In: YES user_id=1711016 Originator: YES Sorry :( I forgot to paste definision of Class MyObj yes it is: class MyObj: Lines = [] -- is this a bug ? Or always in Python data in nested object are shared between all objects from same class -- Comment By: Georg Brandl (gbrandl) Date: 2007-02-05 18:31 Message: Logged In: YES user_id=849994 Originator: NO Sadly you didn't attach the definition of the class "MyObj". I assume it is like this: class MyObj: Lines = [] In this case, the Lines list object is shared by all instances of MyObj. Please post to the python-list mailing list for further questions about this behavior. If your bug is different, please feel free to reopen this. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1652387&group_id=5470 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com