Wing IDE 4.1.1 released

2011-11-16 Thread Wingware
Hi, Wingware has released version 4.1.1 of Wing IDE, an integrated development environment designed specifically for the Python programming language. Wing IDE is a cross-platform Python IDE that provides a professional code editor with vi, emacs, and other key bindings, auto-completion, call

ANN: Spyder v2.1.2

2011-11-16 Thread Pierre Raybaut
Hi all, On the behalf of Spyder's development team (http://code.google.com/p/spyderlib/people/list), I'm pleased to announce that Spyder v2.1.2 has been released and is available for Windows XP/Vista/7, GNU/Linux and MacOS X: http://code.google.com/p/spyderlib/ As this is mostly a maintenance

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread Tim Golden
On 16/11/2011 03:38, goldtech wrote: Hi, Using Windows. Is there a python shell that has a history of typed in commands? Have a look at DreamPie: http://dreampie.sourceforge.net/ TJG -- http://mail.python.org/mailman/listinfo/python-list

unit-profiling, similar to unit-testing

2011-11-16 Thread Ulrich Eckhardt
Hi! I'm currently trying to establish a few tests here that evaluate certain performance characteristics of our systems. As part of this, I found that these tests are rather similar to unit-tests, only that they are much more fuzzy and obviously dependent on the systems involved, CPU load,

Re: (don't bash me too hard) Python interpreter in JavaScript

2011-11-16 Thread Amirouche Boubekki
Héllo I am looking for a way how to bring Python interpreter to JavaScript, in order to provide a web-based application with python scripting capabilities. The app would have basic IDE for writing and debugging the python code, but the interpretation, of course, would be done in JavaScript.

Re: suppressing import errors

2011-11-16 Thread Andreea Babiuc
Loving the offtopic guys, sorry I have to go back to my problem now.. In the module I want to import I have a few import statements for Maya commands that don't work outside Maya unless I use the Maya standalone interpreter. So before I import this module I need to make sure I import maya and

Re: Got some problems when using logging Filter

2011-11-16 Thread Jean-Michel Pichavant
sword wrote: The logging cookbook gives an Filter example, explainning how to add contextural info to log. I can't figure out how to filter log from it. Suppose I have 3 file, a.py, b.py and main.py #file: a.py import logging logger=logging.getLogger(__name__) def print_log():

Re: Got some problems when using logging Filter

2011-11-16 Thread sword
On Nov 16, 7:40 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: sword wrote: The logging cookbook gives an Filter example, explainning how to add contextural info to log. I can't figure out how to filter log from it. Suppose I have 3 file, a.py, b.py and main.py #file: a.py

Re: redis beginner question

2011-11-16 Thread Jabba Laci
Why do you want to stop redis after your program terminates?  Generally, you just start redis up when the system boots and leave it running. Hi, OK, so it's more like MySQL or PostgeSQL, i.e. leave the server running in the background. I wanted to use it like SQLite, i.e. let it run only when

Multiple threads

2011-11-16 Thread Eduardo Oliva
Hello, I have a py script that reads for all m2ts video files and convert them to mpeg using ffmpeg with command line. What I want to do is: I need my script to run 2 separated threads, and then when the first has finished, starts the next onebut no more than 2 threads. I know that

Re: Multiple threads

2011-11-16 Thread Chris Angelico
On Thu, Nov 17, 2011 at 12:48 AM, Eduardo Oliva dut...@gmail.com wrote: Hello, I have a py script that reads for all m2ts video files and convert them to mpeg using ffmpeg with command line. What I want to do is:  I need my script to run 2 separated threads, and then when the first has

Re: Multiple threads

2011-11-16 Thread Henrik Faber
On 16.11.2011 14:48, Eduardo Oliva wrote: I need my script to run 2 separated threads, and then when the first has finished, starts the next onebut no more than 2 threads. I know that Semaphores would help with that. But the problem here is to know when the thread has finished its

Re: unit-profiling, similar to unit-testing

2011-11-16 Thread Roy Smith
In article 95bcp8-bft@satorlaser.homedns.org, Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Hi! I'm currently trying to establish a few tests here that evaluate certain performance characteristics of our systems. As part of this, I found that these tests are rather similar

Re: redis beginner question

2011-11-16 Thread Roy Smith
In article mailman.2766.1321449007.27778.python-l...@python.org, Jabba Laci jabba.l...@gmail.com wrote: Why do you want to stop redis after your program terminates?  Generally, you just start redis up when the system boots and leave it running. Hi, OK, so it's more like MySQL or

Re: Got some problems when using logging Filter

2011-11-16 Thread Peter Otten
sword wrote: Thanks for your reply. I tried to edit the source a bit, now the main.py looks like this: #main.py import logging from logging import Filter import a import b logging.basicConfig(level=logging.DEBUG) root = logging.getLogger() root.addFilter(Filter(GoneWithTheWind)) #so I

Re: Multiple threads

2011-11-16 Thread Christian Heimes
Am 16.11.2011 14:48, schrieb Eduardo Oliva: Hello, I have a py script that reads for all m2ts video files and convert them to mpeg using ffmpeg with command line. What I want to do is: I need my script to run 2 separated threads, and then when the first has finished, starts the next

Re: Multiple threads

2011-11-16 Thread Thomas Rachel
Am 16.11.2011 14:48 schrieb Eduardo Oliva: Hello, I have a py script that reads for all m2ts video files and convert them to mpeg using ffmpeg with command line. What I want to do is: I need my script to run 2 separated threads, and then when the first has finished, starts the next

try - except. How to identify errors unknown in advance?

2011-11-16 Thread Frederic Rentsch
Hi all, I'd like to log MySQL errors. If I do: try: (command) except MySQLdb.OperationalError, e: print e I may get something like: (1136, Column count doesn't match value count at row 1) If I don't know in advance which error to expect, but on the contrary want to

Re: Multiple threads

2011-11-16 Thread Jack Keegan
Hi Chris, On Wed, Nov 16, 2011 at 1:55 PM, Chris Angelico ros...@gmail.com wrote: First off, it's better in CPython (the most popular Python) to use multiple processes than multiple threads. I had been looking into treads and process/subprocess myself a while ago and couldn't decide which

Re: try - except. How to identify errors unknown in advance?

2011-11-16 Thread Chris Kaynor
On Wed, Nov 16, 2011 at 8:57 AM, Frederic Rentsch anthra.nor...@bluewin.ch wrote: Hi all, I'd like to log MySQL errors. If I do:        try: (command)        except MySQLdb.OperationalError, e: print e I may get something like:        (1136, Column count doesn't match value count at row

Re: Multiple threads

2011-11-16 Thread Dave Angel
On 11/16/2011 12:00 PM, Jack Keegan wrote: Hi Chris, On Wed, Nov 16, 2011 at 1:55 PM, Chris Angelicoros...@gmail.com wrote: First off, it's better in CPython (the most popular Python) to use multiple processes than multiple threads. I had been looking into treads and process/subprocess

Re: Multiple threads

2011-11-16 Thread Michael Hunter
On Wed, Nov 16, 2011 at 9:27 AM, Dave Angel d...@davea.name wrote: On 11/16/2011 12:00 PM, Jack Keegan wrote: [...] Processes [...] and the OS is generally better at scheduling them than it is at scheduling threads within a single process.  If you have multiple cores, the processes can really

How to use pySerial under Windows 7 without administrator rights

2011-11-16 Thread furoscame
Hello together, currently I try to use pySerial under Windows 7. But it is not possible to open a serial port without running the script under adminstrator rights. Other programs like Terraterm are able to so without adminstrator rights. What is the reason for that and is it possible open a

Re: Multiple threads

2011-11-16 Thread Dave Angel
On 11/16/2011 12:55 PM, Michael Hunter wrote: On Wed, Nov 16, 2011 at 9:27 AM, Dave Angeld...@davea.name wrote: On 11/16/2011 12:00 PM, Jack Keegan wrote: [...] Processes [...] and the OS is generally better at scheduling them than it is at scheduling threads within a single process. If you

Re: Multiple threads

2011-11-16 Thread Dave Angel
On 11/16/2011 01:22 PM, Dave Angel wrote: (You're top-posting. Put your remarks AFTER what you're quoting) On 11/16/2011 12:52 PM, Jack Keegan wrote: Ok, I thought that processes would do the same job as threads. So would the general rule be some thing like so: If I want another piece of

Re: try - except. How to identify errors unknown in advance?

2011-11-16 Thread Frederic Rentsch
On Wed, 2011-11-16 at 09:09 -0800, Chris Kaynor wrote: On Wed, Nov 16, 2011 at 8:57 AM, Frederic Rentsch anthra.nor...@bluewin.ch wrote: Hi all, I'd like to log MySQL errors. If I do: try: (command) except MySQLdb.OperationalError, e: print e I may get something

Re: try - except. How to identify errors unknown in advance?

2011-11-16 Thread Christian Heimes
Am 16.11.2011 19:39, schrieb Frederic Rentsch: pyimport sys pytry: py raise RuntimeError py except: py print sys.exc_info() py (type 'exceptions.RuntimeError', RuntimeError(), traceback object at 0x02371588) Chris, Thanks very much! Great help! How about using the excellent

Re: try - except. How to identify errors unknown in advance?

2011-11-16 Thread MRAB
On 16/11/2011 17:09, Chris Kaynor wrote: On Wed, Nov 16, 2011 at 8:57 AM, Frederic Rentsch anthra.nor...@bluewin.ch wrote: Hi all, I'd like to log MySQL errors. If I do: try: (command) except MySQLdb.OperationalError, e: print e I may get something like: (1136,

Re: (n00b) Tkinter trouble

2011-11-16 Thread Jason Swails
On Tue, Nov 15, 2011 at 10:49 PM, Chris Angelico ros...@gmail.com wrote: On Wed, Nov 16, 2011 at 2:02 PM, Jason Swails jason.swa...@gmail.com wrote: Apparently I could not do what I was wanting to (state=DISABLED is not a valid option to Toplevel). What I wanted to do was something similar

Re: redis beginner question

2011-11-16 Thread Rafael Durán Castañeda
El 16/11/11 03:22, Jabba Laci escribió: Hi, I'm reading the redis documentation and there is one thing that bothers me. For redis, you need to start a server on localhost. Is there an easy way that my Python script starts this server automatically? Before using my script, I don't want to start

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread Ben Finney
goldtech goldt...@worldpost.com writes: Using Windows. Is there a python shell that has a history of typed in commands? I don't know about MS Windows, but the Python interactive shell can be linked with the GNU Readline library for managing its command line

Re: try - except. How to identify errors unknown in advance?

2011-11-16 Thread Terry Reedy
On 11/16/2011 11:57 AM, Frederic Rentsch wrote: If I don't know in advance which error to expect, but on the contrary want to find out which error occurred, I can catch any error by omitting the name: except: (handle) But now I don't have access to the error message 'e'. I'm sure

Re: Multiple threads

2011-11-16 Thread Miki Tebeka
You can see an example on how to use multiprocessing.Pool at http://pythonwise.blogspot.com/2011/03/convert-oggs-to-mp3-fast-way.html This is ogg - mp3 but the same idea. -- http://mail.python.org/mailman/listinfo/python-list

pymacs?

2011-11-16 Thread Andrea Crotti
After a long time, and since it was included iin python-mode, I wanted to try if I can get ropemacs working finally. I have tried many possible things, also in Emacs -Q, and I actually got it working only once, apparently by pure luck with Emacs -Q: (setq py-load-python-mode-pymacs-p nil)

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread David Robinow
On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: goldtech goldt...@worldpost.com writes: Using Windows. Is there a python shell that has a history of typed in commands? I don't know about MS Windows, but the Python interactive shell can be linked with the GNU

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread Ben Finney
David Robinow drobi...@gmail.com writes: On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: I don't know about MS Windows, but the Python interactive shell can be linked with the GNU Readline library for managing its command line

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread David Robinow
On Wed, Nov 16, 2011 at 6:59 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: David Robinow drobi...@gmail.com writes: On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: I don't know about MS Windows, but the Python interactive shell can be linked with the GNU

Re: try - except. How to identify errors unknown in advance?

2011-11-16 Thread Dan Sommers
On Wed, 16 Nov 2011 17:57:27 +0100, Frederic Rentsch wrote: I'd like to log MySQL errors. If I do: try: (command) except MySQLdb.OperationalError, e: print e I may get something like: (1136, Column count doesn't match value count at row 1) If I don't know in

How to insert my own module in front of site eggs?

2011-11-16 Thread Roy Smith
I'm trying to use a custom version of mongoengine. I cloned the git repo and put the directory on my PYTHONPATH, but python is still importing the system's installed version. Looking at sys.path, it's obvious why: $ echo $PYTHONPATH /home/roy/songza:/home/roy/lib/mongoengine

staticmethod makes my brain hurt

2011-11-16 Thread Roy Smith
When I run this (python 2.6.1): class C: @staticmethod def foo(): pass print inside, foo, callable(foo) print outside, C.foo, callable(C.foo) I get: inside staticmethod object at 0x421df0 False outside function foo at 0x41e6f0 True I don't understand. Why is foo not

Re: staticmethod makes my brain hurt

2011-11-16 Thread alex23
On Nov 17, 12:30 pm, Roy Smith r...@panix.com wrote: class C:     @staticmethod     def foo():         pass     print inside, foo, callable(foo) print outside, C.foo, callable(C.foo) I don't understand.  Why is foo not callable inside of the class definition? Consider this:

Re: staticmethod makes my brain hurt

2011-11-16 Thread Roy Smith
In article e9f5814a-6f0d-4985-aebb-5b68b8c79...@x10g2000prk.googlegroups.com, alex23 wuwe...@gmail.com wrote: What you're effectively trying to do is use a class before it has been constructed to help construct itself. Just define it as a helper function before the class declaration. Yes,

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread alex23
On Nov 17, 7:09 am, Ben Finney ben+pyt...@benfinney.id.au wrote: You can then use that functionality in your Python interactive startup file. Here's mine: Awesome, thank you for this. I use iPython where ever possible but there are times where I just can't avoid the default shell and this will

Re: staticmethod makes my brain hurt

2011-11-16 Thread Ethan Furman
Roy Smith wrote: class User(Document): @staticmethod def _get_next_id(): [blah, blah, blah] return id user_id = IntField(required=True, default=_get_next_id) If you don't call '_get_next_id()' from any class methods (in other words, if you don't need to ever say

Monitoring/inventory client-server app

2011-11-16 Thread snorble
I'm writing a tool for monitoring the workstations and servers in our office. I plan to have a server and a client service that runs on each workstation and reports back to the server (heartbeat, disk free space, etc). So far I am considering XMLRPC, or a client service that just downloads a

Re: staticmethod makes my brain hurt

2011-11-16 Thread Steven D'Aprano
On Wed, 16 Nov 2011 21:30:57 -0500, Roy Smith wrote: When I run this (python 2.6.1): class C: @staticmethod def foo(): pass print inside, foo, callable(foo) print outside, C.foo, callable(C.foo) I get: inside staticmethod object at 0x421df0 False outside

Re: staticmethod makes my brain hurt

2011-11-16 Thread Roy Smith
In article 4ec490ec$0$30003$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: This has come up before. http://bytes.com/topic/python/answers/34396-static-method-object-not-callable

Re: staticmethod makes my brain hurt

2011-11-16 Thread Devin Jeanpierre
However, the fix is not as simple as merely making staticmethod objects callable. This was discussed at the 2011 language summit: http://www.boredomandlaziness.org/2011/03/python-language-summit-rough-notes.html See also this thread:

Re: staticmethod makes my brain hurt

2011-11-16 Thread Dotan Cohen
On Thu, Nov 17, 2011 at 04:30, Roy Smith r...@panix.com wrote: When I run this (python 2.6.1): class C:    @staticmethod    def foo():        pass    print inside, foo, callable(foo) print outside, C.foo, callable(C.foo) I get: inside staticmethod object at 0x421df0 False outside

problem in running script file of modeller

2011-11-16 Thread Anushree Tripathi
When I run mod9.10 model-default.py command on command window.It is showing that 'import site' failed;use -v for traceback and also error in opening alignment.ali file.Now what do i have to change.Please reply me as soon as possible. -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiple threads

2011-11-16 Thread Jack Keegan
On Wed, Nov 16, 2011 at 6:30 PM, Dave Angel d...@davea.name wrote: On 11/16/2011 01:22 PM, Dave Angel wrote: (You're top-posting. Put your remarks AFTER what you're quoting) On 11/16/2011 12:52 PM, Jack Keegan wrote: Ok, I thought that processes would do the same job as threads. So would

Re: staticmethod makes my brain hurt

2011-11-16 Thread Ian Kelly
On Wed, Nov 16, 2011 at 11:44 PM, Dotan Cohen dotanco...@gmail.com wrote: Try this (untested): class C:   @staticmethod   def foo():       pass   print inside, C.foo, callable(C.foo) If you had tested this, you would have found that you get a NameError, since C is not yet bound inside the

[issue13406] Deprecation warnings when running the test suite

2011-11-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Should be fixed now. -- assignee: - ezio.melotti resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2011-11-16 Thread kxroberto
kxroberto kxrobe...@users.sourceforge.net added the comment: Well in many browsers for example there is a internal warning and error log (window). Which yet does not (need to) claim to be a official W3C checker. It has positive effect on web stabilization. For example just looking now I see

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2011-11-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The strict/tolerant mode mainly works by using either a strict or a tolerant regex. If the markup is invalid, the strict regex doesn't match and it gives an error. The tolerant regex will match both valid and invalid markup at the same

[issue7983] The encoding map from Unicode to CP932 is different from that of Windows'

2011-11-16 Thread cedre.m
Changes by cedre.m cedr...@gmail.com: -- nosy: +cedrem ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7983 ___ ___ Python-bugs-list mailing list

[issue7983] The encoding map from Unicode to CP932 is different from that of Windows'

2011-11-16 Thread cedre.m
cedre.m cedr...@gmail.com added the comment: http://support.microsoft.com/kb/170559/EN-US http://msdn.microsoft.com/en-us/goglobal/cc305152.aspx -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7983

[issue13414] test_strftime failed on OpenBSD

2011-11-16 Thread Remi Pointel
New submission from Remi Pointel pyt...@xiri.fr: Hello, I was running test_datetime.py and it failed on OpenBSD. I have tested with Python 2.7, Python 3.2 and Python 3.3. Python 2.7: test_datetime.py: ok test_srtftime.py: failed (see attached file: test_strftime_python27.log) Have a lot of:

[issue13414] test_strftime failed on OpenBSD

2011-11-16 Thread Remi Pointel
Changes by Remi Pointel pyt...@xiri.fr: Added file: http://bugs.python.org/file23706/test_datetime_python33.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___

[issue13414] test_strftime failed on OpenBSD

2011-11-16 Thread Remi Pointel
Changes by Remi Pointel pyt...@xiri.fr: Added file: http://bugs.python.org/file23707/test_strftime_python27.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___

[issue13414] test_strftime failed on OpenBSD

2011-11-16 Thread Remi Pointel
Changes by Remi Pointel pyt...@xiri.fr: Added file: http://bugs.python.org/file23708/test_strftime_python32.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___

[issue13414] test_strftime failed on OpenBSD

2011-11-16 Thread Remi Pointel
Changes by Remi Pointel pyt...@xiri.fr: Added file: http://bugs.python.org/file23709/test_strftime_python33.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___

[issue13410] String formatting bug in interactive mode

2011-11-16 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: Interesting! Same here. Using eval() fails with or without -v: --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -289,6 +289,18 @@ else: raise TestFailed, '%*d%(maxsize, -127) should fail' +def

[issue13414] test_strftime failed on OpenBSD

2011-11-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Can you also please attach your C test program? -- nosy: +belopolsky, haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414

[issue13414] test_strftime failed on OpenBSD

2011-11-16 Thread Remi Pointel
Remi Pointel pyt...@xiri.fr added the comment: Sure. -- Added file: http://bugs.python.org/file23710/strftime.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13414 ___

[issue13398] _cursesmodule does not build, doesn't find Python.h on Solaris

2011-11-16 Thread Maciej Bliziński
Maciej Bliziński maciej.blizin...@gmail.com added the comment: It's not only the curses module, other two modules are failing as well, the same way - not finding Python.h. maciej@unstable9s :~/src/opencsw/pkg/lang-python/python/branches/python-3.2 grep ^PY_CPPFLAGS

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2011-11-16 Thread kxroberto
kxroberto kxrobe...@users.sourceforge.net added the comment: The old patch warned already the majority of real cases - except the missing white space between attributes. The tolerant regex will match both: locatestarttagend_tolerant: The main and frequent issue on the web here is the

[issue13294] http.server: HEAD request should not return a body

2011-11-16 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Well, actually SimpleHTTPRequesthandler extends BaseHTTPHandler with basic do_GET and do_HEAD methods. Unittests for http.server shows that this behavior is intended, since: Traceback (most recent call last): File

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2011-11-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Note that the regex and the way the parser considers the commas changed in 16ed15ff0d7c (it now considers them as the name of a value-less attribute), so adding a group for the comma is no longer doable. In theory, the approach you

[issue9102] pybench: Cannot compare 2.x and 3.x benchmarks

2011-11-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9102 ___

[issue3693] Obscure array.array error message

2011-11-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3693 ___

[issue13413] time.daylight incorrect behavior in linux glibc

2011-11-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +belopolsky, lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13413 ___ ___

[issue4246] execution model - clear and complete example in documentation

2011-11-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4246 ___

[issue6304] Confusing error message when passing bytes to print with file pointing to a binary file

2011-11-16 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +pitrou versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6304 ___

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2011-11-16 Thread kxroberto
kxroberto kxrobe...@users.sourceforge.net added the comment: 16ed15ff0d7c was not in current stable py3.2 so I missed it.. When the comma is now raised as attribute name, then the problem is anyway moved to the higher level anyway - and is/can be handled easily there by usual methods. (still

[issue1486713] HTMLParser : A auto-tolerant parsing mode

2011-11-16 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: 16ed15ff0d7c was not in current stable py3.2 so I missed it.. It's also in 3.2 and 2.7 (but it's quite recent, so if you didn't pull recently you might have missed it). When the comma is now raised as attribute name, then the problem is

[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2011-11-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +barry, r.david.murray -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1481032 ___

[issue4508] distutils compiler not handling spaces in path to output/src files

2011-11-16 Thread ipatrol
ipatrol ipatrol6...@yahoo.com added the comment: Ok, I found a similar problem with MMTK. I am currently altering my distutils package to add a function called nt_quote_dir that adds quotes to paths with spaces and then applies it to each path if the platform is win32. When I'm done I will

[issue9102] pybench: Cannot compare 2.x and 3.x benchmarks

2011-11-16 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9102 ___ ___ Python-bugs-list

[issue13309] test_time fails: time data 'LMT' does not match format '%Z'

2011-11-16 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13309 ___ ___

[issue13126] find() slower than rfind()

2011-11-16 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- priority: low - normal stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13126 ___

[issue8913] Document that datetime.__format__ is datetime.strftime

2011-11-16 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- type: - behavior versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8913 ___

[issue6715] xz compressor support

2011-11-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What is the status on this, Nadeem? It would be lovely to get the feature in the stdlib. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715

[issue6715] xz compressor support

2011-11-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I just added the missing files liblzma.a to the externals repository. If someone can quickly check that it works on win32, I don't have anything else to add to this change. -- ___ Python

[issue6715] xz compressor support

2011-11-16 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Everything is ready to go, as far as I'm concerned. Once I've tested the Windows build using the binary from the externals repository, I'll be ready to commit it to the main repository. -- ___

[issue6715] xz compressor support

2011-11-16 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I've tested the Windows build, and it works fine. If there are no objections, I'll commit on Saturday. Btw, what is the preferred channel for communicating with buildbot owners? I'll want to send out an email asking that all the *nix bots

[issue13415] os.unsetenv() on Windows should not use UTF-8

2011-11-16 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: os.unsetenv(name) encodes name to UTF-8. I think that the ANSI code page (or another code page?) should be used. -- components: Unicode, Windows messages: 147773 nosy: ezio.melotti, haypo priority: normal severity: normal

[issue13064] Port codecs and error handlers to the new Unicode API

2011-11-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Martin von Loewis implemented this issue, thanks Martin! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13064 ___

[issue7732] imp.find_module crashes Python if there exists a directory named __init__.py

2011-11-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7732 ___

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-16 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5f239b0ba819 by Victor Stinner in branch 'default': Issue #13374: Deprecate os.getcwdb() on Windows http://hg.python.org/cpython/rev/5f239b0ba819 -- ___ Python tracker

[issue12729] Python lib re cannot handle Unicode properly due to narrow/wide bug

2011-11-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Closing this bug as PEP 393 is now implemented and makes so-called narrow builds obsolete. Python now has an adaptative internal representation that is able to fit all unicode characters. -- resolution: - out of date stage: -

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13374 ___

[issue13416] Python Tutorial, Section 3, Minor PEP 8 adjustment

2011-11-16 Thread Nebelhom
New submission from Nebelhom nebel...@googlemail.com: Python Tutorial 3.3a 3. An informal introduction to python example: - # this is the first comment SPAM = 1 # and this is the second comment

[issue13417] faster utf-8 decoding

2011-11-16 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: PEP 393 and the need for a two-pass decoding process has made utf-8 decoding much slower, especially with the current generic implementation. Attached patch makes utf-8 more than twice faster, which means we're around 10-20% slower than 3.2

[issue13416] Python Tutorial, Section 3, Minor PEP 8 adjustment

2011-11-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: It's fine as it is; constants are often denoted with capital letters. -- nosy: +benjamin.peterson resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10772] Several actions for argparse arguments missing from docs

2011-11-16 Thread Marc Sibson
Marc Sibson sib...@gmail.com added the comment: changes as per the review, -- Added file: http://bugs.python.org/file23713/issue10772.patch3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10772

[issue13415] os.unsetenv() on Windows should not use UTF-8

2011-11-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: But... there is no os.unsetenv on Windows! 2.7 used to have one, which called os.putenv(key, ) 3.2 has a os._unsetenv, which is a lambda key: _putenv(key, ) -- nosy: +amaury.forgeotdarc ___

[issue13215] multiprocessing Manager.connect() aggressively retries refused connections

2011-11-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Apparently you forgot to upload the patch... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13215 ___

[issue13415] del os.environ[key] ignores errors

2011-11-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: But... there is no os.unsetenv on Windows! Correct, even unsetenv() doesn't exist on Windows: putenv() can be used to unset a variable using an empty value. And it's exactly what Python does. It is confusing because

[issue6715] xz compressor support

2011-11-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've tested under 64-bit Windows and it worked fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

  1   2   >