Python for Qt version 1.0.0~beta3 salmiak released

2011-01-07 Thread Renato Araujo Oliveira Filho
The PySide team is happy to announce the third beta release of PySide: Python for Qt. New versions of some of the PySide toolchain components apiextractor, shiboken, libpyside have been released as well. This is a source code release only; we hope our community packagers will be providing provide

[ANN] Leipzig Python User Group - Meeting, January 11, 2011, 08:00pm

2011-01-07 Thread Stefan Schwarzer
=== Leipzig Python User Group === We will meet on Tuesday, January, 11th, 8:00 pm at the training center of Python Academy in Leipzig, Germany ( http://www.python-academy.com/center/find.html ). Food and soft drinks are provided. Please send a short confirmation mail to i...@python-academy.de,

Re: Resolve circular reference

2011-01-07 Thread moerchendiser2k3
Force what? j refers to i, i refers to Foo, Foo refers to A. Therefore A should be alive. Oh, sorry. Force the deletion of A. -- http://mail.python.org/mailman/listinfo/python-list

Re: Resolve circular reference

2011-01-07 Thread moerchendiser2k3
Force what? j refers to i, i refers to Foo, Foo refers to A. Therefore A should be alive. Oh, sorry. Force the deletion of instance Foo(A) and Bar(B). -- http://mail.python.org/mailman/listinfo/python-list

Re: [PyQt] Working with PyQt and Pydev

2011-01-07 Thread Fabio Zadrozny
On Thu, Jan 6, 2011 at 9:32 AM, Rohit Coder passionate_program...@hotmail.com wrote: I installed the PyDev plugin into Aptana Stdui 3 Beta. Someone suggested me to use PyQt for Python GUI app, and so I downloaded and installed PyQt. But when I open Aptana Studio, I could see a new menu added

Re: Rewriting __getattr__

2011-01-07 Thread Jean-Michel Pichavant
kost BebiX wrote: Hi everyone! I just saw a bug (?) in bson.dbref:DBRef.__getattr__ Here's they're code: def __getattr__(self, key): return self.__kwargs[key] And when you do copy.deepcopy on that object it will raise you KeyError. So here's a small piece of code that reproduces

Re: Rewriting __getattr__

2011-01-07 Thread kost BebiX
You're absolutely right! Now try to do except Keyerror: raise AttributeError and it will also fail. But why? 07.01.2011, 15:45, Jean-Michel Pichavant jeanmic...@sequans.com: kost BebiX wrote:  Hi everyone!  I just saw a bug (?) in bson.dbref:DBRef.__getattr__  Here's they're code:  

VipIMAGE 2011 – ECCOMAS Thematic Conference – 2n d ANNOUNCE and CALL

2011-01-07 Thread tava...@fe.up.pt
-- International ECCOMAS Thematic Conference VipIMAGE 2011 - III ECCOMAS THEMATIC CONFERENCE ON COMPUTATIONAL VISION AND MEDICAL IMAGE PROCESSING 12-14th October

Re: Rewriting __getattr__

2011-01-07 Thread Jean-Michel Pichavant
kost BebiX wrote: You're absolutely right! Now try to do except Keyerror: raise AttributeError and it will also fail. But why? 07.01.2011, 15:45, Jean-Michel Pichavant jeanmic...@sequans.com: kost BebiX wrote: Hi everyone! I just saw a bug (?) in bson.dbref:DBRef.__getattr__

Re: PEP: possibility of inline using of a symbol instead of import

2011-01-07 Thread Carl Banks
On Jan 6, 7:28 am, dmitrey dmitrey.kros...@scipy.org wrote: hi all, I have th PEP (I'm not sure something like that hadn't been proposed although): very often in a Python file header the following lines are present, like: from MyModule1 import myFunc1 import MyModule2 as mm2 from MyModule3

Re: PEP: possibility of inline using of a symbol instead of import

2011-01-07 Thread Carl Banks
On Jan 6, 8:32 am, Tim Harig user...@ilthio.net wrote: 2. Your so-called PEP probably clashes with Python's use of @ for         decorators. He said it was just for simplicity's sake. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list

Close stdout socket on CGI after fork with subprocess

2011-01-07 Thread Thibaud Roussillat
Hi, I work with Python 2.4 and CGI. I have a CGI which call a Python script in background process and return result before background task is finished. Actually, the browser displays response but it is waiting for end of background task because the socket is not closed. Internet told me that I

Re: Rewriting __getattr__

2011-01-07 Thread kost BebiX
07.01.2011, 16:22, Jean-Michel Pichavant jeanmic...@sequans.com: kost BebiX wrote:  You're absolutely right! Now try to do except Keyerror: raise AttributeError and it will also fail. But why?  07.01.2011, 15:45, Jean-Michel Pichavant jeanmic...@sequans.com;:  kost BebiX wrote:   Hi

Re: Rewriting __getattr__

2011-01-07 Thread Jean-Michel Pichavant
kost BebiX wrote: Sorry for top posting, didn't know about that) I'm quote new to posting to mailing lists. Well, actually the code you showed doesn't work) class A(object): .. def __init__(self): .. self.d = {} .. def __getattr__(self, key): .. try: ..

Re: Streaming templating languages for use as WSGI body.

2011-01-07 Thread Michael Ströder
Alice Bevan–McGregor wrote: On 2011-01-06 11:11:27 -0800, Adam Tauno Williams said: On Thu, 2011-01-06 at 11:07 -0800, Alice Bevan–McGregor wrote: On 2011-01-06 10:00:39 -0800, Adam Tauno Williams said: With HTTP/1.0 [and WSGI is HTTP/1.0 only] you have to provide a Content-Length header - so

Re: Rewriting __getattr__

2011-01-07 Thread kost BebiX
07.01.2011, 17:14, Jean-Michel Pichavant jeanmic...@sequans.com: kost BebiX wrote:  Sorry for top posting, didn't know about that) I'm quote new to posting to mailing lists.  Well, actually the code you showed doesn't work)  class A(object):  .. def __init__(self):  .. self.d

Re: Rewriting __getattr__

2011-01-07 Thread Steven D'Aprano
On Fri, 07 Jan 2011 16:47:55 +0200, kost BebiX wrote: Well, actually the code you showed doesn't work) Actually, it does. It just prints a warning message as well. Look carefully: class A(object): .. def __init__(self): .. self.d = {} .. def __getattr__(self, key): ..

Re: Resolve circular reference

2011-01-07 Thread Carl Banks
On Jan 7, 3:58 am, moerchendiser2k3 googler. 1.webmas...@spamgourmet.com wrote: Force what? j refers to i, i refers to Foo, Foo refers to A. Therefore A should be alive. Oh, sorry. Force the deletion of instance Foo(A) and Bar(B). If you don't want j to keep i alive, you should look at

os.system and loggers

2011-01-07 Thread Tim
hi, I'm using a 3rd-party python program that uses the python logging facility and also makes calls to os.system. I'm trying to capture its output to a file. In my own code, I've taken control of the loggers that are setup in the other program by removing its StreamHandler and replacing with

Re: Streaming templating languages for use as WSGI body.

2011-01-07 Thread Alice Bevan–McGregor
On 2011-01-07 07:17:33 -0800, Michael Ströder said: As I read section 7.2.2 (Length) the Content-length header is only required in HTTP *requests* if the body contains data. According to the text it's not required in HTTP *responses*. You are correct; I mis-read that section in my haste.

Re: Rewriting __getattr__

2011-01-07 Thread kost BebiX
07.01.2011, 23:48, Fuzzyman fuzzy...@gmail.com: On Jan 7, 3:18 pm, kost BebiX k...@ya.ru; wrote:  07.01.2011, 17:14, Jean-Michel Pichavant jeanmic...@sequans.com;:  kost BebiX wrote:  šSorry for top posting, didn't know about that) I'm quote new to posting to mailing lists.  šWell,

Re: Rewriting __getattr__

2011-01-07 Thread kost BebiX
07.01.2011, 17:47, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: On Fri, 07 Jan 2011 16:47:55 +0200, kost BebiX wrote:  Well, actually the code you showed doesn't work) Actually, it does. It just prints a warning message as well. Look carefully:  class A(object):  .. def

Re: Rewriting __getattr__

2011-01-07 Thread Steven D'Aprano
On Fri, 07 Jan 2011 23:54:24 +0200, kost BebiX wrote: 07.01.2011, 17:47, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: On Fri, 07 Jan 2011 16:47:55 +0200, kost BebiX wrote:  Well, actually the code you showed doesn't work) Actually, it does. It just prints a warning message as

Re: Can I have both Python 2.7 and Python 3.1 at the same time on the Mac?

2011-01-07 Thread Jason Swails
MacPorts! They include a nifty little package called python_select that lets you switch default python versions on-the-fly and organizes everything for you perfectly. I have python 2.4, 2.5, 2.6, 2.7, 3.2, and the system default 2.6.1 all installed, and python_select python27 python_select

apscheduler error

2011-01-07 Thread linna li
I tried to use the apscheduler and used the sample code below from the tutorial, but got the error message: Exception in thread APScheduler (most likely raised during interpreter shutdown). What's going on here? I really appreciate any help! from apscheduler.scheduler import Scheduler sched =

Re: Can I have both Python 2.7 and Python 3.1 at the same time on the Mac?

2011-01-07 Thread Ned Deily
In article aanlktiknv-bymg+pxmtmrcv5mqqikdolezjclmebe...@mail.gmail.com, Jason Swails jason.swa...@gmail.com wrote: MacPorts! They include a nifty little package called python_select that lets you switch default python versions on-the-fly and organizes everything for you perfectly. I have

Re: apscheduler error

2011-01-07 Thread Steven D'Aprano
On Fri, 07 Jan 2011 17:08:28 -0800, linna li wrote: I tried to use the apscheduler and used the sample code below from the tutorial, but got the error message: Exception in thread APScheduler (most likely raised during interpreter shutdown). What's going on here? I really appreciate any help!

Re: apscheduler error

2011-01-07 Thread Chris Rebert
On Fri, Jan 7, 2011 at 6:09 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 07 Jan 2011 17:08:28 -0800, linna li wrote: I tried to use the apscheduler and used the sample code below from the tutorial, but got the error message: Exception in thread APScheduler (most

Re: Rewriting __getattr__

2011-01-07 Thread kost BebiX
08.01.2011, 02:20, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: On Fri, 07 Jan 2011 23:54:24 +0200, kost BebiX wrote:  07.01.2011, 17:47, Steven D'Aprano  steve+comp.lang.pyt...@pearwood.info;:  On Fri, 07 Jan 2011 16:47:55 +0200, kost BebiX wrote:   Well, actually the code you

Re: Close stdout socket on CGI after fork with subprocess

2011-01-07 Thread Kushal Kumaran
On Fri, Jan 7, 2011 at 8:08 PM, Thibaud Roussillat thibaud.roussil...@gmail.com wrote: Hi, I work with Python 2.4 and CGI. I have a CGI which call a Python script in background process and return result before background task is finished. Actually, the browser displays response but it is

student question

2011-01-07 Thread John
q_file = open(questions_location) #opens the document successfully for line in q_file: print line # prints document successfully line # prints last line of document for line in q_file: print line # prints nothing ...why does it print nothing? --

Re: student question

2011-01-07 Thread Corey Richardson
On 01/07/2011 09:42 PM, John wrote: q_file = open(questions_location) #opens the document successfully for line in q_file: print line # prints document successfully line # prints last line of document for line in q_file: print line # prints nothing ...why

Re: student question

2011-01-07 Thread John
On Jan 7, 6:47 pm, Corey Richardson kb1...@aim.com wrote: On 01/07/2011 09:42 PM, John wrote: q_file = open(questions_location) #opens the document successfully for line in q_file:            print line # prints document successfully line # prints last line of document for line in

How to read ansic file into a pre-defined class?

2011-01-07 Thread Ying Zu
How to read ansic file into a pre-defined class? I have a series of files written in the following format, 2 # number of classes 100 # number of items for the first class object 0 foo 1 foo ... 99 foo 150 # number of items for the second class object 0 bar 1 bar ...

How to read ansic file into a pre-defined class?

2011-01-07 Thread Ying Zu
How to read ansic file into a pre-defined class? I have a series of files written in the following format, 2 # number of classes 100 # number of items for the first class object 0 foo 1 foo ... 99 foo 150 # number of items for the second class object 0 bar 1 bar

Re: apscheduler error

2011-01-07 Thread Adam Tauno Williams
On Fri, 2011-01-07 at 17:08 -0800, linna li wrote: I tried to use the apscheduler and used the sample code below from the tutorial, but got the error message: Exception in thread APScheduler (most likely raised during interpreter shutdown). What's going on here? I really appreciate any help!

More Help with python .find fucntion

2011-01-07 Thread Keith Anthony
My previous question asked how to read a file into a strcuture a line at a time. Figured it out. Now I'm trying to use .find to separate out the PDF objects. (See code) PROBLEM/QUESTION: My call to lines[i].find does NOT find all instances of endobj. Any help available? Any insights?

Re: More Help with python .find fucntion

2011-01-07 Thread Chris Rebert
On Fri, Jan 7, 2011 at 8:43 PM, Keith Anthony kanth...@woh.rr.com wrote: My previous question asked how to read a file into a strcuture a line at a time.  Figured it out.  Now I'm trying to use .find to separate out the PDF objects.  (See code)  PROBLEM/QUESTION: My call to lines[i].find does

Error invalid syntax while statement

2011-01-07 Thread Garland Fulton
I don't understand what I'm doing wrong i've tried several different cases for what i am doing here. Will someone please point my error out. Thank you. 1 #!/bin/bash/python 2 import math 3 try: 4 x = int(input(Enter your number: )) 5 if( 0 x | x 2147483647): 6

Re: Error invalid syntax while statement

2011-01-07 Thread Chris Rebert
On Fri, Jan 7, 2011 at 9:18 PM, Garland Fulton stacks...@gmail.com wrote: I don't understand what I'm doing wrong i've tried several different cases for what i am doing here. Will someone please point my error out. Thank you.   1 #!/bin/bash/python This shebang undoubtedly erroneous.   5  

Re: Error invalid syntax while statement

2011-01-07 Thread Ned Deily
In article aanlktik2eii-mwhg-eh_xe9kfhiylhyefzpvm7yzg...@mail.gmail.com, Garland Fulton stacks...@gmail.com wrote: I don't understand what I'm doing wrong i've tried several different cases for what i am doing here. Will someone please point my error out. 15 print(counter: , counter

Re: More Help with python .find fucntion

2011-01-07 Thread Steven D'Aprano
On Fri, 07 Jan 2011 22:43:54 -0600, Keith Anthony wrote: My previous question asked how to read a file into a strcuture a line at a time. Figured it out. Now I'm trying to use .find to separate out the PDF objects. (See code) PROBLEM/QUESTION: My call to lines[i].find does NOT find all

Re: Error invalid syntax while statement

2011-01-07 Thread Garland Fulton
On Fri, Jan 7, 2011 at 8:28 PM, Ned Deily n...@acm.org wrote: In article aanlktik2eii-mwhg-eh_xe9kfhiylhyefzpvm7yzg...@mail.gmail.com, Garland Fulton stacks...@gmail.com wrote: I don't understand what I'm doing wrong i've tried several different cases for what i am doing here. Will

Re: Error invalid syntax while statement

2011-01-07 Thread Chris Rebert
On Fri, Jan 7, 2011 at 9:46 PM, Garland Fulton stacks...@gmail.com wrote: snip   1 #!/bin/bash/python snip What is wrong with my shebang line? Its path is invalid (unless you're using a *very* weird system). /bin/bash is the bash shell executable; bash is completely unrelated to Python.

Re: Error invalid syntax while statement

2011-01-07 Thread Garland Fulton
On Fri, Jan 7, 2011 at 8:55 PM, Chris Rebert c...@rebertia.com wrote: On Fri, Jan 7, 2011 at 9:46 PM, Garland Fulton stacks...@gmail.com wrote: snip 1 #!/bin/bash/python snip What is wrong with my shebang line? Its path is invalid (unless you're using a *very* weird system).

Re: apscheduler error

2011-01-07 Thread Alice Bevan–McGregor
Howdy! On 2011-01-07 17:08:28 -0800, linna li said: I tried to use the apscheduler and used the sample code below from the tutorial, but got the error message: Exception in thread APScheduler (most likely raised during interpreter shutdown). What's going on here? I really appreciate any help!

[issue10845] test_multiprocessing failure under Windows

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: On xp, changing from -m test to -m test.regrtest removed the extra craziness during and after the test run that I reported on pydev. I think making at least a tempory fix to whatever -m test runs should be a release blocker so only individual

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-07 Thread Pierre Quentel
Pierre Quentel pierre.quen...@gmail.com added the comment: Option 1 is impossible, because the CGI script sometimes has no control on the stream : for instance on a shared web host, it will receive sys.stdin as a text stream I also vote for option 3 ; explaining that if no argument is passed,

[issue9920] test_cmath on atan fails on AIX

2011-01-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9920 ___ ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: [Nick] @Mark: I don't think that follows. [...] If the exporter actually needs to release buffer specific resources, then it should maintain an internal data structure keyed off the Py_buffer address. Ah, okay. So that would make issue

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: an internal data structure keyed off the Py_buffer address. If we're using the Py_buffer address coming into getbuffer as a key, then we probably shouldn't be using a stack address, since it would be difficult to guarantee uniqueness

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le vendredi 07 janvier 2011 à 02:19 +, Nadeem Vawda a écrit : Most of these leaks seem to stem from the fact that socket.SocketIO.close() doesn't behave as documented. According to its docstring, it is meant to decrement the

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: We may also accept TextIOWrapper (eg. sys.stdin) *and* BufferedReader/FileIO (eg. sys.stdin.buffer). It is possible to test the type of the stream. With a TextIOWrapper, the raw buffer can be read using stream.buffer. But for

[issue10812] Add some posix functions

2011-01-07 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: it's a bit asymmetric that gethostname is in the socket module and supports Windows, and sethostname is in the POSIX module. It would be useful to have a gethostname in the POSIX module also which is a) POSIX only and b) supports

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: It only needs to be unique for the lifetime of the buffer reference - for a Py_buffer struct on the stack, by the time the relevant C stack frame goes away, ReleaseBuffer should already have been called. --

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2011-01-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As per the discussion over in issue #10181, I've changed my position on this issue. Since the PEP isn't explicit on the exact semantics here, I think we should be guided by the memoryview behaviour and make it official that bf_releasebuffer

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-07 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Pierre said: Option 1 is impossible, because the CGI script sometimes has no control on the stream : for instance on a shared web host, it will receive sys.stdin as a text stream I say: It is the user code of the CGI script that calls

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2011-01-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The alternative (if we declare that clients should treat Py_buffer contents as completely read-only) is to update memoryview to include a separate orig_view field that would never be touched. The GetBuffer and ReleaseBuffer calls would then

[issue10813] Suppress adding decimal point for places=0 in moneyfmt()

2011-01-07 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10813 ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: by the time the relevant C stack frame goes away, ReleaseBuffer should already have been called. Hmm. I'm not sure I understand how/when that would happen. Looking at the current py3k code, in Objects/memoryobject.c at line 92, we have:

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-01-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Ah, sorry - no, I misunderstood the question. I think that example actually *is* a bug in the memoryview implementation. The GetBuffer call should use the persistent address (mview-view) that will be used in the ReleaseBuffer call, as per

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, unknown-8bit is registered as a charset with IANA. It is registered specifically for use in message bodies, but as a registered charset it should be acceptable in headers as well. There is no similar registration for just

[issue2973] _ssl compiler warnings

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, it merely means that OpenSSL has changed the const-ness of some of their APIs over time. As I said I see no warnings with the most recent OpenSSL versions. Buildbots will tell you the same story: for example, no warnings under OS X Snow

[issue10851] further extend ssl SNI and ciphers API

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: as a further extension to issue #5639 (sni) and issue #8322 this patch provides the ability to set ciphers in the SSLContext.wrap_socket and server_hostname in ssl.wrap_socket. This just makes all the ssl apis look the same. Restructured the

[issue8109] Server-side support for TLS Server Name Indication extension

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Server side SNI is still missing. Right, re-opening. -- resolution: duplicate - stage: - needs patch status: closed - open superseder: Support TLS SNI extension in ssl module - title: Support for TLS Server Name Indication extension

[issue10853] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Duplicate posting of #10852. -- resolution: - duplicate status: open - closed superseder: - SSL/TLS sni use in smtp,pop,imap,nntp,ftp client libs by default ___ Python tracker rep...@bugs.python.org

[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oops, I hadn't noticed you had closed it. -- nosy: +pitrou resolution: duplicate - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10852

[issue1641] asyncore delayed calls feature

2011-01-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1641 ___ ___ Python-bugs-list

[issue8684] improvements to sched.py

2011-01-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8684 ___ ___ Python-bugs-list

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-07 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I'm a little uncomfortable with relying on a non-standards track RFC for this interpretation, and I'm also not sure I'd say that the email package is a transport agent, but in cases where it's acting on the user's behalf (i.e. headers

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: When an extension could not be loaded, because it requires some DLL that is missing, Python shows the following error message: ImportError: DLL load failed: The specified module could not be found. It will help tremendously in

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- type: resource usage - feature request versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___

[issue10849] Backport test/__main__

2011-01-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: +0. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10849 ___ ___ Python-bugs-list

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Is it even possible? Each time I tried, the only solutions involved an external program like Dependency Walker. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I'm pretty sure we can't do this, if I understand your request. Say you have techtonik.pyd as your extension and it depends on foobar.dll. If we try to load techtonik.pyd and this pyd can't find or successfully load foobar.dll, Python doesn't

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Agree with Amaury. depends has always been my solution to this type of problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___

[issue10855] wave.Wave_read.close() doesn't release file

2011-01-07 Thread Peter Creath
New submission from Peter Creath pjcreath+pyt...@gmail.com: Calling wave.close() fails to release all references to the file passed in via wave.open(filename_or_obj, rb). As a result, processing many wave files produces an IOError of too many files open. This bug is often masked because this

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Need documentation for ImportError parameters and exception instance attributes. -- assignee: d...@python components: Documentation messages: 125655 nosy: d...@python, techtonik priority: normal severity: normal status: open

[issue10857] ImportError module attribute

2011-01-07 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Need ImportError.module attribute to get the name of failed import. Right now it requires parsing ImportError.args that is presented in form ('No module named zqwer',) that is not pythonic. -- messages: 125656 nosy: techtonik

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, since unknown-8bit is a registered charset, it should be RFC-valid in an encoded word. Whether or not any other mailer out there is going to be able to handle it is a different question. --

[issue10857] ImportError module attribute

2011-01-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Duplicate of #1559549 -- nosy: +brian.curtin resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - ImportError needs attributes for module and file name ___ Python

[issue10857] ImportError module attribute

2011-01-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Thanks for the pointer. I couldn't find it myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10857 ___

[issue1559549] ImportError needs attributes for module and file name

2011-01-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I think we should investigate deeper why this enhancement request didn't get into Python 3. Another user story is: from xxx import yyy, if yyy not found, the args message is ('cannot import name yyy',) Python4? label:api --

[issue1559549] ImportError needs attributes for module and file name

2011-01-07 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559549 ___ ___

[issue1559549] ImportError needs attributes for module and file name

2011-01-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: There's no need for any deeper investigation. The answer is nobody wrote the patch. If someone writes a good patch, it will go in. -- nosy: +r.david.murray ___ Python tracker

[issue1559549] ImportError needs attributes for module and file name

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I think we should investigate deeper why this enhancement request didn't get into Python 3. There is nothing to investigate here. This is a request for a marginal improvement and OP did not follow up even though a core

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Can you cross reference the part of code where this error is catched? Why Python can't get information about the reason .DLL is not loaded? Is it at least possible to add a hook point at the exact time the import fails to insert

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: What is there to document? ImportError has no special attributes or parameters. -- nosy: +georg.brandl resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: See _PyImport_GetDynLoadFunc in Python/dynload_win.c -- that's where this is happening. Why Python can't get information about the reason .DLL is not loaded? Windows does not provide it in the case you are speaking of. If I call LoadLibraryEx

[issue10849] Backport test/__main__

2011-01-07 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: 2.6 is right out. Martin, would you please decide on whether this should be backported to 2.7 and 3.1? IMO, the rationale is flimsy (its not hard to run the test suite in *any* version) and it goes against our usual

[issue10849] Backport test/__main__

2011-01-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I thought Benjamin was still RM for 2.7 and 3.1? -- assignee: loewis - benjamin.peterson nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10849

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The code is in Python/dynload_win.c To load an extension module mymodule.pyd, Python calls LoadLibrary('/path/to/mymodule.pyd'); when it returns NULL, the code calls GetLastError() (which returns 126 in this case) then FormatMessage

[issue10858] Make source code links less proeminent

2011-01-07 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Reading library source code will only be enlightening to expert users, since most modules are not academic but real-world implementations, with all the complications it entails. Therefore, putting a link at the top of module sections is only

[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I understand this patch relies on #10851. As I said there, I would rather have SSLContext become the primary API, and the stdlib standardize on it. Part of the stdlib, as you have witnessed, already allows the user to pass a custom SSLContext,

[issue8808] imaplib should support SSL contexts

2011-01-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8808 ___

[issue8809] smptlib should support SSL contexts

2011-01-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - needs patch versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809 ___

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: ImportError has args and message attributes containing failed module name. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10856

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No it doesn't. It has an arbitrary message string. That's the same as all other exceptions that don't have special attributes. -- nosy: +r.david.murray status: open - closed ___ Python

[issue10808] ssl unwrap fails with Error 0

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As we discussed on IRC, there are two things here: - unwrap() can give an error because it tries to shutdown the SSL layer cleanly, and the other side doesn't support it or is already closed; unwrap() is useful mostly if you plan to use the

[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-01-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I will not bother backporting myself but an other core developer can do it if (s)he desires. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9090

  1   2   >