Re: Reading the access attributes of directories in Windows

2010-08-21 Thread Tim Golden
On 20/08/2010 11:54 PM, vsoler wrote: I'am testing your library. I am mainly interested in knowing the access attributes of directories in the local(C:\) or shared unit(W:\) of my system. Using your script with 'c:\\' I get an error message saying... 'file exists but it is a directory' and I

Re: Iterative vs. Recursive coding

2010-08-21 Thread John Nagle
On 8/20/2010 1:17 PM, John Bokma wrote: John Naglena...@animats.com writes: Python does not do tail recursion, so using recursion where iteration could do the job is generally a bad idea. Scheme, on the other hand, always does tail recursion where possible. I think you mean tail

Re: scope of variable

2010-08-21 Thread John Nagle
On 8/20/2010 12:56 PM, M B wrote: fre 2010-08-20 klockan 13:19 -0600 skrev Burton Samograd: M Bzna...@telia.com writes: Hi, dept=0 def mud(): print dept mud() 0 def mud(): dept+=1 print dept You should add a global statement or else python thinks a

Re: expression in an if statement

2010-08-21 Thread alex23
John Nagle na...@animats.com wrote: I was talking to the Facebook guys doing the compiler for PHP, and they said that it was a huge win for them that PHP doesn't allow dynamically replacing a function. I'm not sure if I call all that effort for a 50% speed increase a win. PyPy is seeing speed

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-21 Thread Elizabeth D Rather
On 8/20/10 7:42 PM, Standish P wrote: ... Admittedly, I am asking a question that would be thought provoking to those who claim to be experts but these experts are actually very stingy and mean business people, most certainly worse than Bill Gates, only it did not occur to them his ideas and at

Re: Iterative vs. Recursive coding

2010-08-21 Thread Steven D'Aprano
On Fri, 20 Aug 2010 09:47:30 +0200, News123 wrote: On 08/20/2010 02:26 AM, Steven D'Aprano wrote: On Thu, 19 Aug 2010 22:00:16 +, Martin Gregorie wrote: Recursion can be quite a trick to get your mind round at first Really? Do people actually find the *concept* of recursion to be

Re: Iterative vs. Recursive coding

2010-08-21 Thread Steven D'Aprano
On Fri, 20 Aug 2010 17:23:23 +0200, Bruno Desthuilliers wrote: Steven D'Aprano a écrit : On Thu, 19 Aug 2010 22:00:16 +, Martin Gregorie wrote: Recursion can be quite a trick to get your mind round at first Really? Do people actually find the *concept* of recursion to be tricky? I

Re: Python why questions

2010-08-21 Thread Steven D'Aprano
On Fri, 20 Aug 2010 11:01:42 -0700, Russ P. wrote: Most programmers probably never use vectors and matrices, so they don't care about the inconsistency with standard mathematical notation. Perhaps you should ask the numpy programmers what they think about that. Vectors and matrices are just

Re: Python why questions

2010-08-21 Thread Steven D'Aprano
On Fri, 20 Aug 2010 09:21:25 +0200, Kai Borgolte wrote: Sorry about my previous posting with wrong references, this one should be better. Steven D'Aprano wrote: A simple example: Using zero-based indexing, suppose you want to indent the string spam so it starts at column 4. How many spaces

Re: Iterative vs. Recursive coding

2010-08-21 Thread Steven D'Aprano
On Fri, 20 Aug 2010 16:42:26 -0700, Baba wrote: For future readers of this post who want to learn to programm (just like myself) let me re-state the basics i have learned now: I would disagree in part with nearly all of these. - a procedure is said to be recursive when it contains a

Re: String substitution VS proper mysql escaping

2010-08-21 Thread Lawrence D'Oliveiro
In message b3d92d13-b484-4188-8665-2b5c7da15...@q22g2000yqm.googlegroups.com, Νίκος wrote: I would expect that: (nikos) is a single element tuple. Then how would you do a simple parenthesized expression? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Developer - HFT Trading firm - Chicago, IL

2010-08-21 Thread Lawrence D'Oliveiro
In message e7608a41-2e1a-4e64-bce1-1bf434eeb...@f42g2000yqn.googlegroups.com, Rich Moss wrote: Python developer needed for math/trading applications and research at leading HFT firm. Wasn’t HFT an exacerbating factor in just about every major stockmarket downturn since, oh, 1987? --

Re: Open a command pipe for reading

2010-08-21 Thread Lawrence D'Oliveiro
In message mailman.2236.1282063313.1673.python-l...@python.org, Rodrick Brown wrote: Sent from my iPhone 4. Glad to hear you achieved it without losing the signal. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Iterative vs. Recursive coding

2010-08-21 Thread Baba
On Aug 21, 7:37 am, John Nagle na...@animats.com wrote: On 8/20/2010 1:17 PM, John Bokma wrote: I think you mean tail recursion optimization / elimination. Python does tail recursion:     Not very well.      def cnt(n) :          if n 0 :              cnt(n-1) Hi John I'm

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-21 Thread David Kastrup
John Passaniti john.passan...@gmail.com writes: Amen! All this academic talk is useless. Who cares about things like the big-O notation for program complexity. Can't people just *look* at code and see how complex it is?! And take things like the years of wasted effort computer scientists

Re: Iterative vs. Recursive coding

2010-08-21 Thread Tim Chase
On 08/21/10 04:35, Baba wrote: On Aug 21, 7:37 am, John Naglena...@animats.com wrote: On 8/20/2010 1:17 PM, John Bokma wrote: I think you mean tail recursion optimization / elimination. Python does tail recursion: Not very well. def cnt(n) : if n 0 :

Re: Iterative vs. Recursive coding

2010-08-21 Thread Tim Chase
On 08/21/10 03:31, Steven D'Aprano wrote: On Fri, 20 Aug 2010 17:23:23 +0200, Bruno Desthuilliers wrote: I also was the only guy around that understood hairy (lol) concepts like callback functions, FSM, FSM? Flying Spaghetti Monster? I'm guessing Finite State Machines. But in a way, Flying

Re: make install DESTDIR

2010-08-21 Thread Thomas Jollans
On Saturday 21 August 2010, it occurred to aj to exclaim: On Aug 20, 4:39 pm, Thomas Jollans tho...@jollybox.de wrote: On Saturday 21 August 2010, it occurred to aj to exclaim: I am trying to install python with make install DESTDIR=/home/blah --prefix=/ ...

Re: Re: Iterative vs. Recursive coding

2010-08-21 Thread Dave Angel
Baba wrote: On Aug 21, 7:37 am, John Nagle na...@animats.com wrote: On 8/20/2010 1:17 PM, John Bokma wrote: I think you mean tail recursion optimization / elimination. Python does tail recursion: Not very well. def cnt(n) : if n 0 : cnt(n-1)

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-21 Thread Alex McDonald
On 21 Aug, 06:42, Standish P stnd...@gmail.com wrote: On Aug 20, 3:51 pm, Hugh Aguilar hughaguila...@yahoo.com wrote: On Aug 18, 6:23 pm, Standish P stnd...@gmail.com wrote: On Aug 17, 6:38 pm, John Passaniti john.passan...@gmail.com wrote: You asked if Forth borrowed lists from

Re: make install DESTDIR

2010-08-21 Thread Martin v. Loewis
The whole point of DESTDIR is that it should be prepended to all installed paths, but the binaries should not contain any references to it.DESTDIR is commonly used by packagers, for example, to allow installation without superuser privileges. So what is the point of your messages? Do you want

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread vsoler
On Aug 21, 8:10 am, Tim Golden m...@timgolden.me.uk wrote: On 20/08/2010 11:54 PM, vsoler wrote: I'am testing your library. I am mainly interested in knowing the access attributes of directories in the local(C:\) or shared unit(W:\) of my system. Using your script with 'c:\\' I get an

Re: Iterative vs. Recursive coding

2010-08-21 Thread Ian
On 21/08/2010 00:17, Ben Finney wrote: Steven D'Apranost...@remove-this-cybersource.com.au writes: On Thu, 19 Aug 2010 22:00:16 +, Martin Gregorie wrote: Recursion can be quite a trick to get your mind round at first Really? Do people actually find the *concept* of recursion to be

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread vsoler
On Aug 21, 8:10 am, Tim Golden m...@timgolden.me.uk wrote: On 20/08/2010 11:54 PM, vsoler wrote: I'am testing your library. I am mainly interested in knowing the access attributes of directories in the local(C:\) or shared unit(W:\) of my system. Using your script with 'c:\\' I get an

weakref.proxy behaviour in python 3.0

2010-08-21 Thread Nicholas Cole
Dear List, I've searched for information on this without success. Has weakref.proxy changed in Python 3? I couldn't see any note in the documentation, but the following code behaves differently on Python 2.6.1 and Python 3: import weakref class Test(object): pass realobject = Test() pobject =

vpython

2010-08-21 Thread kimjeng
im trying to build visual python on slackware 64bit 13.1 and i can not get beyond the configure stage, ... checking whether the g++ linker (/usr/x86_64-slackware-linux/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how

Re: Iterative vs. Recursive coding

2010-08-21 Thread Ian
On 21/08/2010 01:24, Martin Gregorie wrote: On Fri, 20 Aug 2010 16:22:44 -0700, Baba wrote: For the purposes of learning programming i think it's a must to understand Recursion so thanks all for your help! That depends on the language and/or hardware. COBOL wouldn't understand recursion

open two files at once

2010-08-21 Thread robek
hi, what is the simplest way to open two files (one for reading and 2nd for writing) ? i usually do: with open('1') as f1: with open('2','w') as f2: for i in f1: do something with i f2.write(i) is there a simpler/better way to do this ? --

Re: open two files at once

2010-08-21 Thread Peter Otten
robek wrote: what is the simplest way to open two files (one for reading and 2nd for writing) ? i usually do: with open('1') as f1: with open('2','w') as f2: for i in f1: do something with i f2.write(i) is there a simpler/better way to do this ? Yours is the best way to

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread Tim Golden
On 21/08/2010 1:01 PM, vsoler wrote: Personally, I am impressed of the power of python, your winsys library, and overall, how easy it is to customize the scripting of one's day to day needs. Glad you find it useful... I have started testing your first script from winsys import fs,

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread Tim Golden
On 21/08/2010 1:01 PM, vsoler wrote: I am using a system in the Spanish language. As you can see in the last line, 'Acceso denegado' or 'Access denied' even though the flag ignore_access_errors is set to True. Sorry, meant to reply to this point as well. The ignore_access_errors flag only

comp.lang.python

2010-08-21 Thread roshini begum
www.127760.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: weakref.proxy behaviour in python 3.0

2010-08-21 Thread Mark Dickinson
On Aug 21, 1:13 pm, Nicholas Cole nicholas.c...@gmail.com wrote: I've searched for information on this without success.  Has weakref.proxy changed in Python 3?  I couldn't see any note in the documentation, but the following code behaves differently on Python 2.6.1 and Python 3: import

Re: weakref.proxy behaviour in python 3.0

2010-08-21 Thread Nicholas Cole
On Sat, Aug 21, 2010 at 3:31 PM, Mark Dickinson dicki...@gmail.com wrote: [SNIP] So my guess is that the change was unintentional. It's probably worth a bug report.  Even if the behaviour isn't going to change in either 2.x or 3.x (and it probably isn't), it might be possible to clarify the

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-21 Thread Hugh Aguilar
On Aug 21, 5:29 am, Alex McDonald b...@rivadpm.com wrote: On 21 Aug, 06:42, Standish P stnd...@gmail.com wrote: Admittedly, I am asking a question that would be thought provoking to those who claim to be experts but these experts are actually very stingy and mean business people, most

Re: Iterative vs. Recursive coding

2010-08-21 Thread Michael Torrie
On 08/21/2010 03:03 AM, Steven D'Aprano wrote: - there must be a condition where the recursion has to stop otherwise the routine will continue to call itself infinitely. This is called the Base Case I agree with this, although I've never heard the name Base Case before. Base Case is

I HACK $3500 FROM PAYPAL...

2010-08-21 Thread DAKSHA
I HACK $3500 FROM PAYPAL At http://quickpaypalmoney.tk i have hidden the PAYPAL FORM link in an image. in that website on Right Side below search box, click on image and enter your name and PAYPAL ID. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Developer - HFT Trading firm - Chicago, IL

2010-08-21 Thread Raymond Hettinger
On Aug 21, 2:30 am, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand wrote: Wasn’t HFT an exacerbating factor in just about every major stockmarket downturn since, oh, 1987? IMO, it was a mitigating factor. HFT firms provide liquidity and help price discovery. Investor sentiment is what

Re: Python Developer - HFT Trading firm - Chicago, IL

2010-08-21 Thread Emile van Sebille
On 8/21/2010 10:32 AM Raymond Hettinger said... On Aug 21, 2:30 am, Lawrence D'Oliveirol...@geek- central.gen.new_zealand wrote: Wasn’t HFT an exacerbating factor in just about every major stockmarket downturn since, oh, 1987? IMO, it was a mitigating factor. HFT firms provide liquidity and

logging module - Miss messages if don't flush constantly? How set to flush constantly?

2010-08-21 Thread Chris Seberino
It looks like I can miss some logging messages if I don't flush after every oneis that true? This is an issue when program crashes so that logger didn't get a chance to print everything. Is there some way to set logging to constantly flush? --

Re: logging module - Miss messages if don't flush constantly? How set to flush constantly?

2010-08-21 Thread Peter Otten
Chris Seberino wrote: It looks like I can miss some logging messages if I don't flush after every oneis that true? As far as I can tell from the 2.6 source the StreamHandler does flush after each record. Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-21 Thread Alex McDonald
On 21 Aug, 17:58, Hugh Aguilar hughaguila...@yahoo.com wrote: On Aug 21, 5:29 am, Alex McDonald b...@rivadpm.com wrote: On 21 Aug, 06:42, Standish P stnd...@gmail.com wrote: Admittedly, I am asking a question that would be thought provoking to those who claim to be experts but these

Detect string has non-ASCII chars without checking each char?

2010-08-21 Thread python
Python 2.6: Is there a built-in way to check if a Unicode string has non-ASCII chars without having to check each char in the string? Here's my use case: I have a section of code that makes frequent calls to hasattr. The attribute name being tested is derived from incoming data which at times can

Re: weakref.proxy behaviour in python 3.0

2010-08-21 Thread Mark Dickinson
On Aug 21, 5:06 pm, Nicholas Cole nicholas.c...@gmail.com wrote: On Sat, Aug 21, 2010 at 3:31 PM, Mark Dickinson dicki...@gmail.com wrote: [SNIP] So my guess is that the change was unintentional. It's probably worth a bug report.  Even if the behaviour isn't going to change in either

Re: Iterative vs. Recursive coding

2010-08-21 Thread John Nagle
On 8/21/2010 10:08 AM, Michael Torrie wrote: On 08/21/2010 03:03 AM, Steven D'Aprano wrote: - there must be a condition where the recursion has to stop otherwise the routine will continue to call itself infinitely. This is called the Base Case I agree with this, although I've never heard

Re: Detect string has non-ASCII chars without checking each char?

2010-08-21 Thread Vlastimil Brom
2010/8/21 pyt...@bdurham.com: Python 2.6: Is there a built-in way to check if a Unicode string has non-ASCII chars without having to check each char in the string? Here's my use case: I have a section of code that makes frequent calls to hasattr. The attribute name being tested is derived

psycopg2 for insertion of binary data to PostgreSQL database

2010-08-21 Thread Julia Jacobson
Hello everybody out there using python, For the insertion of pictures into my PostgreSQL database [with table foo created by SQL command CREATE TABLE foo (bmp BYTEA)], I've written the following script: #!/usr/bin/python import psycopg2 try: conn = psycopg2.connect(dbname='postgres'

Re: psycopg2 for insertion of binary data to PostgreSQL database

2010-08-21 Thread D'Arcy J.M. Cain
On Sat, 21 Aug 2010 22:58:00 +0200 Julia Jacobson julia.jacob...@arcor.de wrote: For the insertion of pictures into my PostgreSQL database [with table foo created by SQL command CREATE TABLE foo (bmp BYTEA)], I've written the following script: #!/usr/bin/python import psycopg2 try:

Re: psycopg2 for insertion of binary data to PostgreSQL database

2010-08-21 Thread Peter Otten
Julia Jacobson wrote: Hello everybody out there using python, For the insertion of pictures into my PostgreSQL database [with table foo created by SQL command CREATE TABLE foo (bmp BYTEA)], I've written the following script: #!/usr/bin/python import psycopg2 try: conn =

Re: Pop return from stack?

2010-08-21 Thread bvdp
On Aug 20, 6:41 pm, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: bvdp wrote: The whole problem I was having is that I was trying to tie a small application (an helper to the main application) to use a bit of the existing code as a pseudo-library. This is precisely the reason that it's

Re: Python Developer - HFT Trading firm - Chicago, IL

2010-08-21 Thread Lawrence D'Oliveiro
In message a10be304-96dc-4fb3-bf9f-35652477e...@f20g2000pro.googlegroups.com, Raymond Hettinger wrote: On Aug 21, 2:30 am, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: Wasn’t HFT an exacerbating factor in just about every major stockmarket downturn since, oh, 1987? IMO,

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-21 Thread John Bokma
David Kastrup d...@gnu.org writes: John Passaniti john.passan...@gmail.com writes: Amen! All this academic talk is useless. Who cares about things like the big-O notation for program complexity. Can't people just *look* at code and see how complex it is?! And take things like the years

Re: Iterative vs. Recursive coding

2010-08-21 Thread John Bokma
John Nagle na...@animats.com writes: On 8/20/2010 1:17 PM, John Bokma wrote: John Naglena...@animats.com writes: Python does not do tail recursion, so using recursion where iteration could do the job is generally a bad idea. Scheme, on the other hand, always does tail recursion where

Re: Python Developer - HFT Trading firm - Chicago, IL

2010-08-21 Thread Scott MacDonald
Possibly relevant: http://www.nanex.net/FlashCrash/FlashCrashAnalysis_NBBO.html On Sat, Aug 21, 2010 at 4:22 PM, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message a10be304-96dc-4fb3-bf9f-35652477e...@f20g2000pro.googlegroups.com, Raymond Hettinger wrote: On Aug 21,

Re: Simple Python Sandbox

2010-08-21 Thread Gregory Ewing
Stephen Hansen wrote: Me, I'm going to go farther on my own installation and kill import entirely, and do a sort of require() which returns a special proxied version of an imported module Note that you can install an __import__ function in the builtins to provide this kind of functionality

Re: array manipulation-

2010-08-21 Thread Gregory Ewing
Aram Ter-Sarkissov wrote: I have an array (say, mat=rand(3,5)) from which I 'pull out' a row (say, s1=mat[1,]). The problem is, the shape of this row s1 is not [1,5], as I would expect, but rather [5,], which means that I can't, for example, concateante mat and s1 rowwise. Use a 2D slice: a

Re: Python Developer - HFT Trading firm - Chicago, IL

2010-08-21 Thread Gregory Ewing
Lawrence D'Oliveiro wrote: Someone who doesn’t understand how positive feedback can lead to instabilities in a dynamical system. Let's hope the person they hire makes it his first task to introduce a big dollop of negative feedback into the system! -- Greg --

Re: 79 chars or more?

2010-08-21 Thread Gregory Ewing
Roy Smith wrote: There was a fling a while ago with typesetting code in proportional spaced type. I think some of the Effective C++ series from Addison-Wesley did that. Yuck. I don't think proportional spacing is necessarily a problem, as long as a font is used that makes all characters

Re: 79 chars or more?

2010-08-21 Thread MRAB
Gregory Ewing wrote: Roy Smith wrote: There was a fling a while ago with typesetting code in proportional spaced type. I think some of the Effective C++ series from Addison-Wesley did that. Yuck. I don't think proportional spacing is necessarily a problem, as long as a font is used that

Re: Simple Python Sandbox

2010-08-21 Thread Stephen Hansen
On 8/21/10 5:56 PM, Gregory Ewing wrote: Stephen Hansen wrote: Me, I'm going to go farther on my own installation and kill import entirely, and do a sort of require() which returns a special proxied version of an imported module Note that you can install an __import__ function in the

Re: Iterative vs. Recursive coding

2010-08-21 Thread Steven D'Aprano
On Sat, 21 Aug 2010 19:09:52 -0500, John Bokma wrote: this means that Python should eliminate / optimize tail recursion. There have been various suggestions to add tail recursion optimization to the language. Two problems: * It throws away information from tracebacks if the recursive

Re: Reading the access attributes of directories in Windows

2010-08-21 Thread Nobody
On Fri, 20 Aug 2010 19:41:44 +0200, Thomas Jollans wrote: Create Folders and Delete Subfolders and Files correspond to having write permission on a directory. How does append differ from write? If you have appending permissions, but not writing ones, is it impossible to seek? Or is there a

Re: vpython

2010-08-21 Thread Anssi Saari
kimjeng easymaker...@gmail.com writes: the thing is i have installed gtkglextmm both from source and via a slackbuilds package script and i still get the same error, help would be a appreciated You'll just have to check what it is configure actually tests for and figure out from that why your

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-21 Thread Brad
On Aug 21, 3:36 am, David Kastrup d...@gnu.org wrote: I think there must be some programmer gene.  It is not enough to be able to recognize O(n^k) or worse (though it helps having a more exact rather than a fuzzy notion of them _if_ you have that gene).   Some of the best minds in

Re: Detect string has non-ASCII chars without checking each char?

2010-08-21 Thread John Nagle
On 8/21/2010 1:21 PM, Vlastimil Brom wrote: 2010/8/21pyt...@bdurham.com: Python 2.6: Is there a built-in way to check if a Unicode string has non-ASCII chars without having to check each char in the string? Here's my use case: I have a section of code that makes frequent calls to hasattr. The

[issue9637] docs do not say that urllib uses HTTP_PROXY

2010-08-21 Thread Kirikaza
Kirikaza kirik...@rambler.ru added the comment: I missed the print statement in that example... So I attached the file with correct code. -- Added file: http://bugs.python.org/file18594/proxy.py ___ Python tracker rep...@bugs.python.org

[issue843590] 'macintosh' encoding alias for 'mac_roman'

2010-08-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Benjamin Peterson wrote: Benjamin Peterson benja...@python.org added the comment: r84229 Thanks, Benjamin ! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue843590

[issue9655] urllib2 fails to retrieve a url which is handled correctly by urllib

2010-08-21 Thread Albert Weichselbraun
New submission from Albert Weichselbraun albert.weichselbr...@gmail.com: urllib2 fails to retrieve the content of http://www.mfsa.com.mt/insguide/english/glossarysearch.jsp?letter=all urllib2.urlopen(http://www.mfsa.com.mt/insguide/english/glossarysearch.jsp?letter=all;).read() '' urllib

[issue9655] urllib2 fails to retrieve a url which is handled correctly by urllib

2010-08-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Its funny, confirmed the problem in the trunk. -- assignee: - orsenthil nosy: +orsenthil resolution: - accepted stage: - needs patch ___ Python tracker rep...@bugs.python.org

[issue1005895] curses for win32

2010-08-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Tim: mainly because this was raised some 4 years earlier and the title of #2889 curses for windows (alternative patch) -- ___ Python tracker rep...@bugs.python.org

[issue1103350] send/recv SEGMENT_SIZE should be used more in socketmodule

2010-08-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I'll close this in a couple of weeks unless anyone objects. -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1103350

[issue9655] urllib2 fails to retrieve a url which is handled correctly by urllib

2010-08-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Hmm, it looks like a web server problem to me. urllib2 uses the HTTP/1.1 protocol, and sends the Connection: close header. I hacked urllib2: when this header is not sent, the content is retrieved normally. This page:

[issue9655] urllib2 fails to retrieve a url which is handled correctly by urllib

2010-08-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Confirmed with telnet sessions: == Simulate urllib2 == $ telnet www.mfsa.com.mt 80 GET /insguide/english/glossarysearch.jsp?letter=all HTTP/1.1 Accept-Encoding: identity Host: www.mfsa.com.mt Connection: close User-Agent:

[issue1122916] incorrect handle of declaration in markupbase

2010-08-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Fixed in #1442874. -- nosy: +BreamoreBoy resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1122916

[issue1145257] shutil.copystat() may fail...

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: -Python 2.6, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1145257 ___

[issue1666318] shutil.copytree doesn't preserve directory permissions

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1666318 ___

[issue1149447] bsddb wrapper does not export some low-level functions

2010-08-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: This won't happen as bsddb was removed from py3k. -- nosy: +BreamoreBoy resolution: - out of date status: open - closed title: bssdb wrapper does not export some low-level functions - bsddb wrapper does not export some low-level

[issue1155362] Bugs in parsedate_tz

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1155362 ___

[issue1158490] locale fails if LANGUAGE has multiple locales

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.1 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1158490 ___

[issue1159051] Handle corrupted gzip files with unexpected EOF

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - needs patch type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1159051

[issue1160328] urllib2 post error when using httpproxy

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1160328 ___

[issue1162477] Parsing failures in parsedate_tz

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +r.david.murray versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1162477 ___

[issue1170766] weakref.proxy incorrect behaviour

2010-08-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I'll close this in a couple of weeks unless anyone objects. -- nosy: +BreamoreBoy status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1170766

[issue1172011] BaseCookie should call value_decode from __getitem__

2010-08-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: No reply to msg109888. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1172011 ___

[issue1175004] Export more libreadline API functions

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1175004 ___

[issue1260171] subprocess: more general (non-buffering) communication

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1260171 ___ ___

[issue1175984] Make subprocess.Popen support file-like objects (win)

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1175984 ___

[issue1699853] locale.getlocale() output fails as setlocale() input

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1699853 ___

[issue1176504] locale._build_localename treatment for utf8

2010-08-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Would someone please look at the two line patch as svn wouldn't let me apply it. -- nosy: +BreamoreBoy stage: unit test needed - patch review versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

[issue1178136] cgitb.py support for frozen images

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: unit test needed - patch review versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1178136 ___

[issue9651] ctypes crash when writing zerolength string buffer to file

2010-08-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Confirmed on all versions since 2.6. Patch attached. -- keywords: +patch nosy: +amaury.forgeotdarc stage: - patch review Added file: http://bugs.python.org/file18595/ctypes-buffer.patch ___

[issue1178863] Variable.__init__ uses self.set(), blocking specialization

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- assignee: loewis - gpolo nosy: +gpolo versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1178863 ___

[issue5353] Improve IndexError messages with actual values

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5353 ___

[issue1182143] making builtin exceptions more informative

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- components: +Interpreter Core -Library (Lib) versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1182143 ___

[issue1182788] ZipFile __del__/close problem with longint/long files

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1182788 ___

[issue1185124] pydoc doesn't find all module doc strings

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1185124 ___

[issue1186900] nntplib shouldn't raise generic EOFError

2010-08-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The OP would accept a documentation change if the code's not going to be changed. -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org

[issue1189811] pydoc may hide non-private doc strings.

2010-08-21 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1189811 ___

[issue1191964] asynchronous Subprocess

2010-08-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: PEP 3145 has been written in response to this request. -- nosy: +BreamoreBoy versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1191964

[issue1194222] parsedate and Y2K

2010-08-21 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I couldn't apply the py3k version of the patch which contains changed unit tests. Would someone please review this patch. -- nosy: +BreamoreBoy stage: unit test needed - patch review versions: +Python 3.2 -Python 2.7, Python 3.1

  1   2   3   4   >