Wing IDE 4.1.7 released

2012-07-10 Thread Wingware
Hi, Wingware has released version 4.1.7 of Wing IDE, our integrated development environment designed specifically for the Python programming language. Wing IDE provides a professional quality code editor with vi, emacs, and other key bindings, auto-completion, call tips, refactoring,

Re: Python Interview Questions

2012-07-10 Thread rusi
On Jul 10, 4:40 am, Roy Smith r...@panix.com wrote: In article mailman.1965.1341876813.4697.python-l...@python.org,  Christian Heimes li...@cheimes.de wrote: Am 09.07.2012 23:22, schrieb Peter: One of my favourite questions when interviewing - and it was 100% reliable :-) - what are

Re: tiffany 0.6.1 released

2012-07-10 Thread Christian Heimes
Am 09.07.2012 17:51, schrieb Christian Tismer: It turns out to be a problem with multiple strips in a tiff file. PIL does not support that. Maybe I can find an easy solution, maybe I'm better off using smc.freeimage as suggested by Christian Heimes, we will see. Right now I'm pretty

Re: Python Interview Questions

2012-07-10 Thread Chris Angelico
On Tue, Jul 10, 2012 at 3:08 PM, Shambhu Rajak shambhu.ra...@kpitcummins.com wrote: I agree with Christian, a developer should have hobbies other than computer stuffs. Versatile environment give more Ability to think differently. I like playing guitar :-) Music and programming do go VERY

Re: Python Interview Questions

2012-07-10 Thread Christian Heimes
Am 10.07.2012 09:33, schrieb Steven D'Aprano: This is why I hate job interviews. You have like 30 minutes, or even as little as 30 seconds, to make a good impression on somebody who may or may not be capable of telling the difference between a cheese sandwich and a box of hair -- and even

Re: Python Interview Questions

2012-07-10 Thread Jean-Michel Pichavant
Tim Chase wrote: On 07/09/12 19:27, Roy Smith wrote: prefer folks that know which features to check availability for deployment. Heh. Tell me, when did strings get methods? :-) IIRC, ~2.0? I'm cognizant of the shift happening from the string module to string methods, but I

Re: Python Interview Questions

2012-07-10 Thread Mark Lawrence
On 10/07/2012 09:03, Chris Angelico wrote: On Tue, Jul 10, 2012 at 3:08 PM, Shambhu Rajak shambhu.ra...@kpitcummins.com wrote: I agree with Christian, a developer should have hobbies other than computer stuffs. Versatile environment give more Ability to think differently. I like playing guitar

Re: Python Interview Questions

2012-07-10 Thread Mark Lawrence
On 10/07/2012 09:11, Christian Heimes wrote: Almost everybody can garden under ideal conditions. I grow about 15 herbs, strawberries, tomatoes, chillies and flowers on a small balcony in the middle of the city. This year I'm going to harvest at least 200 tomatoes from two plants in a 1m * 40cm *

Re: Tkinter.event.widget: handler gets name instead of widget.

2012-07-10 Thread Frederic Rentsch
On Mon, 2012-07-09 at 10:49 -0700, Rick Johnson wrote: On Jul 9, 12:58 am, Terry Reedy tjre...@udel.edu wrote: When posting problem code, you should post a minimal, self-contained example that people can try on other systems and versions. Can you create the problem with one record, which

what's the effect of cmp here?

2012-07-10 Thread levi nie
what's the effect of cmp here? The bList and cList is the same at last. code: aList=[3,2,5,4] bList=aList[:] bList.sort() print bList is,bList cList=aList[:] cList.sort(cmp) print cList is,cList -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Interview Questions

2012-07-10 Thread rusi
On Jul 10, 12:33 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: This is why I hate job interviews. You have like 30 minutes, or even as little as 30 seconds, to make a good impression on somebody who may or may not be capable of telling the difference between a cheese sandwich

Re: Issues with `codecs.register` and `codecs.CodecInfo` objects

2012-07-10 Thread Walter Dörwald
On 07.07.12 04:56, Steven D'Aprano wrote: On Fri, 06 Jul 2012 12:55:31 -0400, Karl Knechtel wrote: Hello all, While attempting to make a wrapper for opening multiple types of UTF-encoded files (more on that later, in a separate post, I guess), I ran into some oddities with the `codecs`

Re: what's the effect of cmp here?

2012-07-10 Thread Dave Angel
On 07/10/2012 11:01 AM, levi nie wrote: what's the effect of cmp here? The bList and cList is the same at last. code: aList=[3,2,5,4] bList=aList[:] bList.sort() print bList is,bList cList=aList[:] cList.sort(cmp) print cList is,cList The main effect is for the reader of the code.

Re: what's the effect of cmp here?

2012-07-10 Thread Mark Lawrence
On 10/07/2012 16:01, levi nie wrote: aList=[3,2,5,4] bList=aList[:] bList.sort() print bList is,bList cList=aList[:] cList.sort(cmp) print cList is,cList Why don't you tell us, you have the same documentatation avaialable as everybody else. -- Cheers. Mark Lawrence. --

Re: Python Interview Questions

2012-07-10 Thread Ethan Furman
Jean-Michel Pichavant wrote: Why would you want to hire someone that knows something pointless as the version where feature X has been introduced ? As an example from today, if someone claimed to have 5+ years of Python experience, but didn't know that 'with' was standard in 2.6 (or at least

Re: Python Interview Questions

2012-07-10 Thread BartC
Peter peter.milli...@gmail.com wrote in message news:35e7a860-fd41-4018-82f6-aabc32610...@googlegroups.com... One of my favourite questions when interviewing - and it was 100% reliable :-) - what are your hobbies? If the answer included programming then they were hired, if not, then they

Re: Python Interview Questions

2012-07-10 Thread Chris Angelico
On Wed, Jul 11, 2012 at 1:55 AM, BartC b...@freeuk.com wrote: There's also the risk of mixing up software created at home, with that done at work, with all the intellectual property issues that might arise. You just make the matter clear from the beginning, for instance: what's done at work

Re: Python Interview Questions

2012-07-10 Thread Steven D'Aprano
On Tue, 10 Jul 2012 09:05:50 -0700, Ethan Furman wrote: Jean-Michel Pichavant wrote: Why would you want to hire someone that knows something pointless as the version where feature X has been introduced ? As an example from today, if someone claimed to have 5+ years of Python experience,

Re: Python Interview Questions

2012-07-10 Thread Chris Angelico
On Wed, Jul 11, 2012 at 2:34 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Of course, if they try to sell themselves as having five years experience with Python 3.2... ... then they've been borrowing Guido's time machine for personal purposes. ChrisA --

Re: Python Interview Questions

2012-07-10 Thread Steven D'Aprano
On Tue, 10 Jul 2012 11:29:24 +0200, Jean-Michel Pichavant wrote: Why would you want to hire someone that knows something pointless as the version where feature X has been introduced ? Just tell him that feature X has been introducted in version Y, costless 2.5sec training. Don't you want to

Re: Python Interview Questions

2012-07-10 Thread Steven D'Aprano
On Tue, 10 Jul 2012 10:11:22 +0200, Christian Heimes wrote: Am 10.07.2012 09:33, schrieb Steven D'Aprano: This is why I hate job interviews. You have like 30 minutes, or even as little as 30 seconds, to make a good impression on somebody who may or may not be capable of telling the difference

Wing IDE 4.1.7 released

2012-07-10 Thread Wingware
Hi, Wingware has released version 4.1.7 of Wing IDE, our integrated development environment designed specifically for the Python programming language. Wing IDE provides a professional quality code editor with vi, emacs, and other key bindings, auto-completion, call tips, refactoring,

Re: Python Interview Questions

2012-07-10 Thread Ethan Furman
Chris Angelico wrote: On Wed, Jul 11, 2012 at 2:34 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Of course, if they try to sell themselves as having five years experience with Python 3.2... ... then they've been borrowing Guido's time machine for personal purposes. Reminds

Re: Python Interview Questions

2012-07-10 Thread Chris Angelico
On Wed, Jul 11, 2012 at 2:51 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: If only that were true. I know quite a few people who looked the interviewer straight in the eye and told the most bare-faced lies without a trace of shame, and got the job. Ten years on, at least one

Re: Python Interview Questions

2012-07-10 Thread Jean-Michel Pichavant
Steven D'Aprano wrote: On Tue, 10 Jul 2012 11:29:24 +0200, Jean-Michel Pichavant wrote: Why would you want to hire someone that knows something pointless as the version where feature X has been introduced ? Just tell him that feature X has been introducted in version Y, costless 2.5sec

Re: Python Interview Questions

2012-07-10 Thread Steven D'Aprano
On Wed, 11 Jul 2012 02:59:15 +1000, Chris Angelico wrote: On Wed, Jul 11, 2012 at 2:51 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: If only that were true. I know quite a few people who looked the interviewer straight in the eye and told the most bare-faced lies without a

Opening multiple Files in Different Encoding

2012-07-10 Thread Subhabrata
Dear Group, I kept a good number of files in a folder. Now I want to read all of them. They are in different formats and different encoding. Using listdir/glob.glob I am able to find the list but how to open/read or process them for different encodings? If any one can help me out.I am using

Re: Python Interview Questions

2012-07-10 Thread Mark Lawrence
On 10/07/2012 18:12, Dennis Lee Bieber wrote: On 10 Jul 2012 07:33:59 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info declaimed the following in gmane.comp.python.general: may not be capable of telling the difference between a cheese sandwich and a box of hair -- and even the *good*

Re: Python Interview Questions

2012-07-10 Thread Demian Brecht
I also judge candidates on their beards (http://www.wired.com/wiredenterprise/2012/06/beard-gallery/). If the beard's awesome enough, no questions needed. They're pro. -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Intro+Intermediate Python, San Francisco, Aug 1-3

2012-07-10 Thread wesley chun
hello everyone, hope some of you enjoyed #EuroPython this past week/end, and perhaps i'll see some of you at OSCON next week! as promised, here's the one and only FINAL REMINDER of the hardcore intro+intermediate Python course i'm offering 2012 Aug 1-3 near the San Francisco airport. reach out to

Adding to a List and displaying quantity in the list

2012-07-10 Thread Shamefaced
Hi I have coded a program whihc outputs what I like, but I am trying to modify it to add specific result info to a list and then display the number of items in the list. This is easy for me with basic code, but seems difficult when trying to adapt my program. My code and explanation is as

Re: Opening multiple Files in Different Encoding

2012-07-10 Thread MRAB
On 10/07/2012 18:46, Subhabrata wrote: Dear Group, I kept a good number of files in a folder. Now I want to read all of them. They are in different formats and different encoding. Using listdir/glob.glob I am able to find the list but how to open/read or process them for different encodings?

Re: Adding to a List and displaying quantity in the list

2012-07-10 Thread John Gordon
In e16d39fa-161b-409e-9b6b-0238ee262...@googlegroups.com Shamefaced manengstud...@gmail.com writes: else: print(%8.3f %s: Waited too long %6.3f % (now()/60, self.name, wait) + time units have passed - Customer has left) leavelist.append(self.acquired) What

Re: Adding to a List and displaying quantity in the list

2012-07-10 Thread Shamefaced
else: print(%8.3f %s: Waited too long %6.3f % (now()/60, self.name, wait) + time units have passed - Customer has left) leavelist.append(self.acquired) Yeah, I should have changed that back to : leavelist.append(self.name) -- my thinking was that it would append

Re: Tkinter.event.widget: handler gets name instead of widget.

2012-07-10 Thread Rick Johnson
I've tried to condense your code using the very limited info you have provided. I have removed unnecessarily configuring of widgets and exaggerated the widget borders to make debugging easier. Read below for QA. ## START CONDENSED CODE ## records = range(4) CNF_SUBFRAME = { 'bd':5, #

RE: how to interact with Windows cmd?

2012-07-10 Thread Prasad, Ramit
what I want to do is 1.open cmd 2.waiting for user's typing 3.when I type dir 4.print the result of dir 5.then I type some other commands, printing the result until I type 'exit' I used p=subprocess.Popen('cmd',stdin=subprocess.PIPE,stdout=subprocess.PIPE,stderr=s

Re: Python Interview Questions

2012-07-10 Thread Ian Kelly
On Tue, Jul 10, 2012 at 4:26 PM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Tue, 10 Jul 2012 09:05:50 -0700, Ethan Furman et...@stoneleaf.us declaimed the following in gmane.comp.python.general: As an example from today, if someone claimed to have 5+ years of Python experience, but

Re: Tkinter.event.widget: handler gets name instead of widget.

2012-07-10 Thread Rick Johnson
Also: Q3: Why are you explicitly setting the name of your subFrame widgets instead of allowing Tkinter to assign a unique name?...AND are you aware of the conflicts that can arise from such changes[1]? Q4: Are you aware of the built-in function enumerate[2]? I see you are passing around indexes

Re: Python Interview Questions

2012-07-10 Thread David Robinow
On Tue, Jul 10, 2012 at 1:02 PM, Ethan Furman et...@stoneleaf.us wrote: ... Reminds me of a job posting a few years ago where the prospective employer wanted three plus years experience in some language, and that language had only been created a year and a half before. I saw several of those

Re: Python Interview Questions

2012-07-10 Thread Rick Johnson
On Jul 10, 4:29 am, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Why would you want to hire someone that knows something pointless as the version where feature X has been introduced ? Just tell him that feature X has been introducted in version Y, costless 2.5sec training. Don't you

Re: Python Interview Questions

2012-07-10 Thread Stefan Behnel
Mark Lawrence, 10.07.2012 11:42: I recall reading in a book in the local library of a manager that wouldn't employ people unless they were wearing a new pair of shoes. Guess they didn't take many people on. Managers tend to like wasting resources. Buying a new pair of shoes for each job

[issue15302] Use argparse instead of getopt in test.regrtest

2012-07-10 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: On Mon, Jul 9, 2012 at 8:50 PM, Chris Jerdonek rep...@bugs.python.org wrote: Sure, if someone is open to reviewing it. Yes, please go ahead. I can review it and I believe others should be able to as well. As a first short, I think, it may

[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-10 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: +sys.stdin = self.console = _RPCFile(self.get_remote_proxy(stdin)) write to sys.stdin? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13532

[issue15302] Use argparse instead of getopt in test.regrtest

2012-07-10 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Thanks, Senthil. That is my plan. I should be able to have code with tests in no later than a week. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15302

[issue15311] Developer Guide doesn't get updated once a day

2012-07-10 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Patch attached. I also added a note about building the Dev Guide documentation. Unlike the main Python documentation, `make html` for the Dev Guide doesn't seem to install Sphinx automatically. -- keywords: +patch Added

[issue15311] Developer Guide doesn't get updated once a day

2012-07-10 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15311 ___ ___

[issue15310] urllib: Support for multiple WWW-Authenticate headers and/or multiple challenges per header

2012-07-10 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15310 ___ ___

[issue15317] Source installation sets incorrect permissions for Grammar3.2.3.final.0.pickle

2012-07-10 Thread Tomi Pieviläinen
New submission from Tomi Pieviläinen tomi.pievilainen+launch...@iki.fi: /usr/local/lib/python3.2/lib2to3/Grammar3.2.3.final.0.pickle is readable only by root after installing with make install from the source package. This makes at least installing distribute fail, and thus makes virtualenv,

[issue15317] Source installation sets incorrect permissions for Grammar3.2.3.final.0.pickle

2012-07-10 Thread Tomi Pieviläinen
Tomi Pieviläinen tomi.pievilainen+launch...@iki.fi added the comment: Also PatternGrammar3.2.3.final.0.pickle is missing the read permissions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15317

[issue15302] Use argparse instead of getopt in test.regrtest

2012-07-10 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: By the way, issue 15300 has a related patch that is ready to review today. Assuming that one is okay, it would make sense to commit first because it overlaps with the changes I'll be doing here. Issue 15305 is another related issue

[issue15315] Can't build Python extension with mingw32 on Windows

2012-07-10 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: That's definitely an improvement. It gets further, but on my PC, the compile fails: ... c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: cannot find -lmsvcr100 collect2: ld returned 1 exit status error: command

[issue15316] runpy swallows ImportError information with relative imports

2012-07-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Looks very similar to issue15111. -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - closed superseder: - Wrong ImportError message with importlib ___ Python tracker

[issue15111] Wrong ImportError message with importlib

2012-07-10 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +cjerdonek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15111 ___ ___

[issue15315] Can't build Python extension with mingw32 on Windows

2012-07-10 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: I downloaded the latest MinGW, and now it tells me: ... c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Python33\include -IC:\Python33\PC -c python3/src/_cobs_ext.c -o bui ld\temp.win32-3.3\Release\python3\src\_cobs_ext.o

[issue15315] Can't build Python extension with mingw32 on Windows

2012-07-10 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: It sounds as though the option '-mno-cygwin' is related to issue #12641. Does that mean I need to find a version of MinGW that is old enough to support the option '-mno-cygwin', but new enough to include a library for msvcr100?

[issue12641] Remove -mno-cygwin from distutils

2012-07-10 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: I've come across this issue when trying to build extensions for Python 3.3 on Windows, needing a recent enough MinGW to provide a library for msvcr100. See issue #15315. -- nosy: +cmcqueen1975

[issue15315] Can't build Python extension with mingw32 on Windows

2012-07-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I'm not a Cygwin user myself, so it would be good if you could figure this out somehow. Feel free to ask on Cygwin lists how this is supposed to work. Our requirement is that the resulting pyd needs to link with msvcr100.dll. It may well

[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Could you please state the Python version and line numbers in memoryobject.c? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15309

[issue12641] Remove -mno-cygwin from distutils

2012-07-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I have gcc 3.4.4 in my cygwin installation, and it still needs the -mno-cygwin option, else the resulting binary will link with cygwin1.dll (which is undesired). -- ___ Python tracker

[issue12641] Remove -mno-cygwin from distutils

2012-07-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I just installed the cygwin gcc4 package; this gives me gcc 4.5.3. In this version, -mno-cygwin is still recognized, and gives this error message: gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler. So it seems

[issue15267] tempfile.TemporaryFile and httplib incompatibility

2012-07-10 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: I can confirm that this isn't a problem for 3.x. No-one's listed in the experts list for the httplib module but Senthil appears to be the de factor maintainer so I've added him to the call for his opinion. My feeling would be to do the

[issue12641] Remove -mno-cygwin from distutils

2012-07-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The 64-bit compiler is actually called x86_64-w64-mingw32-gcc. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12641 ___

[issue15300] test directory doubly-nested running tests with -j/--multiprocess

2012-07-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't really like the pre-parsed option hack. Can't we think of something simpler? For example, why would the child be involved, rather than simply the parent setting the right cwd? Also, I don't think there's any point in

[issue15111] Wrong ImportError message with importlib

2012-07-10 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: That cannot import name message seems to only come from Python/ceval.c:import_from() which raises that exception when an AttributeError is raised by an 'import from' statement (I think). This happens when an 'import from' asks for a name on the

[issue15314] Use importlib instead of pkgutil in runpy

2012-07-10 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Ooh, first customer of importlib.find_loader()! Obviously if the API doesn't work for you let me know since it's a 3.3 addition and can be tweaked to meet your needs. -- nosy: +brett.cannon ___

[issue15111] Wrong ImportError message with importlib

2012-07-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset dc18a2a66d16 by Brett Cannon in branch 'default': Issue #15111: When a module was imported using a 'from import' http://hg.python.org/cpython/rev/dc18a2a66d16 -- nosy: +python-dev

[issue15111] Wrong ImportError message with importlib

2012-07-10 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15111

[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-10 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: sys.stdin has a write method, but it should raise io.UnsupportedOperation: not writable when passed a string. It looks like IDLE has allowed writes to stdin even before Martin's patch. I'll open a separate issue for this case. --

[issue15318] IDLE - sys.stdin is writeable

2012-07-10 Thread Roger Serwy
New submission from Roger Serwy roger.se...@gmail.com: This is a follow-up to issue13532 which fixed problems with IDLE's sys.stdout and sys.stderr implementation. Presently, sys.stdin has a write method, but does not raise io.UnsupportedOperation: not writable when passed a string. Instead,

[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-10 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Running input from IDLE now raises an error. Attached is a fix to _RPCFile to allow readline (and isatty) to function properly. -- priority: normal - high resolution: fixed - status: closed - open Added file:

[issue15289] Adding __getitem__ as a class method doesn't work as expected

2012-07-10 Thread samwyse
samwyse samw...@gmail.com added the comment: Thanks, Eric. Based on what you said, I was able to get the desired behavior by creating a metaclass. -- Added file: http://bugs.python.org/file26343/Issue15289.py ___ Python tracker

[issue12967] IDLE RPC Proxy for standard IO streams lacks 'errors' attribute

2012-07-10 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Issue13532 has an applied patch (422242dbce30) for the subprocess that makes the stdout, stderr, and stdin inherit from io.TextIOBase. This includes the errors attribute, albeit set to ''. The fix does not apply when running IDLE without a

[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-10 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: sys.stdin.readable() False sys.stdout.writable() False I think the issue is far from a solution. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13532

[issue1346874] httplib simply ignores CONTINUE

2012-07-10 Thread André Cruz
André Cruz an...@cabine.org added the comment: Can anyone confirm what is missing for this patch to be committed? Is it just test and documentation changes or is something wrong with the code changes as well? -- nosy: +edevil ___ Python tracker

[issue1346874] httplib simply ignores CONTINUE

2012-07-10 Thread Carl Nobile
Carl Nobile carl.nob...@gmail.com added the comment: I was told some time ago that it was documentation changes. And, if I remember correctly CONTINUE (100) was not ignored, it was actually broken. Data was being read from stdin when a CONTINUE was received and this should never happen based on

[issue13532] In IDLE, sys.stdout and sys.stderr can write any pickleable object

2012-07-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Folks: one issue at a time - pretty pretty please. This issue was In IDLE, sys.stdout and sys.stderr can write any pickleable object. Will anybody dispute that this issue is fixed? Roger: please create a new issue for input being broken

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Roger Serwy
New submission from Roger Serwy roger.se...@gmail.com: Per Martin's request in msg165197, this issue has been separated from Issue13532. The newly introduced _RPCFile object in run.py (422242dbce30) inherits from io.TextIOBase which has readline as one of its methods. As a result, IDLE's

[issue4832] idle filename extension

2012-07-10 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I tried issue4832_rev2.patch on Ubuntu 11.04 with Tk 8.5 and it still behaves as Terry described. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4832

[issue15302] Use argparse instead of getopt in test.regrtest

2012-07-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: As mentioned, the first step is to create some tests that can validate the current behavior, so that changes don't break things. This is a non-trivial task. I know from experience with a similar refactoring that even seemingly simple

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-10 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: proposed patch, tested with configure, build and install -- keywords: +needs review, patch Added file: http://bugs.python.org/file26345/sysconfigdata.diff ___ Python tracker rep...@bugs.python.org

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: There is a simpler solution of this issue. -- nosy: +storchaka type: - behavior Added file: http://bugs.python.org/file26346/idle_stdin_no_rpcfile.patch ___ Python tracker

[issue15320] thread-safety issue in regrtest.main()

2012-07-10 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: My understanding is that generators are not thread-safe. For example, see http://stackoverflow.com/a/1131458/262819 However, regrtest.main() seems to access a generator from multiple threads when run in multiprocess mode: def

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I like Serhiy's patch. It works for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15319 ___

[issue1346874] httplib simply ignores CONTINUE

2012-07-10 Thread André Cruz
André Cruz an...@cabine.org added the comment: As far as I can see, the patch does add some documentation changes. What exactly is missing? As for the bug, if I understood correctly, what you are saying is that when ignore_continue is True, and the server sends a 100 Continue response, the

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch is rather ugly, I think. You should arrange for sysconfigdata to be generated directly at the right place instead (not sure how, perhaps it should be done from setup.py). Also, there's no need for this to be a release blocker.

[issue1346874] httplib simply ignores CONTINUE

2012-07-10 Thread Carl Nobile
Carl Nobile carl.nob...@gmail.com added the comment: Yes, exactly. I was not the one who posted the original bug report, but I found it when I ran into the same problem. I was not exactly sure if the original poster had the same issues as I had. I do know that my fix to the code eliminated some

[issue15309] buffer/memoryview slice assignment uses only memcpy

2012-07-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I see nothing wrong in memory_ass_sub(). In 2.7: if (destbuf + bytelen srcbuf || srcbuf + bytelen destbuf) /* No overlapping */ memcpy(destbuf, srcbuf, bytelen); else memmove(destbuf, srcbuf, bytelen);

[issue1346874] httplib simply ignores CONTINUE

2012-07-10 Thread André Cruz
André Cruz an...@cabine.org added the comment: Carl: that would be great. Do you use it regularly? Any other problems? Python devs: can anyone confirm me what still needs to be done so that this patch can be considered for merging into trunk? Thanks. --

[issue12641] Remove -mno-cygwin from distutils

2012-07-10 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: It would be great if this could be sorted out in time for Python 3.3. Otherwise I don't think we'll be able to use MinGW to build extensions in Windows. Unless there is a version of MinGW which supports the -mno-cygwin option, as well

[issue15317] Source installation sets incorrect permissions for Grammar3.2.3.final.0.pickle

2012-07-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15317 ___ ___ Python-bugs-list

[issue1346874] httplib simply ignores CONTINUE

2012-07-10 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: The patch seems good. I apologize that this has been sitting stale for a long time. Since this is a new feature, I am not sure if putting to 3.3 might be a good idea. This is a feature for httplib, so it may not make it to 2.7.x, but can

[issue15315] Can't build Python extension with mingw32 on Windows

2012-07-10 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: I've succeeded in building an extension for Python 3.3 (at least, on Windows XP, 32-bit; haven't tried any 64-bit), by the hack of copying libmsvcr100.a from a recent MinGW release (20120426) into an older MinGW release (20101030). I

[issue15321] bdist_wininst installers may terminate with close failed in file object destructor:\nsys.excepthook is missing\nlost sys.stderr

2012-07-10 Thread Mark Hammond
New submission from Mark Hammond skippy.hamm...@gmail.com: Note the error message in the title is only for Python 2.x - Python 3.x shows an empty string instead, but otherwise seems identical. This was first brought to my attention via

[issue15321] bdist_wininst installers may terminate with close failed in file object destructor:\nsys.excepthook is missing\nlost sys.stderr

2012-07-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15321 ___ ___ Python-bugs-list mailing

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I agree that the _RPCFile wrapping of the stdin proxy should be undone unless and until there is a positive reason for it -- it solves a problem -- and it is better tested. But reversion does not solve pre-existing problems. As noted by

[issue15318] IDLE - sys.stdin is writeable

2012-07-10 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: To me, this is part of #15319. sys.stdin is broken in being writable but not readable. Unwrapping is just the first, trivial step to fixing it. So I think we should close this in favor of the other. --

[issue15318] IDLE - sys.stdin is writeable

2012-07-10 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I agree. I'll close it. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15318 ___

[issue15318] IDLE - sys.stdin is writeable

2012-07-10 Thread Roger Serwy
Changes by Roger Serwy roger.se...@gmail.com: -- superseder: - IDLE - input() is broken. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15318 ___

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Including issue15318 where stdin is writable. The proper solution to that issue and this one are likely the same. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15319

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Same difference for readlines and writelines. I wonder how input works if it does not call sys.stdin.read() Eventually IDLE makes a call to PyShell's readline. -- ___ Python tracker

  1   2   >