Re: How can I make a program automatically run once per day?

2011-07-27 Thread Chris Angelico
On Wed, Jul 27, 2011 at 2:09 PM, John Salerno johnj...@gmail.com wrote: Thank you. I changed it as suggested so that now it runs C: \Python32\python.exe extract_songs.py but it still isn't working. Have you confirmed that the job's working directory is set correctly? Naming the script without a

Re: seeking an example on C extension works in python 3.1.x or above

2011-07-27 Thread Stefan Behnel
Terry Reedy, 27.07.2011 04:58: On 7/26/2011 8:06 PM, llwaeva...@gmail.com wrote: I have been searching the example on C extension that works in python 3.1.x All the stdlib modules written in C. These are extension modules that come with Python. There are perhaps a hundred more on PyPI. Or

Re: Only Bytecode, No .py Files

2011-07-27 Thread Thomas Rachel
Am 26.07.2011 17:19 schrieb Eldon Ziegler: Is there a way to have the Python processor look only for bytecode files, not .py files? We are seeing huge numbers of Linux audit messages on production system on which only bytecode files are stored. The audit subsystem is recording each open failure.

Maximize already running tkinter program on invocation

2011-07-27 Thread Steven Kauffmann
Hi all, I have written a small GUI application in python 3.x using the tkinter module. Program is running fine, but multiple instances of the program can now be created. I would like to reduce the number of instances of the program to only 1 instance. I know that this is possible by using a

Re: How can I make a program automatically run once per day?

2011-07-27 Thread baloan
On Jul 14, 7:00 pm, monkeys paw mon...@joemoney.net wrote: On 7/9/2011 10:01 PM, John Salerno wrote: Thanks everyone! I probably should have said something like Python, if possible and efficient, otherwise any other method ! :) I'll look into the Task Scheduler. Thanks again! You could

Re: Validating Entry in tkinter

2011-07-27 Thread Giacomo Boffi
Saul Spatz saul.sp...@gmail.com writes: In tcl/tk an Entry widget can be set to validate its contents with the validate option. [...] Can one do something like this in tkinter? i read the thread and nobody mentioned the python mega widget (Pmw) toolkit, from whose docs i quote the following

Re: Only Bytecode, No .py Files

2011-07-27 Thread Christian Heimes
Am 27.07.2011 03:32, schrieb harrismh777: Christian Heimes wrote: The first four bytes of a pyc file contain the magic header. It must match the magic of the current Python version. The next four bytes contain the pyc_mtime. It must match the mtime of the corresponding .py files as returned

PyImport_ImportModule bug in 3.1.2

2011-07-27 Thread bob . wang
Hi: My Python version is 3.1.2. I am programming embedding c with python in windows. When I imported urllib.request in my test py file, PyImport_ImportModule always return NULL. But I imported re or cmd ,they work fine. I found urllib is folder, and request

can I use element tree for handling special characters in xml text?

2011-07-27 Thread hackingKK
Hello all. I have been waiting a lot to ask this question and I did ask some days back but probably could not put it the proper way. I want to know how I can safely include special characters like or in xml text? For example I store a small xml file containing list of organisations. Many

Re: can I use element tree for handling special characters in xml text?

2011-07-27 Thread Stefan Behnel
hackingKK, 27.07.2011 13:16: I have been waiting a lot to ask this question and I did ask some days back but probably could not put it the proper way. I assume you missed the answer you got? I want to know how I can safely include special characters like or in xml text? For example I

Re: Maximize already running tkinter program on invocation

2011-07-27 Thread Peter Otten
Steven Kauffmann wrote: I have written a small GUI application in python 3.x using the tkinter module. Program is running fine, but multiple instances of the program can now be created. I would like to reduce the number of instances of the program to only 1 instance. I know that this is

Re: Only Bytecode, No .py Files

2011-07-27 Thread John Roth
On Jul 27, 1:10 am, Thomas Rachel nutznetz-0c1b6768-bfa9-48d5- a470-7603bd3aa...@spamschutz.glglgl.de wrote: Am 26.07.2011 17:19 schrieb Eldon Ziegler: Is there a way to have the Python processor look only for bytecode files, not .py files? We are seeing huge numbers of Linux audit messages

Re: How can I make a program automatically run once per day?

2011-07-27 Thread Dave Angel
On 01/-10/-28163 02:59 PM, John Salerno wrote: On Jul 26, 9:22 pm, Andrew Bergbahamutzero8...@gmail.com wrote: On 2011.07.26 08:05 PM,JohnSalernowrote: Hmm, okay I'm finally trying Task Scheduler, but how do I set it to run a Python script? It seems to not work, I suppose because it's

Re: How can I make a program automatically run once per day?

2011-07-27 Thread Chris Angelico
On Wed, Jul 27, 2011 at 10:27 PM, Dave Angel da...@ieee.org wrote: As Chris pointed out, you probably aren't getting the script's directory right.  After all, how can the scheduler guess where you put it?  The obvious answer is to use a full path for the script's filename.  Another alternative

Re: How can I make a program automatically run once per day?

2011-07-27 Thread Billy Mays
On 07/27/2011 08:35 AM, Chris Angelico wrote: On Wed, Jul 27, 2011 at 10:27 PM, Dave Angelda...@ieee.org wrote: As Chris pointed out, you probably aren't getting the script's directory right. After all, how can the scheduler guess where you put it? The obvious answer is to use a full path

Re: Only Bytecode, No .py Files

2011-07-27 Thread Thomas Rachel
Am 27.07.2011 14:18 schrieb John Roth: Two comments. First, your trace isn't showing attempts to open .py files, it's showing attempts to open the Curses library in the bash directory. Of course. My goal was to show that the OP's problem is not a python one, but occurs all over several

How do I access IDLE in Win7

2011-07-27 Thread W. eWatson
It's been many months since I played with Python, and have forgotten how to bring up IDLE. If I simply click on a py file, I see what may be a dos window appear and quickly disappear. If I right-click on the file, and select IDLE, the same thing happens. If I go directly to All Programs, the

Re: How do I access IDLE in Win7

2011-07-27 Thread rantingrick
On Jul 27, 10:06 am, W. eWatson wolftra...@invalid.com wrote: It's been many months since I played with Python, and have forgotten how to bring up IDLE. If I simply click on a py file, I see what may be a dos window appear and quickly disappear. Double-clicking a [py|pyw] file in windows will

Re: How can I make a program automatically run once per day?

2011-07-27 Thread John Salerno
On Jul 27, 7:58 am, Billy Mays 81282ed9a88799d21e77957df2d84bd6514d9...@myhashismyemail.com wrote: On 07/27/2011 08:35 AM, Chris Angelico wrote: On Wed, Jul 27, 2011 at 10:27 PM, Dave Angelda...@ieee.org  wrote: As Chris pointed out, you probably aren't getting the script's directory

Re: How do I access IDLE in Win7

2011-07-27 Thread W. eWatson
On 7/27/2011 8:38 AM, rantingrick wrote: On Jul 27, 10:06 am, W. eWatsonwolftra...@invalid.com wrote: It's been many months since I played with Python, and have forgotten how to bring up IDLE. If I simply click on a py file, I see what may be a dos window appear and quickly disappear.

Re: How do I access IDLE in Win7

2011-07-27 Thread Jerry Hill
On Wed, Jul 27, 2011 at 12:28 PM, W. eWatson wolftra...@invalid.com wrote: If I run cmd.exe and work my way down to  .../idlelib, I find nothing but idle.bat. strange. Hidden?  I can get into line mode by using python.exe. That is, I can type in print abc, and get a result. So, you don't have

Re: Maximize already running tkinter program on invocation

2011-07-27 Thread Francesco Bochicchio
On 27 Lug, 10:18, Steven Kauffmann steven.kauffm...@gmail.com wrote: Hi all, I have written a small GUI application in python 3.x using the tkinter module. Program is running fine, but multiple instances of the program can now be created. I would like to reduce the number of instances of the

Re: Only Bytecode, No .py Files

2011-07-27 Thread harrismh777
Christian Heimes wrote: Now the test.py has the same mtime as test.pyc and Python won't recompile the .pyc file from the .py file as long as the magic header (168686339) is correct. ~very cool. -- http://mail.python.org/mailman/listinfo/python-list

shlex parsing

2011-07-27 Thread Karim
Hello All, I would like to parse this TCL command line with shlex: '-option1 [get_rule A1 B2] -option2 $VAR -option3 TAG' And I want to get the splitted list: ['-option1', '[get_rule A1 B2]', '-option2', '$VAR', '-option3', 'TAG'] Then I will gather in tuple 2 by 2 the arguments. I tried

Re: How do I access IDLE in Win7

2011-07-27 Thread W. eWatson
On 7/27/2011 9:48 AM, Jerry Hill wrote: On Wed, Jul 27, 2011 at 12:28 PM, W. eWatsonwolftra...@invalid.com wrote: If I run cmd.exe and work my way down to .../idlelib, I find nothing but idle.bat. strange. Hidden? I can get into line mode by using python.exe. That is, I can type in print

How should I document exceptions thrown by a method?

2011-07-27 Thread Arcadio
I use Doxygen to document my source code, and I'm wondering how exceptions thrown by a method of a class should be documented in the following example. I have a Settings class that is used to hold application settings. A Settings object initializes itself from a ConfigParser that gets passed in

Re: How do I access IDLE in Win7

2011-07-27 Thread Jerry Hill
On Wed, Jul 27, 2011 at 3:34 PM, W. eWatson wolftra...@invalid.com wrote: On 7/27/2011 9:48 AM, Jerry Hill wrote: So, you don't have an idle.py or idle.pyw in C:\Python26\Lib\idlelib\ (or where ever you installed python)?  If not, it sounds to me like your python installation is screwed up.  I

Suggestions on writing a sh -- python Howto/Tutorial

2011-07-27 Thread Robert Laing
I've been tinkering around learning traditional Unix shell programming and python at the same time. I set myself the following exercise which I found quite educational. I first wrote a shell CGI script to read the man pages on my web hosting service's computer via a browser like so:

Re: shlex parsing

2011-07-27 Thread Dan Stromberg
I've not used the shlex module, but this feels more like an issue to address with a parser than for a lexical analyzer - or perhaps even both, since you're splitting on whitespace sometimes, and matching square brackets sometimes. I've used pyparsing for stuff a bit similar to this. Or here's a

TestFixtures 1.11.0 Released!

2011-07-27 Thread Chris Withers
Hi All, I'm happy to announce a new release of TestFixtures with the following changes: - testfixtures' compare function now does rich comparison of dicts and their subclasses, showing which keys matches, were missing or differed between the two objects being compared. - A decorator of

Re: shlex parsing

2011-07-27 Thread Karim
Thank you Dan for answering. I ended with this and gave up with shlex: split = ['-option1', '[get_rule', 'A1', 'B2]', '-option2', '$VAR', '-option3', 'TAG'] procedure_found = False result = [] for token in split: if not token.startswith('[') and not token.endswith(']') and not

Re: How should I document exceptions thrown by a method?

2011-07-27 Thread Ben Finney
Arcadio arcadiosinc...@gmail.com writes: I have a Settings class that is used to hold application settings. A Settings object initializes itself from a ConfigParser that gets passed in as an argument to the constructor. So the caller is aware of, and takes responsibility for, the ConfigParser

Re: How do I access IDLE in Win7

2011-07-27 Thread W. eWatson
On 7/27/2011 12:53 PM, Jerry Hill wrote: On Wed, Jul 27, 2011 at 3:34 PM, W. eWatsonwolftra...@invalid.com wrote: On 7/27/2011 9:48 AM, Jerry Hill wrote: So, you don't have an idle.py or idle.pyw in C:\Python26\Lib\idlelib\ (or where ever you installed python)? If not, it sounds to me like

Fall in love with bpython

2011-07-27 Thread Karim
Hello, I use bpython interpreter. This is a very good interactive CLI. I want to create a CLI with the same features than bpython. But the cmd std module seems no to be used in this project... Is there a tool where I can plug all my grammary commands line a sort of generic box with

Re: shlex parsing

2011-07-27 Thread Dan Stromberg
You could probably use a recursive descent parser with the standard library. But if your management is OK with pyparsing, that might be easier, and a bit more clear as well. On Wed, Jul 27, 2011 at 2:08 PM, Karim karim.liat...@free.fr wrote: ** Thank you Dan for answering. I ended with

Re: shlex parsing

2011-07-27 Thread Karim
On 07/28/2011 12:11 AM, Dan Stromberg wrote: You could probably use a recursive descent parser with the standard library. But if your management is OK with pyparsing, that might be easier, and a bit more clear as well. Yes, I thought to use str method partition in a recursive way but

Re: Fall in love with bpython

2011-07-27 Thread Alan Gauld
Karim wrote: I use bpython interpreter. This is a very good interactive CLI. I had never heard of it and had to google for it. It appears to be a curses based CLI for *nix and MacOS I want to create a CLI with the same features than bpython. But the cmd std module seems no to be used in

PyWart: PEP8: A cauldron of inconsistencies.

2011-07-27 Thread rantingrick
I believe the current Python style guide is inconsistent. The author again allowed hie emotion to get in the way of logic. I will be posting blocks of text from the PEP8 and commenting below them. -- One of Guido's key insights is that

Re: Fall in love with bpython

2011-07-27 Thread Karim
On 07/27/2011 12:34 AM, Alan Gauld wrote: Karim wrote: I use bpython interpreter. This is a very good interactive CLI. I had never heard of it and had to google for it. It appears to be a curses based CLI for *nix and MacOS Ah Windows user. I want to create a CLI with the same features

Re: can I use element tree for handling special characters in xml text?

2011-07-27 Thread Thomas 'PointedEars' Lahn
hackingKK wrote: I have been waiting a lot to ask this question and I did ask some days back but probably could not put it the proper way. You still can't. http://www.catb.org/~esr/faqs/smart-questions.html But to spare everyone yet another try: I want to know how I can safely include

Re: Fall in love with bpython

2011-07-27 Thread Karim
On 07/28/2011 12:31 AM, Michael Poeltl wrote: hi, have you heard abut ipython? maybe that's helpful for you? http://ipython.scipy.org/moin/python Hello Michael, Yes I saw some article where Ipython and Bpython CLI integrations was made in Django. Thanks for the link I will evaluate it as

Re: PEP 8 and extraneous whitespace

2011-07-27 Thread Thomas 'PointedEars' Lahn
Chris Rebert wrote: John Gordon wrote: Neil Cerutti writes: You can fit much more code per unit of horizontal space with a proportionally spaced font. As a result, that issue, while valid, is significantly reduced. Is it? I assume one major reason for the 80-character limit is to help

Re: [Tutor] Fall in love with bpython

2011-07-27 Thread Walter Prins
Hi Karim On 28 July 2011 00:04, Karim karim.liat...@free.fr wrote: On 07/27/2011 12:34 AM, Alan Gauld wrote: Karim wrote: I use bpython interpreter. This is a very good interactive CLI. I had never heard of it and had to google for it. It appears to be a curses based CLI for *nix and

Re: Strings show as brackets with a 'u'.

2011-07-27 Thread goldtech
Rick gave you some good advice, perhaps worth re-reading. What you need are investigative skills, and not just bits of data. Totally agree. beginning to see what's going on. I'm not specifically accessing the list element with n (vs. n[0]). Printing n uses repr which gives the unicode tag.

Re: PyWart: PEP8: A cauldron of inconsistencies.

2011-07-27 Thread Andrew Berg
On 2011.07.27 05:34 PM, rantingrick wrote: -- Use 4 spaces per indentation level. -- This should be the only acceptable indention level allowed by the interpreter. All other

Re: How do I access IDLE in Win7

2011-07-27 Thread Thomas Jollans
On 27/07/11 23:26, W. eWatson wrote: I cannot copy from the cmd window. It ends with [errorno 13] Permission denied to c:||Users\\Wayne\\idlerc\\recent-files.lst' Yes you can. Right-click to bring up a menu with a select or copy option (IIRC) As for the error, see if there is file

Re: [Tutor] Fall in love with bpython

2011-07-27 Thread Karim
On 07/28/2011 01:32 AM, Walter Prins wrote: Hi Karim On 28 July 2011 00:04, Karim karim.liat...@free.fr mailto:karim.liat...@free.fr wrote: On 07/27/2011 12:34 AM, Alan Gauld wrote: Karim wrote: I use bpython interpreter. This is a very good interactive

Re: PyWart: PEP8: A cauldron of inconsistencies.

2011-07-27 Thread Thomas Jollans
On 28/07/11 00:34, rantingrick wrote: I believe the current Python style guide is inconsistent. The author again allowed hie emotion to get in the way of logic. If you think that logic can be the foundation of a style [guide], then you have a very curious idea of what logic means. [ snip rant

Re: How do I access IDLE in Win7

2011-07-27 Thread W. eWatson
In the mean time, I punted and re-installed. It's still not quite right. I uninstalled it. I was asked during install if I wanted to remove c:\Python25. It was still there and had several folders (Lib, Scripts) and files (fishe.py, RemovePIL.exe, junk.py). I said yes. It installed 2.5.2.

pysvn merge

2011-07-27 Thread mud
I have started using your pysvn module and find it very useful. I trying to doing a pysvn.Client.merge which is working well, but I am would like to cater for conflicts. I would like to by default accept “theirs-full” version, but I can’t figure out how to do it. Svn command line merge has a

PyCon Australia 2011: Registration Back Online

2011-07-27 Thread Ryan Kelly
Hi Everyone, After a brief hiatus, registrations for PyCon Australia 2011 are back online! We have extended some registration deadlines to compensate for the outage. PyCon Australia is Australia's only conference dedicated exclusively to the Python programming language, and will be held at

Re: PyWart: PEP8: A cauldron of inconsistencies.

2011-07-27 Thread Cameron Simpson
On 28Jul2011 02:06, Thomas Jollans t...@jollybox.de wrote: | On 28/07/11 00:34, rantingrick wrote: | [ snip rant ] | | To be clear, the code is more what you'd call guidelines than actual | rules. Welcome aboard the Black Pearl, Mister Ranting! I think when he releases Python4000 we'll all fall

Re: PyWart: PEP8: A cauldron of inconsistencies.

2011-07-27 Thread Andrew Berg
On 2011.07.27 08:34 PM, Cameron Simpson wrote: I think when he releases Python4000 we'll all fall behind. That is, if he ever does release RickPy4000. ;) -- CPython 3.2.1 | Windows NT 6.1.7601.17592 | Thunderbird 5.0 PGP/GPG Public Key ID: 0xF88E034060A78FCB --

Re: How should I document exceptions thrown by a method?

2011-07-27 Thread Chris Torek
Arcadio arcadiosinc...@gmail.com writes: I have a Settings class that is used to hold application settings. A Settings object initializes itself from a ConfigParser that gets passed in as an argument to the constructor. In article 87oc0fpg9o@benfinney.id.au Ben Finney

PyImport_ImportModule bug in ver 3.1.2?

2011-07-27 Thread 健安 王
Hi: My Python version is 3.1.2. I am programming embedding c with python in windows. When I imported urllib.request in my test py file, PyImport_ImportModule always return NULL. But I imported re or cmd ,they work fine. I found urllib is folder, and request

Re: PyWart: PEP8: A cauldron of inconsistencies.

2011-07-27 Thread Steven D'Aprano
On Thu, 28 Jul 2011 08:34 am rantingrick wrote: WRONG! When in doubt be consistent! There should be one AND ONLY ONE obvious way to do it! When we have multiple ways of doing the same thing we induce an overhead into our work flows. Instead we need to follow the zen; in other words, BE

Re: PyWart: PEP8: A cauldron of inconsistencies.

2011-07-27 Thread harrismh777
Steven D'Aprano wrote: On Thu, 28 Jul 2011 08:34 am rantingrick wrote: WRONG! When in doubt be consistent! There should be one AND ONLY ONE obvious way to do it! When we have multiple ways of doing the same thing we induce an overhead into our work flows. Instead we need to follow the

Programming Python for Absolute Beginners

2011-07-27 Thread harrismh777
Greetings folks, Well, we're back from a 3985 mile road trip around the Southeastern U.S. ending back in Minnesota--- dragging a trailer--- spent somewhere close to a month visiting battle fields honoring the CSA dead from that little skirmish between the states 1861-1865... found my great

Re: Programming Python for Absolute Beginners

2011-07-27 Thread Billy Mays
On 7/27/2011 11:50 PM, harrismh777 wrote: No one cares and don't spam the list. -- http://mail.python.org/mailman/listinfo/python-list

Seeking an example on using Queue to update variable while threading

2011-07-27 Thread Danny Wong (dannwong)
Hi Python experts, I'm trying to use a dict structure to store and update information from X number of threads. How do I share this dict structure between threads? I heard of using a queue, but I'm not familiar with how it works. Does anyone have an example of using a queue to store

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-27 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I left a review about your patch on rietveld, including a description of what I think it's going on there (the patch lacks some context and it's not easy to figure out how everything works there). I also did some tests with and without the

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-27 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: patch-Modules_selectmodule_c is not enough to fix kqueue_event_init(): it doesn't catch overflow error on the ident attribute. This patch is not correct. Furthermore, it's another occurrence of something I don't understand with

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-27 Thread Federico Schwindt
Federico Schwindt federico.schwi...@gmail.com added the comment: I wrote the patch. While the patch fixes most of the issues I'm not entirely happy with it and that's the reason I have not submitted it. -- ___ Python tracker rep...@bugs.python.org

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-07-27 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I wrote the patch. While the patch fixes most of the issues I'm not entirely happy with it and that's the reason I have not submitted it. Could you submit it here so that we can help you get it in shape for inclusion? That way we'll

[issue6288] Update contextlib.nested docs in light of deprecation

2011-07-27 Thread Ask Solem
Ask Solem a...@celeryproject.org added the comment: How would you replace the following functionality with the multiple with statement syntax: x = (A(), B(), C()) with nested(*x) as context: It seems to me that nested() is still useful for this particular use case.

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Attached an updated patch: - the test now uses support.skip_unless_symlink decorator - added an explicit assertion ensuring that the contents of the linked directory aren't deleted - removed issue reference from the code -- Added

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Ok, so the current raising semantics should be good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___

[issue12381] refactor slice checks made by methods that take slice like arguments

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: R. David Murray wrote: Note that both of these have been fixed in default, so I'm repurposing this issue for the refactoring I suggested. However, since I can't find an existing issue for the bytearray fix, maybe somebody already did it and I

[issue12294] multiprocessing.Pool: Need a way to find out if work are finished.

2011-07-27 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- keywords: +easy nosy: +jnoller stage: test needed - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12294 ___

[issue12631] Mutable Sequence Type in .remove() is consistent only with lists, but not with bytearrays

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Duplicate of issue 12170. -- nosy: +petri.lehtinen superseder: - index() and count() methods of bytes and bytearray should accept byte ints ___ Python tracker rep...@bugs.python.org

[issue12595] python.h redundant redeclarations

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Already fixed in 3.3 as a part of issue 8914. This does not cause a compilation failure with the default build flags, so there's no need to backport to older versions. Closing as duplicate of issue 8914. -- nosy: +petri.lehtinen

[issue12595] python.h redundant redeclarations

2011-07-27 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: After hitting the submit button, I realized that Python.h is of course included when embedding Python, so the fix could be backported to 3.2. -- keywords: +easy resolution: duplicate - stage: - needs patch status: closed - open

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2011-07-27 Thread Björn Lindqvist
Björn Lindqvist bjou...@gmail.com added the comment: I don't have the expertise to backport it myself, but the problem certainly is still present in python 2.7.1 on Windows 7. It is especially pronounced when using threading to read from multiple url files. -- nosy: +bjourne

[issue12029] ABC registration of Exceptions

2011-07-27 Thread junior1971
Changes by junior1971 junior1...@meta.ua: Added file: http://bugs.python.org/file22770/cheapcodfedextramadolvery.html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12029 ___

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread aliles
New submission from aliles aaron.i...@gmail.com: code.InteractiveConsole doesn't match the CPython interactive interpreter with respect to allowing sys.excepthook to handle exceptions. Unlike the interactive interpreter, replacing sys.excepthook with an alternate function will not change

[issue6288] Update contextlib.nested docs in light of deprecation

2011-07-27 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Indeed it is, although we think actually doing that is a bad idea (as discussed earlier on this tracker item). See the 3.1 docs for the recommended workaround for the removal (basically grab a copy of the 3.1 code and drop it into your own

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: What do you suggest? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12643 ___

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread aliles
aliles aaron.i...@gmail.com added the comment: OK. Not something I was expecting to be asked. But cool :D If it's not possible for InteractiveConsole to allow exceptions to propagate through sys.excepthook. (I assume they are being caught in a try: catch: block) check sys.excepthook for a

[issue12029] ABC registration of Exceptions

2011-07-27 Thread junior1971
Changes by junior1971 junior1...@meta.ua: Added file: http://bugs.python.org/file22772/generictramadolhclonline.html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12029 ___

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If it's not possible for InteractiveConsole to allow exceptions to propagate through sys.excepthook. Ok, I was not sure that I understood correctly. This change should be an option to not break existing code. --

[issue12643] code.InteractiveConsole ignores sys.excepthook

2011-07-27 Thread aliles
aliles aaron.i...@gmail.com added the comment: Yes. I have code that behaves differently under CPython and PyPy because of this issue. Admittedly that code is somewhat evil. It's attached for reference, in particular the __HelpSyntax class. -- Added file:

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Ralf Schmitt
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12641 ___ ___ Python-bugs-list

[issue12644] document the %a conversion in the old string formatting operations

2011-07-27 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: The 'a' conversion type isn't documented in library/stdtypes.rst -- assignee: eli.bendersky components: Documentation keywords: gsoc messages: 141228 nosy: eli.bendersky priority: low severity: normal status: open title: document the

[issue12644] document the %a conversion in the old string formatting operations

2011-07-27 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy, patch -gsoc stage: - patch review Added file: http://bugs.python.org/file22774/issue12644.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12644

[issue12644] document the %a conversion in the old string formatting operations

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +docs@python, eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12644 ___ ___

[issue12644] document the %a conversion in the old string formatting operations

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t think anyone could find anything wrong with the patch. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12644

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi! Thanks for the report. This can’t be fixed in 2.5, 2.6 or 3.1, which are in security-fix only mode, but we can do something for the active branches. A quick web search finds reference of this deprecation/removal as far as 2007. Does

[issue12641] Remove -mno-cygwin from distutils

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I forgot to answer this: Why is -mno-cygwin still be used, Simply because distutils had no dedicated maintainer for a long time, and because nobody was aware of this change. I don’t think any Python core developer is using Cygwin. and is

[issue12029] ABC registration of Exceptions

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file22770/cheapcodfedextramadolvery.html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12029 ___

[issue12029] ABC registration of Exceptions

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file22772/generictramadolhclonline.html ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12029 ___

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Ezio wrote: myhp.feed('scriptpfoo/p/script') data: 'pfoo' # where's the /p? http://www.w3.org/TR/html4/types#type-cdata says: Although the STYLE and SCRIPT elements use CDATA for their data model, for these elements, CDATA must be

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Added file: http://bugs.python.org/file22776/fbf2f56d225f.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12614 ___

[issue10639] reindent.py should not convert newlines

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The patch is a little more intrusive than the Python 3 patch because Python 2.7 doesn't allow specifying the newline to use when writing a file (afaict) Instead of writing a new class, what about using io.open instead of the builtin? Then

[issue9968] Let cgi.FieldStorage have named uploaded file

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: where does the 1ko barrier come from? Was it only chosen out of performance considerations [...] Most certainly. I’ll look at the history of the file later to try to find the developer who decided that. tempfile.NamedTemporaryFile was

[issue12614] Allow to explicitly set the method of urllib.request.Request

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Apart from one change (testing for “self._request is not None”), the patch is ready. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12614

[issue12621] Errors in docstrings of find and rfind methods of bytes and bytestring

2011-07-27 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c3aebd01a033 by Senthil Kumaran in branch '3.2': Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject. http://hg.python.org/cpython/rev/c3aebd01a033 New changeset

[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

2011-07-27 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It's not buggy, but it is also not helpful. This kind of thing is what we introduced the 'strict' parameter for. And indeed I believe we've fixed some of these cases thereby. So any additional fixes should go into non-strict mode in

[issue1724822] provide a shlex.split alternative for Windows shell syntax

2011-07-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: But surely it's not named POSIX mode for no reason. It's because those rules resemble those of the UNIX shell. While non-POSIX mode resemble those of non-POSIX shells, such as DOS. Not exactly: when it comes to parsing, shells on POSIX systems

[issue10639] reindent.py should not convert newlines

2011-07-27 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Instead of writing a new class, what about using io.open instead of the builtin? Then you’ll be able to use the same patch than 3.2. Ooh. Excellent suggestion. -- ___ Python tracker

[issue12464] tempfile.TemporaryDirectory.cleanup follows symbolic links

2011-07-27 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: The patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12464 ___

  1   2   >