SQLObject 0.15.1
Hello! I'm pleased to announce version 0.15.1, a bugfix release of branch 0.15 of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to use and quick to get started with. SQLObject supports a number of backends: MySQL, PostgreSQL, SQLite, Firebird, Sybase, MSSQL and MaxDB (also known as SAPDB). Where is SQLObject == Site: http://sqlobject.org Development: http://sqlobject.org/devel/ Mailing list: https://lists.sourceforge.net/mailman/listinfo/sqlobject-discuss Archives: http://news.gmane.org/gmane.comp.python.sqlobject Download: http://cheeseshop.python.org/pypi/SQLObject/0.15.1 News and changes: http://sqlobject.org/News.html What's New == * A bug was fixed in MSSQLConnection. * A minor bug was fixed in sqlbuilder.Union. For a more complete list, please see the news: http://sqlobject.org/News.html Oleg. -- Oleg Broytmanhttp://phdru.name/p...@phdru.name Programmers don't die, they just GOSUB without RETURN. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
SciPy 2011 Call for Papers
Hello, SciPy 2011 http://conference.scipy.org/scipy2011/index.php, the 10th Python in Science conference, will be held July 11 - 16, 2011, in Austin, TX. At this conference, novel applications and breakthroughs made in the pursuit of science using Python are presented. Attended by leading figures from both academia and industry, it is an excellent opportunity to experience the cutting edge of scientific software development. The conference is preceded by two days of tutorials, during which community experts provide training on several scientific Python packages. *We'd like to invite you to consider presenting at SciPy 2011.* The list of topics that are appropriate for the conference includes (but is not limited to): * new Python libraries for science and engineering; * applications of Python to the solution of scientific or computational problems; * high performance, parallel and GPU computing with Python; * use of Python in science education. *Specialized Tracks* This year we also have two specialized tracks. They will be run concurrent to the main conference. *Python in Data Science Chair: Peter Wang, Streamitive, Inc.* This track focuses on the advantages and challenges of applying Python in the emerging field of data science. This includes a breadth of technologies, from wrangling realtime data streams from the social web, to machine learning and semantic analysis, to workflow and repository management for large datasets. *Python and Core Technologies Chair: Anthony Scopatz, Enthought, Inc.* In an effort to broaden the scope of SciPy and to engage the larger community of software developers, we are pleased to introduce the _Python Core Technologies_ track. Talks will cover subjects that are not directly related to science and engineering, yet nonetheless affect scientific computing. Proposals on the Python language, visualization toolkits, web frameworks, education, and other topics are appropriate for this session. *Talk/Paper Submission* We invite you to take part by submitting a talk abstract on the conference website at: http://conference.scipy.org/scipy2011/papers.php Papers are included in the peer-reviewed conference proceedings, to be published online. *Important dates for authors:* Friday, April 15: Tutorial proposals due (remember: stipends will be provided for Tutorial instructors) http://conference.scipy.org/scipy2011/tutorials.php Sunday, April 24: Paper abstracts due Sunday, May 8: Student sponsorship request due http://conference.scipy.org/scipy2011/student.php Tuesday, May 10: Accepted talks announced Monday, May 16: Student sponsorships announced Monday, May 23: Early Registration ends Sunday, June 20: Papers due Monday-Tuesday, July 11 - 12: Tutorials Wednesday-Thursday, July 13 - July 14: Conference Friday-Saturday, July 15 - July 16: Sprints The SciPy 2011 Team @SciPy2011 http://twitter.com/SciPy2011 _ Amenity Applewhite Enthought, Inc. http://www.enthought.com Scientific Computing Solutions -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
All types of Management careers.
Rush for Perfect computer part time online home jobs to earn unlimited. http://rojgars1.webs.com/gov.htmhttp://rojgars.webs.com/bankingjobs.htm Management careers to earn extra. Employments in Management careers. http://managementjobs.webs.com/pm.htm http://jobshunter.webs.com/index.htm -- http://mail.python.org/mailman/listinfo/python-list
Many runner fans were ecstatic to hear about these particular Air max's making a return.
Many runner fans were ecstatic to hear about these particular Air max's making a return. The Nike Air Max 90 is a prized colorway of a classic sneaker, so it only makes sense that its return would create serious buzz. Nike’s Blue Slate Air Max 95 has made a triumphant return to retail shelves this season from Nike Sportswear. The nickname “Slate” comes from entirely the colorway, which is White/New Green-Blue Slate-Black. The retro running shoe features white uppers and a black outsole. Blue accents are seen on areas such as the lace holders and mid-panel. While these retro running shoes were originally released back in 2005 the Air Max 95 “Slates” the new released version is different than the last time we saw these, as black has replaced navy on the top layer, and the lower two rows are the same shade of blue, instead of being slightly different. The Air Flight Family is pleased to welcome a new member to the family, the Air Max 95 basketball shoe. The Falcon appears as a younger generation of the Nike Air Flight 89. The layout of the paneling throughout the upper screams out Air Flight 89, and if you give it a good look you’ll also notice some elements taken from the Air Flight Lite. If you can’t see the Air Flight Lite in the upper you always have the “Flight F” logo on the tongue which is the same as that used on the Flight Lite. To start things off the Air Flight Falcon basketball shoe features a white/metallic silver base constructed from smooth leather and tumbled leather. From there a few hits of black and red were added in, most notably on the glossy Swoosh, Flight tongue tag, and on the Air Jordan IV sole unit, with black corduroy used on the inner lining. Breathing life into the sneakers and giving some accent coloring is red trim throughout the entire upper. Buy Nike Air Max LTD Shoes With Top Quality On airmaxmarket.com Online ,Discount On Sale Nike Air Max 90 Sneakers Fast Shipping. -- http://mail.python.org/mailman/listinfo/python-list
Re: May I discuss here issues on Machine Learning?
On Mar 22, 2011, at 7:18 PM, joy99 wrote: My apology to pose this non python question in this forum. I am trying to develop one Naive Bayes Classifier and one HMM with Python. But my question is not related to Python, rather to these two models, whether I am choosing right parameters, etc for these models. Python is a chosen language for machine learning and as I come here pretty often I found this room is filled with very nice people. I thought if some one would be interested to discuss the issues. If any one wants to discuss personally if he/she can post his/her name, I would discuss with him/her. Sincerely sorry if I have broken norms of the room. I'd say this is not the proper forum, but a closer one would be the scipy and numpy groups. You may even be using scipy and numpy to do this, and they may be able to suggest more efficient libraries to call for doing these sorts of models. bb -- Brian Blais bbl...@bryant.edu http://web.bryant.edu/~bblais http://bblais.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list
Re: May I discuss here issues on Machine Learning?
On Mar 23, 2:57 pm, Brian Blais bbl...@bryant.edu wrote: On Mar 22, 2011, at 7:18 PM, joy99 wrote: My apology to pose this non python question in this forum. I am trying to develop one Naive Bayes Classifier and one HMM with Python. But my question is not related to Python, rather to these two models, whether I am choosing right parameters, etc for these models. Python is a chosen language for machine learning and as I come here pretty often I found this room is filled with very nice people. I thought if some one would be interested to discuss the issues. If any one wants to discuss personally if he/she can post his/her name, I would discuss with him/her. Sincerely sorry if I have broken norms of the room. I'd say this is not the proper forum, but a closer one would be the scipy and numpy groups. You may even be using scipy and numpy to do this, and they may be able to suggest more efficient libraries to call for doing these sorts of models. bb -- Brian Blais bbl...@bryant.eduhttp://web.bryant.edu/~bblaishttp://bblais.blogspot.com/ Thanks Brian. I'll check. I am not using Scipy/Numpy till, I thought using Decimal module, but float is giving me fine results. Any issue if I send the two or three questions? You seem to be a Professor specialized in this area. Best Regards, Subhabrata. -- http://mail.python.org/mailman/listinfo/python-list
urllib2 - not returning page expected after post
I'm trying to automate reverse-ip lookups on domaintools.com. Everything is fine, except that I don't exactly get the data I want after I submit a post to the site. I know the post is correct, the return data just doesn't appear on the post. Not sure what to do at this point. Here is the code: #!/usr/bin/env python import urllib2, urllib, httplib, cookielib h=urllib2.HTTPHandler(debuglevel=1) cj = cookielib.MozillaCookieJar() ##Add some data to the url data = urllib.urlencode({'hostname': 'google.com'}) ##Add a cookie handler cookieHandler = urllib2.HTTPCookieProcessor(cj) redirectionHandler = urllib2.HTTPRedirectHandler() ##Creating a request object - takes url of resource I want to retrieve request = urllib2.Request('http://www.domaintools.com/research/reverse- ip/', data) ##adding useragent to request object request.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15') ##Creating a url opener; can take an number of handlers, which control how responses are handled opener = urllib2.build_opener(h, cookieHandler, redirectionHandler) ##tell the opener to open the url response = opener.open(request) text = response.read() print text -- http://mail.python.org/mailman/listinfo/python-list
Re: side by side python
On Mar 21, 6:31 am, Robert sigz...@gmail.com wrote: Can I install Python 2.7 and 3.2 (from python.org) side by side on OSX without them stepping all over each other? Also look at PEP 394. It makes some suggestions about installing symbolic links to each of the versions. If you do it that way, you can use Python2 for scripts that require 2.7, and Python3 for scripts that require 3.2, and they'll eventually be portable to other systems. John Roth -- http://mail.python.org/mailman/listinfo/python-list
Re: Guido rethinking removal of cmp from sort method
On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing list at the moment, Guido is considering whether or not it was a mistake. If anyone has any use-cases for sorting with a comparison function that either can't be written using a key function, or that perform really badly when done so, this would be a good time to speak up. How about a list of tuples where you want them sorted first item in ascending order en second item in descending order. -- Antoon Pardon -- http://mail.python.org/mailman/listinfo/python-list
Re: Guido rethinking removal of cmp from sort method
Antoon Pardon, 23.03.2011 14:53: On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing list at the moment, Guido is considering whether or not it was a mistake. If anyone has any use-cases for sorting with a comparison function that either can't be written using a key function, or that perform really badly when done so, this would be a good time to speak up. How about a list of tuples where you want them sorted first item in ascending order en second item in descending order. You can use a stable sort in two steps for that. Stefan -- http://mail.python.org/mailman/listinfo/python-list
Threading with Socket Server
Hello all, I am writing a Windows service that needs to 1) Act as a server (TCP), and write to a shelve file, and 2) Read that same shelve file every x number of seconds. My thought is to create 2 separate classes (1 for the socket server and writing to the shelve file, and another to read the file and perform other requested actions) - however, I need to make sure they are both running concurrently. I'm sure threading is involved, but my experience with it has been minimal, so any help to steer me in the right direction is greatly appreciated. -- http://mail.python.org/mailman/listinfo/python-list
pth files and virtualenv
I am not understanding why paths I'm adding to a virtualenv via add2virtualenv are not working. I use this in plenty of other situations, but in this one project (which is on 3.2) I am getting strange behavior. ~/projects/fooproject/# add2virtualenv src/ ~/projects/fooproject/# python3 -c import sys;print(sys.path) ['', '~/projects/fooproject/' ...] See? src/ is missing from the path that gets seen by Python. Did something change in 3 that I am not realizing, which would cause this? The virtualenv_path_extensions.pth file contains the correct path to src/, which is the parent directory of the package I'm actually trying to import. -- Read my blog! I depend on your acceptance of my opinion! I am interesting! http://techblog.ironfroggy.com/ Follow me if you're into that sort of thing: http://www.twitter.com/ironfroggy -- http://mail.python.org/mailman/listinfo/python-list
Validating Command Line Options
For a Python script with multiple command line options, what is the best way to go about validating that only certain options are used together? For example, say -s, -t, and -v are all valid options, but should never be used together (i.e. -s -t would be invalid). Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list
Re: Validating Command Line Options
optparse? http://docs.python.org/library/optparse.html if options.a and options.b: parser.error(options -a and -b are mutually exclusive) On Wed, Mar 23, 2011 at 2:10 PM, T misceveryth...@gmail.com wrote: For a Python script with multiple command line options, what is the best way to go about validating that only certain options are used together? For example, say -s, -t, and -v are all valid options, but should never be used together (i.e. -s -t would be invalid). Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Special logging module needed
Hi All, We have a special problem that needs to be addressed. We need to have a database of log messages. These messages are not simple strings - they are data structures. The log messages are assigned to various objects. Objects can be identified with simple object identifiers (strings). We have about 10 million objects. Most of them only have one or two log messages assigned. Some of them (about 1M objects) will have 10 log messages appended each day. Fewer objects (100K) will have log messages appended even more frequently. Requirements: * The database is mostly write-only. In most of the time, we will be adding messages continuously, and we won't read them back. * Appending new messages should be fast. At least 100 messages / second. * High availability - clients must be able to add new log messages and read back old messages anytime. The service must not stop. * Database is huge. We want to preserve data for one or two years and possibly it will grow to 1TB or something. * We should be able to drop older data (e.g. log messages appended more than 2 years ago) without trouble. * We need to implement incremental backups. For example, we could have a separate database file for every day in the current month, then database files for previous months etc. The main point is that we should be able to make backup copies incrementally, and the logging service should be available at the same time. (It is not curical to have an up-to-date backup from the current day, but we want to backup everything that happened more than a day ago). * Reading back log messages will happen rarely. Average would be 5 times in every minute, and usually only for a given date range. (for example, all messages from 2010 May) But then it should be relatively fast. Even with a 1TB database, we should be able to fulfill such a request within one second. What we where doing until now, is that we have used a directory structure. Every object had a separate CSV file assigned, and new messages where appended into those CSV files. We thought that appending new messages will be fast (fopen + fwrite should be fast) and reading them back sould also be fast. But now we are suffering from these problems: * We have millions of files on disk. Very hard to synchronize them, make incremental backup copies. It is just too slow. * Sometimes the OS cannot handle requests fast enough. There are too many (at least 5million) files on the file system and they are very fragmented. In some cases it takes 10 seconds or more to open a log file for appending. CPU goes up to 100% apparently when the OS tries to open the log file. (dirhash mem already increased to 1GB but it's still not good enough.) I was thinking about using a regular SQL database, but it has problems: * Not easy to do incremental backups * Not that easy to remove old data (e.g. cannot delete 100GB data with SQL without big slowdon) * With a btree index and some 100 million rows already in a table, appending messages may not be fast enough (because of heavy reindexing). I may be wrong about this. I was also thinking about storing data in a gdbm database. One file for each month storing at most 100 log messages for every key value. Then one file for each day in the current month, storing one message for each key value. Incremental backup would be easy, and reading back old messages would be fast enough (just need to do a few hash lookups). However, implementing a high availability service around this is not that easy. I'm just wondering if there is an open source solution for my problem that I don't know of. Thanks, Laszlo -- http://mail.python.org/mailman/listinfo/python-list
Re: Validating Command Line Options
On Wed, Mar 23, 2011 at 10:10 AM, T misceveryth...@gmail.com wrote: For a Python script with multiple command line options, what is the best way to go about validating that only certain options are used together? For example, say -s, -t, and -v are all valid options, but should never be used together (i.e. -s -t would be invalid). Thanks in advance. It looks like argparse supports mutually exclusive option groups. http://argparse.googlecode.com/svn/trunk/doc/other-methods.html#add_mutually_exclusive_group -- http://mail.python.org/mailman/listinfo/python-list
readline module (python: symbol 'tgetnum': can't resolve symbol)
Hi I'm hoping the list could give me some insight into how python behaves when it has been compiled with readline. I sent the following email to the uClibc list which describes my problem, any tips or pointers would be much appreciated! Thanks Bruce Using buildroot, I am able to compile ncurses without any problems. I'm also able to compile readline (which detects ncurses) and finally I'm able to compile python-2.7.1 which detects readline. I boot the embedded OS and I can see all the relevant files: [root@vx-200 ~]# [root@vx-200 ~]# uname -a Linux vx-200 2.6.38-rc5 #1 Wed Mar 23 12:10:46 GMT 2011 armv5tejl GNU/Linux [root@vx-200 ~]# [root@vx-200 ~]# find / -name *readline* | grep ython /usr/lib/python2.7/lib-dynload/readline.so [root@vx-200 ~]# [root@vx-200 ~]# find / -name *libreadline* /usr/lib/libreadline.so.6.1 /usr/lib/libreadline.so /usr/lib/libreadline.a /usr/lib/libreadline.so.6 [root@vx-200 ~]# [root@vx-200 ~]# find / -name *ncurses* /usr/lib/libncurses.so.5 /usr/lib/libncurses.so /usr/lib/libncurses.a /usr/lib/libncurses.so.5.7 /usr/bin/ncurses5-config /usr/include/ncurses.h /usr/include/ncurses_dll.h [root@vx-200 ~]# [ [root@vx-200 ~]# ldd /usr/lib/python2.7/lib-dynload/readline.so checking sub-depends for '/usr/lib/libreadline.so.6' checking sub-depends for '/usr/lib/libncurses.so.5' checking sub-depends for '/lib/libc.so.0' ld-uClibc.so.0 = /lib//ld-uClibc.so.0 (0x40201000) libreadline.so.6 = /usr/lib/libreadline.so.6 (0x) libncurses.so.5 = /usr/lib/libncurses.so.5 (0x) libc.so.0 = /lib/libc.so.0 (0x) /lib//ld-uClibc.so.0 = /lib//ld-uClibc.so.0 (0x) [root@vx-200 ~]# [root@vx-200 ~]# strings /usr/lib/libreadline.so.6 | grep tgetent tgetent [root@vx-200 ~]# strings /usr/lib/libreadline.so.6 | grep tgetnum tgetnum [root@vx-200 ~]# So far everything looks perfect, Python's lib-dynload/readline.so is linked against libreadlineand libreadline has the curses terminfo symbols (tgetent, tgetflag, tgetnum, tgetstr, tgoto, tputs) Next I try and run python, hoping for an interactive shell, the following strace -e trace=open python command shows the relevant bits and the resulting error: [root@vx-200 ~]# strace -e trace=open python open(/usr/lib/python2.7/lib-dynload/readline.so, O_RDONLY|O_LARGEFILE) = 3 open(/usr/lib/python2.7/lib-dynload/readline.so, O_RDONLY) = 4 open(/usr/lib/libreadline.so.6, O_RDONLY) = 4 open(/usr/lib/libncurses.so.5, O_RDONLY) = 4 open(/lib/libc.so.0, O_RDONLY)= 4 open(/lib/libc.so.0, O_RDONLY)= 4 open(/lib/libc.so.0, O_RDONLY)= 4 open(/lib/ld-uClibc.so.0, O_RDONLY) = 4 python: symbol 'BC': can't resolve symbol python: symbol 'PC': can't resolve symbol python: symbol 'UP': can't resolve symbol python: symbol 'tgetnum': can't resolve symbol python: symbol 'tgoto': can't resolve symbol python: symbol 'tgetflag': can't resolve symbol python: symbol 'tputs': can't resolve symbol python: symbol 'tgetent': can't resolve symbol python: symbol 'tgetstr': can't resolve symbol So the Python binary opens lib-dynload/readline.so ...and the necessary libreadline and libncurses . and lastly it opens ld-uClibc which, from my limited understanding would link the addresses of readline and libncurses (which I know contain the symbols) .but apparently they can't be resolved. Could this be a dynamic linking problem? Any help would be much appreciated!! Thanks Bruce -- http://mail.python.org/mailman/listinfo/python-list
Re: Threading with Socket Server
I'm not sure to understand what you want. Is it your server process that will read the shelve file ? You may give more informations about your problem, but i can give you some hints. In order to create a TCP server, you can use SocketServer which is in the builtin library (http://docs.python.org/library/socketserver.html). I'm not sure about how shelve manage concurrency, but in my opinion, you'll need to create a single process or thread which manage read and write operation in order to avoiding race conditions. Cheers, Feld Boris 2011/3/23 T misceveryth...@gmail.com: Hello all, I am writing a Windows service that needs to 1) Act as a server (TCP), and write to a shelve file, and 2) Read that same shelve file every x number of seconds. My thought is to create 2 separate classes (1 for the socket server and writing to the shelve file, and another to read the file and perform other requested actions) - however, I need to make sure they are both running concurrently. I'm sure threading is involved, but my experience with it has been minimal, so any help to steer me in the right direction is greatly appreciated. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Validating Command Line Options
If you're using argparse, you have a method for that named add_mutually_exclusive_group. Tutorial : http://www.doughellmann.com/PyMOTW/argparse/#mutually-exclusive-options Cheers, Feld Boris 2011/3/23 T misceveryth...@gmail.com: For a Python script with multiple command line options, what is the best way to go about validating that only certain options are used together? For example, say -s, -t, and -v are all valid options, but should never be used together (i.e. -s -t would be invalid). Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Free Software University - Python Certificate
On Mar 22, 4:38 pm, Noah Hall enali...@gmail.com wrote: On Tue, Mar 22, 2011 at 11:30 AM, Giovani elgrana...@gmail.com wrote: I don't know whether this site is useful or not. Assuming this site is serious: If you are already subscribed you might be able to give some feedback. One can't even see the list of courses without regsitering. This is very unprofessional and might indicate, that they just want to reap contact information. I'm not the admin of the site, when the course finish will be aviable throgh the main website (I think). One can't even see a date or a time line without registering. So one doesn't even know whether the whole project is already dead for several years or really active. I really active, there more than 100 users registered and lots of them are working to make several course certificates (PHP, Python, Java, JavaScript, FreeNAS, etc..). To me all this does not look professional for somebody who want to attract students / instructors The finally is make professional contents, but this project is already in a early stage. I've been following this project for a while, since it was annouced on the Ubuntu forums. I can't say that I've been at all impressed by anything they have to offer. Although not entirely free and not currently hosting any Python courses you may find this site worth a look over. http://www.codeschool.com/ -- http://mail.python.org/mailman/listinfo/python-list
Discount Wholesale ED Hardy beach shorts man
Discount Wholesale EVISU short jeans man http://www.idesignerworld01.com/ Discount Wholesale G-star long jeans man Discount Wholesale Gucci long jeans man http://www.idesignerworld01.com/ Discount Wholesale Jeep long jeans man http://www.idesignerworld01.com/ Discount Wholesale LB long jeans man Discount Wholesale Lee long jeans man http://www.idesignerworld01.com/ Discount Wholesale Levis long jeans man Discount Wholesale Lv long jeans man Discount Wholesale RMC long jeans man http://www.idesignerworld01.com/ Discount Wholesale RMC short jeans man Discount Wholesale TR long jeans man http://www.idesignerworld01.com/ Discount Wholesale Versace long jeans man Discount Wholesale Affliction beach shorts man http://www.idesignerworld01.com/ Discount Wholesale Armani long jeans man http://www.idesignerworld01.com/ Discount Wholesale BAPE long jeans man Discount Wholesale BAPE short jeans man Discount Wholesale BBC long jeans man http://www.idesignerworld01.com/ Discount Wholesale BBC short jeans man Discount Wholesale CH long jeans man Discount Wholesale CH short jeans man http://www.idesignerworld01.com/ Discount Wholesale Christian Audigier beach shorts man Discount Wholesale Christian Audigier long jeans man Discount Wholesale Christian Audigier short jeans man Discount Wholesale Coogi long jeans man Discount Wholesale Coogi short jeans man http://www.idesignerworld01.com/ Discount Wholesale CROWN HOLDER long jeans man Discount Wholesale CROWN HOLDER short jeans man Discount Wholesale DG long jeans man Discount Wholesale DIESEL long jeans man Discount Wholesale ED Hardy beach shorts man http://www.idesignerworld01.com/ Discount Wholesale ED Hardy long jeans man Discount Wholesale ED Hardy short jeans man Discount Wholesale EVISU long jeans man http://www.idesignerworld01.com/ Discount Wholesale EVISU short jeans man -- http://mail.python.org/mailman/listinfo/python-list
Re: Guido rethinking removal of cmp from sort method
On Wed, Mar 23, 2011 at 02:59:09PM +0100, Stefan Behnel wrote: Antoon Pardon, 23.03.2011 14:53: On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing list at the moment, Guido is considering whether or not it was a mistake. If anyone has any use-cases for sorting with a comparison function that either can't be written using a key function, or that perform really badly when done so, this would be a good time to speak up. How about a list of tuples where you want them sorted first item in ascending order en second item in descending order. You can use a stable sort in two steps for that. Which isn't helpfull if where you decide how they have to be sorted is not the place where they are actually sorted. I have a class that is a priority queue. Elements are added at random but are removed highest priority first. The priority queue can have a key or a cmp function for deciding which item is the highest priority. It can also take a list as an initializor, which will then be sorted. So this list is sorted within the class but how it is sorted is decided outside the class. So I can't do the sort in multiple steps. -- Antoon Pardon -- http://mail.python.org/mailman/listinfo/python-list
Re: Validating Command Line Options
Thanks! argparse is definitely what I need..unfortunately I'm running 2.6 now, so I'll need to upgrade to 2.7 and hope that none of my other scripts break. -- http://mail.python.org/mailman/listinfo/python-list
Re: Threading with Socket Server
The server portion of the program will typically be writing to the shelve file (there may be a few cases in which I will need it to read), and the other part of the program will read it. Basically, I want the following to be able to both go on at the same time: 1) Server portion waits for connections, and upon connection writes data received to shelve file and 2) Continuously polls shelve file every x seconds and checks for new entries. I had given thought to the potential of a race condition as you mentioned, but am not sure of how to safely allow each portion of the program to read/write. -- http://mail.python.org/mailman/listinfo/python-list
Re: Guido rethinking removal of cmp from sort method
On Wed, Mar 23, 2011 at 9:14 AM, Antoon Pardon antoon.par...@rece.vub.ac.be wrote: Which isn't helpfull if where you decide how they have to be sorted is not the place where they are actually sorted. I have a class that is a priority queue. Elements are added at random but are removed highest priority first. The priority queue can have a key or a cmp function for deciding which item is the highest priority. It can also take a list as an initializor, which will then be sorted. So this list is sorted within the class but how it is sorted is decided outside the class. So I can't do the sort in multiple steps. You can't do this? for (key, reversed) in self.get_multiple_sort_keys(): self.pq.sort(key=key, reversed=reversed) -- http://mail.python.org/mailman/listinfo/python-list
Re: Guido rethinking removal of cmp from sort method
Antoon Pardon, 23.03.2011 16:14: On Wed, Mar 23, 2011 at 02:59:09PM +0100, Stefan Behnel wrote: Antoon Pardon, 23.03.2011 14:53: On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing list at the moment, Guido is considering whether or not it was a mistake. If anyone has any use-cases for sorting with a comparison function that either can't be written using a key function, or that perform really badly when done so, this would be a good time to speak up. How about a list of tuples where you want them sorted first item in ascending order en second item in descending order. You can use a stable sort in two steps for that. Which isn't helpfull if where you decide how they have to be sorted is not the place where they are actually sorted. I have a class that is a priority queue. Elements are added at random but are removed highest priority first. The priority queue can have a key or a cmp function for deciding which item is the highest priority. It can also take a list as an initializor, which will then be sorted. So this list is sorted within the class but how it is sorted is decided outside the class. So I can't do the sort in multiple steps. That sounds more like a use case for heap sort than for Python's builtin list sort. See the heapq module. Stefan -- http://mail.python.org/mailman/listinfo/python-list
Re: Guido rethinking removal of cmp from sort method
On Mar 23, 6:59 am, Stefan Behnel stefan...@behnel.de wrote: Antoon Pardon, 23.03.2011 14:53: On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing list at the moment, Guido is considering whether or not it was a mistake. If anyone has any use-cases for sorting with a comparison function that either can't be written using a key function, or that perform really badly when done so, this would be a good time to speak up. How about a list of tuples where you want them sorted first item in ascending order en second item in descending order. You can use a stable sort in two steps for that. How about this one: you have are given an obscure string collating function implented in a C library you don't have the source to. Or how about this: I'm sitting at an interactive session and I have a convenient cmp function but no convenient key, and I care more about the four minutes it'd take to whip up a clever key function or an adapter class than the 0.2 seconds I'd save to on sorting time. Removing cmp from sort was a mistake; it's the most straightforward and natural way to sort in many cases. Reason enough for me to keep it. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list
Re: Guido rethinking removal of cmp from sort method
Carl Banks, 23.03.2011 18:23: On Mar 23, 6:59 am, Stefan Behnel wrote: Antoon Pardon, 23.03.2011 14:53: On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing list at the moment, Guido is considering whether or not it was a mistake. If anyone has any use-cases for sorting with a comparison function that either can't be written using a key function, or that perform really badly when done so, this would be a good time to speak up. How about a list of tuples where you want them sorted first item in ascending order en second item in descending order. You can use a stable sort in two steps for that. How about this one: you have are given an obscure string collating function implented in a C library you don't have the source to. Or how about this: I'm sitting at an interactive session and I have a convenient cmp function but no convenient key, and I care more about the four minutes it'd take to whip up a clever key function or an adapter class than the 0.2 seconds I'd save to on sorting time. As usual with Python, it's just an import away: http://docs.python.org/library/functools.html#functools.cmp_to_key I think this is a rare enough use case to merit an import rather than being a language feature. Stefan -- http://mail.python.org/mailman/listinfo/python-list
Re: urllib2 - not returning page expected after post
On 3/23/2011 5:14 AM, David Feyo wrote: I'm trying to automate reverse-ip lookups on domaintools.com. Sign up for their API. They charge the same as for web lookups. John Nagle -- http://mail.python.org/mailman/listinfo/python-list
Python-URL! - weekly Python news and links (Mar 23)
QOTW: So far as I know, that actually just means that the test suite is insufficient. - Peter Seebach, when an application passes all its tests http://groups.google.com/group/comp.lang.lisp/msg/29aff9595bb0eac0 Administrative note: it's been a while--since the end of October 2010, in fact; Python-URL! has been dormant all that time. It looks as though we're re-activating now, though, and the next month should make apparent whether we've returned to our roughly-weekly schedule. A few minor structural changes are afoot; likely to be of broadest interest is that twits can now follow Python-URL! on URL: http://twitter.com/Phaseit . PyCon2011 had IDE news that made the trade press: http://www.eweek.com/c/a/Application-Development/Microsoft-Launches-Python-Tools-for-Visual-Studio-Beta-638994/?kc=EWKNLITA03152011STR3 Kirby Urner reflects on the virtues of our built-in battery tester: http://mail.python.org/pipermail/edu-sig/2011-February/010179.html regex is important. It's also widely mis-understood, and often results in little more than frustration. This conversation about regex's special characters ends happily: http://groups.google.com/group/comp.lang.python/browse_thread/thread/e8ea8cc833aebac2 While file extensions are among the many topics Python has handled deftly for over two decades now, the best handling continues to update occasionally: http://groups.google.com/group/comp.lang.python/browse_thread/thread/6b166a07312c2c12 Everything Python-related you want is probably one or two clicks away in these pages: Python.org's Python Language Website is the traditional center of Pythonia http://www.python.org Notice especially the master FAQ http://www.python.org/doc/FAQ.html PythonWare complements the digest you're reading with the marvelous daily python url http://www.pythonware.com/daily Just beginning with Python? This page is a great place to start: http://wiki.python.org/moin/BeginnersGuide/Programmers The Python Papers aims to publish the efforts of Python enthusiasts: http://pythonpapers.org/ The Python Magazine is a technical monthly devoted to Python: http://pythonmagazine.com Readers have recommended the Planet site: http://planet.python.org comp.lang.python.announce announces new Python software. Be sure to scan this newsgroup weekly. http://groups.google.com/group/comp.lang.python.announce/topics Python411 indexes podcasts ... to help people learn Python ... Updates appear more-than-weekly: http://www.awaretek.com/python/index.html The Python Package Index catalogues packages. http://www.python.org/pypi/ Much of Python's real work takes place on Special-Interest Group mailing lists http://www.python.org/sigs/ Python Success Stories--from air-traffic control to on-line match-making--can inspire you or decision-makers to whom you're subject with a vision of what the language makes practical. http://www.pythonology.com/success The Python Software Foundation (PSF) has replaced the Python Consortium as an independent nexus of activity. It has official responsibility for Python's development and maintenance. http://www.python.org/psf/ Among the ways you can support PSF is with a donation. http://www.python.org/psf/donations/ The Summary of Python Tracker Issues is an automatically generated report summarizing new bugs, closed ones, and patch submissions. http://search.gmane.org/?author=status%40bugs.python.orggroup=gmane.comp.python.develsort=date nullege is an interesting search Web application, with the intelligence to distinguish between Python code and comments. It provides what appear to be relevant results, and demands neither Java nor CSS be enabled: http://www.nullege.com Although unmaintained since 2002, the Cetus collection of Python hyperlinks retains a few gems. http://www.cetus-links.org/oo_python.html Python FAQTS http://python.faqts.com/ The Cookbook is a collaborative effort to capture useful and interesting recipes: http://code.activestate.com/recipes/langs/python/ Many Python conferences around the world are in preparation. Watch this space for links to them. SciPyTip is a high-quality daily (!) tip for the numerically- inclined: http://twitter.com/SciPyTip Among several Python-oriented RSS/RDF feeds available, see: http://www.python.org/channews.rdf For more, see: http://www.syndic8.com/feedlist.php?ShowMatch=pythonShowStatus=all The old Python To-Do List now lives principally in a SourceForge reincarnation. http://sourceforge.net/tracker/?atid=355470group_id=5470func=browse http://www.python.org/dev/peps/pep-0042/ del.icio.us
Re: Validating Command Line Options
On Mar 23, 3:20 pm, T misceveryth...@gmail.com wrote: Thanks! argparse is definitely what I need..unfortunately I'm running 2.6 now, so I'll need to upgrade to 2.7 and hope that none of my other scripts break. Argparse was a third-party module before it became part of the std- lib. You may find it easier to use this version: http://pypi.python.org/pypi/argparse/ -- http://mail.python.org/mailman/listinfo/python-list
autoscale y to current xrange in view - matplotlib
Hi I am very new to python and matplotlib, so please forgive me if this is a naive question I have a question regarding the y autoscale. I would like it to scale to only the current data in view, not all the data. At the moment the y axes are scaled to some data not currently shown and so very distorted. Is there a way to do this? Thanks for any help So far my script looks like this. import pylab import matplotlib.pyplot as plt import numpy pylab.cla() f=numpy.loadtxt(pattern_5K.ascii) x = f[:,0] data = f[:,1] model = f[:,2] diff = f[:,3] plt.close('all') f, (ax1, ax2) = plt.subplots(2, sharex=True, sharey=False) ax1.set_xlim((21,22)) ax1.plot(x, data, '.', color = 'red', markersize=1), ax1.plot(x, model, '-', color = 'blue', linewidth = 0.5) ax1.set_title('Pattern') ax2.plot(x, diff,'-',color='magenta',linewidth = 0.5) f.subplots_adjust(hspace=0) plt.setp([a.get_xticklabels() for a in f.axes[:-1]], visible=False) plt.show() -- http://mail.python.org/mailman/listinfo/python-list
Re: Special logging module needed
On Wed, Mar 23, 2011 at 7:37 AM, Laszlo Nagy gand...@shopzeus.com wrote: I was also thinking about storing data in a gdbm database. One file for each month storing at most 100 log messages for every key value. Then one file for each day in the current month, storing one message for each key value. Incremental backup would be easy, and reading back old messages would be fast enough (just need to do a few hash lookups). However, implementing a high availability service around this is not that easy. I think a slight variation of this sounds like a good bet for you. But when you open a database, create a temporary copy, and when you close the database, rename it back to its original name. Then your backups should be able to easily get a self-consistent (if not up to the millisecond) snapshot. Or did you have some other problem in mind for the gdbm version? BTW, avoid huge directories of course, especially if you don't have hashed or btree directories. One way is to come up with a longish hash key (sha?), and use a trie-like structure in the filesystem on fibonnaci-length chunks of the hash keys becoming directories and subdirectories. -- http://mail.python.org/mailman/listinfo/python-list
Re: Guido rethinking removal of cmp from sort method
On Mar 23, 10:51 am, Stefan Behnel stefan...@behnel.de wrote: Carl Banks, 23.03.2011 18:23: On Mar 23, 6:59 am, Stefan Behnel wrote: Antoon Pardon, 23.03.2011 14:53: On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing list at the moment, Guido is considering whether or not it was a mistake. If anyone has any use-cases for sorting with a comparison function that either can't be written using a key function, or that perform really badly when done so, this would be a good time to speak up. How about a list of tuples where you want them sorted first item in ascending order en second item in descending order. You can use a stable sort in two steps for that. How about this one: you have are given an obscure string collating function implented in a C library you don't have the source to. Or how about this: I'm sitting at an interactive session and I have a convenient cmp function but no convenient key, and I care more about the four minutes it'd take to whip up a clever key function or an adapter class than the 0.2 seconds I'd save to on sorting time. As usual with Python, it's just an import away: http://docs.python.org/library/functools.html#functools.cmp_to_key I think this is a rare enough use case to merit an import rather than being a language feature. The original question posted here was, Is there a use case for cmp? There is, and your excuse-making doesn't change the fact. It's the most natural way to sort sometimes; that's a use case. We already knew it could be worked around. It's kind of ridiculous to claim that cmp adds much complexity (it's maybe ten lines of extra C code), so the only reason not to include it is that it's much slower than using key. Not including it for that reason would be akin to the special-casing of sum to prevent strings from being concatenated, although omitting cmp would not be as drastic since it's not a special case. Do we omit something that's useful but potentially slow? I say no. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list
Re: May I discuss here issues on Machine Learning?
On 3/22/11 6:18 PM, joy99 wrote: Dear Group, My apology to pose this non python question in this forum. I am trying to develop one Naive Bayes Classifier and one HMM with Python. But my question is not related to Python, rather to these two models, whether I am choosing right parameters, etc for these models. MetaOptimize is a much better forum for these questions: http://metaoptimize.com/qa/ -- 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
Re: Guido rethinking removal of cmp from sort method
Carl Banks pavlovevide...@gmail.com writes: It's kind of ridiculous to claim that cmp adds much complexity (it's maybe ten lines of extra C code), so the only reason not to include it is that it's much slower than using key. Well, I thought it was also to get rid of 3-way cmp in general, in favor of rich comparison. -- http://mail.python.org/mailman/listinfo/python-list
Re: Guido rethinking removal of cmp from sort method
On Mar 23, 1:38 pm, Paul Rubin no.em...@nospam.invalid wrote: Carl Banks pavlovevide...@gmail.com writes: It's kind of ridiculous to claim that cmp adds much complexity (it's maybe ten lines of extra C code), so the only reason not to include it is that it's much slower than using key. Well, I thought it was also to get rid of 3-way cmp in general, in favor of rich comparison. Supporting both __cmp__ and rich comparison methods of a class does add a lot of complexity. The cmp argument of sort doesn't. The cmp argument doesn't depend in any way on an object's __cmp__ method, so getting rid of __cmp__ wasn't any good readon to also get rid of the cmp argument; their only relationship is that they're spelled the same. Nor is there any reason why cmp being a useful argument of sort should indicate that __cmp__ should be retained in classes. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list
Re: Validating Command Line Options
See inline comments On Wed, Mar 23, 2011 at 2:13 PM, Alex Willmer a...@moreati.org.uk wrote: On Mar 23, 3:20 pm, T misceveryth...@gmail.com wrote: Thanks! argparse is definitely what I need..unfortunately I'm running 2.6 now, so I'll need to upgrade to 2.7 and hope that none of my other scripts break. Argparse was a third-party module before it became part of the std- lib. You may find it easier to use this version: http://pypi.python.org/pypi/argparse/ I have used this version successfully on 2.6 including using mutually exclusive groups. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Free Software University - Python Certificate
To me all this does not look professional for somebody who want to attract students / instructors I'm a big fan of the Menu containing a (useless) link to First Menu Item -- http://mail.python.org/mailman/listinfo/python-list
in house pypi?
Greetings, My company want to distribute Python packages internally. We would like something like an internal PyPi where people can upload and easy_install from packages. Is there such a ready made solution? I'd like something as simple as possible, without my install headache. Thanks, -- Miki -- http://mail.python.org/mailman/listinfo/python-list
Instant File I/O
I'm trying to build a feature on to a text-based game that I've been working on that would allow users to view their stats. Information is stored in a flat text database file that is given the same name that they sign into the program with; however, this information doesn't appear in the file until after the program has closed. This poses a problem for retrieving the up-to-date statistics data during the same session. Is there anyway I can fix this? I'm using .write() to write text to the file and the linecache module to retrieve it. Running linecache.clearcache() at the beginning of the stat function doesn't seem to do the trick. Any help would be greatly appreciated! -- http://mail.python.org/mailman/listinfo/python-list
Re: Instant File I/O
I'm not familiar with linecache.clearcache(), but did you flush the data to the filesystem with file_.flush() ? On Wed, Mar 23, 2011 at 9:53 PM, jam1991 jordanmeyer1...@gmail.com wrote: I'm trying to build a feature on to a text-based game that I've been working on that would allow users to view their stats. Information is stored in a flat text database file that is given the same name that they sign into the program with; however, this information doesn't appear in the file until after the program has closed. This poses a problem for retrieving the up-to-date statistics data during the same session. Is there anyway I can fix this? I'm using .write() to write text to the file and the linecache module to retrieve it. Running linecache.clearcache() at the beginning of the stat function doesn't seem to do the trick. Any help would be greatly appreciated! -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
[issue10978] Add optional argument to Semaphore.release for releasing multiple threads
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10978 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3056] Simplify the Integral ABC
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - low versions: +Python 3.3 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3056 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4498] Compiler warning signed/unsigned comparison in mmapmodule
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I no longer have access to the compiler that emitted the warning. -- resolution: - out of date status: open - closed title: Compiler warning signed/unsigned comparion in mmapmodule - Compiler warning signed/unsigned comparison in mmapmodule ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4498 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10550] Windows: leak in test_concurrent_futures
Stefan Krah stefan-use...@bytereef.org added the comment: I can't reproduce it any more. Looks like it has been fixed in the meantime. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10550 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11629] Reference implementation for PEP 397
anatoly techtonik techto...@gmail.com added the comment: There is no such PEP - http://www.python.org/dev/peps/pep-0397/ -- nosy: +techtonik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11629] Reference implementation for PEP 397
Georg Brandl ge...@python.org added the comment: Now there is :) -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11633] regression: print buffers output when end=''
STINNER Victor victor.stin...@haypocalc.com added the comment: amaury When python is run from a console, sys.stdout is line buffered. amaury sys.stdout.write() flushes if there is a carriage return. amaury No need to change anything here. Anatoly would like a flush after all calls to print(). print() could call file.flush() if file.isatty(), *after* the multiple calls to file.write(). I vote +0 to change print(), call sys.stdout.flush(), if: - file option is not used (and so, sys.stdout is used) - sys.stdout is a TTY - end option is used (fast heuristic to check if print will write a newline or not, a better one whould be to check if end contains a newline character or not, but we had to check for \n and/or \r, for a little gain) But I don't want to change print() for print(text, file=file), because it would make Python slower and print(... file=file) is not used to an interactive prompt or to display informations to the user. Behavior is same when pasting into interactive interpreter ... I presume interpreter flushes before or after printing next prompt. Did you wrote all commands on the same line? Python does change stdout buffer in interactive mode: if (Py_UnbufferedStdioFlag) { #ifdef HAVE_SETVBUF setvbuf(stdin, (char *)NULL, _IONBF, BUFSIZ); setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ); setvbuf(stderr, (char *)NULL, _IONBF, BUFSIZ); #else /* !HAVE_SETVBUF */ setbuf(stdin, (char *)NULL); setbuf(stdout, (char *)NULL); setbuf(stderr, (char *)NULL); #endif /* !HAVE_SETVBUF */ } else if (Py_InteractiveFlag) { #ifdef MS_WINDOWS /* Doesn't have to have line-buffered -- use unbuffered */ /* Any set[v]buf(stdin, ...) screws up Tkinter :-( */ setvbuf(stdout, (char *)NULL, _IONBF, BUFSIZ); #else /* !MS_WINDOWS */ #ifdef HAVE_SETVBUF setvbuf(stdin, (char *)NULL, _IOLBF, BUFSIZ); setvbuf(stdout, (char *)NULL, _IOLBF, BUFSIZ); #endif /* HAVE_SETVBUF */ #endif /* !MS_WINDOWS */ /* Leave stderr alone - it should be unbuffered anyway. */ } #ifdef __VMS else { setvbuf (stdout, (char *)NULL, _IOLBF, BUFSIZ); } #endif /* __VMS */ (it doesn't check if stdout is a TTY or not, but I don't think that it is very useful to use the interactive mode outside a TTY) I have always experienced and expected Python's print to screen to be immediately visible. I thought that was pretty standard in other languages with a print-to-screen separate from general file-write. Did you try Perl, Ruby, bash and other languages? I know that at least the C language requires an explicit call to fflush(stdout). I always used that. Terry, IDLE is completely different, its sys.stdout completely bypasses the new io stack, and there is no buffering... As I wrote: unbuffered mode is not implemented for TextIOWrapper. So even with python3 -u, sys.stdout.write(abc) doesn't flush immediatly into the underlying FileIO. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11633 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11627] segfault raising an arbitrary object as an exception
Changes by Georg Brandl ge...@python.org: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11627 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11648] openlog()s 'logopt' keyword broken in syslog module
Georg Brandl ge...@python.org added the comment: Now that keyword support was introduced, I'd rather fix the documentation to use the new name. -- assignee: - docs@python components: +Documentation -Library (Lib) nosy: +docs@python, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11648 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11635] concurrent.futures uses polling
Brian Quinlan br...@sweetapp.com added the comment: Your approach seems workable but your patch allows the interpreter to exit while work items are still being processed. See the comment at the top of concurrent/futures/thread.py. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11635 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11648] openlog()s 'logopt' keyword broken in syslog module
Eric Smith e...@trueblade.com added the comment: I agree with Georg, unfortunately. And I say unfortunately because neither logopt nor logoption is a good name. The log part adds nothing. The man page for syslog calls this option, which would be my preferred name. But changing it now would be a hassle. Also, we clearly need a test for this, since apparently none failed when it was changed to the longer name. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11648 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11230] Full unicode import system not in 3.2
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11230 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding
New submission from Gunnar Aastrand Grimnes gromg...@gmail.com: The startElementNS method in the XMLGenerator ignores the encoding set. it does: self._out.write(' xmlns:%s=%s' % (prefix, uri)) whereas it should have done: self._write(' xmlns:%s=%s' % (prefix, uri)) Issue 938076 was similar to this, but for a different method. -- components: XML messages: 131863 nosy: gromgull priority: normal severity: normal status: open title: startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11649 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: 14:23 ~ $ python3 Python 3.3a0 (default:4a5782a2b074, Mar 21 2011, 15:20:28) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. ^Z [1]+ Stopped python3 14:25 ~ $ 14:25 ~ $ fg python3 [56455 refs] [36537 refs] And 14:29 ~/src/cpython $ ./python.exe Python 3.3a0 (default:267578b2422d, Mar 23 2011, 13:27:15) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. ^Z [3]+ Stopped ./python.exe 14:29 ~/src/cpython $ fg ./python.exe [56559 refs] [36610 refs] -- components: IO, Interpreter Core messages: 131864 nosy: sdaoden priority: normal severity: normal status: open title: CTRL-Z causes interpreter exit versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9523] Improve dbm modules
Ray.Allen ysj@gmail.com added the comment: Updated patch: 1, Changes follows review comments: http://codereview.appspot.com/4185044/. Thanks eric! 2, Make Objects/dictobject.c:all_contained_in() a common useful limited api Object/abstract.c:_PyObject_AllContainedIn() for the purpose of re-usage in Modules/_gdbmmodule.c and Modules/_dbmmodule.c. Not sure if this is proper. I will ask somebody with C knowledge to do a review on the C code. -- Added file: http://bugs.python.org/file21355/issue_9523_3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
STINNER Victor victor.stin...@haypocalc.com added the comment: I don't have this behaviour on Linux. Is it specific to Mac OS X? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11635] concurrent.futures uses polling
Antoine Pitrou pit...@free.fr added the comment: Your approach seems workable but your patch allows the interpreter to exit while work items are still being processed. See the comment at the top of concurrent/futures/thread.py. Why are you saying that? In my patch, _python_exit() still takes care of joining worker threads. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11635 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Wed, Mar 23, 2011 at 01:38:46PM +, STINNER Victor wrote: I don't have this behaviour on Linux. Is it specific to Mac OS X? (Wish i could tell ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Ezio Melotti ezio.melo...@gmail.com added the comment: On linux it looks the same for me, but when I press enter the prompt appears again: $ ./python Python 3.3a0 (default:f8d6f6797909, Mar 20 2011, 05:55:16) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. [1]+ Stopped ./python wolf@hp:~/dev/py/py3k$ fg ./python hit enter here [57710 refs] -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Wed, Mar 23, 2011 at 01:44:06PM +, Ezio Melotti wrote: On linux it looks the same for me, but when I press enter the prompt appears again: 14:49 ~ $ jobs 14:49 ~ $ python3 Python 3.3a0 (default:4a5782a2b074, Mar 21 2011, 15:20:28) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. ^Z [1]+ Stopped python3 14:49 ~ $ fg python3 [56455 refs] [36537 refs] 14:49 ~ $ jobs 14:49 ~ $ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: 8) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Charles-Francois Natali neolo...@free.fr added the comment: What's the problem here ? CTRL-Z causes the controlling terminal to send a SIGTSTP to the process, and the default handler stops the process, pretty much like a SIGSTOP. If you don't want that to happen: import signal signal.signal(signal.SIGTSTP, signal.SIG_IGN) -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Wed, Mar 23, 2011 at 02:05:46PM +, Charles-Francois Natali wrote: What's the problem here ? CTRL-Z causes the controlling terminal to send a SIGTSTP to the process, and the default handler stops the process, pretty much like a SIGSTOP. If you don't want that to happen: import signal signal.signal(signal.SIGTSTP, signal.SIG_IGN) (What's happening: it's so unresponsive when i try your code .. :) Rather, i want an interactive python to integrate itself neatlessly into normal shell job control, say! Thus i always hope that a program takes care about SIGCONT!! I'm stuck here, grep(1)ing everywhere and only find Modules/signalmodule.c for SIGCONT and SIGTSTP (it's *NOT* SunOS). Where is Python handling job control? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Wed, Mar 23, 2011 at 02:05:46PM +, Charles-Francois Natali wrote: import signal signal.signal(signal.SIGTSTP, signal.SIG_IGN) 15:27 ~/tmp $ python3 Python 3.3a0 (default:4a5782a2b074, Mar 21 2011, 15:20:28) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type help, copyright, credits or license for more information. import signal [56457 refs] signal.signal(signal.SIGCONT, lambda sig,frame: print('GOT SIG', sig)) 0 [56488 refs] ^Z [1]+ Stopped python3 15:29 ~/tmp $ fg python3 GOT SIG 19 [56489 refs] [36546 refs] 15:29 ~/tmp $ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Davide Rizzo sor...@gmail.com added the comment: davide@macrisorto ~/cpython $ ./python.exe Python 3.3a0 (default:4a5782a2b074, Mar 23 2011, 15:26:35) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. ^Z [1]+ Stopped ./python.exe davide@macrisorto ~/cpython $ fg ./python.exe davide@macrisorto ~/cpython $ System Python on OS X 10.6.6: davide@macrisorto ~/py2.6 $ python Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type help, copyright, credits or license for more information. [1]+ Stopped python davide@macrisorto ~/py2.6 $ fg python ^D davide@macrisorto ~/py2.6 $ (works as expected) -- Python 2.6.6 from hg: davide@macrisorto ~/py2.6 $ ./python.exe Python 2.6.6+ (unknown, Mar 23 2011, 15:19:22) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type help, copyright, credits or license for more information. ^Z [1]+ Stopped ./python.exe davide@macrisorto ~/py2.6 $ fg ./python.exe [38594 refs] [16875 refs] davide@macrisorto ~/py2.6 $ (same behavior as first post) -- nosy: +davide.rizzo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
Ezio Melotti ezio.melo...@gmail.com added the comment: testing nosy -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
Ezio Melotti ezio.melo...@gmail.com added the comment: testing again -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Charles-Francois Natali neolo...@free.fr added the comment: I'm still not sure I understand the problem. - when you hit CTRL-Z, the process is put in background, since it receives a SIGTSTP : normal - when you put it in foreground with 'fg', it doesn't resume ? Did you try to hit ENTER to have sys.ps1 ' ' printed to stdout ? Or did the process exit ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11649] startElementNS in xml.sax.saxutils.XMLGenerator ignored encoding
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Do you have a test or a small script which shows the incorrect output? -- nosy: +amaury.forgeotdarc stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11649 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Davide Rizzo sor...@gmail.com added the comment: The process did exit on fg. Compare with the 2nd paste on my previous message (Python shipped with OS X). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9523] Improve dbm modules
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: The exit status code is always 0. It seems to me somewhere in a run() somebody sets some 'do exit' and thus causing a normal exit. But i really can't find something down in pythonrun.c at a short glance (and i just dived shallow into Python yet), and i'm in a hurry, too much to compile+fprintf() pythonrun.c right now. Maybe someone with glue on Python mainloop can give some hints, i'll try this evening to instrument the call graph a bit. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
New submission from Antoine Pitrou pit...@free.fr: Summary: - remove make quicktest and make memtest - when -j0 is passed to regrtest, use the cpu count detected by multiprocessing - remove the duplicate test in make test - add -j0 to the test options in make test The patch is against default but perhaps we should apply to 3.2 as well. -- components: Tests files: maketest.patch keywords: patch messages: 131882 nosy: barry, ncoghlan, pitrou priority: normal severity: normal stage: patch review status: open title: Improve test targets in Makefile type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file21356/maketest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Barry A. Warsaw ba...@python.org added the comment: I propose instead to change 'make quicktest' to use -j(N1) and blacklist the following tests: test_mmap test_shelve test_posix test_largefile test_concurrent_futures Then (for me) it runs in 3m20s wall clock time which is totally reasonable and I think also still useful. Note that -j is incompatible with -l so some refactoring of TESTOPTS will probably be required. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11629] Reference implementation for PEP 397
Changes by David Fraser dav...@sjsoft.com: -- nosy: +davidfraser ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Antoine Pitrou pit...@free.fr added the comment: I propose instead to change 'make quicktest' to use -j(N1) and blacklist the following tests: test_mmap test_shelve test_posix test_largefile test_concurrent_futures Why would you blacklist these tests? They are useful. I agree with Skip's latest message on python-dev: if you blacklist things you are removing some coverage. Do note that the most resource-consuming tests are already enabled only when -usomething is passed. Then (for me) it runs in 3m20s wall clock time which is totally reasonable and I think also still useful. Note that -j is incompatible with -l so some refactoring of TESTOPTS will probably be required. In the patch I've removed -l, which I've never seen do anything useful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Charles-Francois Natali neolo...@free.fr added the comment: In that case, it's likely due to the way OS-X handles interrupted syscalls. Under Linux, getchar and friends (actually read with default SA_RESTART) won't return EINTR on (SIGSTOP|SIGTSTP)/SIGCONT. Under OS-X, it seems that e.g. getchar (read) does return EOF with errno set to EINTR, in which case the interactive interpreter will exit, if errno is not checked. Out of curiosity, could you try the C snippet: #include stdio.h int main(int argc, char *argv[]) { int c; if ((c = getchar()) == EOF) { perror(getchar); } return 0; } And interrupt it with CTRL-Z ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Barry A. Warsaw ba...@python.org added the comment: On Mar 23, 2011, at 03:14 PM, Antoine Pitrou wrote: test_mmap test_shelve test_posix test_largefile test_concurrent_futures Why would you blacklist these tests? They are useful. Please keep in mind the use case. Are these really necessary in a push-race, post-local-merge, does Python crash-and-burn case? I agree with Skip's latest message on python-dev: if you blacklist things you are removing some coverage. Of course, but everyone who develops Python should understand when to run the appropriate test target wink. In the patch I've removed -l, which I've never seen do anything useful. +1. I think -j is more useful than -l. -Barry -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
Ezio Melotti ezio.melo...@gmail.com added the comment: testing nosy -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: -ezio.melotti, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +georg.brandl -pitrou priority: - release blocker versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2771] Test issue
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: r.david.murray - nosy: +ezio.melotti -georg.brandl, python-dev, r.david.murray priority: release blocker - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Nadeem Vawda nadeem.va...@gmail.com added the comment: - when -j0 is passed to regrtest, use the cpu count detected by multiprocessing - remove the duplicate test in make test - add -j0 to the test options in make test +1. The duplicate test seems quite wasteful (outside of testall). Is there any reason not to add -j0 for testall as well? I think there is merit in keeping the quicktest target, though. Perhaps it could be renamed to make it clear that it is only meant for use after merge races? How does racetest sound? -- nosy: +nvawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11650] CTRL-Z causes interpreter exit
Davide Rizzo sor...@gmail.com added the comment: You are right. The previous runs were without readline. With readline it behaves as expected. For the sake of completeness, here's the output of your snippet after Ctrl+Z, fg: getchar: Interrupted system call -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11650 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3080] Full unicode import system
STINNER Victor victor.stin...@haypocalc.com added the comment: test the fixed nosy list -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Antoine Pitrou pit...@free.fr added the comment: Is there any reason not to add -j0 for testall as well? Have you looked at the patch? :) Are these really necessary in a push-race, post-local-merge, does Python crash-and-burn case? Yes, they are. If they are not significant, they should be removed. If they are significant, they should be run. Perhaps it could be renamed to make it clear that it is only meant for use after merge races? How does racetest sound? Sorry, that's completely bogus. If a merge race may introduce a regression, then there's no reason the regression will occur in the non-blacklisted tests. Have you heard of Murphy's law? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Barry A. Warsaw ba...@python.org added the comment: On Mar 23, 2011, at 04:06 PM, Antoine Pitrou wrote: Sorry, that's completely bogus. If a merge race may introduce a regression, then there's no reason the regression will occur in the non-blacklisted tests. Have you heard of Murphy's law? That's not the point. If it was, you'd always have to run make testall whenever you were resolving a merge race. Otherwise you could leave out something important, right? When you're in the middle of a merge race, you've *already* thoroughly tested your change, along with the full test suite, with a relatively up-to-date python tree + your changes wink. You've now merged any changes that have come in since you did your thorough tests, and you're trying to beat the other guy to the push. You want something that can run *fast* and just proves that the merge didn't hose Python in some brown paper bag way. It is not intended to be a thorough test since you've already done that. Anything more than a smoke test will be discovered by the buildbots. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Antoine Pitrou pit...@free.fr added the comment: You've now merged any changes that have come in since you did your thorough tests, and you're trying to beat the other guy to the push. You want something that can run *fast* and just proves that the merge didn't hose Python in some brown paper bag way. What does brown paper bag way mean? It seems to be some kind of urban legend at this point. A merge won't magically break all C files and prevent Python from compiling. Especially if no C files were touched in the first place! If you are confident that you didn't introduce any issue then just commit your merge and push (or run the tests which are relevant to your initial commit). Oh, and again, if some tests are slow on your system, then *please* open issues about them (and/or investigate *why* they are slow). That's much better than ignoring/blacklisting them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11652] urlib2 returns a pair of integers as the content-length value
New submission from Billy Saelim sae...@gmail.com: urlopen does not always return a single value for 'content-length'. For example: import urllib2 request = 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.zip' fp = urllib2.urlopen(request) fp.info().dict {'content-length': '289519, 289519', 'x-varnish': '929586024', 'via': '1.1 varnish', 'age': '0', 'expires': 'Fri, 25 Mar 2011 14:36:43 GMT', 'server': 'Apache/2.2.3 (CentOS)', 'last-modified': 'Sat, 07 Feb 2009 19:15:15 GMT', 'connection': 'close', 'etag': '46aef-46258f510b6c0', 'date': 'Wed, 23 Mar 2011 14:36:43 GMT', 'content-type': 'application/zip'} -- components: Library (Lib) messages: 131894 nosy: Billy.Saelim priority: normal severity: normal status: open title: urlib2 returns a pair of integers as the content-length value type: behavior versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Barry A. Warsaw ba...@python.org added the comment: On Mar 23, 2011, at 04:22 PM, Antoine Pitrou wrote: What does brown paper bag way mean? It seems to be some kind of urban legend at this point. A merge won't magically break all C files and prevent Python from compiling. Especially if no C files were touched in the first place! This whole thread came up originally because some folks wanted a smoke test while resolving the merge race window. If you are confident that you didn't introduce any issue then just commit your merge and push (or run the tests which are relevant to your initial commit). A smoke test addresses the confidence issue, while not introducing a longer race window to run the full test suite. Oh, and again, if some tests are slow on your system, then *please* open issues about them (and/or investigate *why* they are slow). That's much better than ignoring/blacklisting them. Sure. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11629] Reference implementation for PEP 397
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11629 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
New submission from Skip Montanaro s...@pobox.com: At Antoine's behest, I tried running ./python.exe -m test -j2 in my cpython sandbox and saw several test case failures which didn't appear when I executed a simple make test He suggested I add the -W flag and try again. I did, but I don't see any difference in the output, so either I'm still doing something wrong or the -W flag is somehow mishandled. As far as I can tell the failing tests were not re-run in verbose mode. script command output attached. I ran these tests on Mac OS X Leopard (10.5.8). S -- components: Tests files: typescript messages: 131896 nosy: skip.montanaro priority: normal severity: normal status: open title: Problems with some tests using -j2 versions: Python 3.3 Added file: http://bugs.python.org/file21357/typescript ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11652] urlib2 returns a pair of integers as the content-length value
Santoso Wijaya santoso.wij...@gmail.com added the comment: Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import urllib2 request = 'http://wwwsearch.sourceforge.net/mechanize/src/mechanize-0.1.11.zip' fp = urllib2.urlopen(request) fp.info()['content-length'] '289519, 289519' Not reproducible on Python 3.2+ (presumably 3.x, as well). -- nosy: +santa4nt versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ezio.melotti, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11652] urlib2 returns a pair of integers as the content-length value
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Interesting, the Content-Length header was sent twice: HTTP/1.1 200 OK Server: Apache/2.2.3 (CentOS) Last-Modified: Sat, 07 Feb 2009 19:15:15 GMT ETag: 46aef-46258f510b6c0 Content-Length: 289519 Expires: Fri, 25 Mar 2011 17:32:49 GMT Content-Type: application/zip Content-Length: 289519 Date: Wed, 23 Mar 2011 17:32:49 GMT X-Varnish: 93013 Age: 0 Via: 1.1 varnish -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11652 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11653] Problems with some tests using -j2
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11651] Improve test targets in Makefile
Ross Lagerwall rosslagerw...@gmail.com added the comment: The patch seems to work. I agree that quicktest and memtest should be removed as well as the duplicate test. The only thing I would change is to create the number of jobs to be double the cpu count - I think this works quicker. I don't think the length of testing is so bad on my 3 year old core 2 duo it takes 2:40 to run: EXTRATESTOPTS=-j4 time make test -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11651 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com