NEW htmlgen package released!

2010-09-04 Thread Sunjay Varma
Hello everyone! I have just released my new package htmlgen! Loosely based off of the old HTMLgen package, my scripts are very reusable and super extendible! I posted a bunch of details and information on my blog: http://blog.sunjay-varma.com/348/python-htmlgen-python-2-73-only/ For a demo of

Re: Financial time series data

2010-09-04 Thread Trent Nelson
On 03-Sep-10 7:29 AM, Virgil Stokes wrote: A more direct question on accessing stock information from Yahoo. First, use your browser to go to: http://finance.yahoo.com/q/cp?s=%5EGSPC+Components Now, you see the first 50 rows of a 500 row table of information on SP 500 index. You can LM click

Re: Financial time series data

2010-09-04 Thread Trent Nelson
On 03-Sep-10 1:48 PM, Frederic Rentsch wrote: And do let us know if you get an answer from Yahoo. Hacks like this are unreliable. They fail almost certainly the next time a page gets redesigned, which can be any time. Indeed -- see my other post (regarding ystockquote.py). There's a CSV

Re: Queue cleanup

2010-09-04 Thread Paul Rubin
Dennis Lee Bieber wlfr...@ix.netcom.com writes: Not to mention having to ensure that one finds ALL the references to the object so that they can be updated to the new address! Somehow I don't see a C compiler being smart enough to find intermediary pointer We're not talking about C

Re: Financial time series data

2010-09-04 Thread Frederic Rentsch
On Fri, 2010-09-03 at 19:58 +0200, Virgil Stokes wrote: import urllib2 import re def get_SP500_symbolsX (): symbols = [] lsttradestr = re.compile('Last Trade:') k = 0 for page in range(10): url = 'http://finance.yahoo.com/q/cp?s=%5EGSPCc='+str(page) print

Re: Financial time series data

2010-09-04 Thread Toomore
I write some object for Taiwan Stock ... http://github.com/toomore/goristock But still dev ... On Sep 3, 1:12 am, Virgil Stokes v...@it.uu.se wrote:   Has anyone written code or worked with Python software for downloading financial time series data (e.g. from Yahoo financial)? If yes,  would

Re: IDLE / Black frame on Mac

2010-09-04 Thread Kristoffer Føllesdal
On Sep 4, 5:19 am, Ned Deily n...@acm.org wrote: In article ce4a8c32-29dc-41dd-8606-6a7a4ea88...@g18g2000vbn.googlegroups.com,  Kristoffer Follesdal kkf...@gmail.com wrote: *Forgot to tell that I am using a Mac with Snow Leopard. Which version of Python 3.1.2?  From the python.org

pyla: python little algorithms

2010-09-04 Thread atronoush
Dear all, pyla stands for Python Little Algorithm is a project in pure Python and includes simple, easy to use, yet powerful libraries for - 2D/3D plotting using Gnuplot - Matrix/Vector operations - ODE solvers - Optimization and nonlinear algebraic equation solvers - ... Homepage: pyla home

Re: Queue cleanup

2010-09-04 Thread Aahz
[gc] In article 7x7hj2kyd6@ruckus.brouhaha.com, Paul Rubin no.em...@nospam.invalid wrote: A minimal naive implementation indeed doubles the memory requirements, but from a Python perspective where every integer takes something like 24 bytes already, even that doesn't seem so terrible.

Re: String substitution VS proper mysql escaping

2010-09-04 Thread Aahz
In article bc70e108-f2ca-47b5-93d4-6911dfc3b...@q22g2000yqm.googlegroups.com, =?UTF-8?B?zp3Or866zr/Pgg==?= nikos.the.gr...@gmail.com wrote: After all () used to define tuples and [] usedd to define lists. Why commas? No, () does *not* define tuples, except for the empty tuple. The comma

State Machines in Python

2010-09-04 Thread Jack Keegan
Hi girls guys, Just joined the group. I'm new to Python but been picking it up pretty easy. I love it! I'm hoping to use it to make a controlling application for an experiment. Basically I want to use it to interface with some data acquisition (DAQ) hardware to accept incoming signals and

Re: State Machines in Python

2010-09-04 Thread D'Arcy J.M. Cain
On Sat, 4 Sep 2010 14:36:38 +0100 Jack Keegan whatsjacksem...@gmail.com wrote: Just joined the group. I'm new to Python but been picking it up pretty easy. Welcome aboard. As there is no switch statement in Python, I've been looking around for a good implementation. Most of the algorithms

Re: State Machines in Python

2010-09-04 Thread Stefan Behnel
Jack Keegan, 04.09.2010 15:36: Hi girls guys, Just joined the group. I'm new to Python but been picking it up pretty easy. I love it! Welcome to the group. I'm hoping to use it to make a controlling application for an experiment. Basically I want to use it to interface with some data

Re: State Machines in Python

2010-09-04 Thread Stef Mientki
On 04-09-2010 15:36, Jack Keegan wrote: Hi girls guys, Just joined the group. I'm new to Python but been picking it up pretty easy. I love it! I'm hoping to use it to make a controlling application for an experiment. Basically I want to use it to interface with some data acquisition

Re: Installation problem: Python 2.6.6 (32-Bit) on Windows 7 (32-Bit)

2010-09-04 Thread Martin v. Loewis
Am 01.09.2010 21:18, schrieb Cappy2112: Has anyone else had problems running the msi for Python 2.6.6 on Windows 7 Professional? I specifically tested whether compile .py works before the release, and it worked fine on my machine. I suspect you have a source file on your disk that it tries to

Re: what is this kind of string: b'string' ?

2010-09-04 Thread Martin v. Loewis
Am 01.09.2010 23:32, schrieb Stef Mientki: in winpdb I see strings like this: a = b'string' a 'string' type(a) type 'str' what's the b doing in front of the string ? It's redundant. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: what is this kind of string: b'string' ?

2010-09-04 Thread Stefan Behnel
Martin v. Loewis, 04.09.2010 18:52: Am 01.09.2010 23:32, schrieb Stef Mientki: in winpdb I see strings like this: a = b'string' a 'string' type(a) type 'str' what's the b doing in front of the string ? It's redundant. Not completely. (I know that you know this, but to those who

Re: what is this kind of string: b'string' ?

2010-09-04 Thread Martin v. Loewis
Am 04.09.2010 19:27, schrieb Stefan Behnel: Martin v. Loewis, 04.09.2010 18:52: Am 01.09.2010 23:32, schrieb Stef Mientki: in winpdb I see strings like this: a = b'string' a 'string' type(a) type 'str' what's the b doing in front of the string ? It's redundant. Not completely.

Re: State Machines in Python

2010-09-04 Thread Roy Smith
In article mailman.443.1283608243.29448.python-l...@python.org, D'Arcy J.M. Cain da...@druid.net wrote: On Sat, 4 Sep 2010 14:36:38 +0100 Jack Keegan whatsjacksem...@gmail.com wrote: Just joined the group. I'm new to Python but been picking it up pretty easy. Welcome aboard. As there

Re: State Machines in Python

2010-09-04 Thread MRAB
On 04/09/2010 18:58, Roy Smith wrote: In articlemailman.443.1283608243.29448.python-l...@python.org, D'Arcy J.M. Cainda...@druid.net wrote: On Sat, 4 Sep 2010 14:36:38 +0100 Jack Keeganwhatsjacksem...@gmail.com wrote: Just joined the group. I'm new to Python but been picking it up pretty

Error in Following python program

2010-09-04 Thread Pramod
#/usr/bin/python from numpy import matrix n=input('Enter matrix range') fr=open('mat.txt','r') print ('Enter elements into the matrix\n') a=matrix([[input()for j in range(n)] for i in range(n)]) for i in range(n): for j in range(n): print a[i][j] print '\n' When i

Re: State Machines in Python

2010-09-04 Thread D'Arcy J.M. Cain
On Sat, 04 Sep 2010 13:58:00 -0400 Roy Smith r...@panix.com wrote: while True: state = state(data) This is the pattern I've always used. Simple and effective for any state machine which is small enough to code by hand. I generally have my state methods return (next_state, output)

Re: State Machines in Python

2010-09-04 Thread D'Arcy J.M. Cain
On Sat, 04 Sep 2010 19:13:28 +0100 MRAB pyt...@mrabarnett.plus.com wrote: I suppose that if they are that similar then you could generate the code from a list or table of the states. They generally aren't as simple as the little example script that I cobbled together. -- D'Arcy J.M. Cain

Re: Error in Following python program

2010-09-04 Thread MRAB
On 04/09/2010 19:28, Pramod wrote: #/usr/bin/python from numpy import matrix n=input('Enter matrix range') fr=open('mat.txt','r') print ('Enter elements into the matrix\n') a=matrix([[input()for j in range(n)] for i in range(n)]) for i in range(n): for j in range(n):

Re: State Machines in Python

2010-09-04 Thread Stefan Behnel
D'Arcy J.M. Cain, 04.09.2010 20:30: On Sat, 04 Sep 2010 13:58:00 -0400 Roy Smithr...@panix.com wrote: while True: state = state(data) This is the pattern I've always used. Simple and effective for any state machine which is small enough to code by hand. I generally have my state

Re: Error in Following python program

2010-09-04 Thread Peter Otten
Pramod wrote: #/usr/bin/python from numpy import matrix n=input('Enter matrix range') fr=open('mat.txt','r') print ('Enter elements into the matrix\n') a=matrix([[input()for j in range(n)] for i in range(n)]) for i in range(n): for j in range(n): print a[i][j]

Re: State Machines in Python

2010-09-04 Thread Roy Smith
In article mailman.448.1283625070.29448.python-l...@python.org, D'Arcy J.M. Cain da...@druid.net wrote: On Sat, 04 Sep 2010 13:58:00 -0400 Roy Smith r...@panix.com wrote: while True: state = state(data) This is the pattern I've always used. Simple and effective for any state

Re: Queue cleanup

2010-09-04 Thread Paul Rubin
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes: That reinforces my point, about how easy it was to check the correctness of the code. In this case one simple fix, like this ... would render the code watertight. See how easy it is? Well, no, it's irrelevant how easy it is to fix

Re: Queue cleanup

2010-09-04 Thread John Nagle
On 8/28/2010 5:42 AM, Aahz wrote: In article4c78572c$0$28655$c3e8...@news.astraweb.com, Steven D'Apranost...@remove-this-cybersource.com.au wrote: On Fri, 27 Aug 2010 09:16:52 -0700, Aahz wrote: In articlemailman.1967.1281549328.1673.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com

the script is failing without a useful report

2010-09-04 Thread nvictor
hi all, need your help. i get a traceback that doesn't tell much about the actual error in my code: Traceback (most recent call last): File .\eightqueens.py, line 32, in module generate(n, x, col, up, down) File .\eightqueens.py, line 17, in generate else: generate(n, x, col, up,

Re: the script is failing without a useful report

2010-09-04 Thread MRAB
On 04/09/2010 22:22, nvictor wrote: hi all, need your help. i get a traceback that doesn't tell much about the actual error in my code: Traceback (most recent call last): File .\eightqueens.py, line 32, inmodule generate(n, x, col, up, down) File .\eightqueens.py, line 17, in

Re: the script is failing without a useful report

2010-09-04 Thread nvictor
thank you so much. -- http://mail.python.org/mailman/listinfo/python-list

Re: Speed-up for loops

2010-09-04 Thread Gabriele Lanaro
Maybe for the simple sum you can just use the sum builtin: python -m timeit -s 'sum((10,)*1)' 1000 loops, best of 3: 0.0985 usec per loop About the loop in general it's a good practice to use list comprehension and generator expressions 2010/9/2 Michael Kreim mich...@perfect-kreim.de

Question about Reading Files

2010-09-04 Thread genxtech
Hello. I am still really new to python and I have a project where I am trying to use the data files from another program and write a new program with new user interface and all. My first step was to open one of the files in 'rb' mode and print the contents, but I am unfamiliar with the format.

Re: Question about Reading Files

2010-09-04 Thread genxtech
I forgot to mention that the output was the first 100 bytes of the output -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about Reading Files

2010-09-04 Thread Mats Rauhala
On 2010-09-04, genxtech jrmy.l...@gmail.com wrote: Hello. I am still really new to python and I have a project where I am trying to use the data files from another program and write a new program with new user interface and all. My first step was to open one of the files in 'rb' mode and

Re: Question about Reading Files

2010-09-04 Thread MRAB
On 05/09/2010 00:04, genxtech wrote: Hello. I am still really new to python and I have a project where I am trying to use the data files from another program and write a new program with new user interface and all. My first step was to open one of the files in 'rb' mode and print the contents,

Re: Question about Reading Files

2010-09-04 Thread genxtech
On Sep 4, 7:23 pm, Mats Rauhala mats.rauh...@gmail.com wrote: On 2010-09-04, genxtech jrmy.l...@gmail.com wrote: Hello.  I am still really new to python and I have a project where I am trying to use the data files from another program and write a new program with new user interface and

Re: Queue cleanup

2010-09-04 Thread Lawrence D'Oliveiro
In message mailman.434.1283568372.29448.python-l...@python.org, MRAB wrote: Lawrence D'Oliveirol...@geek-central.gen.new_zealand writes: Wonder why Sun’s licence explicitly forbade its use in danger-critical areas like nuclear power plants and the like, then? I thought it was just that

Re: Queue cleanup

2010-09-04 Thread Lawrence D'Oliveiro
In message 4c82b097$0$1661$742ec...@news.sonic.net, John Nagle wrote: Personally, I'd like to have reference counting only, an enforced prohibition on loops (backpointers must be weak pointers), RAII, and reliably ordered finalization. Is there a cheap way of checking at runtime for

Re: Queue cleanup

2010-09-04 Thread Lawrence D'Oliveiro
In message 7x7hj2kyd6@ruckus.brouhaha.com, Paul Rubin wrote: Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes: In message 7xmxs2uez1@ruckus.brouhaha.com, Paul Rubin wrote: GC's for large systems generally don't free (or even examine) individual garbage objects. They

Re: Queue cleanup

2010-09-04 Thread Paul Rubin
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand writes: A minimal naive implementation indeed doubles the memory requirements, but from a Python perspective where every integer takes something like 24 bytes already, even that doesn't seem so terrible. Doubling 24 is less terrible than

Network and socket programming in python

2010-09-04 Thread shivram
i want to learn network and socket programming but i would like to do this in python.Reason behind this is that python is very simple and the only language i know . anybody can suggest me which book should i pick. the book should have following specification-- 1)not tedious to follow 2)lots of

Re: Queue cleanup

2010-09-04 Thread John Nagle
On 9/4/2010 6:44 PM, Lawrence D'Oliveiro wrote: In message4c82b097$0$1661$742ec...@news.sonic.net, John Nagle wrote: Personally, I'd like to have reference counting only, an enforced prohibition on loops (backpointers must be weak pointers), RAII, and reliably ordered finalization. Is

Subclassing by monkey-patching

2010-09-04 Thread Jason
I'm attempting to implement a recursive directory monitor based on the GIO file monitor in PyGTK. My approach is basically to take the gio.FileMonitor returned by the method gio.File.monitor_directory(), connect to the changed signal, and add or remove monitors on create/ delete events for

Re: Speed-up for loops

2010-09-04 Thread David Cournapeau
On Thu, Sep 2, 2010 at 7:02 PM, Michael Kreim mich...@perfect-kreim.de wrote: Hi, I was comparing the speed of a simple loop program between Matlab and Python. My Codes: $ cat addition.py imax = 10 a = 0 for i in xrange(imax):    a = a + 10 print a $ cat addition.m imax =

[issue8734] msvcrt get_osfhandle crash on bad FD

2010-09-04 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: I guess it should, shouldn't it ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8734 ___

[issue8401] Strange behavior of bytearray slice assignment

2010-09-04 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8401 ___ ___ Python-bugs-list

[issue8597] build out-of-line asm on Windows

2010-09-04 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The patches are very similar. This one always chooses ml64 on a 64 bit platform, even when a user has executed `vcvarsall x86`. The patch in #7546 attempts to honor the environment and has unit tests, so I'm making #7546 the superseder.

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-09-04 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Actually the square bracket form is how `range()` is documented so there is some limited precedent in that regard. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9421

[issue7546] msvc9compiler.py: add .asm extension

2010-09-04 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Removed file: http://bugs.python.org/file18681/vcasm2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7546 ___

[issue7546] msvc9compiler.py: add .asm extension

2010-09-04 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Minor cleanups in vcasm2.patch. -- Added file: http://bugs.python.org/file18742/vcasm2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7546

[issue7546] msvc9compiler.py: add .asm extension

2010-09-04 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Removed file: http://bugs.python.org/file18742/vcasm2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7546 ___

[issue7546] msvc9compiler.py: add .asm extension

2010-09-04 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Further cleanup (sorry for the mail volume!). -- Added file: http://bugs.python.org/file18743/vcasm2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7546

[issue7546] msvc9compiler.py: add .asm extension

2010-09-04 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +brian.curtin, sneves, zooko versions: -Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7546 ___

[issue7546] msvc9compiler.py: add .asm extension

2010-09-04 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: (distutils2 bugs have all versions set) -- versions: +Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7546 ___

[issue9768] IDLE / Black frame in active window

2010-09-04 Thread Kristoffer F
Kristoffer F kkf...@gmail.com added the comment: Hi I installed python from the python.org installer. I have now taken a screen shot, with two IDLE windows open. So you can se that it is only the active window that get the frame. I see that you have also responded to my posts at

[issue9768] IDLE / Black frame in active window

2010-09-04 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The black line border in the screen shot is the indication of which IDLE window currently has the keyboard focus. Note that if you click on the IDLE shell window or open and select other text windows, the black line border appears around the

[issue9771] add an optional default argument to tokenize.detect_encoding

2010-09-04 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: The function tokenize.detect_encoding() detects the encoding either in the coding cookie or in the BOM. If no encoding is found, it returns 'utf-8': When result is 'utf-8', there's no (easy) way to know if the encoding was really

[issue9731] Add ABCMeta.has_methods and tests that use it

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

[issue9772] test_pep277 failure on AMD64 debian parallel buildbot

2010-09-04 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: This failure occurs on AMD64 debian parallel buildbot. It is not the same failure as OS X Tiger buildbot (issue 8423). == FAIL: test_listdir

[issue9773] test_tarfile fails because of inaccurate mtime on AMD64 debian parallel buildbot

2010-09-04 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: Occurs repeatedly on AMD64 debian parallel. == FAIL: test_extractall (test.test_tarfile.MiscReadTest)

[issue9774] test_smtpnet fails with [110] Connection timed out on AMD64 debian parallel buildbot

2010-09-04 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: Repeated failure on AMD64 debian parallel buildbot. [329/346] test_smtpnet test test_smtpnet failed -- Traceback (most recent call last): File

[issue9732] Addition of getattr_static for inspect module

2010-09-04 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9732 ___ ___

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-04 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Other C files converted from latin-1 to utf-8 with r84485. -- components: +Unicode nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9598

[issue7962] Demo and Tools need to be tested and pruned

2010-09-04 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- dependencies: +add an optional default argument to tokenize.detect_encoding ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7962 ___

[issue9764] Tools/buildbot/external.bat should download and built tix

2010-09-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Unfortunately, Tix just won't build that easily. Patches are welcome. It may be worthwhile to rely on build_tkinter.py exclusively (but that often doesn't work, either). -- ___ Python tracker

[issue9765] tcl-8 vs tcl8

2010-09-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This patch is incorrect. The naming of the directories as in msi.py is correct; the naming in Tools/buildbot is slightly inappropriate. Tix relies on the specific directory names referred-to by msi.py, hence I use a different in my

[issue1303434] Please include pdb with windows distribution

2010-09-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the patch, committed as r84487. I'll try it out with the next 3.2 alpha release. Leaving this open for possible backports. -- ___ Python tracker rep...@bugs.python.org

[issue1303434] Please include pdb with windows distribution

2010-09-04 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1303434 ___ ___

[issue1552880] [Python2] Use utf-8 in the import machinery on Windows to support unicode paths

2010-09-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As this was never meant for inclusion in Python, and apparently confuses people, I'm closing it - it couldn't go into 2.x, anyway. -- resolution: - out of date status: open - closed ___ Python

[issue9745] MSVC .pdb files not created by python 2.7 distutils

2010-09-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: See the subversion history. It was added in r14344, which supposedly originated from Thomas Heller, so he should know. Thomas, what's the reason for suppressing PDB files? -- nosy: +loewis, theller

[issue9719] build_ssl.py: cannot find 'asm64/*.*'

2010-09-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: http://svn.python.org/projects/external/openssl-1.0.0a/asm64/ Please follow the instructions in PCbuild/readme.txt carefully. Thanks. -- resolution: - invalid status: open - closed ___ Python

[issue9775] Multiprocessing, logging and atexit play not well together

2010-09-04 Thread Armin Ronacher
New submission from Armin Ronacher armin.ronac...@active-4.com: It's hard to say what exactly is to blame here, but I will try to outline the problem as good as I can and try to track it down: A library of mine is using a Thread that is getting entries from a multiprocessing.Queue

[issue9775] Multiprocessing, logging and atexit play not well together

2010-09-04 Thread Armin Ronacher
Changes by Armin Ronacher armin.ronac...@active-4.com: -- keywords: +patch Added file: http://bugs.python.org/file18746/9775-fix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9775 ___

[issue9758] ioctl mutable buffer copying problem

2010-09-04 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: The attached patch fixes this. -- keywords: +patch nosy: +bbrazil Added file: http://bugs.python.org/file18747/ioctl_1024_mutable.patch ___ Python tracker rep...@bugs.python.org

[issue9758] ioctl mutable buffer copying problem

2010-09-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Do you think there is a simple, generic way to test for this (see Lib/test/test_ioctl.py)? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9758

[issue9747] os.getresgid() documentation mentions user ids, not group ids

2010-09-04 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: This mistake is also in the docstring, I've attached a path to fix both. -- keywords: +patch nosy: +bbrazil Added file: http://bugs.python.org/file18748/getresgid_group_not_user.patch ___ Python

[issue9776] Inconsistent spacing in fcntl.fcntl docstring

2010-09-04 Thread Brian Brazil
New submission from Brian Brazil brian.bra...@gmail.com: The spacing in fcntl.fcntl's docstring isn't consistent, the attached patch fixes this. -- assignee: d...@python components: Documentation files: fcntl_docstring_spacing.patch keywords: patch messages: 115582 nosy: bbrazil,

[issue9762] build failures

2010-09-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oh, I just noticed that many other modules weren't built either: _ssl, _hashlib, _sqlite, _tkinter. Apparently setup.py cannot find the relevant bits anymore. Bisecting shows that this happened with the PEP 3149 commit. -- nosy:

[issue9758] ioctl mutable buffer copying problem

2010-09-04 Thread Brian Brazil
Brian Brazil brian.bra...@gmail.com added the comment: I'd already had a look around, and my knowledge of ioctls is not sufficient to answer that question but I suspect the answer is no. Does someone know of a ioctl that works across platforms, doesn't require specific hardware or privileges

[issue9775] Multiprocessing, logging and atexit play not well together

2010-09-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: IIUC, you are proposing to fix Python 2.6 only. Please understand that this branch is closed for bug fixes (unless they are security issues, which this issue is not). As for 2.7: please try explaining again what specific issue the patch is

[issue9762] build failures

2010-09-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've committed a workaround in r84488. Feel free to improve. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9762 ___

[issue9762] build failures

2010-09-04 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: -pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9762 ___ ___ Python-bugs-list mailing

[issue9775] Multiprocessing, logging and atexit play not well together

2010-09-04 Thread Armin Ronacher
Changes by Armin Ronacher armin.ronac...@active-4.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9775 ___ ___

[issue9775] Multiprocessing, logging and atexit play not well together

2010-09-04 Thread Armin Ronacher
Armin Ronacher armin.ronac...@active-4.com added the comment: This also affects 2.7, I just worked on 2.6 because this is where I encountered the issue. As for 2.7: please try explaining again what specific issue the patch is meant to resolve? What monkey-patching are you referring to? What

[issue9217] 2to3 crashes with some doctests

2010-09-04 Thread Jeremy Thurgood
Jeremy Thurgood fir...@gmail.com added the comment: This seems to be fixed in 3.2 and the 2.7 maintenance branch, but here's a (one-liner) patch for people who want to fix their local installations. -- keywords: +patch nosy: +jerith Added file:

[issue9732] Addition of getattr_static for inspect module

2010-09-04 Thread Guido van Rossum
Changes by Guido van Rossum gu...@python.org: -- nosy: -gvanrossum ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9732 ___ ___ Python-bugs-list

[issue7736] os.listdir hangs since opendir() and closedir() do not release GIL

2010-09-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r84489 (3.x), r84490 (3.1) and r84491 (2.7). Thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: -Python 2.6 ___ Python tracker

[issue9775] Multiprocessing, logging and atexit play not well together

2010-09-04 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As mentioned above I cannot provide more information because I am unable to find the root of the issue. All I know is that if the atexit handler is executed after the module globals were set to None it fails to shutdown properly. Ok -

[issue9775] Multiprocessing, logging and atexit play not well together

2010-09-04 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9775 ___

[issue9581] PosixGroupsTester fails as root

2010-09-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've committed modified patches for 3.x, 3.1 and 2.7. Thanks again George. -- assignee: ronaldoussoren - nobody nosy: +nobody resolution: - fixed stage: needs patch - committed/rejected status: open - closed versions: -Python 2.6

[issue1100562] deepcopying listlike and dictlike objects

2010-09-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r84495 (3.x), r84498 (3.1), r84499 (2.7). Thank you! -- nosy: +pitrou resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue9777] test_socket.GeneralModuleTests.test_idna should require the network resource

2010-09-04 Thread David Watson
New submission from David Watson bai...@users.sourceforge.net: This test requires network access as it tries to resolve a domain name at python.org. Patch attached. -- components: Tests files: idna-test-resource.diff keywords: patch messages: 115593 nosy: baikie priority: normal

[issue9717] operator module - in place operators documentation

2010-09-04 Thread Arnaud Delobelle
Arnaud Delobelle arno...@googlemail.com added the comment: Terry: I agree that augmented assignement should be described better in the language reference. I guess that would warrant opening another issue? However I tend to think that the term in-place operation is a good one. BTW: - the

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2010-09-04 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: With the patches applied except linux-pass-unterminated.diff, I get the following test failure: == ERROR: testMaxPathLen (test.test_socket.TestLinuxPathLen)

[issue9766] warnings has onceregistry and once_registry

2010-09-04 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: r84500 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9766 ___

[issue9775] Multiprocessing, logging and atexit play not well together

2010-09-04 Thread Armin Ronacher
Armin Ronacher armin.ronac...@active-4.com added the comment: Put the stuff from an older version back in with a monkeypatch and you will see the issue again. There are certainly many more ways to trigger that issue, that was just the easiest. I will try to create a simpler test case.

[issue9717] operator module - in place operators documentation

2010-09-04 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Since Raymond has grabbed this, I will let him decide on its scope. I agree with sectioning the operator doc and intended to suggest that. The term 'in-place operation' is fine when accurate. The term 'in-place operator', which is what you

[issue837046] pyport.h redeclares gethostname() if SOLARIS is defined

2010-09-04 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: No reply to msg114296. -- resolution: - out of date status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue837046

  1   2   >