Re: Suggested coding style

2011-10-04 Thread Stephen Hansen
On 9/30/11 6:54 AM, rantingrick wrote: a misplaced and rarely used functionality of the stdlib. Have you tried putting \.zfill\( and selecting Python in google.com/codesearch? It seems to have quite a few users, among only openly available code. Considering there is a much larger body of code

Re: Chaos Theory [was Re: Benefit and belief]

2011-10-04 Thread alex23
Zero Piraeus sche...@gmail.com wrote: A dissenting view [and a Kill Bill spoiler, of sorts]: http://www.youtube.com/watch?v=PdWF7kd1tNo A fun diatribe, sure, but still an outsider view that is in direct conflict with how the characters are actually portrayed. --

how to call java methods in python

2011-10-04 Thread masood shaik
Hi I am trying to import java method in python. But i am getting the following error. error: ImportError: No module named Calculator Calculator is the name of the class written in java. I am trying to access the methods of that class. Please help me. --

Re: how to call java methods in python

2011-10-04 Thread alex23
On Oct 4, 4:39 pm, masood shaik masood@gmail.com wrote: Please help me. Please help us help you. You've given us nothing but an error message. (Which seems to indicate that you're trying 'import Calculator'...) What are you using to call Java methods in Python? Can you provide a small

Re: how to call java methods in python

2011-10-04 Thread masood shaik
Hi I am trying out my hand on accessing java methods in python. here is my piece of code.. Calculator.java --- public class Calculator { public Calculator(){ } public double calculateTip(double cost, double tipPercentage){ return cost * tipPercentage; }

Is exec() also not used in python 2.7.1 anymore?

2011-10-04 Thread Wong Wah Meng-R32813
In migrating my application from python 1.5.2 to 2.7.1, one of my modules breaks when I import it. Here is the line where it breaks. Can I have a quick check if this built-in function still supported in python 2.7.1 and if so, what ought to be changed here? Thanks in advance for replying.

Re: how to call java methods in python

2011-10-04 Thread Chris Rebert
On Tue, Oct 4, 2011 at 12:14 AM, masood shaik masood@gmail.com wrote: Hi  I am trying out my hand on accessing java methods in python. here is my piece of code.. Calculator.java --- public class Calculator {    public Calculator(){    }    public double

Re: Is exec() also not used in python 2.7.1 anymore?

2011-10-04 Thread Chris Rebert
On Tue, Oct 4, 2011 at 12:51 AM, Wong Wah Meng-R32813 r32...@freescale.com wrote: In migrating my application from python 1.5.2 to 2.7.1, one of my modules breaks when I import it. Here is the line where it breaks. Can I have a quick check if this built-in function still supported in python

Re: Is exec() also not used in python 2.7.1 anymore?

2011-10-04 Thread Peter Otten
Wong Wah Meng-R32813 wrote: In migrating my application from python 1.5.2 to 2.7.1, one of my modules breaks when I import it. Here is the line where it breaks. Can I have a quick check if this built-in function still supported in python 2.7.1 and if so, what ought to be changed here? Thanks

Re: Is it possible to create C-style main function in Python? (for teaching purposes)

2011-10-04 Thread Aivar Annamaa
Thanks for all the comments! It seems that the best way is still just to teach students self discipline. And hope that they (for now) believe some things (eg. dangers of global variables) without seeing. Aivar -- http://mail.python.org/mailman/listinfo/python-list

Re: how to call java methods in python

2011-10-04 Thread masood shaik
On Oct 4, 1:16 pm, Chris Rebert c...@rebertia.com wrote: On Tue, Oct 4, 2011 at 12:14 AM, masood shaik masood@gmail.com wrote: Hi  I am trying out my hand on accessing java methods in python. here is my piece of code.. Calculator.java --- public class Calculator {  

recommend a graphics library for plotting by the pixel?

2011-10-04 Thread Adam Funk
I'd like to create a window with a pause button and a large plotting area, in which I'd like to draw a polygon, detect the pixel coördinates of a mouse click, and then start setting the colors of pixels by (x,y) coördinates. (This is just for my own amusement, to play with some formulas for

RE: Is exec() also not used in python 2.7.1 anymore?

2011-10-04 Thread Wong Wah Meng-R32813
Haha... yeah I reviewed the code, it is supposed to exposed some remote methods locally (RMI proxy usage). However, I am not sure why what it does is merely a pass. I commented out this code and haven't seen any negative implication. I will look into this again if I am convinced the next

Re: how to call java methods in python

2011-10-04 Thread Laszlo Nagy
Please help me Regarding how to create java bridge as how to call a java function from python If you want to call a Java *method* from the C python implementation, then there are many possibilities. For example, you can write your Java program as a service. The Python program can talk to it

syntax enhancement

2011-10-04 Thread Valiev Sergey
Hi, you may found this idea stupid, but nevertheless... - `[]` - used for list comprehension, - `()` - used for generators, - `[start:stop]` / `[start:stop:step]` - used for slices. The idea is to use `(start:stop)` / `(start:stop:step)` as 'lazy evaluated' slices (like itertools.islice). What do

eggbasket

2011-10-04 Thread andrea . crotti . 0
I'm struggling trying to get a working local pypi server. Now eggbasket apparently also supports upload, which should be nice. So I: - created a virtualenv - installed all the necessary and trying to initializing the server I get: --8---cut here---start-8---

Re: recommend a graphics library for plotting by the pixel?

2011-10-04 Thread Alec Taylor
Sounds like a job for Processing... On Tue, Oct 4, 2011 at 8:56 PM, Adam Funk a24...@ducksburg.com wrote: I'd like to create a window with a pause button and a large plotting area, in which I'd like to draw a polygon, detect the pixel coördinates of a mouse click, and then start setting the

Re: Question: How to Prevent Tkinter Menu from Taking Keyboard Focus

2011-10-04 Thread woooee
Adding focus_set seems to work for me. What do want to do differently? import Tkinter class demo: def __init__(self, parent): self._entry = Tkinter.Entry(width = 60) self._suggestions = Tkinter.Menu(parent, tearoff = 0, takefocus = 0) self._entry.pack(padx = 20, pady

Re: Question: How to Prevent Tkinter Menu from Taking Keyboard Focus

2011-10-04 Thread woooee
Sorry, I did not understand the question correctly, and so have added another focus_set for the entry after the menu's creation. You can still enter after the menu comes up, even though you can't see where you are entering. import Tkinter class demo: def __init__(self, parent):

Re: recommend a graphics library for plotting by the pixel?

2011-10-04 Thread Ian Kelly
On Tue, Oct 4, 2011 at 3:56 AM, Adam Funk a24...@ducksburg.com wrote: I'd like to create a window with a pause button and a large plotting area, in which I'd like to draw a polygon, detect the pixel coördinates of a mouse click, and then start setting the colors of pixels by (x,y) coördinates.

Re: syntax enhancement

2011-10-04 Thread Calvin Spealman
On Tue, Oct 4, 2011 at 9:50 AM, Valiev Sergey sval...@gmail.com wrote: Hi, you may found this idea stupid, but nevertheless... - `[]` - used for list comprehension, - `()` - used for generators, - `[start:stop]` / `[start:stop:step]` - used for slices. The idea is to use `(start:stop)` /

Re: Is it possible to create C-style main function in Python? (for teaching purposes)

2011-10-04 Thread Westley Martínez
On Mon, Oct 03, 2011 at 09:35:16PM -0700, alex23 wrote: Sorry for hijacking Alec's response but I didn't see the OP. Aivar Annamaa aivar.anna...@gmail.com wrote: I'm looking for a trick or hidden feature to make Python 3 automatically call a main function but without programmers writing

Re: Question: How to Prevent Tkinter Menu from Taking Keyboard Focus

2011-10-04 Thread galyle
On Oct 4, 9:45 am, woooee woo...@gmail.com wrote: Sorry, I did not understand the question correctly, and so have added another focus_set for the entry after the menu's creation.  You can still enter after the menu comes up, even though you can't see where you are entering. import Tkinter

TestFixtures 2.2.0 Released!

2011-10-04 Thread Chris Withers
Hi All, The TestFixtures releases keep coming, I hope someone other than me is finding these useful ;-) This release features a change to test_datetime and test_date so that they return instances of the real datetime.datetime and datetime.date classes by default. I'm hoping this will

Re: Need A script to open a excel file and extract the data using autofilter

2011-10-04 Thread Chris Withers
On 01/10/2011 23:00, David Monaghan wrote: after opening the text.xls file i need to filter all the rows in which the status column is passed and copy the whole sheet to another sheet I don't do this often enough to have it to mind, so what I normally do is record a Macro, convert it to VBS

Re: Question: How to Prevent Tkinter Menu from Taking Keyboard Focus

2011-10-04 Thread galyle
On Oct 4, 11:05 am, galyle gal...@gmail.com wrote: On Oct 4, 9:45 am, woooee woo...@gmail.com wrote: Sorry, I did not understand the question correctly, and so have added another focus_set for the entry after the menu's creation.  You can still enter after the menu comes up, even

Re: recommend a graphics library for plotting by the pixel?

2011-10-04 Thread Derek Simkowiak
If this is strictly for 2D pixel graphics, I recommend using PyGame (aka SDL). Why do you not think it's the way to go? It was built for this type of thing. You may also want to use PIL (Python Imaging Library) for various image manipulation tasks, but PIL doesn't handle mouse

Re: eggbasket

2011-10-04 Thread Miki Tebeka
How is it possible that the module exists and it's actually imported, and not found when I actually try to import something from it? Do you have a local file/directory that is called sqlalchemy? -- http://mail.python.org/mailman/listinfo/python-list

HTTP ResponseNotReady

2011-10-04 Thread pedr0
Hi at all, I don't understand why, in this piece of code, i catch the raise ResponseNotReady(self.__state) http.client.ResponseNotReady: Request-sent EVERY time I run this piece of code: #connection http_connection = http.client.HTTPConnection('www.xxx.net',80,timeout=60) #first request

Re: HTTP ResponseNotReady

2011-10-04 Thread pedr0
Hi solved this problem, I have to add: #connection http_connection = http.client.HTTPConnection('www.xxx.net',80,timeout=60) #first request http_connection.request(POST, /,params,headers=headers_) r1 = http_connection.getresponse() r1.read() // THIS ONE #second request

Re: HTTP ResponseNotReady

2011-10-04 Thread MRAB
On 04/10/2011 21:29, pedr0 wrote: Hi solved this problem, I have to add: #connection http_connection = http.client.HTTPConnection('www.xxx.net',80,timeout=60) #first request http_connection.request(POST, /,params,headers=headers_) r1 = http_connection.getresponse() r1.read() // THIS ONE

Re: HTTP ResponseNotReady

2011-10-04 Thread pedr0
Mumble mumble... I described bad my question I think, yes I read that, but maybe is not a correct way of working. The http request I did retrieve (every time) an empty response, when I print the read() result call the result is the same of the sample you are talking about.

Re: eggbasket

2011-10-04 Thread Andrea Crotti
On 10/04/2011 08:34 PM, Miki Tebeka wrote: Do you have a local file/directory that is called sqlalchemy? Funny thing, I have the same problem with another machine, with sqlalchemy installed system-wide instead of locally. Strange issue, maybe a problem with python 2.7/Linux? --

Re: Need A script to open a excel file and extract the data using autofilter

2011-10-04 Thread David Monaghan
On Tue, 04 Oct 2011 19:42:06 +0100, Chris Withers ch...@simplistix.co.uk wrote: On 01/10/2011 23:00, David Monaghan wrote: after opening the text.xls file i need to filter all the rows in which the status column is passed and copy the whole sheet to another sheet I don't do this often enough

Re: Is it possible to create C-style main function in Python? (for teaching purposes)

2011-10-04 Thread Ben Finney
Westley Martínez aniko...@gmail.com writes: Boiler plate is silly. Let the students figure out stuff themselves. That argues directly against the Primacy effect mentioned earlier URL:https://secure.wikimedia.org/wikipedia/en/wiki/Principles_of_learning#Primacy

GOZERBOT 0.99.0 RELEASED

2011-10-04 Thread Bart Thate
Hello world and everybody ! i'm pleased to announce the release of GOZERBOT 0.99.0, the first in a series of releases that are supposed to lead to a proper 1.0 release for GOZERBOT. The intention is to get a 1.0 version of GOZERBOT available for users that still use this bot, got almost 2000

Re: Is it possible to create C-style main function in Python? (for teaching purposes)

2011-10-04 Thread Alan Meyer
On 10/3/2011 12:26 PM, Alec Taylor wrote: ... On Tue, Oct 4, 2011 at 3:21 AM, Aivar Annamaaaivar.anna...@gmail.com wrote: ... I'm looking for a trick or hidden feature to make Python 3 automatically call a main function but without programmers writing `if __name__ == __main__: ...` ...

Re: Need A script to open a excel file and extract the data using autofilter

2011-10-04 Thread Alan Meyer
On 10/4/2011 5:12 PM, David Monaghan wrote: On Tue, 04 Oct 2011 19:42:06 +0100, Chris Withersch...@simplistix.co.uk wrote: On 01/10/2011 23:00, David Monaghan wrote: after opening the text.xls file i need to filter all the rows in which the status column is passed and copy the whole sheet to

Re: Is it possible to create C-style main function in Python? (for teaching purposes)

2011-10-04 Thread Alan Meyer
On 10/4/2011 9:07 PM, Alan Meyer wrote: ... and to write up a comparison of the pros and cons of the global and no-global approaches. ... Of course you'll need to be fair in evaluating the students comparisons. Some bright students are likely to come up with good reasons for using globals

Re: Is it possible to create C-style main function in Python? (for teaching purposes)

2011-10-04 Thread Steven D'Aprano
On Tue, 04 Oct 2011 21:07:10 -0400, Alan Meyer wrote: Incidentally, all of these exercises involve maintaining or re-writing existing code written by other people. Students don't usually do much of that, but when they get a real job, they find that maintenance is most of what they actually

Re: how to call java methods in python

2011-10-04 Thread Steven D'Aprano
On Tue, 04 Oct 2011 00:14:49 -0700, masood shaik wrote: Hi I am trying out my hand on accessing java methods in python. here is my piece of code.. [...] Now i am trying to access the calculateTip() and its showing import error. It works fine when i am running it with jython but why its

Re: syntax enhancement

2011-10-04 Thread Terry Reedy
On 10/4/2011 9:50 AM, Valiev Sergey wrote: - `[]` - used for list comprehension, - `()` - used for generators, - `[start:stop]` / `[start:stop:step]` - used for slices. The idea is to use `(start:stop)` / `(start:stop:step)` as 'lazy evaluated' slices (like itertools.islice). What do you think

Re: Is it possible to create C-style main function in Python? (for teaching purposes)

2011-10-04 Thread Steven D'Aprano
On Mon, 03 Oct 2011 21:27:12 -0700, alex23 wrote: rantingrick rantingr...@gmail.com wrote: Why? Well because many times i find myself wondering if this or that variable is local or global -- and when i say global i am speaking of module scope! The globalDOT cures the ill. Given your stated

Re: how to call java methods in python

2011-10-04 Thread Alan Meyer
On 10/4/2011 2:39 AM, masood shaik wrote: Hi I am trying to import java method in python. But i am getting the following error. error: ImportError: No module named Calculator Calculator is the name of the class written in java. I am trying to access the methods of that class.

Re: Is it possible to create C-style main function in Python? (for teaching purposes)

2011-10-04 Thread alex23
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Imported modules are variables like any other, and as they usually exist in the global scope, so they will all need to be explicitly referenced as global. This will get tiresome very quickly, and is a cure far worse than the disease,

Re: Is it possible to create C-style main function in Python? (for teaching purposes)

2011-10-04 Thread Steven D'Aprano
On Tue, 04 Oct 2011 20:20:34 -0700, alex23 wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Imported modules are variables like any other, and as they usually exist in the global scope, so they will all need to be explicitly referenced as global. This will get tiresome very

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: +def __eq__(self, other): +r = (type(self) == type(other)) +if r: +return r I think this should be if not r. -- ___ Python tracker rep...@bugs.python.org

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Craig Citro
Craig Citro craigci...@gmail.com added the comment: Antoine -- why do you want to switch if r for if not r? If we did, the test would just confirm that the unpicked object was of the same type as the original; if we were going to do that, we might as well just replace the whole `__cmp__`

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Craig: I'm talking about the __eq__ version (durban's patch). The __cmp__ version is probably fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7689

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Craig Citro
Craig Citro craigci...@gmail.com added the comment: Antoine -- ah, that makes sense. Is that the only blocker? I've let this patch rot on the vine a long time; if so, I'll happily switch `__eq__` back to `__cmp__` and re-post if it'll get submitted. --

[issue12156] test_multiprocessing.test_notify_all() timeout (1 hour) on FreeBSD 7.2

2011-10-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: OSError: [Errno 23] Too many open files in system Yes, see issue #10348. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12156

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: No need, I'll do it myself. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7689 ___ ___

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 760ac320fa3d by Antoine Pitrou in branch '3.2': Issue #7689: Allow pickling of dynamically created classes when their http://hg.python.org/cpython/rev/760ac320fa3d New changeset 46c026a5ccb9 by Antoine Pitrou in

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 64053bd79590 by Antoine Pitrou in branch '2.7': Issue #7689: Allow pickling of dynamically created classes when their http://hg.python.org/cpython/rev/64053bd79590 -- ___

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is fixed now, thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue6715] xz compressor support

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Based on Amaury's report, I would suggest going forward integrating the xz module for configure-based systems, and letting someone else handle Windows integration later if a solution is found. -- ___

[issue13098] the struct module should support storage for size_t / Py_ssize_t C types

2011-10-04 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: Title says it all. -- components: Library (Lib) messages: 144867 nosy: mark.dickinson, meador.inge, pitrou, skrah priority: normal severity: normal stage: needs patch status: open title: the struct module should support storage for

[issue13087] C BufferedReader seek() is inconsistent with UnsupportedOperation for unseekable streams

2011-10-04 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d287f0654349 by Antoine Pitrou in branch '3.2': Issue #13087: BufferedReader.seek() now always raises UnsupportedOperation http://hg.python.org/cpython/rev/d287f0654349 New changeset 0cf38407a3a2 by Antoine Pitrou

[issue12876] Make Test Error : ImportError: No module named _sha256

2011-10-04 Thread Wong Wah Meng
Wong Wah Meng r32...@freescale.com added the comment: Hello there, I am encountering more modules/commands that uses the harslib that needs _sha256. I still haven't found a solution. Can anyone shed some lights here whether or not this is related to the way I include and link the library, or

[issue12807] Optimization/refactoring for {bytearray, bytes, unicode}.strip()

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch no longer applies cleanly. Is there enough interest in this to justify rebasing? Yes, I think it's worth it. -- title: Optimization/refactoring for {bytearray,bytes,unicode}.strip() - Optimization/refactoring for

[issue13070] segmentation fault in pure-python multi-threaded server

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Also, is it ok to just return NULL or should the error state also be set? Well, I'm not sure, that why I made you and Amaury noisy :-) AFAICT, this is the only case where _check_closed can encounter a NULL self-writer. Probably. OTOH,

[issue13099] Sqlite3 turkish locale

2011-10-04 Thread Thomas Kluyver
New submission from Thomas Kluyver tak...@gmail.com: When using sqlite3 with the Turkish locale, cursor.lastrowid is not accessible after an insert statement if INSERT is upper case. I believe that the cause is that the detect_statement_kind function [1] calls the locale-dependent C function

[issue13063] test_concurrent_futures failures on Windows: IOError('[Errno 232] The pipe is being closed') on _send_bytes()

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think the solution would be to map ERROR_NO_DATA (232 - The pipe is being closed) to EPIPE. Attached patch. -- keywords: +patch Added file: http://bugs.python.org/file23309/error_no_data.patch ___

[issue13063] test_concurrent_futures failures on Windows: IOError('[Errno 232] The pipe is being closed') on _send_bytes()

2011-10-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Tests nosy: +amaury.forgeotdarc stage: - patch review type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13063

[issue13098] the struct module should support storage for size_t / Py_ssize_t C types

2011-10-04 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: See issue #3163. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13098 ___ ___

[issue13070] segmentation fault in pure-python multi-threaded server

2011-10-04 Thread Victor Semionov
Victor Semionov vsemio...@gmail.com added the comment: Probably. OTOH, not setting the error state when returning NULL is usually an error (and can result in difficult-to-debug problems), so let's stay on the safe side. Furthermore, I'm not sure about what kind of error would make sense

[issue13099] Sqlite3 turkish locale

2011-10-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13099 ___

[issue13099] Sqlite3 turkish locale

2011-10-04 Thread Thomas Kluyver
Thomas Kluyver tak...@gmail.com added the comment: What form does the test need to be in? There's a script at the redhat bug I linked that demonstrates the issue. Do I need to turn it into a function? A patch for the existing test suite? -- type: behavior -

[issue13070] segmentation fault in pure-python multi-threaded server

2011-10-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: An unraisable exception warning will be displayed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13070 ___

[issue13070] segmentation fault in pure-python multi-threaded server

2011-10-04 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Probably. OTOH, not setting the error state when returning NULL is usually an error (and can result in difficult-to-debug problems), so let's stay on the safe side. RuntimeError perhaps. OK, I'll update the patch accordingly.

[issue13099] Sqlite3 turkish locale

2011-10-04 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: A patch against Lib/sqlite3/test/regression.py would be nice. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13099 ___

[issue13099] Sqlite3 turkish locale

2011-10-04 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 469555867244 by Antoine Pitrou in branch '3.2': Issue #13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale. http://hg.python.org/cpython/rev/469555867244 New changeset 652e2dacbf4b by Antoine Pitrou in branch

[issue13099] Sqlite3 turkish locale

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed, thank you. -- nosy: +pitrou resolution: - fixed stage: test needed - committed/rejected status: open - closed versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue13099] Sqlite3 turkish locale

2011-10-04 Thread Thomas Kluyver
Thomas Kluyver tak...@gmail.com added the comment: Thanks, Antoine. Should I still try to write a regression test for it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13099 ___

[issue13099] Sqlite3 turkish locale

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks, Antoine. Should I still try to write a regression test for it? I've had issues writing regression tests for other Turkish locale-related failures (namely, there are other bugs in some glibcs that could cause the test to fail anyway). I'm

[issue13098] the struct module should support storage for size_t / Py_ssize_t C types

2011-10-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - duplicate status: open - closed superseder: - module struct support for ssize_t and size_t ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13098

[issue3163] module struct support for ssize_t and size_t

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: #3163 is a duplicate. -- nosy: +pitrou priority: low - normal stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3163

[issue3163] module struct support for ssize_t and size_t

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ooops, I meant #13098. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3163 ___ ___

[issue3163] module struct support for ssize_t and size_t

2011-10-04 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3163 ___ ___ Python-bugs-list

[issue13063] test_concurrent_futures failures on Windows: IOError('[Errno 232] The pipe is being closed') on _send_bytes()

2011-10-04 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Attached patch. Could you please explain your change in generrmap.c in a comment? For example, just add a reference to this issue. -- ___ Python tracker rep...@bugs.python.org

[issue3163] module struct support for ssize_t and size_t

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- Added file: http://bugs.python.org/file23310/struct_nn.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3163 ___

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-10-04 Thread Boštjan Mejak
Boštjan Mejak bostjan.me...@gmail.com added the comment: I have a better idea... Why don't we change the linux2 string into just linux. That way we will never run into this kind of issue, even in the future when Linux kernel version 4 is going to exist. Any thoughts on this? -- nosy:

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-10-04 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Oct 04, 2011, at 01:03 PM, Boštjan Mejak wrote: I have a better idea... Why don't we change the linux2 string into just linux. That way we will never run into this kind of issue, even in the future when Linux kernel version 4 is going to

[issue3163] module struct support for ssize_t and size_t

2011-10-04 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Mostly LGTM. I have a few comments in rietveld. -- nosy: +meador.inge stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3163

[issue3163] module struct support for ssize_t and size_t

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks. I have answered one of your comments, and here is a new patch. -- Added file: http://bugs.python.org/file23311/struct_nn2.patch ___ Python tracker rep...@bugs.python.org

[issue3163] module struct support for ssize_t and size_t

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New patch with cosmetic doc fix. -- Added file: http://bugs.python.org/file23312/struct_nn3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3163

[issue12880] ctypes: clearly document how structure bit fields are allocated

2011-10-04 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: Thanks for the make patchcheck tip, I didn't know about that. I will update the patch soon. In the mean time, I want to point out a couple of things: First, I'm saying toying with the underlying buffer because none of the bugs are actual

[issue9035] os.path.ismount on windows doesn't support windows mount points

2011-10-04 Thread Oren Held
Oren Held o...@held.org.il added the comment: Anything wrong with the following simple approach? (e.g. is it bad to depend on win32file?) def win_ismount(path): import win32file volume_path = win32file.GetVolumePathName(path) return volume_path == path # May have to ignore a trailing

[issue9035] os.path.ismount on windows doesn't support windows mount points

2011-10-04 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: We can't depend on stuff from pywin32, but we could expose GetVolumePathName ourselves. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9035

[issue13054] sys.maxunicode value after PEP-393

2011-10-04 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f39b26ca7f3d by Ezio Melotti in branch 'default': #13054: fix usage of sys.maxunicode after PEP-393. http://hg.python.org/cpython/rev/f39b26ca7f3d -- ___ Python tracker

[issue6715] xz compressor support

2011-10-04 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file23300/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___

[issue12804] make test fails on systems without internet access

2011-10-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Actually, the skip system is already supposed to work for that if used properly (see test.support.transient_internet()). However, perhaps it actually doesn't work in all situations. It’s better than that: nearly all tests requiring network

[issue13055] Distutils tries to handle null versions but fails

2011-10-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks, will fix it. -- assignee: tarek - eric.araujo components: +Distutils2 nosy: +alexis versions: +3rd party, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Brent Payne
Brent Payne brent.pa...@gmail.com added the comment: will the 2.7 patch also be incorporated into a 2.7 release? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7689 ___

[issue6715] xz compressor support

2011-10-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: - liblzma can't be compiled by Visual Studio: too many C99 isms, mostly variables declared in the middle of a block. It's doable for sure, but it's a lot of work. I'd be in favor of doing so, and then feeding patches upstream. Hopefully,

[issue6715] xz compressor support

2011-10-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Based on Amaury's report, I would suggest going forward integrating the xz module for configure-based systems, and letting someone else handle Windows integration later if a solution is found. -1000. I feel quite strongly that this should

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Yes, it will. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7689 ___ ___ Python-bugs-list

[issue6715] xz compressor support

2011-10-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Based on Amaury's report, I would suggest going forward integrating the xz module for configure-based systems, and letting someone else handle Windows integration later if a solution is found. -1000. I feel quite strongly that this should

[issue13100] sre_compile._optimize_unicode() needs a cleanup

2011-10-04 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: The following comment is wrong, except IndexError: # non-BMP characters; XXX now they should work return charset sys.maxunicode != 65535 is now always true in Python 3.3 if sys.maxunicode != 65535:

[issue11956] 3.3 : test_import.py causes 'make test' to fail

2011-10-04 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7697223df6df by Charles-François Natali in branch '3.2': Issue #11956: Skip test_import.test_unwritable_directory on FreeBSD when run as http://hg.python.org/cpython/rev/7697223df6df New changeset 58870fe9a604 by

  1   2   >