Re: How to convert bytearray into integer?

2010-08-16 Thread Jacky
Hi Thomas, Thanks for your comments! Please check mine inline. On Aug 17, 1:50 am, Thomas Jollans tho...@jollybox.de wrote: On Monday 16 August 2010, it occurred to Jacky to exclaim: Hi there, Recently I'm facing a problem to convert 4 bytes on an bytearray into an 32-bit integer.  So

Re: How to convert bytearray into integer?

2010-08-16 Thread Thomas Jollans
On Monday 16 August 2010, it occurred to Jacky to exclaim: Hi Thomas, Thanks for your comments! Please check mine inline. On Aug 17, 1:50 am, Thomas Jollans tho...@jollybox.de wrote: On Monday 16 August 2010, it occurred to Jacky to exclaim: Hi there, Recently I'm facing a

Re: How to convert bytearray into integer?

2010-08-16 Thread Mark Dickinson
On Aug 16, 8:08 pm, Jacky jacky.chao.w...@gmail.com wrote: Hi Thomas, Thanks for your comments!  Please check mine inline. On Aug 17, 1:50 am, Thomas Jollans tho...@jollybox.de wrote: On Monday 16 August 2010, it occurred to Jacky to exclaim: Hi there, Recently I'm facing a problem

Re: looping through possible combinations of McNuggets packs of 6, 9 and 20

2010-08-16 Thread Mel
Baba wrote: [ ... ] Now, i believe that the number of consecutive passes required to make this work is equal to the smallest number of pack sizes. So if we have packs of (9,12,21) the number of passes needed would be 9 and the theorem would read If it is possible to buy n,n+1,n+2,...n+8

Re: How to convert bytearray into integer?

2010-08-16 Thread Mark Dickinson
On Aug 16, 8:36 pm, Mark Dickinson dicki...@gmail.com wrote: On Aug 16, 8:08 pm, Jacky jacky.chao.w...@gmail.com wrote: My concern is that struct may need to parse the format string, construct the list, and de-reference index=0 for this generated list to get the int out. There should be

Re: looping through possible combinations of McNuggets packs of 6, 9 and 20

2010-08-16 Thread Giacomo Boffi
Baba raoul...@gmail.com writes: Hi Mel, indeed i thought of generalising the theorem as follows: If it is possible to buy n, n+1,~, n+(x-1) sets of McNuggets, for some x, then it is possible to buy any number of McNuggets = x, given that McNuggets come in x, y and z packs. so with

Re: looping through possible combinations of McNuggets packs of 6, 9 and 20

2010-08-16 Thread Baba
well i still believe that the key is the smallest sized pack and there's no need to go into higher mathematics to solve this problem. I think below code works within the limits of the exercise which states to look at a maximum range of 200 in order not to search forever. packages=[2,103,105]

Re: looping through possible combinations of McNuggets packs of 6, 9 and 20

2010-08-16 Thread John Posner
On 8/16/2010 4:18 PM, Baba wrote: packages=[2,103,105] min_size=min(packages[0],packages[1],packages[2]) or: min_size = min(packages) -John -- http://mail.python.org/mailman/listinfo/python-list

Re: question about pdb assignment statements

2010-08-16 Thread Kev Dwyer
On Mon, 16 Aug 2010 08:17:20 -0700, Steve Ferg wrote: In this little script: pre import pdb pdb.set_trace() def main(): xm = 123 print(Hello,world!) main() /pre When I run this, I use pdb to step through it until I reach the point in main() where the xm variable has

Re: Python -Vs- Ruby: A regexp match to the death!

2010-08-16 Thread rantingrick
On Aug 9, 8:19 am, Mike Kent mrmak...@cox.net wrote: On Aug 8, 8:43 pm, rantingrick rantingr...@gmail.com wrote: Xah, this is really you, isn't it.  Come on, confess. *MOI*, How could *I* be xah. I really don't like Ruby however he gushes over it all the time. And he does not like Python that

Re: question about pdb assignment statements

2010-08-16 Thread Kev Dwyer
On Mon, 16 Aug 2010 08:17:20 -0700, Steve Ferg wrote: In this little script: pre import pdb pdb.set_trace() def main(): xm = 123 print(Hello,world!) main() /pre When I run this, I use pdb to step through it until I reach the point in main() where the xm variable has

Re: Python -Vs- Ruby: A regexp match to the death!

2010-08-16 Thread rantingrick
On Aug 8, 8:15 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sun, 08 Aug 2010 17:43:03 -0700, rantingrick wrote: Ruby has what they call a Here Doc. Besides picking the most boneheaded name for such an object It's standard terminology that has been around for a long

Re: Python 2.7 re.IGNORECASE broken in re.sub?

2010-08-16 Thread Steven D'Aprano
On Mon, 16 Aug 2010 05:46:17 -0700, Alex Willmer wrote: On Aug 16, 12:23 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Sun, 15 Aug 2010 17:36:07 -0700, Alex Willmer wrote: On Aug 16, 1:07 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: You're

Re: execfile() and locals()

2010-08-16 Thread fons
On Sun, Aug 15, 2010 at 11:24:25PM +, Steven D'Aprano wrote: On Sun, 15 Aug 2010 23:21:51 +0200, fons wrote: The documentation on execfile() and locals() makes it clear that code executed from execfile() can not modify local variables in the function from wich execfile() was called.

Re: Simple Problem but tough for me if i want it in linear time

2010-08-16 Thread Steven D'Aprano
On Mon, 16 Aug 2010 20:40:52 +0200, Frederic Rentsch wrote: How about [obj for obj in dataList if obj.number == 100] That should create a list of all objects whose .number is 100. No need to cycle through a loop. What do you think the list comprehension does, if not cycle through a

Re: [Q] How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-16 Thread Lawrence D'Oliveiro
In message 5fa7b287-0199-4349-ae0d-c34c8461c...@5g2000yqz.googlegroups.com, Standish P wrote: We envisage an exogenous stack which has malloc() associated with a push and free() associated with a pop. Since when are malloc(3) and free(3) exogenous? --

Running pygtk app under windows.

2010-08-16 Thread Sebastian Alonso
Hey everyone, I'm trying to be able to run my app, which uses pygtk, under windows, but unfortunately I'm having big problems with it. The main purpose of this is to later on make an .exe file but i havent even been able to run the app at least. I've followed every single step from this

Re: Textvariable display in label (GUI design)

2010-08-16 Thread Jah_Alarm
On Aug 17, 3:32 am, Eric Brunel eric.bru...@pragmadev.nospam.com wrote: In article 993d9560-564d-47f0-b2db-6f0c6404a...@g6g2000pro.googlegroups.com,  Jah_Alarm jah.al...@gmail.com wrote: hi, pls help me out with the following issue: I wrote a function that uses a for loop that changes a

Re: EOFError with fileinput

2010-08-16 Thread Steven D'Aprano
On Mon, 16 Aug 2010 19:27:32 +0200, Alex van der Spek wrote: Here is an excerpt. It works because the end condition is a fixed number (ln==10255), the approximate number of data lines in a file. If I replace that condition by EOFError, the program does not do the intended work. It appears as

random number generation

2010-08-16 Thread Jah_Alarm
hi, I need to generate a binary array with a specified average proportion of 1s (e.g. [1 0 0 0 0 1 0 0] has this proportion = 25%). In Matlab I run something like random(m,n)p where p is the value between 0 and 1. I'm trying to use random.randint(0,2,size=[m,n]), but I don't understand how to

Re: random number generation

2010-08-16 Thread Brian Blais
On Aug 16, 2010, at 20:37 , Jah_Alarm wrote: hi, I need to generate a binary array with a specified average proportion of 1s (e.g. [1 0 0 0 0 1 0 0] has this proportion = 25%). In Matlab I run something like random(m,n)p where p is the value between 0 and 1. I'm trying to use

Re: How to convert bytearray into integer?

2010-08-16 Thread Jacky
Hi Mark, Thanks for your reply. Agree and I'll use your suggestions. Thanks! -Jacky On Aug 17, 3:36 am, Mark Dickinson dicki...@gmail.com wrote: On Aug 16, 8:08 pm, Jacky jacky.chao.w...@gmail.com wrote: Hi Thomas, Thanks for your comments!  Please check mine inline. On Aug 17, 1:50 

Re: How to convert bytearray into integer?

2010-08-16 Thread Jacky
On Aug 17, 3:38 am, Thomas Jollans tho...@jollybox.de wrote: On Monday 16 August 2010, it occurred to Jacky to exclaim: Hi Thomas, Thanks for your comments!  Please check mine inline. On Aug 17, 1:50 am, Thomas Jollans tho...@jollybox.de wrote: On Monday 16 August 2010, it

Re: Python why questions

2010-08-16 Thread Roy Smith
In article i4b770$hv...@localhost.localdomain, Martin Gregorie mar...@address-in-sig.invalid wrote: Say you have intensity data captured from an X-ray goniometer from 160 degrees to 30 degrees at 0.01 degree resolution. Which is most evil of the following? 1) real intensity[16000:3000]

Re: How to convert bytearray into integer?

2010-08-16 Thread Jacky
On Aug 17, 3:53 am, Mark Dickinson dicki...@gmail.com wrote: On Aug 16, 8:36 pm, Mark Dickinson dicki...@gmail.com wrote: On Aug 16, 8:08 pm, Jacky jacky.chao.w...@gmail.com wrote: My concern is that struct may need to parse the format string, construct the list, and de-reference

Re: random number generation

2010-08-16 Thread Raymond Hettinger
On Aug 16, 5:37 pm, Jah_Alarm jah.al...@gmail.com wrote: hi, I need to generate a binary array with a specified average proportion of 1s (e.g. [1 0 0 0 0 1 0 0] has this proportion = 25%). In Matlab I run something like random(m,n)p where p is the value between 0 and 1. I'm trying to use

2 Regex Questions

2010-08-16 Thread AlphaBravo
Hello Comp.Lang,Python, 1) How do I parse Basic Posix RE's in Python (i need it because of some old scripts and a specific OS developed in Seattle) 2) How can I split a string into sections that MATCH a regex (rather then splitting by seperator). Tokenizer-style but ignoring every place from

Re: EXOR or symmetric difference for the Counter class

2010-08-16 Thread Raymond Hettinger
[Paddy] Lets say you have two *sets* of integers representing two near-copies of some system, then a measure of their difference could be calculated as: len(X.symmetric_difference(Y)) / (len(X) + len(Y)) * 100 % If the two collections of integers are allowed duplicates then you need a

Re: how to switch image in tkinter? making it mutable? how?

2010-08-16 Thread ChrisChia
On Aug 17, 2:57 am, Jeff Hobbs jeff.ho...@gmail.com wrote: On Aug 16, 7:30 am, ChrisChia chrischi...@gmail.com wrote: I have this: image1 = ImageTk.PhotoImage(file = c:\\f1.jpg) image2 = ImageTk.PhotoImage(file = c:\\f2.jpg) imagelist.append(image1) imagelist.append(image2)

Re: Python why questions

2010-08-16 Thread Lawrence D'Oliveiro
In message roy-ee1b7f.21001716082...@news.panix.com, Roy Smith wrote: 5) real intensity[160.0 : 30.0 : 0.01] How many elements in that array? a) 2999 b) 3000 c) neither of the above -- http://mail.python.org/mailman/listinfo/python-list

Re: Python why questions

2010-08-16 Thread Roy Smith
In article i4cqg0$ol...@lust.ihug.co.nz, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message roy-ee1b7f.21001716082...@news.panix.com, Roy Smith wrote: 5) real intensity[160.0 : 30.0 : 0.01] How many elements in that array? a) 2999 b) 3000 c) neither of the above

79 chars or more?

2010-08-16 Thread AK
As monitors are getting bigger, is there a general change in opinion on the 79 chars limit in source files? I've experimented with 98 characters per line and I find it quite a bit more comfortable to work with that length, even though sometimes I have to edit files in 80 width terminals, it's

Re: 79 chars or more?

2010-08-16 Thread James Mills
On Tue, Aug 17, 2010 at 12:35 PM, AK andrei@gmail.com wrote: As monitors are getting bigger, is there a general change in opinion on the 79 chars limit in source files? I've experimented with 98 characters per line and I find it quite a bit more comfortable to work with that length, even

Re: 79 chars or more?

2010-08-16 Thread Roy Smith
In article mailman.2213.1282012961.1673.python-l...@python.org, James Mills prolo...@shortcircuit.net.au wrote: On Tue, Aug 17, 2010 at 12:35 PM, AK andrei@gmail.com wrote: As monitors are getting bigger, is there a general change in opinion on the 79 chars limit in source files? I've

Re: 79 chars or more?

2010-08-16 Thread AK
On 08/16/2010 10:42 PM, James Mills wrote: On Tue, Aug 17, 2010 at 12:35 PM, AKandrei@gmail.com wrote: As monitors are getting bigger, is there a general change in opinion on the 79 chars limit in source files? I've experimented with 98 characters per line and I find it quite a bit more

Re: 79 chars or more?

2010-08-16 Thread James Mills
On Tue, Aug 17, 2010 at 12:50 PM, Roy Smith r...@panix.com wrote: I disagree with James.  I have no problem with going wider than 80, if it improves readability by not forcing you to fold lines in unnatural places. There's more important things to worry about. Roy, under normal circumstances

array manipulation-

2010-08-16 Thread Aram Ter-Sarkissov
hi, this is probably a very silly question, but I can't get my hear around it unfortunately( I have an array (say, mat=rand(3,5)) from which I 'pull out' a row (say, s1=mat[1,]). The problem is, the shape of this row s1 is not [1,5], as I would expect, but rather [5,], which means that I can't,

bash: syntax error near unexpected token

2010-08-16 Thread kreglet
Hello, I started learning python last year. All of this time i have used the terminal and gedit to create, modify, and test my applications and modules. For some reason I can not do this any more. I'll try to do my best to explain whats happening. I have a script modtest.py which has a function

Re: bash: syntax error near unexpected token

2010-08-16 Thread Benjamin Kaplan
On Mon, Aug 16, 2010 at 11:33 PM, kreglet kreg...@gmail.com wrote: Hello, I started learning python last year. All of this time i have used the terminal and gedit to create, modify, and test my applications and modules. For some reason I can not do this any more. I'll try to do my best to

Re: 79 chars or more?

2010-08-16 Thread Steven D'Aprano
On Mon, 16 Aug 2010 22:35:49 -0400, AK wrote: As monitors are getting bigger, is there a general change in opinion on the 79 chars limit in source files? I've experimented with 98 characters per line and I find it quite a bit more comfortable to work with that length, even though sometimes I

Re: Python why questions

2010-08-16 Thread Robert Kern
On 8/16/10 9:29 PM, Roy Smith wrote: In articlei4cqg0$ol...@lust.ihug.co.nz, Lawrence D'Oliveirol...@geek-central.gen.new_zealand wrote: In messageroy-ee1b7f.21001716082...@news.panix.com, Roy Smith wrote: 5) real intensity[160.0 : 30.0 : 0.01] How many elements in that array? a) 2999

Re: array manipulation-

2010-08-16 Thread Robert Kern
On 8/16/10 10:07 PM, Aram Ter-Sarkissov wrote: hi, this is probably a very silly question, but I can't get my hear around it unfortunately( I have an array (say, mat=rand(3,5)) from which I 'pull out' a row (say, s1=mat[1,]). The problem is, the shape of this row s1 is not [1,5], as I would

update of elements in GUI

2010-08-16 Thread Jah_Alarm
hi, I've already asked this question but so far the progress has been small. I'm running Tkinter. I have some elements on the screen (Labels, most importantly) which content has to be updated every iteration of the algorithm run, e.g. Iteration = [i] for i in range(n), n=100. I'm using the

Re: 79 chars or more?

2010-08-16 Thread AK
On 08/16/2010 11:51 PM, Steven D'Aprano wrote: On Mon, 16 Aug 2010 22:35:49 -0400, AK wrote: As monitors are getting bigger, is there a general change in opinion on the 79 chars limit in source files? I've experimented with 98 characters per line and I find it quite a bit more comfortable to

Re: Python why questions

2010-08-16 Thread Steven D'Aprano
On Mon, 16 Aug 2010 22:56:20 -0500, Robert Kern wrote: On 8/16/10 9:29 PM, Roy Smith wrote: In articlei4cqg0$ol...@lust.ihug.co.nz, Lawrence D'Oliveirol...@geek-central.gen.new_zealand wrote: In messageroy-ee1b7f.21001716082...@news.panix.com, Roy Smith wrote: 5) real intensity[160.0 :

Eval cannot see globals from another module

2010-08-16 Thread Tom Harris
Greetings, I want a debugging function with the effect of the function below (in a seperate module): def dump(expr): print expr, '=', eval(expr) foo = 33 dump('foo') Of course this fails when called from another module because eval does not know the globals or locals of the caller. Is

Re: 79 chars or more?

2010-08-16 Thread James Mills
On Tue, Aug 17, 2010 at 2:12 PM, AK andrei@gmail.com wrote: There's no doubt that there are pro's and con's, but to be fair, it's not like code becomes unreadable over 79 chars - the difference is that when your terminal is 80 chars, it's less convenient for you to read code that's wider

Re: looping through possible combinations of McNuggets packs of 6, 9 and 20

2010-08-16 Thread cbr...@cbrownsystems.com
On Aug 16, 11:04 am, Baba raoul...@gmail.com wrote: Hi Chas, Roald, These are all complicated formula that i believe are not expected at this level. If you look at the source (see my first submission) you will see that this exercise is only the second in a series called Introduction to

Re: update of elements in GUI

2010-08-16 Thread woooee
On Aug 16, 9:07 pm, Jah_Alarm jah.al...@gmail.com wrote: I have some elements on the screen (Labels, most importantly) which content has to be updated every iteration of the algorithm The variable type is IntVar() You would use int_var_name.set(some_number) --

Re: 79 chars or more?

2010-08-16 Thread AK
On 08/17/2010 12:26 AM, James Mills wrote: On Tue, Aug 17, 2010 at 2:12 PM, AKandrei@gmail.com wrote: There's no doubt that there are pro's and con's, but to be fair, it's not like code becomes unreadable over 79 chars - the difference is that when your terminal is 80 chars, it's less

Re: 79 chars or more?

2010-08-16 Thread James Mills
On Tue, Aug 17, 2010 at 2:50 PM, AK andrei@gmail.com wrote: By the way, the reason I asked is that we're working on a python tutorial and I realized that even though I'm used to 99, I wasn't sure if it's ok to teach that to new users or not.. In my opinion it would be okay to teach.

Re: 79 chars or more?

2010-08-16 Thread Michael Torrie
On 08/16/2010 08:59 PM, AK wrote: But.. why horizontal scrolling, isn't autowrap much better than that? Wouldn't it really make a visual mess of Python code if lines wrapped? Maybe if they wrapped smartly. In general, the only time I find my lines longer than 75 characters are strings or

Re: 79 chars or more?

2010-08-16 Thread Michael Torrie
On 08/16/2010 10:50 PM, AK wrote: I stay away from ugly cramped one-liners; I mostly run over 79 when I have a few `and` and `or` clauses or long strings. I've also noticed something interesting: going from 79 to 99 affects a relatively large number of lines, but going over 99 (i.e. 99 to 132)

[issue5867] No way to create an abstract classmethod

2010-08-16 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: I'm attaching a new patch containing also some documentation for the two new decorators. The doc is rather terse, and english is not my first language, so please let me know if some corrections are needed. -- Added file:

[issue9620] IDLE

2010-08-16 Thread beng umali
Changes by beng umali bpum...@gmail.com: -- nosy: bpumali priority: normal severity: normal status: open title: IDLE ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9620 ___

[issue9620] IDLE subprocess error

2010-08-16 Thread beng umali
New submission from beng umali bpum...@gmail.com: I can't seem to get my head around solving this problem after installing Python 2.7 on a mac os x 10.6.4. The error message that comes out after clicking IDLE from the applications reads: IDLE's subprocess didn't make connection. Either IDLE

[issue9592] Limitations in objects returned by multiprocessing Pool

2010-08-16 Thread Freek Dijkstra
Freek Dijkstra fr...@macfreek.nl added the comment: If it would help to separate things, let me know, and I split this up in three separate bug reports. (For the record, knowing these limitations, I could work around it in my code, so they are low priority for me; I just think that it will

[issue9587] unittest.assertRaises() return the raised exception

2010-08-16 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Pehaps it hasn't been demonstrated before, but just for the sake of argument (and because I'm a persistant bugger), here are the two different cases: current: ctxt = self.assertRaises(MyException) with ctxt: foo()

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2010-08-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: No, apparently, r78942 was not included in 3.1.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9257 ___

[issue5622] wrong error from curses.wrapper if curses initialization fails

2010-08-16 Thread Freek Dijkstra
Freek Dijkstra fr...@macfreek.nl added the comment: I can confirm that both the problem exists and the patch works on Python 2.6 and 3.1. I love to see it committed. -- nosy: +macfreek ___ Python tracker rep...@bugs.python.org

[issue1982] Feature: extend strftime to accept milliseconds

2010-08-16 Thread Thomas Guettler
Thomas Guettler guet...@thomas-guettler.de added the comment: Yes, I think this can be closed, too. -- nosy: +guettli ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1982 ___

[issue9592] Limitations in objects returned by multiprocessing Pool

2010-08-16 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Thanks Freek - we're actually discussing some stuff like this in issue9205 as well -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9592

[issue9602] PyObject_AsCharBuffer() should only accept read-only objects

2010-08-16 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: New submission from STINNER Victor victor.stin...@haypocalc.com: mmap, buffer, bytearray, string and unicode objects set the char buffer callback (bf_getcharbuffer). The bytearray object sets also the release

[issue8857] socket.getaddrinfo needs tests

2010-08-16 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I think the main problem here is that it's not easy to write reliable tests that work across all platforms (getaddrinfo(host, 'ftp') returning UDP addresses on FreeBSD/Qemu only is an example). We might try to go a little deeper as you

[issue7902] relative import broken

2010-08-16 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Btw, the comment and failure message in r81380/r81381 look wrong. -# If absolute import syntax is used, then do not try to perform -# a relative import in the face of failure. +# If explicit relative import syntax is used,

[issue9621] Graphviz output for 2to3 fixer patterns

2010-08-16 Thread Matt Bond
New submission from Matt Bond gmattb...@gmail.com: As part of my GSoC project working on 2to3, I've created a script which will allow compiled fixer patterns to be visualized using graphviz. This would be useful for debugging and understanding exactly how patterns are matched. I've written

[issue8739] Update to smtpd.py to RFC 5321

2010-08-16 Thread Alberto Trevino
Alberto Trevino albe...@byu.edu added the comment: On Sunday, August 15, 2010 09:19:27 am Giampaolo Rodola' wrote: Patch no longer applies cleanly because smtpd.py changed in the meantime. Is someone going to fix that or I am expected to play daily catch-up until this gets merged? A further

[issue1982] Feature: extend strftime to accept milliseconds

2010-08-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- resolution: - out of date stage: unit test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1982

[issue9145] test_coercion fails in refleak runs

2010-08-16 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Fixed in 2.6.6 with release manager approval on r84093. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9145

[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2010-08-16 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: - patch review type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1102

[issue6724] r74463 causes failures in test_xmlrpc

2010-08-16 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Does this still need a patch or can it be closed? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6724 ___

[issue1102] Add support for _msi.Record.GetString() and _msi.Record.GetInteger()

2010-08-16 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- components: +Windows nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1102 ___ ___

[issue9602] PyObject_AsCharBuffer() should only accept read-only objects

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Note that the buffer interface release API is meant to protect against such modifications, so I don't see why rejecting objects that do implement this API should be rejected. As I explained, the release API is *not* used by

[issue9622] Allow to set profile/trace function globally

2010-08-16 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@ccpgames.com: issue 9609 updates _lsprof.c to be multi-stack aware. This allows cProfile.Profile() objects to be shared by many threads and provide meaningfull results. This update makes it more convenient to profile running,

[issue1615] descriptor protocol bug

2010-08-16 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1615 ___ ___ Python-bugs-list

[issue7352] python2.6-config --ldflags out of /usr and missing -Linstall_lib_dir

2010-08-16 Thread Joel Brobecker
Joel Brobecker brobec...@gnat.com added the comment: More update on this patch: It's incomplete, and possibly wrong, unfortunately. The issue that someone else noticed is that it does not handle the case when Python was configured with --libdir=...; and I think that the default lib dir on

[issue9599] Add PySys_FormatStdout and PySys_FormatStderr functions

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Commited as r84094 to 3.2. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9599 ___

[issue8739] Update to smtpd.py to RFC 5321

2010-08-16 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Re-adapted patch including size_limit change as described in my previous message is in attachment. Barry and Alberto, could you take a final look at it before committing? -- Added file: http://bugs.python.org/file18546/smtpd.patch

[issue9189] Improve CFLAGS handling

2010-08-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file18062/smime.p7s ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9189 ___

[issue9189] Improve CFLAGS handling

2010-08-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: +Build nosy: +eric.araujo type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9189 ___

[issue7741] Allow multiple statements in code.InteractiveConsole.push

2010-08-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7741 ___ ___ Python-bugs-list

[issue9618] IDLE shell ignores all but first statement

2010-08-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, kbk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9618 ___ ___ Python-bugs-list

[issue9562] Slightly misleading wording in documentation of dict.update

2010-08-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1 on committing this change. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9562 ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: zipimport_read_directory.patch commited as r84095. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file18527/zipimport_read_directory.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9425 ___

[issue7352] python2.6-config --ldflags out of /usr and missing -Linstall_lib_dir

2010-08-16 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7352 ___ ___ Python-bugs-list

[issue8739] Update to smtpd.py to RFC 5321

2010-08-16 Thread Alberto Trevino
Alberto Trevino albe...@byu.edu added the comment: On Monday, August 16, 2010 11:42:51 am you wrote: Re-adapted patch including size_limit change as described in my previous message is in attachment. Barry and Alberto, could you take a final look at it before committing? Looks good to me.

[issue9445] Fix undefined symbol errors on VS8.0 build

2010-08-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Can someone explain why among the 6 calls to Py_GetFinalPathNameByHandle, 5 of them use VOLUME_NAME_DOS and only one uses VOLUME_NAME_NT? -- nosy: +amaury.forgeotdarc status: closed - pending

[issue9425] Rewrite import machinery to work with unicode paths

2010-08-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Py_UNICODE_strncmp.patch: create Py_UNICODE_strncmp() function. -- Added file: http://bugs.python.org/file18547/Py_UNICODE_strncmp.patch ___ Python tracker rep...@bugs.python.org

[issue7352] pythonx.y-config --ldflags out of /usr and missing -Linstall_lib_dir

2010-08-16 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: python2.6-config --ldflags out of /usr and missing -Linstall_lib_dir - pythonx.y-config --ldflags out of /usr and missing -Linstall_lib_dir versions: +Python 3.2 -Python 2.7 ___ Python tracker

[issue8739] Update to smtpd.py to RFC 5321

2010-08-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: The one thing that looks weird to me is VRFY. Since it never actually does verify the user, should we even claim to support the command? Why not let subclasses claim support if they want to add it? --

[issue9445] Fix undefined symbol errors on VS8.0 build

2010-08-16 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I committed the code you speak of (posix__getfinalpathname in Modules/posixmodule.c), but I don't know if I have a great answer for that question. It looks like VOLUME_NAME_NT (path with volume device path) should just be changed to

[issue7902] relative import broken

2010-08-16 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Comment changed in r84097, 3.2 branch, with minor fixes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7902 ___

[issue665761] reduce() masks exception

2010-08-16 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed to py3k in r84098. Accepting this change for py3k was an easy decision to make because zip and map already behave this way in 3.x. I am inclined to reject this for 2.7, however. While I agree that this is a

[issue7902] relative import broken

2010-08-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Guido has spoken: http://mail.python.org/pipermail/python-dev/2010-August/103104.html We'll keep the change for 2.6.6rc2. -- nosy: +barry status: open - closed ___ Python tracker

[issue9568] test_urllib2_localnet fails on OS X 10.3

2010-08-16 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: r84103 in release26-maint I will let Ronald commit to the other branches. I did this one due to the timing of 2.6.6 rc 2. Bumping status away from release blocker. -- priority: release blocker - high

[issue9623] test_site.py has a couple of stray self.assertTrue calls that test for equality

2010-08-16 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: test_site.py has a couple of assertions of the form self.assertTrue(len(foo), some number) which appear to be incorrect, and should read: self.assertEqual(len(foo), some number) or assertEquals (that file uses both methods). r76047

[issue9445] Fix undefined symbol errors on VS8.0 build

2010-08-16 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: In the case where I did use VOLUME_NAME_NT, I think I chose it because it returned a more robust result. That is, it's not clear what the result is if the result is not on a volume that is assigned a drive letter, but all files referenced

[issue8739] Update to smtpd.py to RFC 5321

2010-08-16 Thread Alberto Trevino
Alberto Trevino albe...@byu.edu added the comment: On Monday, August 16, 2010 12:58:07 pm Barry A. Warsaw wrote: The one thing that looks weird to me is VRFY. Since it never actually does verify the user, should we even claim to support the command? Why not let subclasses claim support if

[issue1581183] pickle protocol 2 failure on int subclass

2010-08-16 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1581183 ___

<    1   2   3   >