Re: Modifying Class Object

2010-02-12 Thread Steve Holden
Alf P. Steinbach wrote: [...] Of course most anyone else who'd hold the rational opinion would not join the battlefield, because it clearly wasn't and isn't about convincing or educating anyone, but I feel that follow-ups to my articles should be answered. In other words, you must have the

Re: Modifying Class Object

2010-02-12 Thread Mark Lawrence
Alf P. Steinbach wrote: * Steven D'Aprano: On Fri, 12 Feb 2010 21:26:24 +0100, Alf P. Steinbach wrote: Yes, I do count this as a personal attack and flaming. The litmus test for that is that it says something very negative about the person you're debating with. As negative as accusing

Re: Please help with MemoryError

2010-02-12 Thread Gregory Ewing
Antoine Pitrou wrote: It's just that assignment (=) means a different thing in Python than in non-object languages (or fake-object languages such as C++ or PHP): it rebinds instead of mutating in-place. If it mutated, you wouldn't have the AssertionError. It doesn't really have anything to

Re: MemoryError, can I use more?

2010-02-12 Thread sstein...@gmail.com
On Feb 12, 2010, at 7:21 PM, Echavarria Gregory, Maria Angelica wrote: Dear group: I am developing a program using Python 2.5.4 in windows 32 OS. The amount of data it works with is huge. I have managed to keep memory footprint low, but have found that, independent of the physical RAM of

Re: MemoryError, can I use more?

2010-02-12 Thread Mark Lawrence
Echavarria Gregory, Maria Angelica wrote: Dear group: I am developing a program using Python 2.5.4 in windows 32 OS. The amount of data it works with is huge. I have managed to keep memory footprint low, but have found that, independent of the physical RAM of the machine, python always gives

Re: Helpp I want view page .py on apache WHAT CAN I DO???????????????

2010-02-12 Thread Gabriel Genellina
Hola! En Fri, 12 Feb 2010 14:34:33 -0300, Juan Carlos Rodriguez jcqueved...@gmail.com escribió: ImportError: No module named mptest Hay una lista en castellano sobre Python: http://python.org.ar/pyar/ListaDeCorreo -- Gabriel Genellina --

Re: Dreaming of new generation IDE

2010-02-12 Thread Aahz
In article 4b743340$0$20738$426a7...@news.free.fr, Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid wrote: Ever read worst is better ?-) Nope -- maybe you mean worse is better? http://www.jwz.org/doc/worse-is-better.html (Nitpicking because you need the correct term to search.)

Re: MemoryError, can I use more?

2010-02-12 Thread Benjamin Kaplan
On Fri, Feb 12, 2010 at 7:21 PM, Echavarria Gregory, Maria Angelica m.echavarriagreg...@umiami.edu wrote: Dear group: I am developing a program using Python 2.5.4 in windows 32 OS. The amount of data it works with is huge. I have managed to keep memory footprint low, but have found that,

Re: Modifying Class Object

2010-02-12 Thread Alf P. Steinbach
* Mark Lawrence: Alf P. Steinbach wrote: An extremely long thread dedicated to the notion that there are no references in Python (which is blatantly false), coupled with personal attacks on the one person arguing that there are. I could easily think that you were having me on. Of course

Re: Calendar GUI

2010-02-12 Thread Aahz
In article gacdndfhymhxgu3wnz2dnuvz_q1i4...@wavecable.com, jfabi...@yolo.com wrote: Take a look at wxscheduler, and chandler. You're joking about Chandler, right? -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ At Resolver we've found it useful to

Re: how to make a SimpleXMLRPCServer abort at CTRL-C under windows

2010-02-12 Thread Gabriel Genellina
En Fri, 12 Feb 2010 11:22:40 -0300, Aahz a...@pythoncraft.com escribió: In article mailman.2422.1265961504.28905.python-l...@python.org, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On 11 Feb 2010 21:18:26 -0800, a...@pythoncraft.com (Aahz) declaimed the following in

Re: MemoryError, can I use more?

2010-02-12 Thread Christian Heimes
Echavarria Gregory, Maria Angelica wrote: Dear group: I am developing a program using Python 2.5.4 in windows 32 OS. The amount of data it works with is huge. I have managed to keep memory footprint low, but have found that, independent of the physical RAM of the machine, python always

Re: Function attributes

2010-02-12 Thread Gabriel Genellina
En Fri, 12 Feb 2010 04:29:12 -0300, Arnaud Delobelle arno...@googlemail.com escribió: I posted an example of a decorator that does just this in this thread a couple of days ago: http://mail.python.org/pipermail/python-list/2010-February/1235742.html Ouch! I didn't see your post, nor

Re: Pixel control

2010-02-12 Thread Gabriel Genellina
En Fri, 12 Feb 2010 16:12:37 -0300, joao abrantes senhor.abran...@gmail.com escribió: noone knows if it's possible? i really need this.. On Thu, Feb 4, 2010 at 10:57 PM, joao abrantes senhor.abran...@gmail.comwrote: Hello everyone. For example i am using a screen resolution of 800x600

ConfigParser is not parsing

2010-02-12 Thread felix gao
Hi all, I am trying to get the some configuration file read in by Python, however, after the read command it return a list with the filename that I passed in. what is going on? Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type help, copyright,

Re: ConfigParser is not parsing

2010-02-12 Thread Rolando Espinoza La Fuente
read() does not return the config object import ConfigParser config = ConfigParser.SafeConfigParser() config.read('S3Files.conf') ['S3Files.conf'] config.sections() ['main'] config.get('main', 'taskName') 'FileConfigDriver' Regards, Rolando Espinoza La fuente www.rolandoespinoza.info On

Re: Modifying Class Object

2010-02-12 Thread rantingrick
This entire thread has imploded like a neutron star into an infantile debate that only Caddie Couric, Bill O Reilly, and everyone on PMS-NBC can hold a candle to! The only post i enjoyed was Steve Howes! From my unique perspective of not really knowing (or for that matter) really caring about any

fork vs threading.Thread

2010-02-12 Thread Jordan Apgar
I'm trying to run two servers in the same program at once. Here are the two: class TftpServJ(Thread): def __init__(self, ip, root, port=69, debug = False ): Thread.__init__(self) setup stuff here def run(self): try: self.server.listen(self.ip,

Re: fork vs threading.Thread

2010-02-12 Thread Chris Colbert
dont call the .run() method, call the .start() method which is defined the Thread class (and should NOT be overridden). tftpserv.start() xmlserv.start() On Fri, Feb 12, 2010 at 10:57 PM, Jordan Apgar twistedphr...@gmail.comwrote: I'm trying to run two servers in the same program at once.

Re: fork vs threading.Thread

2010-02-12 Thread Alf P. Steinbach
* Jordan Apgar: I'm trying to run two servers in the same program at once. Here are the two: class TftpServJ(Thread): def __init__(self, ip, root, port=69, debug = False ): Thread.__init__(self) setup stuff here def run(self): try:

Re: Need debugging knowhow for my creeping Unicodephobia

2010-02-12 Thread John Nagle
kj wrote: =A0 x =3D '%s' % y =A0 x =3D '%s' % z =A0 print y =A0 print z =A0 print y, z Bear in mind that most Python implementations assume the console only handles ASCII. So print output is converted to ASCII, which can fail. (Actually, all modern Windows and Linux systems support

Re: pyparsing wrong output

2010-02-12 Thread Paul McGuire
On Feb 12, 6:41 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Fri, 12 Feb 2010 10:41:40 -0300, Eknath Venkataramani   eknath.i...@gmail.com escribió: I am trying to write a parser in pyparsing. Help Me.http://paste.pocoo.org/show/177078/is the code and this is   input

Re: Need debugging knowhow for my creeping Unicodephobia

2010-02-12 Thread John Nagle
kj wrote: Some people have mathphobia. I'm developing a wicked case of Unicodephobia. I have read a *ton* of stuff on Unicode. It doesn't even seem all that hard. Or so I think. Then I start writing code, and WHAM: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 0:

Re: Executing Commands From Windows Service

2010-02-12 Thread T
On Feb 11, 4:10 am, Tim Golden m...@timgolden.me.uk wrote: On 10/02/2010 22:55, T wrote: Great suggestions once again - I did verify that it was at least running the plink.exe binary when under LocalSystem by having the service run plink.exe  C:\plinkoutput.txt - this worked fine.  And,

Re: Executing Commands From Windows Service

2010-02-12 Thread T
On Feb 11, 8:21 am, Martin P. Hellwig martin.hell...@dcuktec.org wrote: On 02/07/10 19:02, T wrote: I have a script, which runs as a Windows service under the LocalSystem account, that I wish to have execute some commands.  Specifically, the program will call plink.exe to create a reverse

Re: MemoryError, can I use more?

2010-02-12 Thread Nobody
On Fri, 12 Feb 2010 19:21:22 -0500, Echavarria Gregory, Maria Angelica wrote: I am developing a program using Python 2.5.4 in windows 32 OS. The amount of data it works with is huge. I have managed to keep memory footprint low, but have found that, independent of the physical RAM of the

How do you implement a Progress Bar

2010-02-12 Thread J Wolfe
I would really appreciate some help with this. I'm fairly new to using classes...What am I doing wrong? All I get is a blank window. I can't seem to figure out how to initialize this Progress Bar. Thanks, Jonathan ##file Meter.py from Tkinter

Re: How do you implement a Progress Bar

2010-02-12 Thread Alf P. Steinbach
* J Wolfe: I would really appreciate some help with this. I'm fairly new to using classes...What am I doing wrong? All I get is a blank window. I can't seem to figure out how to initialize this Progress Bar. Thanks, Jonathan ##file Meter.py

[issue7902] relative import broken

2010-02-12 Thread Oren Held
Changes by Oren Held o...@held.org.il: -- nosy: +Oren_Held ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7902 ___ ___ Python-bugs-list mailing

[issue5651] OS X Installer: add checks to ensure proper Tcl configuration during build

2010-02-12 Thread Katrine Whiteson
Katrine Whiteson katrinewhite...@gmail.com added the comment: Hi, I am having a related issue installing Tkinter (which I need to install matplotlib). I am running Mac OS X 10.4.11, and just installed Python 2.6.4 . After several other fights, one remaining battle for me to get matlotlib

[issue7906] float(INFI) returns inf on certain platforms

2010-02-12 Thread Zsolt Cserna
Zsolt Cserna zsolt.cse...@morganstanley.com added the comment: This issue doesn't seem to cause any problems in our production code, however I haven't tested it. Btw what is the status of the solaris support? According to wiki page it should be supported by python, in real it seems it's not

[issue5651] OS X Installer: add checks to ensure proper Tcl configuration during build

2010-02-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: If you have installed Python 2.6.4 using the python.org OS X installer, it was linked with Tk 8.4, and will not use Tk 8.5. OS X 10.4 has an old version of Tk 8.4; your best bet is to install the most recent Tcl/Tk 8.4 from ActiveState Tcl/Tk.

[issue7916] zipfile.ZipExtFile passes long to fileobj.read()

2010-02-12 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: When reading from the fileobj passed in it's constructor, zipfile.ZipExtFile passes a long into fileobj.read(). This is not normally an issue, except in io.BytesIO, for which the source is in C, and throws TypeError for type(bufsize) !=

[issue7906] float(INFI) returns inf on certain platforms

2010-02-12 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I agree that backporting the various parts needed to get this working would be risky and shouldn't be done. As for Solaris sure, I'm not sure. You might ask on python-dev. I get the impression that few (if any) core developers have access to a

[issue5651] OS X Installer: add checks to ensure proper Tcl configuration during build

2010-02-12 Thread Katrine Whiteson
Katrine Whiteson katrinewhite...@gmail.com added the comment: Thanks very much for your helpful and quick reply! I installed Tcl8.4 from activestate, and had the same version conflict error when I did the Tkinter test in Python. So I uninstalled both Tcl8.4 and Tcl8.5 (I did sudo

[issue7916] zipfile.ZipExtFile passes long to fileobj.read()

2010-02-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This was fixed with issue7249 and will be available with 2.6.5 -- nosy: +amaury.forgeotdarc resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7906] float(INFI) returns inf on certain platforms

2010-02-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: My feeling from watching bug reports is that Solaris is no less well supported than other non-linux, non-windows platforms. When you look at the number of open Solaris bug reports, also consider the number of open bug reports over all.

[issue7904] urlparse.urlsplit mishandles novel schemes

2010-02-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think Mark is correct. RFC 3986 says: When authority is present, the path must either be empty or begin with a slash (/) character. When authority is not present, the path cannot begin with two slash characters (//). I think it

[issue7917] list of list created by *

2010-02-12 Thread Andrew Chong
Changes by Andrew Chong sledg...@hotmail.com: -- nosy: sledge76 severity: normal status: open title: list of list created by * versions: Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7917

[issue7917] list of list created by *

2010-02-12 Thread Andrew Chong
New submission from Andrew Chong sledg...@hotmail.com: This shows unexpected behavior. data2 = [[]] * 4 print data2 [[], [], [], []] data2[0] += [(0,1)] print data2 [[(0, 1)], [(0, 1)], [(0, 1)], [(0, 1)]] I added a tuple to only 0th list, but it got added to all the lists in the global

[issue7917] list of list created by *

2010-02-12 Thread Andrew Chong
Andrew Chong sledg...@hotmail.com added the comment: But this works fine. data = [] data += [[]] data += [[]] data += [[]] data += [[]] print data [[], [], [], []] data[0] += [(0,1)] print data [[(0, 1)], [], [], []] -- ___ Python

[issue7917] list of list created by *

2010-02-12 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: It is by design. Please read the documentation: http://docs.python.org/library/stdtypes.html#sequence-types-str-unicode-list-tuple-buffer-xrange -- nosy: +flox resolution: - invalid ___ Python

[issue7917] list of list created by *

2010-02-12 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7917 ___ ___ Python-bugs-list

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-12 Thread Florent Xicluna
Florent Xicluna la...@yahoo.fr added the comment: Fixed on trunk with r78136. Before closing this issue, we may apply additional cleanup on regrtest: - the sys.path hack is not needed anymore (no risk of relative imports) - the hack for sys.argv[0] could be removed too, and use __file__

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-12 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Removed file: http://bugs.python.org/file16218/issue7712_regrtest_remove_hacks.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7712 ___

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-12 Thread Florent Xicluna
Changes by Florent Xicluna la...@yahoo.fr: Added file: http://bugs.python.org/file16219/issue7712_regrtest_rm_hacks.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7712 ___

[issue7805] test_multiprocessing failure

2010-02-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I can reproduce it almost always under these conditions: System: Ubuntu Intrepid 64-bit, running on the actual hardware. CPU: Core 2 Duo. Load: At least one core maxed out by another process. On an empty machine I haven't reproduced it

[issue7805] test_multiprocessing failure

2010-02-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Indeed, I forgot to mention that the Debian Lenny install I reproduce the bug on is a single core (virtual) machine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7805

[issue5651] OS X Installer: add checks to ensure proper Tcl configuration during build

2010-02-12 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Katherine: how did you install Python, did you use the installer on the python.org website or some other installer (or even by building from source)? -- ___ Python tracker

[issue7918] distutils always ignores compile errors

2010-02-12 Thread Oliver Jeeves
New submission from Oliver Jeeves ojee...@gmail.com: When trying to build a python package for distribution, compile errors are always ignored. The setup function will return successfully even if it was unable to compile some modules due to, for example, indentation errors. The specific

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: I don't see any issue here, runs perfectly fine on Mac OS X (Snow Leopard) Shashwat-Anands-MacBook-Pro:test l0nwlf$ pwd /Users/l0nwlf/python-svn/Lib/test Shashwat-Anands-MacBook-Pro:test l0nwlf$ python2.7 test_posix.py

[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-02-12 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: Seems fine to me, does not raise any errors. My OS is OS X Snow Leopard. I checked it in python 2.5, 2.6, 2.7 too, no issues raised. Shashwat-Anands-MacBook-Pro:test l0nwlf$ python2.6 Python 2.6.1 (r261:67515, Jul 7 2009, 23:51:51)

[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-02-12 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: From the bug report, it look likes its specific to windows, not OS X. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7909

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: What is the (Apple Inc. build 5646) (dot 1) vs normal (Apple Inc. build 5646). ? While, ronald.oussoren did make a lot some changes recently (r78149 to r78152).This fix could have been a side-effect of one of it, thought I could not find

[issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

2010-02-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: nul is a special dos device _getfullpathname() correctly returns \\.\nul, but normpath() then simplifies it to \\nul I suggest that normpath() be changed to consider \\.\ as a special prefix, and keep it intact when it appears at the

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I still see it on trunk (revision 78165). No idea what the (dot 1) means. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7900 ___

[issue5651] OS X Installer: add checks to ensure proper Tcl configuration during build

2010-02-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Ah, earlier you said you installed Python 2.6.4 but, in your most recent message, it shows: katrinewhiteson$ python Python 2.6 (trunk:66714:66715M, Oct 1 2008, 18:36:04) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin I'm not sure what that

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread ricitron
New submission from ricitron ricit...@mac.com: I would like to be able to read in data that uses scientific notation with a D instead of an E. This is possible on windows and other builds, but not on Mac OSX. example: float('1.23D+04') Traceback (most recent call last): File stdin, line 1,

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: str-float conversions have been reworked in 2.7 and 3.1. The 'D' exponent will not on any platform starting with those versions. So, this would be a non-platform specific feature request. -- assignee: ronaldoussoren - components:

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: That was supposed to say: The 'D' exponent will not work on any platform starting with those versions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7919

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Out of curiosity, where are your data coming from? For Python, this seems like a needless complication. It should be simple enough to replace the 'D's with 'E's prior to passing the strings to float. I notice that some varieties of Lisp

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread ricitron
ricitron ricit...@mac.com added the comment: I am running python 2.5.4. While it works on linux and windows, it does not work on mac. Fortran doubles are output using the D notation. If I am importing a large amount of data, I would rather not do a search and replace every time before

[issue7505] ctypes not converting None to Null in 64-bit system

2010-02-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Confirm that 2.5 is the only troublesome version, but also when compiled from source (Ubuntu 64-bit, 2.5.5). -- nosy: +skrah versions: +Python 2.5 -Python 2.6 ___ Python tracker

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Sorry, I'm -1 on this: outside Fortran, using 'E' for the exponent marker seems to be near universal. It just doesn't seem worth adding the extra complication to the Python code, or going through all the various places that expect an 'e'

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I would rather not do a search and replace every time before reading in the data. There's no need to do a search and replace *before* reading the data: read the data first, then have Python do the replace for you before passing each

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Unless and until we implement 'd' exponents, we should add a test to make sure they don't work. That they ever worked on any platform was a surprise. -- Eric. -- title: reading scientific notation using d instead of e on max osx -

[issue7904] urlparse.urlsplit mishandles novel schemes

2010-02-12 Thread mARK
mARK python.mblo...@xoxy.net added the comment: The case which prompted this issue was a purely private set of URLs, sent to me by a client but never sent to Amazon or anywhere else outside our systems (though I'm sure many others have invented this particular scheme for their own use). It

[issue7904] urlparse.urlsplit mishandles novel schemes

2010-02-12 Thread mARK
Changes by mARK python.mblo...@xoxy.net: -- components: +Library (Lib) -Extension Modules versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7904 ___

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Done in r78166 (trunk), r78167 (py3k). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7919 ___

[issue7920] urllib2.HTTPRedirectHandler incorrect redirect

2010-02-12 Thread Andres Riancho
New submission from Andres Riancho andresrian...@users.sourceforge.net: Buggy code: if 'location' in headers: newurl = headers.getheaders('location')[0] elif 'uri' in headers: newurl = headers.getheaders('uri')[0] else: return

[issue7921] executemany() link in Connection.executemany should point to Cursor.executemany

2010-02-12 Thread Ville Skyttä
New submission from Ville Skyttä ville.sky...@iki.fi: http://docs.python.org/dev/library/sqlite3.html#sqlite3.Connection.executemany The executemany() link in ... then calls the cursor’s executemany() method ... points to Connection.executemany (itself), it should point to Cursor.executemany

[issue7920] urllib2.HTTPRedirectHandler incorrect redirect

2010-02-12 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: In Python 2.7a3+, trunk:78165 the code is as follows: (note that there is a segment of code to fix malformed URLs) if 'location' in headers: newurl = headers.getheaders('location')[0] elif 'uri' in headers:

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-12 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I'm not sure it's safe to remove those hacks, they might be necessary in some corner case. I'll also port this to py3k before closing the issue. -- ___ Python tracker rep...@bugs.python.org

[issue3132] implement PEP 3118 struct changes

2010-02-12 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Is anyone working on implementing these new struct modifiers? If not, then I would love to take a shot at it. -- nosy: +minge ___ Python tracker rep...@bugs.python.org

[issue3132] implement PEP 3118 struct changes

2010-02-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2010/2/12 Meador Inge rep...@bugs.python.org: Meador Inge mead...@gmail.com added the comment: Is anyone working on implementing these new struct modifiers?  If not, then I would love to take a shot at it. Not to my knowledge.

[issue7922] Python 3's 2to3 does not handle non-ascii source files

2010-02-12 Thread mike bayer
New submission from mike bayer mike...@zzzcomputing.com: given the following Python 2 source file: # -*- encoding: utf-8 print 'bien mangé' It can be converted to Python 3 using 2's 2to3 tool: classic$ 2to3 test.py ... omitted ... --- test.py (original) +++ test.py

[issue7922] Python 3's 2to3 does not handle non-ascii source files

2010-02-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Please try 2to3 from 2.7a3 or the 2to3 trunk. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7922 ___

[issue7922] Python 3's 2to3 does not handle non-ascii source files

2010-02-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Sorry, I meant from the py3k branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7922 ___

[issue7922] Python 3's 2to3 does not handle non-ascii source files

2010-02-12 Thread mike bayer
mike bayer mike...@zzzcomputing.com added the comment: yes, its handled: WARNING: couldn't encode test.py's diff for your terminal is that fix specific to 2to3 or is that just how print works in 3.2 ? -- ___ Python tracker rep...@bugs.python.org

[issue7922] Python 3's 2to3 does not handle non-ascii source files

2010-02-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2010/2/12 mike bayer rep...@bugs.python.org: mike bayer mike...@zzzcomputing.com added the comment: yes, its handled: WARNING: couldn't encode test.py's diff for your terminal is that fix specific to 2to3 or is that just how print

[issue7922] Python 3's 2to3 does not handle non-ascii source files

2010-02-12 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7922 ___

[issue7922] Python 3's 2to3 does not handle non-ascii source files

2010-02-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: You can just use the --no-diffs option, btw, to avoid this problem on earlier versions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7922

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: It seems they are basically the same thing, the version of GCC and the build of OS X(latest in the case here). Was not able to figure out the (dot 1) stuff though. -- nosy: -loewis, michael.foord, orsenthil, ronaldoussoren

[issue7919] reading scientific notation using d instead of e on max osx

2010-02-12 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I'm -1 on this, too. Closing. -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7919

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: please not remove the nosy list. ( I guess, you did it by accident). let's wait for ronald's response. -- nosy: +loewis, michael.foord, orsenthil, ronaldoussoren ___ Python tracker

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: Thanks for correcting it back. I did not even realized it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7900 ___

[issue7921] Some sqlite3 Connection methods point to themselves

2010-02-12 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Here's a patch which corrects executemany, along with execute and executescript. An explicit title is used, with a reference to the underlying Cursor methods. -- keywords: +needs review, patch nosy: +brian.curtin priority: - low stage:

[issue7920] urllib2.HTTPRedirectHandler incorrect redirect

2010-02-12 Thread Shashwat Anand
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7920 ___ ___

[issue3132] implement PEP 3118 struct changes

2010-02-12 Thread Travis Oliphant
Travis Oliphant oliph...@enthought.com added the comment: On Feb 12, 2010, at 7:29 PM, Meador Inge wrote: Meador Inge mead...@gmail.com added the comment: Is anyone working on implementing these new struct modifiers? If not, then I would love to take a shot at it. That would be great.

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-12 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com added the comment: 5646 and 5646.1 are the builds of GCC by Apple. The various builds of gcc are present on http://www.opensource.apple.com/source/gcc/ [GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin -

<    1   2