Re: Python and TAP

2012-02-07 Thread Matej Cepl
On 7.2.2012 04:24, alex23 wrote: Experience? Are you seriously advocating something for which you've done nothing more than watch a podcast? No, I am not. If you reread my original post, you may find that I was asking exactly for experience and explanation why something which seems to me

python file synchronization

2012-02-07 Thread silentnights
Hi All, I have the following problem, I have an appliance (A) which generates records and write them into file (X), the appliance is accessible throw ftp from a server (B). I have another central server (C) that runs a Django App, that I need to get continuously the records from file (A). The

Re: difference between random module in python 2.6 and 3.2?

2012-02-07 Thread Serhiy Storchaka
07.02.12 00:06, Matej Cepl написав(ла): return seq[int(random.random() * len(seq))] doesn't seem like something so terrible (and maintenance intense). :) _choice('abc') returns 'a' with probability P('a') = 1501199875790165/4503599627370496 = 1/3 - 1/13510798882111488 and 'b' with

Re: PythonWin debugger holds onto global logging objects too long

2012-02-07 Thread Jean-Michel Pichavant
Vinay Sajip wrote: On Jan 24, 2:52 pm, Rob Richardson rdrichard...@rad-con.com wrote: I use PythonWin to debug the Python scripts we write. Our scripts often use the log2pyloggingpackage. When running the scripts inside the debugger, we seem to get oneloggingobject for every time we run

Re: how to read serial stream of data [newbie]

2012-02-07 Thread Jean Dupont
On 7 feb, 06:07, Roy Smith r...@panix.com wrote: In article e84f3af4-da6d-4ae9-8974-54354ec16...@b18g2000vbz.googlegroups.com,  Jean Dupont jeandupont...@gmail.com wrote: I'd like to read in a stream of data which looks like this: the device sends out a byte-string of 11 bytes roughly

Static HTML documentation from docstrings

2012-02-07 Thread Florian Weimer
I'm slightly confused about docstrings and HTML documentation. I used to think that the library reference was (in part) generated from the source code, but this does not seem to be the case. Is there any tool support for keeping documentation and code in sync? --

iterating over list with one mising value

2012-02-07 Thread Sammy Danso
Hello experts, I am having trouble accessing the content of my list. my list content has 2-pair value with the exception of one which has single value. here is an example  ['a', 1, 'b', 1, 'c', 3, 'd']   I am unable to iterate through list to access invidual value pairs   I get an error message

Re: Static HTML documentation from docstrings

2012-02-07 Thread Chris Rebert
On Tue, Feb 7, 2012 at 4:11 AM, Florian Weimer f...@deneb.enyo.de wrote: I'm slightly confused about docstrings and HTML documentation.  I used to think that the library reference was (in part) generated from the source code, but this does not seem to be the case. Is there any tool support

Re: how to read serial stream of data [newbie]

2012-02-07 Thread Antti J Ylikoski
On 7.2.2012 14:13, Jean Dupont wrote: ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1, rtscts=0, dsrdtr=0, timeout=15) In Python, if you want to continue the source line into the next text line, you must end the line to be continued with a backslash '\'. So you should write:

Re: how to read serial stream of data [newbie]

2012-02-07 Thread Peter Otten
Antti J Ylikoski wrote: On 7.2.2012 14:13, Jean Dupont wrote: ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1, rtscts=0, dsrdtr=0, timeout=15) In Python, if you want to continue the source line into the next text line, you must end the line to be continued with a backslash

Re: how to read serial stream of data [newbie]

2012-02-07 Thread Heiko Wundram
Am 07.02.2012 14:48, schrieb Antti J Ylikoski: On 7.2.2012 14:13, Jean Dupont wrote: ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1, rtscts=0, dsrdtr=0, timeout=15) In Python, if you want to continue the source line into the next text line, you must end the line to be continued

Re: iterating over list with one mising value

2012-02-07 Thread Dave Angel
On 02/07/2012 07:27 AM, Sammy Danso wrote: Hello experts, I am having trouble accessing the content of my list. my list content has 2-pair value with the exception of one which has single value. here is an example ['a', 1, 'b', 1, 'c', 3, 'd'] I am unable to iterate through list to access

Re: how to read serial stream of data [newbie]

2012-02-07 Thread Jean Dupont
On 7 feb, 15:04, Heiko Wundram modeln...@modelnine.org wrote: Am 07.02.2012 14:48, schrieb Antti J Ylikoski: On 7.2.2012 14:13, Jean Dupont wrote: ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1, rtscts=0, dsrdtr=0, timeout=15) In Python, if you want to continue the source

smart baba new year special offer

2012-02-07 Thread Smart Baba
Smart Baba special limited offer. We are the only world lowest-cost, yet professional and elegant-designing website developing company. Follow us for further details: www.websitedeals.com -- http://mail.python.org/mailman/listinfo/python-list

Re: difference between random module in python 2.6 and 3.2?

2012-02-07 Thread Ulrich Eckhardt
Am 06.02.2012 09:45, schrieb Matej Cepl: Also, how could I write a re-implementation of random.choice which would work same on python 2.6 and python 3.2? It is not only matter of unit tests, but I would really welcome if the results on both versions produce the same results. Two approaches

Re: iterating over list with one mising value

2012-02-07 Thread Rick Johnson
On Feb 7, 8:46 am, Dave Angel d...@davea.name wrote: On 02/07/2012 07:27 AM, Sammy Danso wrote: Hello experts, I am having trouble accessing the content of my list. my list content has 2-pair value with the exception of one which has single value. here is an example  ['a', 1, 'b', 1, 'c',

Re: iterating over list with one mising value

2012-02-07 Thread Ian Kelly
On Tue, Feb 7, 2012 at 5:27 AM, Sammy Danso samdans...@yahoo.com wrote: Hello experts, I am having trouble accessing the content of my list. my list content has 2-pair value with the exception of one which has single value. here is an example  ['a', 1, 'b', 1, 'c', 3, 'd'] I am unable to

Re: iterating over list with one mising value

2012-02-07 Thread Tim Chase
On 02/07/12 09:34, Rick Johnson wrote: On Feb 7, 8:46 am, Dave Angeld...@davea.name wrote: On 02/07/2012 07:27 AM, Sammy Danso wrote: Hello experts, I am having trouble accessing the content of my list. my list content has 2-pair value with the exception of one which has single value. here

Re: how to read serial stream of data [newbie]

2012-02-07 Thread Antti J Ylikoski
On 7.2.2012 16:02, Peter Otten wrote: Antti J Ylikoski wrote: On 7.2.2012 14:13, Jean Dupont wrote: ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1, rtscts=0, dsrdtr=0, timeout=15) In Python, if you want to continue the source line into the next text line, you must end the

Reading files in from the proper directory

2012-02-07 Thread SMac2347
Hello. I am admittedly a Python novice, and ran into some trouble trying to write a program that will pull multiple excel files all into one file, with each file on a different sheet. I am confident most of the code is correct, as the program runs without any errors and I found the base of it

Re: Reading files in from the proper directory

2012-02-07 Thread Dave Angel
On 02/07/2012 01:14 PM, smac2...@comcast.net wrote: Hello. I am admittedly a Python novice, and ran into some trouble trying to write a program that will pull multiple excel files all into one file, with each file on a different sheet. I am confident most of the code is correct, as the program

keeping twisted and wxPython in sync

2012-02-07 Thread Littlefield, Tyler
Hello all: I have a couple questions. First, is there a way to know if connectTCP failed? I am writing a client with Twisted and would like to be able to notify the user if they couldn't connect. Second, I set the protocol on my factory after a connection has been made. So when I send my user

Re: Reading files in from the proper directory

2012-02-07 Thread Peter Otten
smac2...@comcast.net wrote: Hello. I am admittedly a Python novice, and ran into some trouble trying to write a program that will pull multiple excel files all into one file, with each file on a different sheet. I am confident most of the code is correct, as the program runs without any

Re: Reading files in from the proper directory

2012-02-07 Thread SMac2347
Thanks for the responses. Below is the code I have thus far. while the program runs glitch-free, it only results in the printing of the message: NOTE *** No xls files in C:/Documents and Settings/smacdon/. as specified by my code. Any idea as to why it might be unable to find the .xls documents

Re: convert perl-script for voltcraft voltmeter to python [newbie]

2012-02-07 Thread Jean Dupont
On 7 feb, 05:21, Terry Reedy tjre...@udel.edu wrote: On 2/2/2012 3:57 PM, Jean Dupont wrote: I'd like to read in the output of a voltcraft vc960 voltmeter connected to a usb-port. I found the perl-script below but I'd like to accomplish the same with python: The script below is for an

Re: Reading files in from the proper directory

2012-02-07 Thread SMac2347
On Feb 7, 1:40 pm, Dave Angel d...@davea.name wrote: On 02/07/2012 01:14 PM, smac2...@comcast.net wrote: Hello. I am admittedly a Python novice, and ran into some trouble trying to write a program that will pull multiple excel files all into one file, with each file on a different sheet.

Re: Reading files in from the proper directory

2012-02-07 Thread John Gordon
In f3f576e8-e608-4348-b6ee-fe775d9d1...@x19g2000yqh.googlegroups.com smac2...@comcast.net writes: Am I correct in thinking that I need to change the current working directory to this folder in order for Python to read in these files, then generate my output? You don't have to do it that way,

Re: convert perl-script for voltcraft voltmeter to python [newbie]

2012-02-07 Thread Rick Johnson
On Feb 7, 11:44 am, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: [...]         Well, since readline() pretty much by definition wants a line-ending character before returning, it obviously won't work. (Side comment: readline() isn't even shown as part of the basic Serial class -- it is in

Re: Reading files in from the proper directory

2012-02-07 Thread John Gordon
In 9bfb3e39-2bc6-4399-90cc-1c53aa062...@h6g2000yqk.googlegroups.com smac2...@comcast.net writes: xls_files = glob.glob(in_dir + *.xls) You may want to put a directory separator character in between the directory name and the filename glob pattern. -- John Gordon A is

Re: Reading files in from the proper directory

2012-02-07 Thread Peter Otten
smac2...@comcast.net wrote: xls_files = glob.glob(in_dir + *.xls) Try changing that to pattern = os.path.join(in_dir, *.xls) xls_files = glob.glob(pattern) os.path.join() inserts a (back)slash between directory and filename if necessary. merge_xls(in_dir=C:\Documents and

Re: iterating over list with one mising value

2012-02-07 Thread Sammy Danso
Hi Expert, Thanks for your responses and help. thought I should provide more information for clarity.   Please find the error message below for more information      for (key, value) in wordFreq2: ValueError: need more than 1 value to unpack   this is a sample of my data   ['with', 3,

Re: iterating over list with one mising value

2012-02-07 Thread Dave Angel
On 02/07/2012 03:23 PM, Sammy Danso wrote: Please don't top-post. It hopelessly mixes responses out of order. Hi Expert, Thanks for your responses and help. thought I should provide more information for clarity. Please find the error message below for more information for (key, value)

Re: iterating over list with one mising value

2012-02-07 Thread MRAB
On 07/02/2012 20:23, Sammy Danso wrote: Hi Expert, Thanks for your responses and help. thought I should provide more information for clarity. Please find the error message below for more information for (key, value) in wordFreq2: ValueError: need more than 1 value to unpack this is a

Re: iterating over list with one mising value

2012-02-07 Thread Aaron France
On 02/07/2012 10:13 PM, MRAB wrote: On 07/02/2012 20:23, Sammy Danso wrote: Hi Expert, Thanks for your responses and help. thought I should provide more information for clarity. Please find the error message below for more information for (key, value) in wordFreq2: ValueError: need more

Re: iterating over list with one mising value

2012-02-07 Thread Tim Chase
Thanks for your responses and help. thought I should provide more information for clarity. It sounds like you want the grouper function as defined here: http://docs.python.org/library/itertools.html#recipes which does what you describe. -tkc --

Re: iterating over list with one mising value

2012-02-07 Thread Arnaud Delobelle
On 7 February 2012 20:23, Sammy Danso samdans...@yahoo.com wrote: Hi Expert, Thanks for your responses and help. thought I should provide more information for clarity. Please don't top-post. Please find the error message below for more information    for (key, value) in wordFreq2:

Re: iterating over list with one mising value

2012-02-07 Thread Chris Angelico
On Wed, Feb 8, 2012 at 8:25 AM, Aaron France a.france.mailingli...@gmail.com wrote: for i in range(0, len(x), 2):    print x[i-1], x[i] I think you want x[i], x[i+1] here, but in any case, this is a fairly standard non-Python way to do this sort of thing. There's a variety of more Pythonic ways

Re: iterating over list with one mising value

2012-02-07 Thread Mark Lawrence
On 07/02/2012 21:25, Aaron France wrote: for i in range(0, len(x), 2): print x[i-1], x[i] x = ['with', 3, 'which', 1, 'were', 2, 'well', 1, 'water', 1, 'was', 4, 'two', 1, 'to', 2, 'through', 1, 'thlabour', 1, 'these', 1, 'theat', 1, 'the', 8, 'tetanus', 1, 'started', 1, 'size', 1,

Re: iterating over list with one mising value

2012-02-07 Thread Aaron France
On 02/07/2012 11:09 PM, Mark Lawrence wrote: On 07/02/2012 21:25, Aaron France wrote: for i in range(0, len(x), 2): print x[i-1], x[i] x = ['with', 3, 'which', 1, 'were', 2, 'well', 1, 'water', 1, 'was', 4, 'two', 1, 'to', 2, 'through', 1, 'thlabour', 1, 'these', 1, 'theat', 1, 'the', 8,

Re: iterating over list with one mising value

2012-02-07 Thread Arnaud Delobelle
On 7 February 2012 22:57, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Tue, 7 Feb 2012 21:37:20 +, Arnaud Delobelle arno...@gmail.com wrote: Your list is flat so the unpacking fails.  For it to work, you need your list to be of the form:    wordFreq2 = [('with', 3), ('which', 1),

Re: PythonWin debugger holds onto global logging objects too long

2012-02-07 Thread Mark Hammond
On 7/02/2012 9:48 PM, Jean-Michel Pichavant wrote: Vinay Sajip wrote: On Jan 24, 2:52 pm, Rob Richardson rdrichard...@rad-con.com wrote: I use PythonWin to debug the Python scripts we write. Our scripts often use the log2pyloggingpackage. When running the scripts inside the debugger, we seem

Re: pySerial question, setting certain serial parameters [newbie]

2012-02-07 Thread Peter
On Feb 4, 11:47 pm, Jean Dupont jeandupont...@gmail.com wrote: I need to set the following options I found in a Perl-script in Python for serial communication with a device (a voltmeter): $port-handshake(none); $port-rts_active(0); $port-dtr_active(1); I have thus far the following  

Re: convert perl-script for voltcraft voltmeter to python [newbie]

2012-02-07 Thread Dietmar Schwertberger
Am 03.02.2012 14:11, schrieb Jean Dupont: As my request might have been too much asked, I have started doing some coding myself. I'm in doubt about the readline statement -which doesn't show anything received- as the meter sends continuously streams of 11 bytes Is there a way to just monitor

Cycle around a sequence

2012-02-07 Thread Mark Lawrence
I'm looking at a way of cycling around a sequence i.e. starting at some given location in the middle of a sequence and running to the end before coming back to the beginning and running to the start place. About the best I could come up with is the following, any better ideas for some

Re: keeping twisted and wxPython in sync

2012-02-07 Thread crow
On Feb 8, 2:41 am, Littlefield, Tyler ty...@tysdomain.com wrote: Hello all: I have a couple questions. First, is there a way to know if connectTCP failed? I am writing a client with Twisted and would like to be able to notify the user if they couldn't connect. Second, I set the protocol on my

Re: keeping twisted and wxPython in sync

2012-02-07 Thread crow
On Feb 8, 2:41 am, Littlefield, Tyler ty...@tysdomain.com wrote: Hello all: I have a couple questions. First, is there a way to know if connectTCP failed? I am writing a client with Twisted and would like to be able to notify the user if they couldn't connect. Second, I set the protocol on my

Re: Cycle around a sequence

2012-02-07 Thread Terry Reedy
On 2/7/2012 8:10 PM, Mark Lawrence wrote: I'm looking at a way of cycling around a sequence i.e. starting at some given location in the middle of a sequence and running to the end before coming back to the beginning and running to the start place. About the best I could come up with is the

when to use import statements in the header, when to use import statements in the blocks where they are used?

2012-02-07 Thread Lei Cheng
Hi all, In a py file, when to use import statements in the header, when to use import statements in the blocks where they are used? What are the best practices? Thanks! Pat -- http://mail.python.org/mailman/listinfo/python-list

Re: iterating over list with one mising value

2012-02-07 Thread Steven D'Aprano
(Apologies in advance for breaking threading, but the original post in this thread doesn't appear for me.) On Tue, Feb 7, 2012 at 5:27 AM, Sammy Danso samdans...@yahoo.com wrote: Hello experts, I am having trouble accessing the content of my list. my list content has 2-pair value with the

Re: Cycle around a sequence

2012-02-07 Thread Christoph Hansen
Mark Lawrence schrieb: I'm looking at a way of cycling around a sequence i.e. starting at some given location in the middle of a sequence and running to the end before coming back to the beginning and running to the start place. About the best I could come up with is the following, any better

Re: when to use import statements in the header, when to use import statements in the blocks where they are used?

2012-02-07 Thread Dave Angel
On 02/07/2012 08:48 PM, Lei Cheng wrote: Hi all, In a py file, when to use import statements in the header, when to use import statements in the blocks where they are used? What are the best practices? Thanks! Pat Best practice is to put all the imports at the beginning of the

Re: when to use import statements in the header, when to use import statements in the blocks where they are used?

2012-02-07 Thread Patto
Dave Angel: On Wed, Feb 8, 2012 at 10:05 AM, Dave Angel d...@davea.name wrote: On 02/07/2012 08:48 PM, Lei Cheng wrote: Hi all, In a py file, when to use import statements in the header, when to use import statements in the blocks where they are used? What are the best practices?

Re: when to use import statements in the header, when to use import statements in the blocks where they are used?

2012-02-07 Thread Dave Angel
You forgot to include the list in your reply, so I'm forwarding it for you. One way you could have done it was to reply-all. On 02/07/2012 09:32 PM, Patto wrote: Dave Angel: On Wed, Feb 8, 2012 at 10:05 AM, Dave Angeld...@davea.name wrote: On 02/07/2012 08:48 PM, Lei Cheng wrote: Hi

Re: python file synchronization

2012-02-07 Thread Cameron Simpson
On 07Feb2012 01:33, silentnights silentqu...@gmail.com wrote: | I have the following problem, I have an appliance (A) which generates | records and write them into file (X), the appliance is accessible | throw ftp from a server (B). I have another central server (C) that | runs a Django App, that

turbogears 1

2012-02-07 Thread anon hung
Hey guys, someone asked me to maintain his old website, trouble is, it's in python, more trouble is it's in turbogears 1. I'm not fluent in python but all right, I can learn, but this turbogears thing.. First of all, is it still alive? Looks like turbogears 2 is the most recent version

Re: turbogears 1

2012-02-07 Thread Roy Smith
In article mailman.5533.1328678241.27778.python-l...@python.org, anon hung anonh...@gmail.com wrote: Hey guys, someone asked me to maintain his old website, trouble is, it's in python, more trouble is it's in turbogears 1. I'm not fluent in python but all right, I can learn, but this

Re: PyCrypto builds neither with MSVC nor MinGW

2012-02-07 Thread Alec Taylor
Thanks all for your replies. I have now installed MSVC8 and YASM. I was able to successfully run configure.bat and make.bat (including make.bat check). However, I'm unsure what to do about install, since there is no install arg. Do I copy it across to my VC\bin folder, or does it need it's own

Re: turbogears 1

2012-02-07 Thread Steven D'Aprano
On Wed, 08 Feb 2012 00:33:55 -0500, Roy Smith wrote: In article mailman.5533.1328678241.27778.python-l...@python.org, anon hung anonh...@gmail.com wrote: Hey guys, someone asked me to maintain his old website, trouble is, it's in python, more trouble is it's in turbogears 1. I'm not fluent

Issue with Scrapping Data from a webpage- Noob Question

2012-02-07 Thread abhijeet mahagaonkar
Hi Fellow Pythoners, I'm trying to collect table data from an authenticated webpage (Tool) to which I have access. I will have the required data after 'click'ing a submit button on the tool homepage. When I inspect the submit button i see form action=/Tool/index.do method=POST Thus the tool's

Re: python file synchronization

2012-02-07 Thread Sherif Shehab Aldin
Hi Cameron, Thanks a lot for your help, I just forgot to state that the FTP server is not under my command, I can't control how the file grow, or how the records are added, I can only login to It, copy the whole file. The reason why I am parsing the file and trying to get the diffs between the

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-02-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13742 ___ ___

[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2012-02-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: This behaviour came up recently when implementing os.fwalk() [1]. There are problems with all 3 possible approaches (list as dirs, list as files, don't list at all) when followlinks is False. Since all alternatives are potentially surprising,

[issue13960] Handling of broken comments in HTMLParser

2012-02-07 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: html.parser fails to handle the following invalid comments: ! foo ! bar -- ! -- baz -- The attached patch follows the HTML5 specs [0], and parses them as bogus comments. Currently the patch fixes the problem only when strict=False, but

[issue6210] Exception Chaining missing method for suppressing context

2012-02-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6210 ___ ___ Python-bugs-list

[issue13609] Add os.get_terminal_size() function

2012-02-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: All right, I've found some time to grep conversation related to COLUMNS/ROWS environment/shell variable. +1 for low level system wrapper to get current stdout console size -1 on COLUMN/ROWS business logic My user story 001: I need

[issue13609] Add os.get_terminal_size() function

2012-02-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: +1 for low level system wrapper to get current stdout console size So use os.get_terminal_size() -1 on COLUMN/ROWS business logic So don't use shutil.get_terminal_size(), but it looks like their is a use case for this feature.

[issue6210] Exception Chaining missing method for suppressing context

2012-02-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I started work on integrating this into 3.3 this evening, but ran into too many issues to finish it. Problems found and fixed: - traceback.py displayed the wrong exception (test added and impl fixed) Additional changes: - eliminated duplicate

[issue13961] Have importlib use os.replace()

2012-02-07 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: The new os.replace() function should be used by importlib. -- components: Library (Lib) messages: 152810 nosy: brett.cannon priority: normal severity: normal status: open title: Have importlib use os.replace() versions: Python 3.3

[issue13703] Hash collision security issue

2012-02-07 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: On Mon, 2012-02-06 at 23:00 +, Marc-Andre Lemburg wrote: Marc-Andre Lemburg m...@egenix.com added the comment: Alex Gaynor wrote: There's no need to cover any container types, because if their constituent types are securely hashable

[issue13962] multiple lib and include directories on Linux

2012-02-07 Thread Ray
New submission from Ray rpq...@hotmail.com: I'm opening a new ticket based on ticket 13511 (http://bugs.python.org/issue13511) since the last one was closed. Read ronaldoussoren's post in Ticket 13511 in case you're still confused. There is no way to specify multiple lib and include

[issue13963] dev guide has no mention of mechanics of patch review

2012-02-07 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: I've been waiting for patch review of my work on http://bugs.python.org/issue13703 only to discover that people *have* been reviewing it. It turns out that next to some of the patches in the issue tracker there's a review link, which

[issue13963] dev guide has no mention of mechanics of patch review

2012-02-07 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13963 ___ ___

[issue13963] dev guide has no mention of mechanics of patch review

2012-02-07 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13963 ___ ___

[issue6210] Exception Chaining missing method for suppressing context

2012-02-07 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda draghu...@gmail.com: -- nosy: -draghuram ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6210 ___ ___

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-07 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: On Mon, Feb 6, 2012 at 17:06, STINNER Victor rep...@bugs.python.org wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Is there a benchmark for import? How slow is importlib? :) importlib.test.benchmark --

[issue10287] NNTP authentication should check capabilities

2012-02-07 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10287 ___ ___ Python-bugs-list mailing list

[issue13962] multiple lib and include directories on Linux

2012-02-07 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: hmm, issue 13511 is perfectly closed as invalid. Ray you misunderstood meaning on configure flags --XXXdir. You properly found that LDFLAGS is what is required bug correct for headers is CPPFLAGS . Is ./configure --help not clear

[issue13846] Add time.monotonic() function

2012-02-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 376ce937823c by Victor Stinner in branch 'default': Issue #13846: Add time.monotonic(), monotonic clock. http://hg.python.org/cpython/rev/376ce937823c -- nosy: +python-dev

[issue13846] Add time.monotonic() function

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13846 ___

[issue13845] Use GetSystemTimeAsFileTime() to get a resolution of 100 ns on Windows

2012-02-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bee7943d38c6 by Victor Stinner in branch 'default': Issue #13845: time.time() now uses GetSystemTimeAsFileTime() instead of ftime() http://hg.python.org/cpython/rev/bee7943d38c6 -- nosy: +python-dev

[issue13845] Use GetSystemTimeAsFileTime() to get a resolution of 100 ns on Windows

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13845 ___

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Updated patch (version 11). -- Added file: http://bugs.python.org/file24445/time_decimal-11.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13882

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24404/time_decimal-9.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13882 ___

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file24407/time_decimal-10.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13882 ___

[issue13619] Add a new codec: locale, the current locale encoding

2012-02-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: + encoding = locale.getpreferredencoding() It should be locale.getpreferredencoding(False). Fixed in patch version 3. -- Added file: http://bugs.python.org/file24446/locale_encoding-3.patch

[issue13619] Add a new codec: locale, the current locale encoding

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file23985/locale_encoding.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13619 ___

[issue13619] Add a new codec: locale, the current locale encoding

2012-02-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file23987/locale_encoding-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13619 ___

[issue13550] Rewrite logging hack of the threading module

2012-02-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Alright, Nick agreed on python-dev to remove the logging hack. You mean removing complelty debug logging from the threading module? Or just to simplify the code to decide if we should log or not? --

[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2012-02-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The code was fixed in importlib. I don't think that this borderline case should be documented anywhere, so I close this issue. -- resolution: - wont fix status: open - closed ___ Python

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: bench_startup.py: short script to compute the best startup time (I wrote the original script for the hash collision issue, #13703). Result on my PC: - original: 22.2 ms - importlib: 27.9 ms So importlib adds an overhead of 25.7%

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: os.stat().st_birthtime should depend on the timestamp argument. A timestamp optional argument should also be added to os.wait3() and os.wait4() for the utime and stime fields of the rusage tuple. --

[issue13550] Rewrite logging hack of the threading module

2012-02-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I believe Charles-François was referring to this message: http://mail.python.org/pipermail/python-dev/2012-January/115372.html We shouldn't be encumbering threading *all the time* with stuff that might be useful sometimes. Adding selective

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Python 3.3 has 4 new functions to set the access and modification time of a file (only os.utime() was already present in Python 3.2). New functions taking timestamp with a nanonsecond resolution use a tuple of int because the

[issue13882] PEP 410: Use decimal.Decimal type for timestamps

2012-02-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I created the issue #13964 to cleanup the API of os.*utime*() functions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13882

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13964 ___

[issue13965] Windows 64-bit installer actually installing a 32-bit version

2012-02-07 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: On the downloader page, http://www.python.org/download/releases/2.7.2/ there is an entry •Windows X86-64 MSI Installer that links to http://www.python.org/ftp/python/2.7.2/python-2.7.2.amd64.msi Running this installer succeeds

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d297f9b10c64 by Victor Stinner in branch 'default': Issue #13964: Write tests for new os.*utime*() functions http://hg.python.org/cpython/rev/d297f9b10c64 -- nosy: +python-dev

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Current API: Oh, I forgot: - futimesat(dirfd, path[, (atime, mtime)]) This API looks fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13964

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c6e9c4d18b36 by Victor Stinner in branch 'default': Issue #13964: Test also os.futimesat() http://hg.python.org/cpython/rev/c6e9c4d18b36 -- ___ Python tracker

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-07 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I suggest to support the following functions: futimes(fd, (atime, mtime), flags=0) utimes(path, (atime, mtime), flags=0) utimesat(dirfd, path, (atime, mtime), flags=0) And deprecate other functions already present in

  1   2   >