[ANN] stdeb 0.6.0 released, now includes debianize command
stdeb produces Debian source packages from Python packages via a new distutils command, sdist_dsc. Automatic defaults are provided for the Debian package, but many aspects of the resulting package can be customized. An additional command, bdist_deb, creates a Debian binary package, a .deb file. The new debianize command builds a debian/ directory directly alongside your setup.py. Two convenience utilities are also provided. pypi-install will query the Python Package Index (PyPI) for a package, download it, create a .deb from it, and then install the .deb. py2dsc will convert a distutils-built source tarball into a Debian source package. stdeb: http://github.com/astraw/stdeb This email announces release 0.6.0. download: http://pypi.python.org/pypi/stdeb/0.6.0 Highlights for this release (you may also wish to consult the full changelog): - A new ``debianize`` command to build a ``debian/`` directory alongside your setup.py file. - Bugfixes. As always, please check the release notes: http://github.com/astraw/stdeb/blob/release-0.6.0/RELEASE_NOTES.txt The full changelog is here: http://github.com/astraw/stdeb/blob/release-0.6.0/CHANGELOG.txt -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
subprocess in Command promt+ webbrowser
I have a code ,in which i invoke the local webserver in back ground ,then open URL and access the web page. below is my code. I am able to invoke and kill the local webserver in seperate python script,but when i club opening of browser and and subprocess , my like below ,then my script is not responding. Please guide me. import subprocess import time subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /C D:\372\pythonweb \mongoose-2.8.exe -root D:\New1\ YourOutput.txt') webbrowser.open(http://43.88.79.229:8080/index.html/;) time.sleep(11) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /c taskkill /F /IM mongoose-2.8.exe YourOutput1.txt') # kill in back ground time.sleep(3) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /C D:\372\pythonweb \mongoose-2.8.exe -root D:\New1\ YourOutput.txt') webbrowser.open(http://43.88.79.229:8080/index.html/;) time.sleep(11) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /c taskkill /F /IM mongoose-2.8.exe YourOutput1.txt') # kill in back ground time.sleep(3) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /C D:\372\pythonweb \mongoose-2.8.exe -root D:\New2\ YourOutput.txt') webbrowser.open(http://43.88.79.229:8080/index.html/;) -- http://mail.python.org/mailman/listinfo/python-list
Re: GUIs - A Modest Proposal
Having said all that, I would like to eliminate some of the depedencie. At some point I'll probably re-do the Windows implementation using ctypes, because pywin32/mfc is hindering more than helping in some areas. I'm also thinking about ways to interface directly with Cocoa without going through pyobjc. But all that is some way off in the future after I get the API nailed down more. -- Greg that would be awesome! -- http://mail.python.org/mailman/listinfo/python-list
Re: GUIs - A Modest Proposal
On 06/17/2010 08:50 AM, Grant Edwards wrote: On 2010-06-16, Matt m...@themattfella.xxxyyz.com wrote: On 06/05/2010 09:22 PM, ant wrote: PyQt is tied to one platform. Several posters have asked for support for or clarification of this claim of yours. Let me guess... The one platform it's tied to is Qt? good answer -- http://mail.python.org/mailman/listinfo/python-list
Re: subprocess in Command promt+ webbrowser
On Jun 19, 11:01 am, shanti bhushan ershantibhus...@gmail.com wrote: I have a code ,in which i invoke the local webserver in back ground ,then open URL and access the web page. below is my code. I am able to invoke and kill the local webserver in seperate python script,but when i club opening of browser and and subprocess , my like below ,then my script is not responding. Please guide me. import subprocess import time subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /C D:\372\pythonweb\mongoose-2.8.exe YourOutput.txt') time.sleep(3) webbrowser.open(http://43.88.79.229:8080/index.html;) time.sleep(11) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /c taskkill /F /IM mongoose-2.8.exe YourOutput1.txt') # kill in back ground time.sleep(3) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /C D:\372\pythonweb \mongoose-2.8.exe -root D:\New1\ YourOutput.txt') time.sleep(3) webbrowser.open(http://43.88.79.229:8080/index.html;) time.sleep(11) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /c taskkill /F /IM mongoose-2.8.exe YourOutput1.txt') # kill in back ground time.sleep(3) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /C D:\372\pythonweb \mongoose-2.8.exe -root D:\New2\ YourOutput.txt') time.sleep(3) webbrowser.open(http://43.88.79.229:8080/index.html;) time.sleep(11) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /c taskkill /F /IM mongoose-2.8.exe YourOutput1.txt') # kill in back ground This scripts works fine with python 26 in windows XP, but when i replace the browser opening part with broswer to be open on different machine in python made tool.That it always give me warning that process already open.If i kill the the command then also it gives same problem. Please guide me is it sycronisation issue?,some exception handling is required?? -- http://mail.python.org/mailman/listinfo/python-list
Re: subprocess in Command promt+ webbrowser
On Jun 19, 11:01 am, shanti bhushan ershantibhus...@gmail.com wrote: I have a code ,in which i invoke the local webserver in back ground ,then open URL and access the web page. below is my code. I am able to invoke and kill the local webserver in seperate python script,but when i club opening of browser and and subprocess , my like below ,then my script is not responding. Please guide me. import subprocess import time subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /C D:\372\pythonweb \mongoose-2.8.exe -root D:\New1\ YourOutput.txt') webbrowser.open(http://43.88.79.229:8080/index.html/;) time.sleep(11) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /c taskkill /F /IM mongoose-2.8.exe YourOutput1.txt') # kill in back ground time.sleep(3) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /C D:\372\pythonweb \mongoose-2.8.exe -root D:\New1\ YourOutput.txt') webbrowser.open(http://43.88.79.229:8080/index.html/;) time.sleep(11) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /c taskkill /F /IM mongoose-2.8.exe YourOutput1.txt') # kill in back ground time.sleep(3) subprocess.Popen(r'C:\WINDOWS\system32\cmd.exe /C D:\372\pythonweb \mongoose-2.8.exe -root D:\New2\ YourOutput.txt') webbrowser.open(http://43.88.79.229:8080/index.html/;) if i want to put exception handing for invoking the local web server ?? how to do that please guide -- http://mail.python.org/mailman/listinfo/python-list
Re: how to get bit info
Back9 backgoo...@gmail.com writes: Hi, I have one byte data and want to know each bit info, I mean how I can know each bit is set or not? Other than the tedious anding, oring and shifting, you can convert your byte to a string (with function bin) and use normal string handling functions to check if individual bits are 0 or 1. String format is also handy if you happen to need to do things like reversing the bit order or slicing and joining together various bits from different bytes. I seem to invariably need to do some bit order reversing when I mess around with serial data, which is one reason why I like Python. -- http://mail.python.org/mailman/listinfo/python-list
Re: pythonize this!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/18/2010 05:53 PM, Mark Lawrence wrote: Andre, looks like a really bad day for you then, *TWO* nights out with me *AND* (looking at your email address) Germany loosing in the world cup. :( There are days one looses and there are days the others win... ;) Andre -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwckGYACgkQnuHMhboRh6QvDACfSAzSKvE90a9YY51ab2nksYd7 gOkAoNV5YvXLddtgeYBqqWFqGsB5fXlL =w4uA -END PGP SIGNATURE- -- http://mail.python.org/mailman/listinfo/python-list
scraping from bundes-telefonbuch.de with python
hello, i'm new on this group, and quiet new to python! i'm trying to scrap some adress data from bundes-telefonbuch.de but i run into a problem: the link is like this: http://www.bundes-telefonbuch.de/cgi-btbneu/chtml/chtml?WA=20 and it is basically the same for every search query. thus i need to submit post data to the webserver, i try to do this like this: opener = urllib2.build_opener() opener.addheaders = [('User-Agent', 'Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.4 (like Gecko)')] urllib2.install_opener(opener) data = urllib.urlencode({'F0': 'mySearchKeyword','B': 'T','F8': 'A || G','W': '1','Z': '0','HA': '10','SAS_static_0_treffer_treffer': 'Suche starten','S': '1','translationtemplate': 'checkstrasse'}) url = 'http://www.bundes-telefonbuch.de/cgi-btbneu/chtml/chtml?WA=20' response = urllib2.urlopen(url, data) this returns a page saying i have to reenter my search terms.. what's going wrong here? Thanks!! -- http://mail.python.org/mailman/listinfo/python-list
Re: pythonize this!
Mark Lawrence, 18.06.2010 17:53: ... *AND* (looking at your email address) Germany loosing in the world cup. :( Yep, we always do that once at the early stages of a world cup. Pretty good camouflage, still works most of the time. Stefan -- http://mail.python.org/mailman/listinfo/python-list
Re: pythonize this!
On 19/06/2010 11:36, Stefan Behnel wrote: Mark Lawrence, 18.06.2010 17:53: ... *AND* (looking at your email address) Germany loosing in the world cup. :( Yep, we always do that once at the early stages of a world cup. Pretty good camouflage, still works most of the time. Stefan Yes, but trying to be fair the Spanish referee for your game was crap. England had no excuses what so ever for their pathetic performance last night, unless they were trying to emulate your camouflage. The only good thing about it is that I have an excuse to go out and drown my sorrows. :) Mark. -- http://mail.python.org/mailman/listinfo/python-list
MAKE UPTO $5000 PER MONTH! $2000 IN FIRST 30 DAYS!
MAKE UPTO $5000 PER MONTH! $2000 IN FIRST 30 DAYS! Generate $50 to $100 whenever you have a couple of hours free time tospare. You could make $50 or more in the next 2 hours. Starting right Now! Today! Awesome earnings get paid for your honest work Join as a free member and get paid to your bank account To join the Network follow the link http://www.go-easy-money.com/home.html?a_aid=4c0be5bc81f9c Get paid for your real work and earn awesome -- http://mail.python.org/mailman/listinfo/python-list
Re: scraping from bundes-telefonbuch.de with python
On 19 lip, 12:23, davidgp davidvanijzendo...@gmail.com wrote: hello, i'm new on this group, and quiet new to python! i'm trying to scrap some adress data from bundes-telefonbuch.de but i run into a problem: the link is like this:http://www.bundes-telefonbuch.de/cgi-btbneu/chtml/chtml?WA=20 and it is basically the same for every search query. thus i need to submit post data to the webserver, i try to do this like this: opener = urllib2.build_opener() opener.addheaders = [('User-Agent', 'Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.4 (like Gecko)')] urllib2.install_opener(opener) data = urllib.urlencode({'F0': 'mySearchKeyword','B': 'T','F8': 'A || G','W': '1','Z': '0','HA': '10','SAS_static_0_treffer_treffer': 'Suche starten','S': '1','translationtemplate': 'checkstrasse'}) url = 'http://www.bundes-telefonbuch.de/cgi-btbneu/chtml/chtml?WA=20' response = urllib2.urlopen(url, data) this returns a page saying i have to reenter my search terms.. what's going wrong here? Thanks!! Try mechanize : http://wwwsearch.sourceforge.net/mechanize/ import mechanize response = mechanize.urlopen(http://www.bundes-telefonbuch.de/;) forms = mechanize.ParseResponse(response, backwards_compat=False) form = forms[0] form[F0] = query #enter query html = mechanize.urlopen(form.click()).read() f = open(tmp.html,w) f.writelines(html) f.close() Or you can try to parse response but I think that their HTML is not valid -- http://mail.python.org/mailman/listinfo/python-list
Re: catching my own exception
Dana Fri, 18 Jun 2010 20:01:45 +0200, Peter Otten __pete...@web.de kaze: Solution: move your startup code into a separate file and have it import the village module. Excellent, thanks! Everything works now, but I still don't quite get what the problem is... You are importing your main script elswhere. Your code then effectively becomes try: # in another module raise village.SomethingBuiltError except __main__.SomethingBeingBuiltError: print caught i. e. you get two versions of every class that are built from the same code but not (recognized as) identical. What I don't get is: what do you mean I'm importing my main script elsewhere by runing python village.py? SomethingBuiltError is defined in the same script that I'm runing, I didn't import it, did I? If you could please clear it up for me... or point me to relevant literature, that's also cool, I couldn't find this thing explained anywhere. Anyway, thanks for the solution! -- Now the storm has passed over me I'm left to drift on a dead calm sea And watch her forever through the cracks in the beams Nailed across the doorways of the bedrooms of my dreams -- http://mail.python.org/mailman/listinfo/python-list
Re: catching my own exception
Dana 18 Jun 2010 17:45:31 GMT, Steven D'Aprano st...@remove-this-cybersource.com.au kaze: Other than that, I notice that your module throws away useful debugging information, and replaces it with bland, useless pap of no nutritional value: try: import account, fetch, resources, const except Exception: raise Exception('One or more travapi modules not available.') Oh, yes, thanks for pointing that out, that was a dirty hack for solving some error I was getting with pydoc. I'll remove that, thanks for pointing that out. -- Now the storm has passed over me I'm left to drift on a dead calm sea And watch her forever through the cracks in the beams Nailed across the doorways of the bedrooms of my dreams -- http://mail.python.org/mailman/listinfo/python-list
Re: scraping from bundes-telefonbuch.de with python
On 06/19/2010 04:23 AM, davidgp wrote: opener = urllib2.build_opener() opener.addheaders = [('User-Agent', 'Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.4 (like Gecko)')] urllib2.install_opener(opener) data = urllib.urlencode({'F0': 'mySearchKeyword','B': 'T','F8': 'A || G','W': '1','Z': '0','HA': '10','SAS_static_0_treffer_treffer': 'Suche starten','S': '1','translationtemplate': 'checkstrasse'}) url = 'http://www.bundes-telefonbuch.de/cgi-btbneu/chtml/chtml?WA=20' response = urllib2.urlopen(url, data) this returns a page saying i have to reenter my search terms.. what's going wrong here? Most likely you need a cookie. You'll probably have to set up a cookie store for use with urllib2, then request the page that the search form is on so that the cookie is generated, and then make your post with your search terms. -- http://mail.python.org/mailman/listinfo/python-list
Re: Help with suds: HTTP Error 401
On Jun 11, 5:27 am, Eric von Horst z80vsvi...@hotmail.com wrote: I have small program that tries to open a wsdl. When I execute the program I am getting 'suds.transport.TransportError: HTTP Error 401: Unauthorized' Hey Eric, Im a suds noob as well. I found some code that led me to the below example. It worked for me when connecting to one particular site. I couldnt tell you why though... I guess its worth a shot. from suds.transport.https import HttpAuthenticated import urllib2 t = HttpAuthenticated(username='me', password='password') t.handler = urllib2.HTTPBasicAuthHandler(t.pm) t.urlopener = urllib2.build_opener(t.handler) c = client.Client(url='http://xxx.xxx.xxx.xxx/path/to? WSDL',transport=t) ~Sean -- http://mail.python.org/mailman/listinfo/python-list
Re: 500 tracker orphans; we need more reviewers
On 19/06/2010 03:37, Terry Reedy wrote: Go to the bottom of http://bugs.python.org/iss...@template=searchstatus=1 enter 1 in the Message Count box and hit Search. At the moment, this gets 510 hits. Some have had headers updated, nearly half have had a person add himself as 'nosy' (put 1 in the Nosy count box to count those that have not), but none have a written response. In the past two weeks, I have commented on some old orphans and gotten a couple of previously orphaned patches applied and the issue closed. But I am not prepared to spend my whole life on this ;=). We need more issue reviewers. Clearly. If you want to contibute, opportunity is here. With 500 orphans, and 2200 other open issues, there must be something that matches your interests and abilities. Use other search fields to narrow the choices. If you want to contibute to the tracker, this may help: http://wiki.python.org/moin/TrackerDocs/ Then read examples of comments already there. Or consider my first-response comment to http://bugs.python.org/issue8990 To write that, I * verified the reported behavior, though I forgot to explicitly say so; when doing so, include version and system (such as 3.1.2, WinXP), as that is sometimes helpful. * read the relevant doc section and pasted it in to establish a basis for discussion (the OP might have done that, but did not, so I did). Everyone reading this should at least be able to do this much for an issue like this, and this much *is* helpful. * compared behavior and doc and concluded that there is a bug. * read the posted patch as best I could, which is not much in this case, but it at least looked like a real diff file. * noticed that the diff did *not* patch the appropriate unit test file. * discussed two possible fixes and identified which the OP choose. * wrote an 'executive summary' both for the OP and future reviewers. Oh yes, I also adjusted the headers. Although new reviewers cannot do that, you *can* suggest in the message what changes to make. Special offer to readers of this thread, especially new reviewers: if you make such a suggestion, you may email me, subject: Tracker, with one clickable link like the above, cut and pasted from the browser URL box, per line of the message. Perhaps you are shy and uncomfortable saying much. Well so was I. I started about 5 years ago with *safe* comments and have s l o w l y expanded my comfort zone. The shock of discovering this week that there are 500 orphans, some 2 years old, expanded it. After no response for a year or two, even an imperfect response must be better than nothing. While there is occasional negativity on the tracker, I believe it averages less per message than python-list, which itself is pretty decent. Terry Jan Reedy Ok, but I'm going for EAFP rather than LBYL. I have written a will. :) Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list
If Not CGI...
Hi; I've caught a lot of flack (imagine that) about using CGI. I understand there are several other options, to wit: mod_python, fastcgi and wcgi. I've messed around with mod_python without luck. What are your suggestions? TIA. beno -- http://mail.python.org/mailman/listinfo/python-list
Re: If Not CGI...
On 6/19/10 10:31 AM, Victor Subervi wrote: Hi; I've caught a lot of flack (imagine that) about using CGI. I understand there are several other options, to wit: mod_python, fastcgi and wcgi. I've messed around with mod_python without luck. What are your suggestions? Its a slightly complicated question. First of all, it is not absolutely *wrong* to use CGI. Its just simply decades out of date, slow, and has certain problems. Primarily, that one must start Python for each and every request. That adds up: that adds up a LOT over time. The solution to all of these are various methods to run Python once, and keep it running and loaded, and simply call into it (i.e., execute some function you've defined) for those requests that need to be dynamic. mod_python accomplishes this by embedding Python into Apache directly. After you set it all up, there's various ways you can access it. The simplest is the publisher handler. With it, you can 'call' a Python function by linking to, say, /myform.py/view -- it'll call the 'view' function in 'myform.py'. With it, check out http://www.modpython.org/live/current/doc-html/tutorial.html without luck is a worthless statement to make, so I can't comment on it. But with mod_python, you wouldn't just be running it and then running your existing code as-is. The interface between the web server and your code is different in it, so you'll have to reorganize some stuff. FastCGI is a different kind of approach to the problem; it launches Python alongside Apache, and that Python stays alive forever. It just redirects requests to said process when they come in. I know very little about this model, but believe its meant to sort of mimic a CGI environment so you can sort of migrate to it easier, but I'm not entirely sure. So I can't comment on this directly, but http://docs.python.org/howto/webservers.html seems interesting (Though it speaks of ALL of these options, so is a good read anyways) Then there's mod_wsgi; this is like mod_python, but approaches the problem differently, with a bit more formal structure with an eye for interoperability. It implements the Web Server Gateway Interface specification, and lets you easily load up wsgi apps and wsgi frameworks which are a very, very nifty way to write modern web applications. But the thing is: a WSGI web application looks and is shaped nothing like a CGI application. They're awesome. Btu different. Writing a WSGI app from scratch without a framework is possible, but it seems like a terribly painful thing to go about doing. Instead, most people who are writing modern Python web applications, use some sort of framework. Django is one of the most popular. I like it. But I prefer pylons-- its a little more low level, and that suits me. There's also TurboGears, webpy, and on and on and on. The cool thing about WSGI applications is that they are stacks; there's a lot of middleware that can sit between the server and your end-application. You can add features and functionality and capabilities to your app just by adding another piece of middleware. For example, do you want to store state about what a user is doing? The things in their shopping cart, for example? A really, really elegant way is to use a session middleware -- Beaker for instance. It creates a unique session key, and sets it on the user's cookies. In your web application now, you can associate any kind of data you'd like with that key. And you can even remember stuff about that user if they return to your app later. Now, you could do that all by hand-- but its painful, and doing it right is not trivial. My suggestion? I can't really give you one. You're in the middle of a project. Doing it right from this point is basically a rewrite -- though it may not take as long as you suspect, if you use something like Django which is -very- easy. So maybe my suggestion is for now, to figure out what's wrong with mod_python for you. It works just fine. But then when this project is over, sit down and load up Django (or another of the options: look around, find one that tickles you), and spend a few days re-doing this project in that. Not for real, but for practice, to figure out how you'd do it in a proper framework. See how you like it. See how it works. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ P.S. An added plus to the WSGI app's: they'll encourage (nay, force) you to write better code. Including some encapsulation and classes and such. Which is not to say that procedural programming is /wrong/, but, for a lot of things, mixing in at least a little bit of OOP (even if you do not buy the OOP koolaid) just for organizational purposes is utter win. -- http://mail.python.org/mailman/listinfo/python-list
D-CM; Software Testers
Okay so I just released the 0.2-alpha version of my project and I'm looking for people that would like to test it. It is written in python with the wxpython gui bindings and is aimed to help developers. You can find more info on launchpad: http://launchpad.net/d-cm -- http://mail.python.org/mailman/listinfo/python-list
Is this make sence? Dynamic assembler for python
I found on the forum some discussion about crypting text and one guy did make assembly implementation of crypting algorithm. He dynamically generates mashine code and call that from python. Here are impressive results http://www.daniweb.com/code/snippet216632-5.html Is this better approach then writing extensions in c? -- http://mail.python.org/mailman/listinfo/python-list
Re: If Not CGI...
I've caught a lot of flack (imagine that) about using CGI. The main reason is that CGI has the overhead of loading unloading the Python interpreter on every request. The other methods load the Python interpreter once (or a small, fixed-number of times), then handle lots of requests from that process (or pool of processes), and then optionally unload if server-load drops. However CGI is old and fairly entrenched, so it's easy to find with cheap hosting services -- what do they care if your site is slow? I understand there are several other options, to wit: mod_python, fastcgi and wcgi. I've messed around with mod_python without luck. What are your suggestions? Generally, one writes to a framework (Django[1], web.py[2], TurboGears[3], CherryPy[4], etc) that either has a preferred/suggested method of interface, or allows you to plug into [m]any of the items you list. I know Django is happy with mod_python and wsgi (and I suspect fastcgi, but I'll let you google that). YMMV with the others. I've even seen an abomination of a hack that ran Django under CGI (whie, is the performance bad!). I think the general direction of the Python web-world seems to be moving toward WSGI (and Graham Dumpleton's work on mod_wsgi[5]; IIUC, he was heavily involved in the initial mod_python) instead of mod_python. Since you seem fairly adamant about *not* using a framework and cobbling together the universe from the ground up, you might look into Paul Boddie's WebStack[6] which abstracts away a number of the main interfaces into a common interface. Kindly, his work even allows you to plug into a CGI interface since that's what you're familiar with, and then shift to a different interface. -tkc [1] http://djangoproject.com [2] http://turbogears.org [3] http://webpy.org [4] http://www.cherrypy.org [5] http://code.google.com/p/modwsgi/ [6] http://www.boddie.org.uk/python/WebStack.html -- http://mail.python.org/mailman/listinfo/python-list
Re: D-CM; Software Testers
On 6/19/10 11:16 AM, Kruptein wrote: Okay so I just released the 0.2-alpha version of my project and I'm looking for people that would like to test it. It is written in python with the wxpython gui bindings and is aimed to help developers. You can find more info on launchpad: http://launchpad.net/d-cm What does it *do*? The LP page is vague, all those apps, then you're talking about various vague statements of Stuff Doing Stuff Together. But *what* is the stuff? The home page link on the LP page goes somewhere weird. So yeah. What's it *do*? I don't like downloading software until I have an idea of what its for :) -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ -- http://mail.python.org/mailman/listinfo/python-list
Re: Is this make sence? Dynamic assembler for python
On Sat, Jun 19, 2010 at 11:53 AM, DivX sem.r...@gmail.com wrote: I found on the forum some discussion about crypting text and one guy did make assembly implementation of crypting algorithm. He dynamically generates mashine code and call that from python. Here are impressive results http://www.daniweb.com/code/snippet216632-5.html Is this better approach then writing extensions in c? No, xor cipher is not suitable for general purpose encryption, and what do you need the speed for? xor is almost certainly not going to be the bottleneck in your application. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list
Re: Overriding __setattr__ of a module - possible?
On Jun 18, 5:25 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Thu, 17 Jun 2010 07:12:23 -0300, Fuzzyman fuzzy...@gmail.com escribi�: On Jun 17, 10:29 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Thu, 17 Jun 2010 04:52:48 -0300, Alf P. Steinbach al...@start.no escribi�: But who would have thunk that Python *isn't dynamic enough*? :-) Yep... There are other examples too (e.g. the print statement in 2.x bypasses sys.stdout.write; What do you mean by this? The print statement in 2.x does *not* bypass sys.stdout. It may use other methods besides write (writeln perhaps) but you can *definitely* override sys.stdout to capture the output from print statements. Suppose you want to implement a tee variant in Python: print output should go to stdout and also to some file (with timestamp added, just to be fancy). First attempt: py import sys py import time py py class tee(file): ... def write(self, data): ... file.write(self, '%s: %r\n' % (time.ctime(), data)) ... sys.__stdout__.write(data) ... py sys.stdout = tee('test.txt', 'w') py print Hello world py print Bye py ^Z D:\TEMPtype test.txt Hello world Bye Note: - no output to stdout inside the interpreter - no timestamp in the file This modified version works fine: py class tee(): ... def __init__(self, filename, mode): ... self.file = open(filename, mode) ... def write(self, data): ... self.file.write('%s: %r\n' % (time.ctime(), data)) ... sys.__stdout__.write(data) What happened? When sys.stdout is an instance of some class inheriting from file (that is, isinstance(sys.stdout, file) is true) then the print statement ignores sys.stdout.write() completely -- instead it calls directly some C stdio functions (fwrite). The only way to influence 'print' is *not* to inherit from file in the first place. It's an optimization, sure. I guess it is there before inheriting from builtin types was allowed (in such scenario, it's a perfectly valid optimization). Now, perhaps the test for 'file' should be more strict, only taking the C shortcut when using an actual file instance, not a subclass of it. This would allow the example above to work correctly. Ah, so by bypasses you mean under certain specific circumstances bypasses. By all means file a bug report on this, I agree that bypassing the optimization for file subclasses (assuming your diagnosis is correct) would be a sensible approach. All the best, Michael -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list
Re: Is this make sence? Dynamic assembler for python
On 19 lip, 21:18, geremy condra debat...@gmail.com wrote: On Sat, Jun 19, 2010 at 11:53 AM, DivX sem.r...@gmail.com wrote: I found on the forum some discussion about crypting text and one guy did make assembly implementation of crypting algorithm. He dynamically generates mashine code and call that from python. Here are impressive resultshttp://www.daniweb.com/code/snippet216632-5.html Is this better approach then writing extensions in c? No, xor cipher is not suitable for general purpose encryption, and what do you need the speed for? xor is almost certainly not going to be the bottleneck in your application. Geremy Condra Just asking if this approach is good for example quicksort algoriths or some kind of sorting algorithms, or simulations but the point is of mixing python and assembler? -- http://mail.python.org/mailman/listinfo/python-list
Re: exceptions and unicode
On 06/16/2010 03:53 PM, Martin v. Loewis wrote: So how do I get what I want? Submit a patch. You would have to explain why this is a bug fix and not a new feature, as new features are not allowed anymore for 2.x. Thanks. Actually I have no idea if this is a bug or a feature (despite reading bug tracker issues 2517 and 6108, most of which I did not understand) so I'm not in a position to argue either. What I think I'll do is note in my documentation that the unreadable error messages are from Python and are only temporary for a couple years until the app can move to Python 3. -- http://mail.python.org/mailman/listinfo/python-list
Re: exceptions and unicode
On 06/16/2010 03:51 PM, Thomas Jollans wrote: On 06/16/2010 10:10 PM, Stuart McGraw wrote: Note that the exceptions may be anything (I just used IOError as an example) and are generated in bowels of an API that I can't/won't mess with. Yeah, well, you'd have to special-case every single exception type that gets unicode arguments, as they probably all treat them in the same ungrateful way. Unfortunate. In general it does not seem possible to know what exceptions could be generated (they could be custom exceptions defined in the api) without examining all the code. Seems like I'll have to live with it or try some grotesque hack like looking for a repr-of-a-unicode-string-like text and converting back to unicode. Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: 500 tracker orphans; we need more reviewers
Terry: Thanks for bringing this to notice. Mark: Kudos for your effort in cleaning up bugs.python.org On Sat, Jun 19, 2010 at 10:16 PM, Mark Lawrence breamore...@yahoo.co.ukwrote: On 19/06/2010 03:37, Terry Reedy wrote: Go to the bottom of http://bugs.python.org/iss...@template=searchstatus=1 enter 1 in the Message Count box and hit Search. At the moment, this gets 510 hits. Some have had headers updated, nearly half have had a person add himself as 'nosy' (put 1 in the Nosy count box to count those that have not), but none have a written response. In the past two weeks, I have commented on some old orphans and gotten a couple of previously orphaned patches applied and the issue closed. But I am not prepared to spend my whole life on this ;=). We need more issue reviewers. Clearly. If you want to contibute, opportunity is here. With 500 orphans, and 2200 other open issues, there must be something that matches your interests and abilities. Use other search fields to narrow the choices. If you want to contibute to the tracker, this may help: http://wiki.python.org/moin/TrackerDocs/ Then read examples of comments already there. Or consider my first-response comment to http://bugs.python.org/issue8990 To write that, I * verified the reported behavior, though I forgot to explicitly say so; when doing so, include version and system (such as 3.1.2, WinXP), as that is sometimes helpful. * read the relevant doc section and pasted it in to establish a basis for discussion (the OP might have done that, but did not, so I did). Everyone reading this should at least be able to do this much for an issue like this, and this much *is* helpful. * compared behavior and doc and concluded that there is a bug. * read the posted patch as best I could, which is not much in this case, but it at least looked like a real diff file. * noticed that the diff did *not* patch the appropriate unit test file. * discussed two possible fixes and identified which the OP choose. * wrote an 'executive summary' both for the OP and future reviewers. Oh yes, I also adjusted the headers. Although new reviewers cannot do that, you *can* suggest in the message what changes to make. Special offer to readers of this thread, especially new reviewers: if you make such a suggestion, you may email me, subject: Tracker, with one clickable link like the above, cut and pasted from the browser URL box, per line of the message. Perhaps you are shy and uncomfortable saying much. Well so was I. I started about 5 years ago with *safe* comments and have s l o w l y expanded my comfort zone. The shock of discovering this week that there are 500 orphans, some 2 years old, expanded it. After no response for a year or two, even an imperfect response must be better than nothing. While there is occasional negativity on the tracker, I believe it averages less per message than python-list, which itself is pretty decent. Terry Jan Reedy Ok, but I'm going for EAFP rather than LBYL. I have written a will. :) Kindest regards. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: MySQLdb and bits
On Jun 13, 5:52 am, Dafydd Hughes dafyd...@gmail.com wrote: Hi there This is my first post to the list - please forgive me if this has been addressed elsewhere. I'm running MySQL 32-bit in Snow Leopard, and had MySQLdb working well. I switched to 64-bit, rebuilt MySQLdb, and again it worked fine within Python, but had to switch back to 32 bit - I'm using a wrapper for Python within Pure Data, and it forces Python to 32-bit. So back to 32-bit. It works fine wrapped in Pd, but if I try import MySQLdb from the terminal, I get: import MySQLdb Traceback (most recent call last): File stdin, line 1, in module File build/bdist.macosx-10.6-fat/egg/MySQLdb/__init__.py, line 19, in module File build/bdist.macosx-10.6-fat/egg/_mysql.py, line 7, in module File build/bdist.macosx-10.6-fat/egg/_mysql.py, line 6, in __bootstrap__ ImportError: dlopen(/Users/dafydd/.python-eggs/MySQL_python-1.2.3c1-py2.6-macosx-10.6-fat.egg-tmp/_mysql.so, 2): no suitable image found. Did find: /Users/dafydd/.python-eggs/MySQL_python-1.2.3c1-py2.6-macosx-10.6-fat.egg-tmp/_mysql.so: mach-o, but wrong architecture Is there a solution to this? I assume this is happening because Python's trying to work 64-bit but MySQLdb was built 32. Am I way off base? Thanks for any help. cheers dafydd I got the same problem though in a different scenario. I'm trying to setup my local django environment here and mysql_python fails on me. Same ...mach-o, but wrong architecture message. Anyone? -- http://mail.python.org/mailman/listinfo/python-list
Re: Is this make sence? Dynamic assembler for python
On Sat, 19 Jun 2010 13:36:57 -0700, DivX wrote: On 19 lip, 21:18, geremy condra debat...@gmail.com wrote: On Sat, Jun 19, 2010 at 11:53 AM, DivX sem.r...@gmail.com wrote: I found on the forum some discussion about crypting text and one guy did make assembly implementation of crypting algorithm. He dynamically generates mashine code and call that from python. Here are impressive resultshttp://www.daniweb.com/code/snippet216632-5.html Is this better approach then writing extensions in c? No, xor cipher is not suitable for general purpose encryption, and what do you need the speed for? xor is almost certainly not going to be the bottleneck in your application. Geremy Condra Just asking if this approach is good for example quicksort algoriths or some kind of sorting algorithms, or simulations but the point is of mixing python and assembler? Ask yourself, why aren't programs written in assembly if it's so good? (1) It's platform dependent. Do you really need a separate program for every single hardware platform you want to run Quicksort on? (2) Writing assembler is hard, really hard. And even harder to debug. (3) Modern C compilers can produce better (faster, more efficient) machine code than the best assembly code written by hand. Honestly, this question has been resolved twenty years ago -- thirty years ago, maybe there was still a good point in writing general purpose code in assembly, but now? It's just showing off. Unless you're writing hardware specific code (e.g. device drivers) it is pointless, in my opinion. I think that mixing assembly and python is a gimmick of very little practical significance. If you really need the extra performance, check out PyPy, Cython, Pyrex and Psyco. -- Steven -- http://mail.python.org/mailman/listinfo/python-list
Re: Is this make sence? Dynamic assembler for python
On 6/19/2010 2:53 PM, DivX wrote: I found on the forum some discussion about crypting text and one guy did make assembly implementation of crypting algorithm. He dynamically generates mashine code and call that from python. Here are impressive results http://www.daniweb.com/code/snippet216632-5.html Is this better approach then writing extensions in c? You have to define 'better'. This approach requires someone to write template assembler code, which will be machine specific. To be faster than compiled C on a particular machine, one must be pretty good at assemblee also. -- http://mail.python.org/mailman/listinfo/python-list
Re: introducing Lettuce, BDD tool for python with Django integration
Steven D'Aprano wrote: I assume the one you're talking about is Behaviour Driven Development. Wikipedia defines it as: BDD is a second-generation, outside-in, pull-based, multiple-stakeholder, multiple-scale, high-automation, agile methodology. It describes a cycle of interactions with well-defined outputs, resulting in the delivery of working, tested software that matters. Oh, my goodness. My buzzword-density meter just flew off the scale. Approach with caution -- the bogon flux may be lethal. -- Greg -- http://mail.python.org/mailman/listinfo/python-list
Re: C interpreter in Lisp/scheme/python
nanothermite911fbibustards nanothermite911fbibusta...@gmail.com writes: Probably doesn't meet your intent, but this is a really impressive bit of (whacky) art: Lisp runs faster than C. Once you get more time away from screwing Palestinians, and other false-flags, you will find ideas like these How to make Lisp go faster than C Didier Verna [snip] Asking whether Lisp is faster than C is like asking why it's colder in the mountains than it is in the summer. -- http://mail.python.org/mailman/listinfo/python-list
Installing or adding python dev installed python.
I have several versions of python installed and some I have built from source which seems to install the python-dev on osx. I know that on ubuntu python-dev is an optional install. The main python version I use is the enthought distribution. Can I install the python-dev tools with this? How. It there a good place for me to better understand what python-dev is and how to get it installed on osx? Thanks Vincent -- http://mail.python.org/mailman/listinfo/python-list
Re: Installing or adding python dev installed python.
On 6/19/10 9:49 PM, Vincent Davis wrote: I have several versions of python installed and some I have built from source which seems to install the python-dev on osx. I know that on ubuntu python-dev is an optional install. The main python version I use is the enthought distribution. Can I install the python-dev tools with this? How. It there a good place for me to better understand what python-dev is and how to get it installed on osx? Question specifically about the Enthought Python Distribution should be directed to the epd-users mailing list: https://mail.enthought.com/mailman/listinfo/epd-users However, to answer your question, there is no equivalent of a python-dev package for EPD or any of the Python distributions on OS X that I am aware of. All of them come with the necessary headers. On Linux distributions, Python installations are typically divided up into several packages; the python-dev(el) packages typically contain the header files and maybe a few other things for people building Python packages and extensions. I suspect that you are asking this question because you are trying to build numpy and getting our message that says something along the lines of I cannot find Python.h; please install the python-dev package. There is something else wrong with your environment. Please ask for help on either numpy-discussion or epd-users. Tell us exactly what you are doing and exactly the output you are getting (i.e., copy and paste your terminal session). If you have any relevant environment variables set for some reason (CFLAGS, CPPFLAGS, etc.) please let us know. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth. -- Umberto Eco -- http://mail.python.org/mailman/listinfo/python-list
[issue5639] Support TLS SNI extension in ssl module
Changes by Scott Tsai scottt...@gmail.com: -- nosy: +scott.tsai ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9009] Improve quality of Python/dtoa.c
Mark Dickinson dicki...@gmail.com added the comment: r82080: Whitespace fixes. r82081: In strtod, simplify the computation of the initial approximation. r82082: Fix typo introduced in r82025 (I think); this was preventing a shortcut from being taken. r82087: Simplify the ratio function. The previous ratio function (actually, b2d), aborted if the numerator was zero, and the current code ends up requiring special cases for zero as a result of this. That restriction is now removed, which will allow further simplifications (to come) in strtod. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9009 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9009] Improve quality of Python/dtoa.c
Mark Dickinson dicki...@gmail.com added the comment: Patch that does a fairly significant rewrite of strtod; it's still (mostly) based on Gay's code, but there are some significant changes. Some background: strtod, after dealing with easy cases, works roughly as follows: (1) Using floating-point arithmetic, create a double *rv* holding an approximation to the input value; this approximation may be out from the true value by several ulps (perhaps as much as 10 ulps; certainly not more than 100 ulps). (2) If the input string is very long, truncate it (accepting that this introduces a small error), and work with the truncated value below. (3) Use integer arithmetic to compute (an approximation to) ulps difference between *rv* and true value. Possibly return immediately if the ulps difference can be proved to be = 0.5 ulps, and we're not in any of various exceptional cases. (4) Use the ulps difference to correct *rv* to a new value. (5) If the ulps difference has fractional part close to 0.5, or if the correction takes us past a power of 2, or if it takes use near/to the max representable double, or to 0.0, go around the correction loop again. (6) If we still can't decide (because the ulps difference is very close to 0.5), call bigcomp to settle the issue once and for all. The new patch simplifies the above procedure considerably: - scaling of rv is used for very large values as well as very small ones; this simplifies handling of overflow, meaning that there's only a single place where overflow has to be detected. - the adjustment step handles adjustments that cross power-of-2 boundaries correctly. - as a result of the above two simplifications, there's never any need to do a second correction step, so the main correction loop is no longer a loop; a single correction is performed. - we always use the bigcomp function in hard cases, so there's no longer any need for the computation of ulps_difference to detect the case where the error is exactly 0.5 ulps. The patch isn't quite ready to apply; I want to expand some of the comments a little. -- Added file: http://bugs.python.org/file17720/rewrite_strtod.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9009 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9020] 2.7: eval hangs on AIX
Stefan Krah stefan-use...@bytereef.org added the comment: Py_CHARMASK should return a non-negative integer. As I understand it: tokenizer.c:tok_get around line 1368: while (Py_ISALNUM(c) || c == '_') { c = tok_nextc(tok); } 1) tok_nextc(tok) returns EOF (correct). 2) c is an int. 3) c == -1 gets passed to Py_ISALNUM(c): #define Py_ISALNUM(c) (_Py_ctype_table[Py_CHARMASK(c)] PY_CTF_ALNUM) So either it should be enforced that only chars are passed to Py_CHARMASK, or a cast for the EOF case is needed (but it should be to (unsigned char)). Sridhar, did I sum this up correctly? -- nosy: +skrah priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8998] add crypto routines to stdlib
Antoine Pitrou pit...@free.fr added the comment: Le samedi 19 juin 2010 à 00:55 +, geremy condra a écrit : geremy condra debat...@gmail.com added the comment: On Fri, Jun 18, 2010 at 6:05 AM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou pit...@free.fr added the comment: Great, I'm thinking more-or-less the API proposed in PEP 272- the exception I'm thinking of is that 'strings' should be substituted for 'bytes'- for AES and DES. It gets trickier when talking about public key crypto, though. Perhaps something along the lines of RSA.new(public_key=None, private_key=None,...), with the resulting object supporting encrypt/decrypt/sign/verify operations? I don't have any opinion right now. I think a concrete proposal should be initiated and we can iterate from that. (that's assuming other people agree on the principle, of course) I assume that by a concrete proposal you're talking about code? Or API docs? Also, what more needs to be done to ensure that other people agree on the principle? I was thinking about a PEP. Of course, you are free to reuse existing PEP content for that :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8998 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9020] 2.7: eval hangs on AIX
Martin v. Löwis mar...@v.loewis.de added the comment: Py_CHARMASK should return a non-negative integer. And it does, also on AIX. Do we have proof to the contrary? tokenizer.c:tok_get around line 1368: while (Py_ISALNUM(c) || c == '_') { c = tok_nextc(tok); } 1) tok_nextc(tok) returns EOF (correct). 2) c is an int. 3) c == -1 gets passed to Py_ISALNUM(c): #define Py_ISALNUM(c) (_Py_ctype_table[Py_CHARMASK(c)] PY_CTF_ALNUM) So either it should be enforced that only chars are passed to Py_CHARMASK, or a cast for the EOF case is needed (but it should be to (unsigned char)). Why do you say that? If c is -1, then Py_CHARMASK(c) is 255, which is a positive integer. Passing -1, or any other integer, to Py_CHARMASK is perfectly fine. There seems to be a minor bug in the loop above, which doesn't actually break at EOF. Instead, it implicitly trusts that Py_ISALNUM(EOF) is false (because 255 is not alpha-numeric); this is a flaw - but that shouldn't cause breakage on AIX. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602] windows console doesn't print utf8 (Py30a2)
Christoph Burgmer cburg...@ira.uka.de added the comment: Will this bug be tackled or Python2.7? And is there a way to get hold of the access denied error? Here are my steps to reproduce: I started the console with cmd /u /k chcp 65001 ___ Aktive Codepage: 65001. C:\Dokumente und Einstellungen\rootset PYTHONIOENCODING=UTF-8 C:\Dokumente und Einstellungen\rootd: D:\cd Python31 D:\Python31python Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. print(\u573a) 场 Traceback (most recent call last): File stdin, line 1, in module IOError: [Errno 13] Permission denied ___ I see a rectangle on screen but obviously cp works. -- nosy: +christoph ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1602] windows console doesn't print utf8 (Py30a2)
Changes by Antoine Pitrou pit...@free.fr: -- stage: unit test needed - needs patch versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9020] 2.7: eval hangs on AIX
Antoine Pitrou pit...@free.fr added the comment: Why do you say that? If c is -1, then Py_CHARMASK(c) is 255, which is a positive integer. What srid seems to be saying is that chars are unsigned on AIX, and therefore Py_CHARMASK() returns -1. Hence his patch proposal. Of course, it is dubious why EOF is not tested separately rather than passing it to Py_ISALNUM(). Micro-optimization? At least a comment should be added. Also, really, the Py_CHARMASK() macro seems poorly specified. It claims to convert a possibly signed character to a nonnegative int, but this is wrong: it doesn't convert to an int at all. Furthermore, it does a cast in one branch but not in the other, which can give bad surprises as here. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9020] Specification of Py_CHARMASK
Stefan Krah stefan-use...@bytereef.org added the comment: You can simulate this on Linux by compiling with: BASECFLAGS=-funsigned-char Then: Index: Parser/tokenizer.c === --- Parser/tokenizer.c (revision 81682) +++ Parser/tokenizer.c (working copy) @@ -1366,6 +1366,8 @@ break; } while (Py_ISALNUM(c) || c == '_') { +c = EOF; // tok_nextc can return EOF +printf(c: %d\n, Py_CHARMASK(c)); c = tok_nextc(tok); } tok_backup(tok, c); eval(abcd) c: -1 c: -1 c: -1 c: -1 c: -1 c: -1 Also, during compilation you get tons of warnings about using char as an array subscript: Objects/stringlib/split.h: In function ‘stringlib_split_whitespace’: Objects/stringlib/split.h:70: warning: array subscript has type ‘char’ Objects/stringlib/split.h:74: warning: array subscript has type ‘char’ Objects/stringlib/split.h:91: warning: array subscript has type ‘char’ -- title: 2.7: eval hangs on AIX - Specification of Py_CHARMASK ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9029] errors='replace' works in IDLE, fails at Windows command line.
R. David Murray rdmur...@bitdance.com added the comment: What you show is not a complete program, nor do you provide the complete traceback or the data causing the problem. The most helpful thing would be a complete small program and data file demonstrating the problem. That said, I'm wondering if your problem is the encoding of the terminal window. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9029 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9020] 2.7: eval hangs on AIX
Martin v. Löwis mar...@v.loewis.de added the comment: What srid seems to be saying is that chars are unsigned on AIX, and therefore Py_CHARMASK() returns -1. Hence his patch proposal. Ah, ok. I misread some of the messages (and got confused by msg108125, which seems to suggest that chars are signed on AIX). Of course, it is dubious why EOF is not tested separately rather than passing it to Py_ISALNUM(). Micro-optimization? At least a comment should be added. No, I think this is an error that EOF is not processed separately. Otherwise, char 255 may be confused with EOF. Of course, this would have to be done throughout. Also, really, the Py_CHARMASK() macro seems poorly specified. It claims to convert a possibly signed character to a nonnegative int, but this is wrong: it doesn't convert to an int at all. Furthermore, it does a cast in one branch but not in the other, which can give bad surprises as here. I think the specification is correct: it ought to convert to a non-negative int. In the signed char case, it already returns an int. So if it is changed at all, it needs to be changed, in the unsigned case, to #define Py_CHARMASK(c) ((int)(c)) -- title: Specification of Py_CHARMASK - 2.7: eval hangs on AIX ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9020] 2.7: eval hangs on AIX
Stefan Krah stefan-use...@bytereef.org added the comment: Martin v. Löwis rep...@bugs.python.org wrote: Of course, it is dubious why EOF is not tested separately rather than passing it to Py_ISALNUM(). Micro-optimization? At least a comment should be added. No, I think this is an error that EOF is not processed separately. Otherwise, char 255 may be confused with EOF. Indeed. I think Py_ISALNUM() should check for EOF, to be consistent with the C isalnum(int c). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7989] Add pure Python implementation of datetime module to CPython
R. David Murray rdmur...@bitdance.com added the comment: Brett's assertion comes from the decision made at the language summit at the last pycon. Which does not negate Raymond's assertion that there may be more important stuff to pythonize. However, Alexander is maintaining datetime, and if he wishes to do the Python version there is no reason I see for him not to do it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7989 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9020] 2.7: eval hangs on AIX
Martin v. Löwis mar...@v.loewis.de added the comment: Indeed. I think Py_ISALNUM() should check for EOF, to be consistent with the C isalnum(int c). Ah, that sounds fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9020 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1573931] WSGI, cgi.FieldStorage incompatibility
Chris McDonough chr...@plope.com added the comment: Review prompted by 500 tracker orphans; need more reviewers Although the current WSGI 1.0 spec (http://www.python.org/dev/peps/pep-0333/) still indicates that implementing the size argument to readline is not required, effectively, it is and has been for several years. Stalling on a WSGI 1.1 spec has caused a spec change to be delayed. See also http://www.mail-archive.com/web-...@python.org/msg02494.html -- nosy: +mcdonc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1573931 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1573931] WSGI, cgi.FieldStorage incompatibility
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: It's not terribly productive to block a fix for this specific issue in the WSGI specification on the big pile of contentious unrelated issues. It would make sense to issue a new WSGI specification with a correction for only this issue. The rest of the WSGI 1.1 issues can wait for a subsequent revision. Of course, actually getting this done involves either getting web-sig behind it or deciding to ignore web-sig and just do it. -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1573931 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9031] distutils uses invalid -Wstrict-prototypes flag when compiling C++ extension module
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: It's a duplicate of issue #1222585. The patch in that issue will also make distutils not reuse flags Python was built with. -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9031 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8988] import + coding = failure (3.1.2/win32)
gonegown nomedo...@gmail.com added the comment: Is there py3k for win32? And how do I know if #8611 comes from the same source? Have no idea how they have organized the python core. I'm new to python (about 2 months) and I don't think I will use it for long. It's just not serious. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8988 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9033] cmd module tab misbehavior
New submission from scott riccardelli s.riccarde...@gmail.com: noticed that cmd module does not perform completion using TAB on a macintosh properly. instead, the TAB key just places several blank spaces and moves the cursor forward. what it should do is retrieve a list of possibilities for completing a command. -- assignee: ronaldoussoren components: Macintosh messages: 108185 nosy: ronaldoussoren, slcott priority: normal severity: normal status: open title: cmd module tab misbehavior type: behavior versions: Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8990] array constructor and array.fromstring should accept bytearray.
Antoine Pitrou pit...@free.fr added the comment: On the principle the patch looks good. In practice, it lacks a call to `PyBuffer_Release(buffer)` in the various error cases (before returning NULL). It also lacks some tests in Lib/test/test_array.py. In 3.x unicode type was renamed to str and str to bytes, so fromunicode should become fromstring (or maybe fromstr to avoid confusion) and fromstring should become frombytes. This should be discussed separately, perhaps on python-dev first. -- nosy: +haypo, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8990 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2636] Regexp 2.7 (modifications to current re 2.2.2)
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4883] Compiling python 2.5.2 under Wine on linux.
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can this be closed as out of date, or is it still relevant to Python 2.7 or any of the Python 3 branches? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4883 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1300] subprocess.list2cmdline doesn't do pipe symbols
Andrew Moise ch...@demiurgestudios.com added the comment: Why is this bug invalid? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1300] subprocess.list2cmdline doesn't do pipe symbols
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: See the commit message for r82075 and the discussion on issue8972 and issue7839. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5136] Deprecating (and removing) globalcall, merge and globaleval
Mark Lawrence breamore...@yahoo.co.uk added the comment: From the recent large thread on c.l.py regarding Python GUIs I understand that the author of this issue Guilherme Polo has done a massive amount of work on Tkinter. Would it therefore be possible for him to give an update as to whether this issue can be closed as out of date, already actioned but not recorded, or whatever? Thanks. There are several other issues raised by Guilherme Polo regarding Tkinter, sorry I'm too lazy to repeat this comment on all of them. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5136 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1300] subprocess.list2cmdline doesn't do pipe symbols
Andrew Moise ch...@demiurgestudios.com added the comment: Hm, I'm not sure I understand. After r82075, will list2cmdline(['echo', 'foo|bar']) return 'echo foo|bar', or will it return 'echo foo|bar'? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome
Mark Lawrence breamore...@yahoo.co.uk added the comment: As you Jean-Paul Calderone seem to know what you're talking about could you provide a patch to get this issue going? If not I might even have a go myself, even if I do get shot down in flames. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4849 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8820] IDLE not launching correctly
Joseph joseph.a.mar...@gmail.com added the comment: I'm using python version 2.6.5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8820 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1300] subprocess.list2cmdline doesn't do pipe symbols
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: It will return the former. To clarify, it's true that there appears to be a problem with Popen(['echo', 'foo|bar'], shell=True). That is being tracked in issue7839. What's invalid is the report that list2cmdline() should be quoting strings with | in them. list2cmdline() is documented as being an implementation of the quoting convention implemented by the MS C runtime. That quoting convention does not require | to be quoted. It's cmd.exe which requires | to be quoted (if it is to be part of an argument value, rather than to indicate a command pipeline of some sort). cmd.exe quoting rules need to be addressed separately from the MS C quoting rules used even if cmd.exe isn't involved. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4919] 2.6.1 build issues on solaris with SunStudio 12
Mark Lawrence breamore...@yahoo.co.uk added the comment: Can this be closed as out of date or is it still an issue with Python 2.7 or any of the Python 3 versions? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4919 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4883] Compiling python 2.5.2 under Wine on linux.
Mark Dickinson dicki...@gmail.com added the comment: It can be closed. Thanks! -- nosy: +mark.dickinson resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4883 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4883] Compiling python 2.5.2 under Wine on linux.
Mark Lawrence breamore...@yahoo.co.uk added the comment: Hi Mark, It'll cost you a couple of pints of Ringwood Old Thumper if you're ever in my neck of the woods. Also blame Terry Reedy if I prove to be a pain in the neck!!! Kindest regards. Mark Lawrence. From: Mark Dickinson rep...@bugs.python.org To: breamore...@yahoo.co.uk Sent: Sat, 19 June, 2010 19:19:27 Subject: [issue4883] Compiling python 2.5.2 under Wine on linux. Mark Dickinson dicki...@gmail.com added the comment: It can be closed. Thanks! -- nosy: +mark.dickinson resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4883 ___ -- Added file: http://bugs.python.org/file17721/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4883 ___htmlheadstyle type=text/css!-- DIV {margin:0px;} --/style/headbodydiv style=font-family:times new roman,new york,times,serif;font-size:12ptdivHi Mark,brbrIt'll cost you a couple of pints of Ringwood Old Thumper if you're ever in my neck of the woods.brbrAlso blame Terry Reedy if I prove to be a pain in the neck!!!brbrKindest regards.brbrMark Lawrence.br/divdiv style=font-family: times new roman,new york,times,serif; font-size: 12pt;brdiv style=font-family: arial,helvetica,sans-serif; font-size: 13px;font face=Tahoma size=2hr size=1bspan style=font-weight: bold;From:/span/b Mark Dickinson lt;rep...@bugs.python.orggt;brbspan style=font-weight: bold;To:/span/b breamore...@yahoo.co.ukbrbspan style=font-weight: bold;Sent:/span/b Sat, 19 June, 2010 19:19:27brbspan style=font-weight: bold;Subject:/span/b [issue4883] Compiling python 2.5.2 under Wine on linux.br/fontbrbrMark Dickinson lt;a ymailto=mailto:dicki...@gmail.com; href=mailto:dicki...@gmail.com;dicki...@gmail.com/agt; added the comment:brbrIt can be closed.nbsp; Thanks!brbr--brnosy: +mark.dickinsonbrresolution:nbsp; -gt; out of datebrstatus: open -gt; closedbrbr___brPython tracker lt;a ymailto=mailto:rep...@bugs.python.org; href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;brlt;a href=http://bugs.python.org/issue4883; target=_blankhttp://bugs.python.org/issue4883/agt;br___br/div/div /divbr /body/html___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4629] getopt should not accept no_argument that ends with '='
Mark Lawrence breamore...@yahoo.co.uk added the comment: I'm not sure why this is still open, would somebody like to comment, see also Issue4650. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9033] cmd module tab misbehavior
Shashwat Anand anand.shash...@gmail.com added the comment: It seems readline module is not installed on your system. Quoting Ned Deily's comment from issue8365 which will most probably solve your issue: Issue6877 (and subsequent fixes in Issue8066) allows the Python readline module to be built and linked with the OS X editline (libedit) library rather than with the GNU readline library (which is not included with OS X). However, the libedit included in versions of OS X prior to 10.5 is considered too broken to use here. By default, if you do not specify an --with-universal-archs other than 32-bit to configure or if you do not explicitly set MACOSX_DEPLOYMENT_TARGET to another value, configure defaults to using 10.4 (or earlier) so the building of the readline module is skipped. You can check this: from distutils.sysconfig import get_config_var get_config_var('MACOSX_DEPLOYMENT_TARGET') '10.4' (Whether this is the best default is another question.) As it stands, to be able to build the readline module, either: (1) supply the GNU readline library as a local library, or (2) ensure you are building with a deployment target of at least 10.5. For example: ./configure MACOSX_DEPLOYMENT_TARGET=10.6 ; make Also note that option (2) is not available for 3.1.x since the changes to support editline/libedit were not ported to it; they are, however, in 2.6.5, 2.7 (trunk), and 3.2 (py3k) -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9033] cmd module tab misbehavior
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9033 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1300] subprocess.list2cmdline doesn't do pipe symbols
Andrew Moise ch...@demiurgestudios.com added the comment: Okay, makes sense. It sure would be nice on Windows to have an equivalent of list2cmdline() that works for the shell. I actually don't have immediate access to the code anymore, but I remember having to fool around with list2cmdline in the first place because it was difficult to do what I wanted without passing things through the shell (maybe I was spawning a process on Windows and capturing input/output/stderr; I don't remember in detail). Maybe the solution is to make what I was trying to do easier without fooling with the shell instead of playing the fool's game of trying to improve the ability to deal with the shell so we can pass things through it unnecessarily. Anyway, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1300 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4654] os.path.realpath() get the wrong result
Mark Lawrence breamore...@yahoo.co.uk added the comment: An issue with Python 2.3, can this be closed or is it still a problem with Python 2.7 or any of the Python 3 versions? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8820] IDLE not launching correctly
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8820 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8820] IDLE not launching correctly
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8820 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4654] os.path.realpath() get the wrong result
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +l0nwlf, loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5005] 3.0 sqlite doc: most examples refer to pysqlite2, use 2.x syntax.
Mark Lawrence breamore...@yahoo.co.uk added the comment: I'm guessing that this is fixed and hence can be closed as google didn't throw anything obvious at me, am I correct? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4654] os.path.realpath() get the wrong result
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1479626] Uninstall does not clean registry
Mark Lawrence breamore...@yahoo.co.uk added the comment: Wouldn't be the first Windows uninstaller to leave junk in the registry and won't be the last. if this is going to be actioned versions need to be updated to Python 2.7, thinking realistically of 2.7.1, and Python 3.2+? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1479626 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate
Changes by Devin Cook devin.c.c...@gmail.com: -- nosy: +devin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4654] os.path.realpath() get the wrong result
Shashwat Anand anand.shash...@gmail.com added the comment: No such issue on python 2.6, 2.7, 3.2. print(os.path.realpath('/Users/l0nwlf/Desktop/tmp/../decotest.lnk')) /Users/l0nwlf/Desktop/decotest.lnk I think this issue can be closed. However, I came with a different issue while testing on 2.6, trunk and 3.2. print(os.path.realpath('~/Desktop/tmp/../decotest.lnk')) /Volumes/CoreHD/py3k/~/Desktop/decotest.lnk -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1778410] removeTest() method patch for unittest.TestSuite
Mark Lawrence breamore...@yahoo.co.uk added the comment: This is almost three years old but strikes me as being useful. Could somebody with more knowledge than myself review the patch and update the relevant Python versions? Failing that, simply close the issue as not being relevant today. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1778410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5005] 3.0 sqlite doc: most examples refer to pysqlite2, use 2.x syntax.
Terry J. Reedy tjre...@udel.edu added the comment: This issue is about the examples in 11.6.1. Module functions and constants. All 3 points are fixed. The indentation issue seems to have been fixed by making the blank line completely blank with no spaces. I would have removed it, but cut and paste now works. I have no idea what Google has to do with this, but thanks for pinging it. -- assignee: - d...@python components: +Documentation nosy: +d...@python resolution: - fixed status: open - closed type: - behavior versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9018] os.path.normcase(None) does not raise an error on linux and should
Shashwat Anand anand.shash...@gmail.com added the comment: Following the documentation, os.path.normcase(path) Normalize the case of a pathname. On Unix and Mac OS X, this returns the path unchanged; on case-insensitive filesystems, it converts the path to lowercase. On Windows, it also converts forward slashes to backward slashes. on Mac OS X, import os os.name 'posix' Checking through, Lib/posixpath.py, # Normalize the case of a pathname. Trivial in Posix, string.lower on Mac. # On MS-DOS this may also turn slashes into backslashes; however, other # normalizations (such as optimizing '../' away) are not allowed # (another function should be defined to do that). def normcase(s): Normalize case of pathname. Has no effect under Posix # TODO: on Mac OS X, this should really return s.lower(). return s Why on Mac OS X, it should return s.lower() ? Also to raise Error for None case we can probably change normcase() in Lib/posixpath.py as, def normcase(s): Normalize case of pathname. Has no effect under Posix if s is None: raise AttributeError return s -- nosy: +l0nwlf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9018 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9026] [argparse] Subcommands not printed in the same order they were added
Steven Bethard steven.beth...@gmail.com added the comment: Yes, please generate patches from the Python repository. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9026 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9026] [argparse] Subcommands not printed in the same order they were added
Éric Araujo mer...@netwok.org added the comment: Guidelines: http://www.python.org/dev/patches/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9026 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5969] setup build with Platform SDK, finding vcvarsall.bat
Changes by Georg Brandl ge...@python.org: -- resolution: - duplicate status: open - closed superseder: - msvc9compiler.py: ValueError: [u'path'] ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5969 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5972] Failing test_signal.py on Redhat 4.1.2-44
Georg Brandl ge...@python.org added the comment: Closing for lack of response. -- nosy: +georg.brandl resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5972 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9005] Year range in timetuple
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- keywords: +patch Added file: http://bugs.python.org/file17722/issue9005.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9005] Year range in timetuple
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8524] SSL sockets do not retain the parent socket's attributes
Antoine Pitrou pit...@free.fr added the comment: I have tried refactoring the ssl code in order not to inherit from socket anymore, but it turned out suboptimal because chunks of code from the socket class then have to be duplicated. Therefore, I instead propose a much simpler approach which is to add a forget() method to socket objects; this method closes the socket object (sets the internal fd to -1) without closing the underlying fd at all. This allows to create another socket (actually SSLSocket) from the same fd without having to dup() it. Here is a patch; if the principle is accepted, I will add tests and docs. -- keywords: +patch nosy: +loewis Added file: http://bugs.python.org/file17723/sockforget.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8524 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8939] Use C type names (PyUnicode etc;) in the C API docs
Éric Araujo mer...@netwok.org added the comment: Shouldn’t “inside a :ctype:`Py_BEGIN_ALLOW_THREADS` block” rather use “:cmacro:”? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8939 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8524] SSL sockets do not retain the parent socket's attributes
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: It might be nice to see the version that avoids the dup() and has the duplicate code instead (interesting trade-off ;). Just for the sake of comparison against the forget() proposal. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8524 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4654] os.path.realpath() get the wrong result
R. David Murray rdmur...@bitdance.com added the comment: Your different issue looks like a correct result to me. ~ is not automatically expanded. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9008] CGIHTTPServer support for arbitrary CGI scripts
Éric Araujo mer...@netwok.org added the comment: I’m sorry to have launched this thread. I hadn’t thought that Senthil is doing a lot of good work on HTTP and URI-related modules, and I wanted to express my feeling that this bug would not get fixed without someone proposing a patch. I didn’t want to imply that the request was not valid nor to discourage bug reporters. If I did, I sincerely apologize. To address the issues Anatoly raised before I stop being off-topic: 1) Patch submission: You can already use Mercurial to prepare patches (bare Mercurial, MQ or pbranch, on top of a Subversion checkout or Mercurial clone (code.python.org/hg, kindly maintained by Antoine). 2) No maintainer for CGI: The term “maintainer” is explained at the top of the Misc/maintainers.rst file, it means a core developer taking special care of one area or module. All core developpers are collectively maintaining the whole stdlib; a module without a dedicated maintainer is *not* unmaintained. 3) Nothing better than CGI in stdlib: BaseHTTPServer is handy for quick testing; wsgiref is okay for quick testing of WSGI applications. Third-party servers have different design goals and advantages for various classes of users. 4) The header thing is a bug; I’ll search whether it’s already reported. 5) Current workflow seems good to the vast majority of contributors. I’ve been contributing for a few months and found the workflow reasonable and working, like a lot of people. That said, a Web UI for doc changes with live preview may be a good way to let non-programmers propose fixes; please open a feature request on Sphinx’ tracker (on Bitbucket) or ask for opinions on d...@python.org. Again, we’re all volunteers here, so “you should do X” works a lot less than “I want to do X”. I hope I have provided some hints and data points; I do not wish this off-topic discussion to continue. Like Antoine said, we now understand your viewpoint, and your suggestions for improvement would be more fruitful on relevant mailing lists. Regards -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9008 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4654] os.path.realpath() get the wrong result
Shashwat Anand anand.shash...@gmail.com added the comment: By different issue I meant expected but non-useful output. Although it does exactly what it is supposed to do, but expanding tilde (~) to $HOME could have been the default behavior(more user-friendly I should say). Don't know if that is worth it but the scale seems more on the negative side. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4654] os.path.realpath() get the wrong result
R. David Murray rdmur...@bitdance.com added the comment: I can confirm this works correctly on 32 bit Linux under 2.6.4. Since it is unlikely the width matters to this issue I'm going to close it. If anyone has a case where it fails we can reopen. -- resolution: - out of date stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4654] os.path.realpath() get the wrong result
R. David Murray rdmur...@bitdance.com added the comment: Somebody long ago made the decision that ~ is only expanded if you call expanduser. I don't think this decision is likely to get changed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4654 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com