Designer Sunglasses, Handbags Shoes

2010-10-03 Thread Dellamoda
Welcome to DellaModa.com, Leader in: Authentic Designer Handbags, Designer bags, Designer Shoes, Designer Sunglasses, Designer Brands - Gucci, Prada, Fendi, Tods, Christian Dior, YSL, Cesare Paciotti, Dolce Gabbana, Bvlgari, Chanel, Marc Jacobs, Ferragamo more. Visit : http://www.dellamoda.com --

Re: SQLite is quite SQL compliant

2010-10-03 Thread Lawrence D'Oliveiro
In message slrniafbbr.2iq9.usenet-nos...@guild.seebs.net, Seebs wrote: sqlite is a source of joy, a small bright point of decent and functional software in a world full of misbehaving crap. Have you learnt how to be selective in your downloads yet? --

Re: how to get partition information of a hard disk with python

2010-10-03 Thread Lawrence D'Oliveiro
In message vg31v8bfws3@pepper.modeemi.fi, Anssi Saari wrote: Nobody nob...@nowhere.com writes: Have you considered parsing /proc/partitions? One could also just read the partition table directly, it's on the first sector usually. The Linux kernel includes built-in support for

Re: Fastest technique for string concatenation

2010-10-03 Thread Peter Otten
pyt...@bdurham.com wrote: My understanding is that appending to a list and then joining this list when done is the fastest technique for string concatenation. Is this true? The 3 string concatenation techniques I can think of are: - append to list, join - string 'addition' (s = s +

singleton problems

2010-10-03 Thread harryos
hi I have been trying out singleton design pattern implementations..I wrote this, class Singleton(object): _instance = None def __new__(self, *args, **kwargs): if not self._instance: self._instance = super(Singleton, self).__new__(self, *args, **kwargs) return

Re: singleton problems

2010-10-03 Thread Steven D'Aprano
On Sun, 03 Oct 2010 01:55:00 -0700, harryos wrote: hi I have been trying out singleton design pattern implementations..I wrote this, class Singleton(object): _instance = None def __new__(self, *args, **kwargs): if not self._instance: self._instance =

Re: singleton problems

2010-10-03 Thread harryos
thanks Steven..that was very helpful..thanks a lot harry Since __new__ is called before the instance exists, it doesn't receive an instance as the first argument. Instead it receives the class. While you can call the parameter anything you like, it is conventional to call it cls rather than

Re: singleton problems

2010-10-03 Thread jimgardener
hi Steven, can you explain that?I didn't quite get it. I have a module say 'managerutils' where I have a class MyManager.. ie, managerutils.py -- class MyManager(object): def __init__(self): self.myaddresses={} ... from another main program ,if I call , import

Re: singleton problems

2010-10-03 Thread Arnaud Delobelle
harryos oswald.ha...@gmail.com writes: hi I have been trying out singleton design pattern implementations..I wrote this, class Singleton(object): _instance = None def __new__(self, *args, **kwargs): if not self._instance: self._instance = super(Singleton,

Re: WSGI by HTTP GET

2010-10-03 Thread Niklas R
On Oct 3, 3:05 am, MRAB pyt...@mrabarnett.plus.com wrote: On 03/10/2010 03:29, Hidura wrote: 2010/10/2, Niklasronikla...@gmail.com: Hello Getting a web same page with 2 or more possible states eg business part, private part or all parts, can you recommend a way to represent the states via

Re: singleton problems

2010-10-03 Thread Arnaud Delobelle
Arnaud Delobelle arno...@gmail.com writes: [...] That's because overriding __new__ doesn't prevent __init__ from being executed. The reason for this is that when you do: MySingle('jeff') what is executed is: MySingle.__metaclass__.__call__('jeff') Oops. I meant:

Re: singleton problems

2010-10-03 Thread harryos
thanks Arnold..that made it quite clear harry On Oct 3, 4:11 pm, Arnaud Delobelle arno...@gmail.com wrote: Arnaud Delobelle arno...@gmail.com writes: -- http://mail.python.org/mailman/listinfo/python-list

M2crypto/Python 2.7 compatibility (Windows)

2010-10-03 Thread python
Anyone using M2crypto with Python 2.7? The M2crypto site [1] seems to indicate that M2crypto should be compatible with all 2.x versions 2.3 or higher. However there are no user contributed builds for any release of Python above 2.6. I'm wondering if this is because M2crypto has problems with

Re: [C-API] Weird sys.exc_info reference segfault

2010-10-03 Thread Jonas H.
On 10/03/2010 01:16 AM, Antoine Pitrou wrote: You should check that you aren't doing anything wrong with env and start_response (like deallocate them forcefully). I commented out the `Py_DECREF(start_response)` after the `app` call and the crash was gone. `start_response` is created via

(http://www.salesuper.com)(http://www.salesuper.com) Air Jordan Sneakers, Release Dates, Nike Shoes, Air Force Ones at ...All the info a sneakerhead needs, including Nike, Air Jordans, Nike SB, air fo

2010-10-03 Thread fhgfg hghghfgd
(http://www.salesuper.com)(http://www.salesuper.com) Air Jordan Sneakers, Release Dates, Nike Shoes, Air Force Ones at ...All the info a sneakerhead needs, including Nike, Air Jordans, Nike SB, air force ones, Adidas, Bape, Vans and other news, nike release dates, air

Re: Fastest technique for string concatenation

2010-10-03 Thread Roy Smith
My local news feed seems to have lost the early part of this thread, so I'm afraid I don't know who I'm quoting here: My understanding is that appending to a list and then joining this list when done is the fastest technique for string concatenation. Is this true? The 3 string

Re: [C-API] Weird sys.exc_info reference segfault

2010-10-03 Thread Antoine Pitrou
On Sun, 03 Oct 2010 14:44:32 +0200 Jonas H. jo...@lophus.org wrote: On 10/03/2010 01:16 AM, Antoine Pitrou wrote: You should check that you aren't doing anything wrong with env and start_response (like deallocate them forcefully). I commented out the `Py_DECREF(start_response)` after the

Re: SQLite is quite SQL compliant

2010-10-03 Thread Florian Weimer
* Ravi: The documentation of the sqlite module at http://docs.python.org/library/sqlite3.html says: ...allows accessing the database using a nonstandard variant of the SQL... But if you see SQLite website they clearly say at http://sqlite.org/omitted.html that only very few of the SQL

Re: [C-API] Weird sys.exc_info reference segfault

2010-10-03 Thread Jonas H.
On 10/03/2010 03:47 PM, Antoine Pitrou wrote: You shouldn't call PyObject_FREE yourself, but instead rely on Py_DECREF to deallocate it if the reference count drops to zero. So, instead of commenting out Py_DECREF and keeping PyObject_FREE, I'd recommend doing the reverse. That way, if a

Re: sequence multiplied by -1

2010-10-03 Thread Mel
Seebs wrote: On 2010-10-03, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sat, 02 Oct 2010 12:50:02 -0700, Dennis Lee Bieber wrote: Well... We could maybe borrow from REXX... and use || for concatenation. || for concatenation? What's the connection between the

Re: How to find free resident memory in Linux using python

2010-10-03 Thread Sandy
On Oct 2, 10:08 pm, Seebs usenet-nos...@seebs.net wrote: On 2010-10-02, Sandy dksre...@gmail.com wrote: I want to find how much free memory (RAM) is available in my system using python. The question is essentially incoherent on modern systems.  You'd have to define terms.  Consider that

Re: SQLite is quite SQL compliant

2010-10-03 Thread Seebs
On 2010-10-03, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message slrniafbbr.2iq9.usenet-nos...@guild.seebs.net, Seebs wrote: sqlite is a source of joy, a small bright point of decent and functional software in a world full of misbehaving crap. Have you learnt how to be

sport shoes : Jordan ,Nike, adidas, Puma, Gucci, LV, UGG , etc. including women shoes and kids shoes.

2010-10-03 Thread TWE WTEY
(2010 new fashion brand shoes) N I K E Shoes($35): http://www.stefsclothes.net H a n d b a g ($35): http://www.stefsclothes.net U G G($80) N F L ($35): http://www.stefsclothes.net %#% dghjdr dfjdrt drtjsr rfth r -- http://mail.python.org/mailman/listinfo/python-list

Re: ElementTree handling nested tag

2010-10-03 Thread tekion
On Oct 2, 5:32 am, de...@web.de (Diez B. Roggisch) wrote: tekion tek...@gmail.com writes: All, I have the following xml tag: event resource_access       actionhttpRequest/action       httpurlHTTP://cmd.wma.ibm.com:80//httpurl       httpmethodGET/httpmethod      

Re: singleton problems

2010-10-03 Thread Bruno Desthuilliers
jimgardener a écrit : hi Steven, can you explain that?I didn't quite get it. I have a module say 'managerutils' where I have a class MyManager.. What Steven was talking about was to NOT use a class at all. Modules are objects and have their own namespace. And you can use threading.locals

Re: Strong typing vs. strong testing

2010-10-03 Thread guthrie
An interesting archive article on the topic of correctness, and the layers thereof: Program verification: the very idea; Communications of the ACM Volume 31 , Issue 9 (September 1988) Pages: 1048 - 1063 Year of Publication: 1988 ISSN:0001-0782 The notion of program

Re: sequence multiplied by -1

2010-10-03 Thread Bruno Desthuilliers
Stefan Schwarzer a écrit : One could argue that using L[::-1] isn't obvious It *is* obvious - once you've learned slicing. obvious doesn't mean you shouldn't bother reading the FineManual. -- http://mail.python.org/mailman/listinfo/python-list

Re: Crummy BS Script

2010-10-03 Thread Nobody
On Sat, 02 Oct 2010 22:15:31 -0700, flebber wrote: Cargo Cult Coding? Not sure what it is but it sounds good. Imitation without understanding, aka monkey-see-monkey-do. http://en.wikipedia.org/wiki/Cargo_cult -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLite is quite SQL compliant

2010-10-03 Thread Nobody
On Sat, 02 Oct 2010 13:06:12 -0700, Ravi wrote: The documentation of the sqlite module at http://docs.python.org/library/sqlite3.html says: ...allows accessing the database using a nonstandard variant of the SQL... But if you see SQLite website they clearly say at

Re: WSGI by HTTP GET

2010-10-03 Thread John Nagle
On 10/2/2010 6:15 PM, Niklasro wrote: Hello Getting a web same page with 2 or more possible states eg business part, private part or all parts, can you recommend a way to represent the states via HTTP GET? Feasible way could be ?business=business, ? type=business, ?business=true or others.

Re: ElementTree handling nested tag

2010-10-03 Thread Diez B. Roggisch
tekion tek...@gmail.com writes: On Oct 2, 5:32 am, de...@web.de (Diez B. Roggisch) wrote: tekion tek...@gmail.com writes: All, I have the following xml tag: event resource_access       actionhttpRequest/action       httpurlHTTP://cmd.wma.ibm.com:80//httpurl      

Re: SQLite is quite SQL compliant

2010-10-03 Thread John Nagle
On 10/2/2010 3:06 PM, Seebs wrote: I would agree that the word nonstandard seems to be a little strong and discouraging. sqlite is a source of joy, a small bright point of decent and functional software in a world full of misbehaving crap. While it does omit a few bits of SQL functionality,

Re: SQLite is quite SQL compliant

2010-10-03 Thread Philip Semanchuk
On Oct 3, 2010, at 2:21 PM, John Nagle wrote: On 10/2/2010 3:06 PM, Seebs wrote: I would agree that the word nonstandard seems to be a little strong and discouraging. sqlite is a source of joy, a small bright point of decent and functional software in a world full of misbehaving crap.

Re: IMAP support

2010-10-03 Thread Tim Roberts
pakalk pak...@gmail.com wrote: Can anyone help me find GOOD IMAP library for python? Imaplib is.. ekhm... nevermind... Is there any good library? What do you expect it to do? Imaplib is designed to help you access IMAP stores, and it does that well enough. But it's not a mail reader. -- Tim

Re: IMAP support

2010-10-03 Thread John Bokma
pakalk pak...@gmail.com writes: Hello, Can anyone help me find GOOD IMAP library for python? Imaplib is.. ekhm... nevermind... Is there any good library? Instead of pissing on something it helps to actually state what's missing from it. Or give a list of what you're looking for. Nevermind is

Inheritance and name clashes

2010-10-03 Thread Rock
Hi all :) I've really been wondering about the following lately. The question is this: if there are no (real) private or protected members in Python, how can you be sure, when inheriting from another class, that you won't wind up overriding, and possibly clobbering some important data field of

Re: Inheritance and name clashes

2010-10-03 Thread Gary Herron
On 10/03/2010 01:07 PM, Rock wrote: Hi all :) I've really been wondering about the following lately. The question is this: if there are no (real) private or protected members in Python, how can you be sure, when inheriting from another class, that you won't wind up overriding, and possibly

Re: Inheritance and name clashes

2010-10-03 Thread Steve Howell
On Oct 3, 1:07 pm, Rock rocco.ro...@gmail.com wrote: Hi all :) I've really been wondering about the following lately. The question is this: if there are no (real) private or protected members in Python, how can you be sure, when inheriting from another class, that you won't wind up

Re: [C-API] Weird sys.exc_info reference segfault

2010-10-03 Thread Antoine Pitrou
On Sun, 03 Oct 2010 16:33:48 +0200 Jonas H. jo...@lophus.org wrote: Humm. Now the behaviour is as follows: with assignment to local variable -- * start_response = PyObject_NEW(...) - start_response-ob_refcnt=1 * wsgiapp(environ, start_response) -

Re: Inheritance and name clashes

2010-10-03 Thread Rock
Object-oriented designs are difficult to design in any programming language, and it helps to have some sort of concrete problem to drive the discussion.  Are you working on a particular design where you think Python's philosophy will inhibit good design?  My take on Python is that it focuses

Re: Inheritance and name clashes

2010-10-03 Thread Arnaud Delobelle
Rock rocco.ro...@gmail.com writes: Object-oriented designs are difficult to design in any programming language, and it helps to have some sort of concrete problem to drive the discussion.  Are you working on a particular design where you think Python's philosophy will inhibit good design?  My

Re: Inheritance and name clashes

2010-10-03 Thread Arnaud Delobelle
Arnaud Delobelle arno...@gmail.com writes: I've been reading c.l.python for years (on and off) and I can't recall anybody saying this has been a problem in practise. Arghh! Practice, I meant practice! -- Arnaud -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheritance and name clashes

2010-10-03 Thread Steve Howell
On Oct 3, 3:04 pm, Rock rocco.ro...@gmail.com wrote: Object-oriented designs are difficult to design in any programming language, and it helps to have some sort of concrete problem to drive the discussion.  Are you working on a particular design where you think Python's philosophy will

Re: Inheritance and name clashes

2010-10-03 Thread Gregory Ewing
Rock wrote: What if the library I'm using doesn't realase the source, or what if I just can't get my hands on it for some reason or another? You can always use dir() on an instance of the class to find out what names it's using. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheritance and name clashes

2010-10-03 Thread Steve Howell
On Oct 3, 3:57 pm, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Rock wrote: What if the library I'm using doesn't realase the source, or what if I just can't get my hands on it for some reason or another? You can always use dir() on an instance of the class to find out what names

Re: Inheritance and name clashes

2010-10-03 Thread Paul Rubin
Arnaud Delobelle arno...@gmail.com writes: I've been reading c.l.python for years (on and off) and I can't recall anybody saying this has been a problem in practise. It has been a problem for me at least once. I blew a good chunk of a day debugging a problem that turned out due to my

Re: Inheritance and name clashes

2010-10-03 Thread Carl Banks
On Oct 3, 3:04 pm, Rock rocco.ro...@gmail.com wrote: No, I was just working with a normal library class which was supposed to be derived. So that's what I did, but in the process I found myself needing to create an instance variable and it dawned on me: how do I know I'm not clobbering

Re: Inheritance and name clashes

2010-10-03 Thread MRAB
On 04/10/2010 00:06, Steve Howell wrote: On Oct 3, 3:57 pm, Gregory Ewinggreg.ew...@canterbury.ac.nz wrote: Rock wrote: What if the library I'm using doesn't realase the source, or what if I just can't get my hands on it for some reason or another? You can always use dir() on an instance of

Re: SQLite is quite SQL compliant

2010-10-03 Thread Lawrence D'Oliveiro
In message slrniah7cc.8f0.usenet-nos...@guild.seebs.net, Seebs wrote: It is stunning how often you can guess which of two packages will be the source of a bug just by seeing which one hurts more to look at. QOTW. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLite is quite SQL compliant

2010-10-03 Thread Lawrence D'Oliveiro
In message 4ca8c9b6$0$1598$742ec...@news.sonic.net, John Nagle wrote: (Personally, I like MySQL, but I fear Oracle will mess it up.) Doesn’t matter whether Oracle messes up the brand called “MySQL” or not. With Free Software, it’s the software that matters, not the brand. And the

Re: ElementTree handling nested tag

2010-10-03 Thread tekion
On Oct 3, 2:09 pm, de...@web.de (Diez B. Roggisch) wrote: tekion tek...@gmail.com writes: On Oct 2, 5:32 am, de...@web.de (Diez B. Roggisch) wrote: tekion tek...@gmail.com writes: All, I have the following xml tag: event resource_access       actionhttpRequest/action      

Re: Inheritance and name clashes

2010-10-03 Thread Steve Howell
On Oct 3, 5:13 pm, Carl Banks pavlovevide...@gmail.com wrote: On Oct 3, 3:04 pm, Rock rocco.ro...@gmail.com wrote: No, I was just working with a normal library class which was supposed to be derived. So that's what I did, but in the process I found myself needing to create an instance

Re: Inheritance and name clashes

2010-10-03 Thread Steve Howell
On Oct 3, 5:17 pm, MRAB pyt...@mrabarnett.plus.com wrote: On 04/10/2010 00:06, Steve Howell wrote: On Oct 3, 3:57 pm, Gregory Ewinggreg.ew...@canterbury.ac.nz  wrote: Rock wrote: What if the library I'm using doesn't realase the source, or what if I just can't get my hands on it for

Re: IMAP support

2010-10-03 Thread Grant Edwards
On 2010-10-01, pakalk pak...@gmail.com wrote: Can anyone help me find GOOD IMAP library for python? Yes. Imaplib is.. ekhm... nevermind... Is there any good library? Yes, there is another one that's easier to use and a bit more high-level, and more... akhm... nevermind. -- Grant --

Re: Inheritance and name clashes

2010-10-03 Thread Steven D'Aprano
On Sun, 03 Oct 2010 15:04:17 -0700, Rock wrote: Thanks for the reply. No, I was just working with a normal library class which was supposed to be derived. So that's what I did, but in the process I found myself needing to create an instance variable and it dawned on me: how do I know I'm not

Re: Inheritance and name clashes

2010-10-03 Thread Steven D'Aprano
On Mon, 04 Oct 2010 11:57:18 +1300, Gregory Ewing wrote: Rock wrote: What if the library I'm using doesn't realase the source, or what if I just can't get my hands on it for some reason or another? You can always use dir() on an instance of the class to find out what names it's using.

Re: Inheritance and name clashes

2010-10-03 Thread Chris Torek
In article 14cf8b45-a3c0-489f-8aa9-a75f0f326...@n3g2000yqb.googlegroups.com Rock rocco.ro...@gmail.com wrote: I've really been wondering about the following lately. The question is this: if there are no (real) private or protected members in Python, how can you be sure, when inheriting from

Re: if the else short form

2010-10-03 Thread Andreas Waldenburger
On Fri, 1 Oct 2010 00:42:34 -0700 (PDT) bruno.desthuilli...@gmail.com bruno.desthuilli...@gmail.com wrote: On 30 sep, 19:22, Andreas Waldenburger use...@geekmail.invalid wrote: On Thu, 30 Sep 2010 03:42:29 -0700 (PDT) bruno.desthuilli...@gmail.com bruno.desthuilli...@gmail.com wrote:

Is there a Python Version Manager?

2010-10-03 Thread TerryP
Having STFW and come up empty, I'm wondering if anyone knows if there is an analogue to the Ruby Version Manager http:// rvm.beginrescueend.com/ in the Python world? rvm is essentially a tool that can install several Ruby implementations side by side and easily hot swap them in your shell session.

Re: SQLite is quite SQL compliant

2010-10-03 Thread John Nagle
On 10/3/2010 5:40 PM, Lawrence D'Oliveiro wrote: In message4ca8c9b6$0$1598$742ec...@news.sonic.net, John Nagle wrote: (Personally, I like MySQL, but I fear Oracle will mess it up.) Doesn’t matter whether Oracle messes up the brand called “MySQL” or not. With Free Software, it’s the

Re: Is there a Python Version Manager?

2010-10-03 Thread Kushal Kumaran
On Mon, Oct 4, 2010 at 8:39 AM, TerryP bigboss1...@gmail.com wrote: Having STFW and come up empty, I'm wondering if anyone knows if there is an analogue to the Ruby Version Manager http:// rvm.beginrescueend.com/ in the Python world? rvm is essentially a tool that can install several Ruby

[issue10012] httplib shadows builtin, assumes strings

2010-10-03 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Here are patches with tests for py3k and release27-maint, for explicit conversion of header values to bytes/str. If someone likes to review the patch, please provide your comments. -- keywords: +patch resolution: - accepted

[issue10012] httplib shadows builtin, assumes strings

2010-10-03 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: Added file: http://bugs.python.org/file19117/issue10012-py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10012 ___

[issue9873] urllib.parse: Allow bytes in some APIs that use string literals internally

2010-10-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As per RDM's email to python-dev, a better way to create the pseudo_str values would be by decoding as ascii with a surrogate escape error handler rather than by decoding as latin-1. If you were worried about performance, then surrogateescape

[issue6302] email.header.decode_header data types are inconsistent and incorrectly documented

2010-10-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think nttplib's use case can be satisfied via the issue 4661 patch coupled with the decode_header bytes-recovery enhancement. I don't really understand how that could. nntplib needs to decode (in the decode_header sense) headers containing

[issue8980] distutils.tests.test_register.RegisterTestCase.test_strict fails

2010-10-03 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r85197 / r85198 Thanks ! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8980 ___

[issue6302] email.header.decode_header data types are inconsistent and incorrectly documented

2010-10-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, that was a late night post and as I was falling asleep I realized that I was wrong. Certainly decode_header_as_string is a function most people using the email package will want and will re-implement in one form or another, so I

[issue9989] ctypes bitfield problem

2010-10-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I think this issue is duplicate of #6493. -- nosy: +ocean-city resolution: - duplicate status: open - closed superseder: - Can not set value for structure members larger than 32 bits

[issue6493] Can not set value for structure members larger than 32 bits

2010-10-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I glanced at my patch again, and I noticed it has a problem. SET() cannot handle type larger than unsigned int on windows. I'll recreate the patch... -- nosy: +ned.deily, stutzbach ___

[issue9281] Race condition in distutils.dir_util.mkpath()

2010-10-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I'm attaching the patch for some mkpath functions in distutils2. -- components: +Distutils2 versions: +3rd party -Python 2.6 Added file: http://bugs.python.org/file19119/distutils2-mkpath.patch

[issue10019] json.dumps with indent = 0 not adding newlines

2010-10-03 Thread David Janes
New submission from David Janes davidja...@davidjanes.com: In Python 2.6.4, json.dumps(...,indent=0) produced newlines as documented here: http://docs.python.org/library/json.html#json.dump In Python 2.7, it no longer adds newlines. $ python Python 2.6.4 (r264:75706, Jan 13 2010, 19:41:08)

[issue6493] Can not set value for structure members larger than 32 bits

2010-10-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Here is at least better, simple patch. But ideally, mask should be created from variable type. short mask should be created for short variable, long long mask for long long variable, vise verse. I'll create such patch next. I hope

[issue6493] Can not set value for structure members larger than 32 bits

2010-10-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file14506/ctypes_workaround.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6493 ___

[issue6493] Can not set value for structure members larger than 32 bits

2010-10-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file14507/ctypes_workaround_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6493 ___

[issue10020] docs for sqlite3 describe functions not available without recompiling

2010-10-03 Thread Doug Hellmann
New submission from Doug Hellmann doug.hellm...@gmail.com: The documentation for the sqlite3 module describes enable_load_extension() and load_extension() methods of the Connection object, but those functions are only available if the user has compiled from source *after* modifying the

[issue10020] docs for sqlite3 describe functions not available without recompiling

2010-10-03 Thread Doug Hellmann
Changes by Doug Hellmann doug.hellm...@gmail.com: -- assignee: - d...@python components: +Documentation nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10020 ___

[issue6493] Can not set value for structure members larger than 32 bits

2010-10-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Sorry,my patch didn't work again... Because of this compiler behavior. Is this ANSI standard? #include stdio.h typedef unsigned __int32 uint32; static void print_bits(uint32 n) { int i; for (i = 31; i = 0; --i) {

[issue9272] CGIHTTPServer poisons os.environ

2010-10-03 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fix committed in revision 85202 (py3k), r85203 (release31-maint), r85204(release27-maint). I had change the patch to use copy.deepcopy instead of os.environ.copy() because for the purposes of test os.environ was masked with

[issue10012] httplib shadows builtin, assumes strings

2010-10-03 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in r85205 (py3k), r85206 (release31-maint) and r85207 (release27-maint). -- resolution: accepted - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue6493] Can not set value for structure members larger than 32 bits

2010-10-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Added file: http://bugs.python.org/file19122/py3k_fix_ctypes_cfields_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6493 ___

[issue6493] Can not set value for structure members larger than 32 bits

2010-10-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file19121/py3k_fix_ctypes_cfields_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6493 ___

[issue6493] Can not set value for structure members larger than 32 bits

2010-10-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: This patch removes MAX_SIZE_INT limitation. I hope this is final patch. I confirmed all ctypes test passed on my environment. (Windows, VS8.0) -- Added file: http://bugs.python.org/file19123/py3k_fix_ctypes_cfields_v3.patch

[issue10020] docs for sqlite3 describe functions not available without recompiling

2010-10-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: d...@python - ghaering nosy: +ghaering versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10020 ___

[issue10019] json.dumps with indent = 0 not adding newlines

2010-10-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - bob.ippolito nosy: +bob.ippolito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10019 ___

[issue1078919] email.Header (via add_header) encodes non-ASCII content incorrectly

2010-10-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: In addition, in 3.2 I will disallow non-ASCII parameter values unless they are specified in a three element tuple as in the example above. Why would the caller be required to choose an encoding while you could simply default to utf-8? There

[issue6706] asyncore's accept() is broken

2010-10-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm not an asyncore expert, but I can't see anything wrong with the patch. -- stage: needs patch - patch review versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue8017] c_char_p.value does not return a bytes object in Windows.

2010-10-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: You need to change test_string = ctypes.c_char_p(This Is a test string, that should be of type bytes) to test_string = ctypes.c_char_p(bThis Is a test string, that should be of type bytes) but this issue itself seems to be

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-10-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Probably this issue is duplicate of #9266. -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9884 ___

[issue9266] ctypes ValueError: NULL pointer access on Win7 x64

2010-10-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Probably this issue is duplicate of #9884. -- nosy: +ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9266 ___

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2010-10-03 Thread Greg Hazel
Changes by Greg Hazel gha...@users.sourceforge.net: -- nosy: +ghazel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9884 ___ ___ Python-bugs-list

[issue10019] json.dumps with indent = 0 not adding newlines

2010-10-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The C encoder should not be used when indent=0. Here is a patch+test for 2.7. Note that json.dump (into a file object) already correctly emit newlines. -- keywords: +patch nosy: +amaury.forgeotdarc Added file:

[issue10016] shutil.copyfile -- allow sparse copying

2010-10-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The use of fdst.truncate() is indeed wrong, since truncate() in 3.x is defined as truncating up to the current file position (which has been moved forward by the latest seek()). -- nosy: +pitrou ___

[issue10020] docs for sqlite3 describe functions not available without recompiling

2010-10-03 Thread Gerhard Häring
Gerhard Häring g...@ghaering.de added the comment: Without SQLITE_OMIT_LOAD_EXTENSION, builds will break on Mac OS X 10.5 and 10.6 and maybe other platforms. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10020

[issue10020] docs for sqlite3 describe functions not available without recompiling

2010-10-03 Thread Gerhard Häring
Gerhard Häring g...@ghaering.de added the comment: Fixed in r85208 by adding a note to the docs. -- resolution: - fixed status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10020

[issue9968] Let cgi.FieldStorage have named uploaded file

2010-10-03 Thread phep
phep patrice.pil...@teletopie.net added the comment: Well, this is actually somewhat more complicated than what my first tests showed due to the way multipart/form-data is dealt with in FieldStorage.read_multi(). The solution I proposed last time only works if the uploaded file is passed as

[issue10020] docs for sqlite3 describe functions not available without recompiling

2010-10-03 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: Thanks, Gerhard! -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10020 ___

[issue1078919] email.Header (via add_header) encodes non-ASCII content incorrectly

2010-10-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The compatibility argument is a fair point, and yes we could default to utf8 and no language. So that is probably a better solution than raising the error. -- ___ Python tracker

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-10-03 Thread Mads Kiilerich
Mads Kiilerich m...@kiilerich.com added the comment: I added some extra verification to Mercurial (http://www.selenic.com/hg/rev/f2937d6492c5). Feel free to use the following under the Python license in Python or elsewhere. It could be a separate method/function or it could integrated in

[issue6484] No unit test for mailcap module

2010-10-03 Thread Gregory Nofi
Changes by Gregory Nofi crackityjones200...@yahoo.com: Removed file: http://bugs.python.org/file15753/.mailcap ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6484 ___

[issue6484] No unit test for mailcap module

2010-10-03 Thread Gregory Nofi
Gregory Nofi crackityjones200...@yahoo.com added the comment: Replacing .mailcap with mailcap.txt. Same content, but with more conventional file name. -- Added file: http://bugs.python.org/file19125/mailcap.txt ___ Python tracker

  1   2   >