In article <4e0cad83$0$6583$9b4e6...@newsspool3.arcor-online.net>,
Wolfgang Meiners wrote:
> when i type the following code under python3, version 3.2 using osx 10.6.8:
[...]
You might want to ask your question on the Tkinter list and/or possibly
the Tcl Mac list.
http://mail.python.org/mailma
After about 10 months, there is a new release of pyparsing, version
1.5.6. This release contains some small enhancements, some bugfixes,
and some new examples.
Most notably, this release includes the first public release of the
Verilog parser. I have tired of restricting this parser for
commerci
The dir() function is designed for interactive use, inspecting objects for
the names of attributes and methods.
Here is an enhanced version that allows you to pass a glob to filter the
names you see:
http://code.activestate.com/recipes/54-enhancing-dir-with-globs/
E.g. instead of this:
>>>
steve+comp.lang.pyt...@pearwood.info wrote:
> I have a script running under Python 2.5 that needs to modify files in
> place. I want to do this with some level of assurance that I won't lose
> data. E.g. this is not safe:
> [snip]
Thanks to all who replied, your comments were helpful.
--
Stev
On Thu, Jun 30, 2011 at 12:02 AM, Thomas Guettler wrote:
> On 30.06.2011 03:24, Thomas 'PointedEars' Lahn wrote:
>> Andrew Berg wrote:
>> Therefore, however, I can tell you that the mailing list to Usenet gateway
>> is seriously borked, as missing References header fields are not generated
>> by
In <15d8f853-7c87-427b-8f21-e8537bde8...@x12g2000yql.googlegroups.com> Siboniso
Shangase writes:
> i want to type this data in a text file it the same the diffrence is
> the number that only increase and i canot write this up myself since
> it up to 5000 samples
> Data\ja1.wav Data\ja1.mfc
> .
Okay, so I've refactored those except WindowsError blocks into calls to
a function and fixed the os.devnull bug, but I still can't get the
triple chain working. I added calls to ffmpeg_proc.stdout.close() and
sox_proc.stdout.close(), but I really am not sure where to put them. The
following code wo
On 01/07/2011 01:19, Siboniso Shangase wrote:
Hi
i m very new to python and i need hepl plz!!
i want to type this data in a text file it the same the diffrence is
the number that only increase and i canot write this up myself since
it up to 5000 samples
Data\ja1.wav Data\ja1.mfc
Data\ja2.wav Da
import os
lst = []
for x in xrange(1, 5001):
lst.append(r"Data\ma{0}.wav Data\ma{0}.mfc".format(x))
lst.insert(x-1, r"Data\ja{0}.wav Data\ja{0}.mfc".format(x))
with open("filename.txt", "w") as fd:
sep = os.linesep
fd.write(sep.join(lst))
On Thu, Jun 30, 2011 at 5:19 PM, Sibonis
Hi
i m very new to python and i need hepl plz!!
i want to type this data in a text file it the same the diffrence is
the number that only increase and i canot write this up myself since
it up to 5000 samples
Data\ja1.wav Data\ja1.mfc
Data\ja2.wav Data\ja2.mfc
Data\ja3.wav Data\ja3.mfc
Data\ja4.wa
Dennis Lee Bieber wrote:
> And that was a direct cut&paste from a command window; showing it
> had slept for some 90 seconds before I killed it.
Interesting. Just tried a 2.7.2 on a 32-bit MS Windows with following
results:
1. sleep(5 - 2**32) sleeps for a few seconds
2. sleep(-1) sleeps much lo
Thomas Guettler wrote:
> On 30.06.2011 03:24, Thomas 'PointedEars' Lahn wrote:
>> Andrew Berg wrote:
>>> […]
>>
>> As for your question in the Subject, I do not know since I am reading the
>> newsgroup.
>>
>> Therefore, however, I can tell you that the mailing list to Usenet
>> gateway is seriou
On 6/2/2011 5:11 AM, hisan wrote:
Please let me know how can i import my sql data of multiple rows and
columns into an excel sheet.
here i need to adjust the column width based on the on the data that
sits into the column
You're asking in the wrong forum. Try the MySQL forum or an
Excel for
On Thu, Jun 30, 2011 at 11:18 AM, MRAB wrote:
>> And that was a direct cut&paste from a command window; showing it
>> had slept for some 90 seconds before I killed it.
>>
> Looks like it hasn't changed even in WinXP, Python 3.2.
It gets cast to an unsigned long, so I expect sleep(-1) on Wi
On Fri, Jul 1, 2011 at 3:18 AM, MRAB wrote:
> Looks like it hasn't changed even in WinXP, Python 3.2.
>
> Is IOError what you'd expect, anyway?
>
> What should it do in Python 3.2? Exception or max(seconds, 0)?
The obvious thing for it to do is to go back in time and resume
executing that many se
On 30/06/2011 17:42, Dennis Lee Bieber wrote:
On Thu, 30 Jun 2011 10:37:34 +0200, Ulrich Eckhardt
declaimed the following in
gmane.comp.python.general:
"time.sleep()" takes a floating point number, so an underflow like for
fixed-size integers in C shouldn't happen. What puzzles me here is you
Hi all,
when i type the following code under python3, version 3.2 using osx 10.6.8:
##
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
from tkinter import *
from tkinter.ttk import *
from tkinter.font import Font
root = Tk()
tv = Treevi
something to test?
--
http://mail.python.org/mailman/listinfo/python-list
2011/6/30 Stefan Behnel :
>> If there are too many hoops to jump through to get a reasonable
>> solution working for 2.[567], I might as well go back to
>> Py_InitModule() and static variables. It's somewhat ugly, but it
>> works.
>
> Py2.x has a PyCObject, basically the predecessor to PyCapsule. W
Daniel Franke, 30.06.2011 13:37:
2011/6/30 Stefan Behnel:
There's a PEP for Py3 that enables this through a general framework. In
general, to achieve this, you may want to allocate the module content
(including types etc.) on the heap rather than statically.
http://www.python.org/dev/peps/pep-3
Am 30.06.2011 12:07 schrieb Daniel Franke:
Here, of course, the functions PyObjectFromRawPointer(void*) and void*
PyRawPointerFromPyObject(PyObject*) are missing. Is there anything
like this in the Python C-API? If not, how could it be implemented?
You could implement it as a separate class wh
Hi Stefan.
2011/6/30 Stefan Behnel :
> Don't miss out taking a look at Cython, just in case it's going to be a
> non-trivial project.
I think this work still qualifies as trivial enough in this regard.
But thanks for the hint!
> There's a PEP for Py3 that enables this through a general framewor
Daniel Franke, 30.06.2011 12:07:
For a project I implemented a extension module in C. Given the
excellent documentation everything was straightforward and works fine
so far.
Don't miss out taking a look at Cython, just in case it's going to be a
non-trivial project.
Up until now I kept loc
Greetings All
I have a usb midi controller (uc-33e) and I have a working python
script see below. I would like to be able to control the variables of
the python script using my usb controller does anyone have an example
of this? I would like to use the "midi learn" function to
automatically map a
Hi all.
For a project I implemented a extension module in C. Given the
excellent documentation everything was straightforward and works fine
so far.
Up until now I kept local state in global static variables, but would
like to change this to pass a pointer to a state structure around. The
Py_Init
Dennis Lee Bieber wrote:
> But if the function itself runs for longer than 10 seconds, there
> will be a major problem, as the sleep apparently takes the argument as
> unsigned, and a negative number is a very big sleep!
"time.sleep()" takes a floating point number, so an underflow like for
fixed
Lie Ryan wrote:
> Simplicity is one, using @decor() means you have at least three-level
> nested functions, which means the code is likely to be very huge and
> perhaps unnecessarily.
>
If you don't like the extra level of function nesting that you get from
returning a decorator factory instea
Any Python 3 planned ?
franck
In article
,
AlienBaby wrote:
> On Jun 23, 2:07 pm, Jon Dowdall
> wrote:
> > Hi All,
> >
> > I'm pleased to announce that PyPad (Python environment for iOS) 2.7.1
> > Update 4 is now available in the iTunes App Store. New in this version
> > is the ability t
Hi All,
I'm pleased to announce a new release of mortar_rdb.
This package ties together SQLAlchemy, sqlalchemy-migrate and
the component architecture to make it easy to develop projects
using SQLAlchemy through their complete lifecycle.
Changes in this release were:
- Pass None as the default
Peter Otten wrote:
> collections.namedtuple is a convenient struct replacement -- if you don't
> mind that it is immutable.
Thanks you and also Steven for mentioning this, it is an even better
replacement for what I had in mind!
Uli
--
Domino Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsg
But if the function itself runs for longer than 10 seconds, there
will be a major problem, as the sleep apparently takes the argument as
unsigned, and a negative number is a very big sleep!
Launch each call in a separate thread. If the calls are independent,
this could be a solution.
On 30.06.2011 03:24, Thomas 'PointedEars' Lahn wrote:
> Andrew Berg wrote:
>
>> […]
>
> As for your question in the Subject, I do not know since I am reading the
> newsgroup.
>
> Therefore, however, I can tell you that the mailing list to Usenet gateway
> is seriously borked, as missing Refere
32 matches
Mail list logo