On 10May2012 13:13, Chris Angelico wrote:
| The azet.sk MTA is behaving badly wrt bounced messages from
| python-list. Instead of sending them to the list software (where
| they'll result in the subscription being suspended), they're being
| sent to the original sender of the message. [...]
| I've
pa@see.signature.invalid (Pierre Asselin) writes:
> Hi. Started using python a few months back, still settling on my
> style.
Welcome! Please consider your part in the Python community, and found
your style on PEP 8 http://www.python.org/dev/peps/pep-0008/>, the
Style Guide for Python Code.
> I
The azet.sk MTA is behaving badly wrt bounced messages from
python-list. Instead of sending them to the list software (where
they'll result in the subscription being suspended), they're being
sent to the original sender of the message. As a result, every message
sent to the list triggers a useless
Hi. Started using python a few months back, still settling on my style.
I write docstrings and I use "pydoc mymodule" to refresh my memory.
Problem: if I just docstring my classes/methods/functions the
output of pydoc more or less works as a reference manual, but if
I get sidetracked for even a
On Thu, May 10, 2012 at 12:12 PM, Cameron Simpson wrote:
> Patents _are_ IP. You may mean "copyright", also IP. Copyright goes to
> the author, except that most companies require employees to assign it to
> the company, including the Berne Convention "moral rights" (such as
> attribution).
Oh. Th
On 10May2012 10:27, Chris Angelico wrote:
| On Thu, May 10, 2012 at 10:12 AM, Mark Lawrence
wrote:
| > Google was a right PITA but eventually I found this
| >
http://www.legalcentre.co.uk/intellectual-property/guide/intellectual-property-and-employees/
| > It appears to contradict what you've
On 10/05/2012 01:27, Chris Angelico wrote:
On Thu, May 10, 2012 at 10:12 AM, Mark Lawrence wrote:
Google was a right PITA but eventually I found this
http://www.legalcentre.co.uk/intellectual-property/guide/intellectual-property-and-employees/
It appears to contradict what you've said above,
On Thu, May 10, 2012 at 10:12 AM, Mark Lawrence wrote:
> Google was a right PITA but eventually I found this
> http://www.legalcentre.co.uk/intellectual-property/guide/intellectual-property-and-employees/
> It appears to contradict what you've said above, or have I misread it? E.g
> "Under the (
On 10/05/2012 00:19, Adrian Hunt wrote:
Hi there Mark
There has been a few that I know of but going back quite a long time... Soon
after I got my qualifications, a small company called Merlio, not only did the
court case get passed in UK courts by it went to the European court too... I
wasn
Hi there Mark
There has been a few that I know of but going back quite a long time... Soon
after I got my qualifications, a small company called Merlio, not only did the
court case get passed in UK courts by it went to the European court too... I
wasn't directly involved but I know the EU cou
Hi Ian,
Well there you have me... You release code under a license, you bound by it
even if later you think better of it... Seller be ware!!
> From: ian.g.ke...@gmail.com
> Date: Wed, 9 May 2012 16:59:00 -0600
> Subject: Re: Open Source: you're doing it wrong - the Pyjamas hijack
> To: cyb
On Wed, May 9, 2012 at 4:30 PM, Adrian Hunt wrote:
>
> Hi ya,
>
> Not to be confrontative but just because a project is open-source, it
> doesn't mean IP is open too!! The original idea is still property of the
> originator... It just has the global community adding their own IP and
> fixes. This
On 09/05/2012 23:30, Adrian Hunt wrote:
In the UK at least, a developers IP cannot be hijacked by a company contract.
If you write some code while working for X, then X has free usage of that IP
and may restrict you from using the same IP for company Y, but only for a
limited time (ie 5 years
Hi ya,
Not to be confrontative but just because a project is open-source, it doesn't
mean IP is open too!! The original idea is still property of the originator...
It just has the global community adding their own IP and fixes. This is a core
of corporate contracts ensuring that a developers
On Wed, May 9, 2012 at 8:35 AM, Florian Lindner wrote:
> Hello,
>
> how can I achieve a behavior like tee in Python?
>
> * execute an application
> * leave the output to stdout and stderr untouched
> * but capture both and save it to a file (resp. file-like object)
>
> I have this code
>
> proc =
Every time discussion about __del__ had come up I had thought to myself,
"yeah, but I'm being careful to not have reference loops -- /my/ classes
are okay."
and then...
BITE!
But hey, it wasn't a reference loop that got me, it was data being
written back to disk after the disk portion had c
On 05/09/2012 01:16 PM, hamiljf wrote:
I suppose this is the nearest thread... editor configuration and all.
I'm using PyDev in a MyEclipse environment and it works fine, except for one
tiny but horrible niggle.
The editor function I can't find is block indent/exdent... like you can
block commen
On 05/09/2012 03:26 PM, Tobiah wrote:
>> I don't think you can really do this accurately enough to get good
>> sound, but the basic mechanism is time.sleep(t) which takes a floating
>> point argument. That turns into the appropriate microsleep, I think.
> I think the time would have to come from a
You've had some good responses already, but here're two more:
1) Easiest would be to use setvbuf in the child process, if you have access
to its source. This allows you to force line-oriented buffering.
2) stdio likes to buffer to tty/pty's in a line-oriented manner, and other
things in a block-
On 09/05/2012 12:02, anth...@xtfx.me wrote:
Hello C Anthony,
I am an pyjs user and introduced the project as one of the fundamental
parts of a new application that is now core of a company of a reasonable
size (30+), customers include several companies in the top 10 of largest
IT infrastruct
On Wed, May 9, 2012 at 2:34 PM, Ian Kelly wrote:
> On Wed, May 9, 2012 at 1:39 PM, Russell E. Owen wrote:
>> I was wondering. I override __new__ (and __init__) to print messages and
>> was quite surprised to only see __new__being called when the object was
>> first created, not when it was being
On 09/05/2012 20:38, Javier Novoa C. wrote:
Hi,
I am using time.strptime method as follows:
I receive an input string, representing some date in the following
format:
%d%m%Y
However, the day part may be a single digit or two, depending on
magnitude.
For example:
'10052012' will be parsed as
On Wed, May 9, 2012 at 1:39 PM, Russell E. Owen wrote:
> I was wondering. I override __new__ (and __init__) to print messages and
> was quite surprised to only see __new__being called when the object was
> first created, not when it was being unpickled. But maybe there's
> something funny about my
On 2012-05-09, Jorgen Grahn wrote:
>
> You'd have to read the strptime(3) manual page (it's a Unix function,
> imported straight into Python, I'm sure). Judging from a quick read
> it's not intended to support things like these. I'm surprised it
> doesn't parse your last example to (10, 52, 12) an
David Fanning writes:
> Whoops! A link might be good, I guess. I've been gone so
> long I've forgotten how to do this:
>
>http://www.idlcoyote.com/store
Whoops! Sorry again. I just realized I was posting this to
my NEW newsgroup. How embarrassing... :-(
David
--
David Fanning, Ph.D.
Fan
David Fanning writes:
>
> Folks,
>
> My wife says that as long as I'm retired, she wants the
> bedroom back, so I've put all my books I have in storage
> there on sale!
>
> I only have four copies left of IDL Programming Techniques,
> 2nd Edition, and I don't plan to print any more of those.
On Wed, 2012-05-09, Javier Novoa C. wrote:
> Hi,
>
> I am using time.strptime method as follows:
>
> I receive an input string, representing some date in the following
> format:
>
> %d%m%Y
>
> However, the day part may be a single digit or two, depending on
> magnitude.
>
> For example:
>
> '100520
Folks,
My wife says that as long as I'm retired, she wants the
bedroom back, so I've put all my books I have in storage
there on sale!
I only have four copies left of IDL Programming Techniques,
2nd Edition, and I don't plan to print any more of those.
If you want one, this may be your last chan
On May 9, 2012, at 12:38 PM, "Javier Novoa C."
wrote:
> Hi,
>
> I am using time.strptime method as follows:
>
> I receive an input string, representing some date in the following
> format:
>
> %d%m%Y
>
> However, the day part may be a single digit or two, depending on
> magnitude.
>
> For e
Hi,
I am using time.strptime method as follows:
I receive an input string, representing some date in the following
format:
%d%m%Y
However, the day part may be a single digit or two, depending on
magnitude.
For example:
'10052012' will be parsed as day 10, month 5, year 2012
Again:
'8052012'
In article
,
Ian Kelly wrote:
> On Tue, May 8, 2012 at 1:19 PM, Russell E. Owen wrote:
> > In article ,
> > "Russell E. Owen" wrote:
> >
> >> What is the sequence of calls when unpickling a class with __setstate__?
>
> I believe it just calls object.__new__ followed by
> yourclass.__setstat
> I don't think you can really do this accurately enough to get good
> sound, but the basic mechanism is time.sleep(t) which takes a floating
> point argument. That turns into the appropriate microsleep, I think.
I think the time would have to come from a hardware clock.
--
http://mail.python.or
On Wed, May 9, 2012 at 2:45 PM, Temia Eszteri wrote:
> And you know what? Leighton was right to threaten legal action. What
> you did was not only in violation of his IP, but also multiple data
> theft laws.
As far as copyright goes, it was open source, so he's allowed to
continue making modifica
If the support you have from the other contributors is anywhere near
what you claim it is, I may as well be kissing Pyjamas goodbye.
Doubt it, though - this whole post reeks of vagueities and doublespeak
garbage. Too many undefined "whos". I'll wait until Leighton gets the
reins back.
And you kno
Tobiah writes:
> I'd like to send MIDI events from python to another
> program. I'd like advice as to how to accurately
> time the events. I'll have a list of floating point
> start times in seconds for the events, and I'd like to send them
> off as close to the correct time as possible.
I don'
On May 9, 2012, at 11:35 AM, Florian Lindner wrote:
> Hello,
>
> how can I achieve a behavior like tee in Python?
>
> * execute an application
> * leave the output to stdout and stderr untouched
> * but capture both and save it to a file (resp. file-like object)
>
> I have this code
>
> proc =
On 05/09/2012 01:52 PM, Rob Richardson wrote:
> I am trying to work with a Python script someone else wrote. The script
> includes the line
> from Level3Utils import *
>
> I need to look at the functions that are included in that import. In an
> effort to identify exactly which file is be
On 12-05-09 01:52 PM, Rob Richardson wrote:
I am trying to work with a Python script someone else wrote. The script
includes the line
from Level3Utils import *
I need to look at the functions that are included in that import. In an effort
to identify exactly which file is being used,
On 5/9/12 6:52 PM, Rob Richardson wrote:
I am trying to work with a Python script someone else wrote. The script
includes the line
from Level3Utils import *
I need to look at the functions that are included in that import. In an effort
to identify exactly which file is being used, I
I am trying to work with a Python script someone else wrote. The script
includes the line
from Level3Utils import *
I need to look at the functions that are included in that import. In an effort
to identify exactly which file is being used, I renamed the Level3Utils.py and
Level3Utils
> I'd also appreciate suggestions and pointers to a
> suitable python MIDI library, and maybe an outline
> of what must be done to get the MIDI events to the other program's MIDI in.
Mark Wirt's MidiUtil is a nice library for MIDI. It doesn't do exactly what you
want (it generates MIDI files) bu
I don't know the details of how Kontakt works, but you can try pygame.midi:
pygame.midi - is a portmidi wrapper orginally based on the pyportmidi wrapper.
Also pygame.music can play midi files. Can get input from midi devices and can
output to midi devices. For osx, linux and windows. New with p
On 05/09/2012 09:13 AM, Dave Angel wrote:
> On 05/09/2012 11:52 AM, Tobiah wrote:
>> I'd like to send MIDI events from python to another
>> program. I'd like advice as to how to accurately
>> time the events. I'll have a list of floating point
>> start times in seconds for the events, and I'd lik
On Wed, May 9, 2012 at 11:35 AM, Florian Lindner wrote:
> Hello,
>
> how can I achieve a behavior like tee in Python?
>
> * execute an application
> * leave the output to stdout and stderr untouched
> * but capture both and save it to a file (resp. file-like object)
>
> I have this code
>
> proc =
On 05/09/2012 11:35 AM, Florian Lindner wrote:
> Hello,
>
> how can I achieve a behavior like tee in Python?
>
> * execute an application
> * leave the output to stdout and stderr untouched
> * but capture both and save it to a file (resp. file-like object)
>
> I have this code
>
> proc = subproces
On 05/09/2012 11:52 AM, Tobiah wrote:
> I'd like to send MIDI events from python to another
> program. I'd like advice as to how to accurately
> time the events. I'll have a list of floating point
> start times in seconds for the events, and I'd like to send them
> off as close to the correct tim
I'd like to send MIDI events from python to another
program. I'd like advice as to how to accurately
time the events. I'll have a list of floating point
start times in seconds for the events, and I'd like to send them
off as close to the correct time as possible.
I'd also appreciate suggestions
Hello,
how can I achieve a behavior like tee in Python?
* execute an application
* leave the output to stdout and stderr untouched
* but capture both and save it to a file (resp. file-like object)
I have this code
proc = subprocess.Popen(shlex.split(cmd), stdout = subprocess.PIPE,
stderr=subpro
> the original goal was to purchase a domain and fork --
> i made this very clear in my notes -- `uxpy.net`. however, the most
> respectable member of the commit IMO convinced me otherwise.
(I'm a total outsider, never used pyjs.)
Anthony, you never explained what the reasoning behind the advice
kenk wrote:
Hi,
I've got a server process written in C++ running on Unix machine.
On the same box I'd like to run multiple Python scripts that will
communicate with this server.
Can you please suggest what would be best was to achieve this ?
Kind regards and thanks in advance!
M.
xmlrpc sh
John Gordon wrote:
I'm trying to come up with a scheme for organizing exceptions in
my application.
Currently, I'm using a base class which knows how to look up the text
of a specific error in a database table, keyed on the error class name.
The base class looks like this:
class ApplicationExc
It's also quite ironic that the initial complaining started from how
the domain name www.pyjs.org is not available only pyjs.org is. At the
same time the Rebel Chief's listed domain name on github, see
https://github.com/xtfxme, gives you a server not found:
http://the.xtfx.me/ :)
On 5/9/12, ant
I suppose this is the nearest thread... editor configuration and all.
I'm using PyDev in a MyEclipse environment and it works fine, except for one
tiny but horrible niggle.
The editor function I can't find is block indent/exdent... like you can
block comment/uncomment it would be really handy to b
I have a bunch of objects of the same type. Each object has a version
attribute and this refers to source code that was used to make the object.
SouceCode is maintained in separate files. eg.
myclass_01.py, myclass_02.py, myclass_03.py, myclass_04.py ..
During object instantiaton, i would like to
On Tuesday, May 8, 2012 4:10:13 AM UTC-5, james hedley wrote:
> Agreed with pretty much all of that. It's third-world politics, lurching from
> one dictator to another. Risinger seems to have banned all discussion of the
> subject from the list too, I'm not posting anymore because I don't want to
Hi,
I'm not big Python user but like to keep a eye on this mailing list as there
are a few subjects that can be applied to other languages and just for general
interest (Yes, I'm a geek!!! lol)
This message thread has really shocked me: I've been a programmer for some
thirty years and yes in
On May 8, 4:05 pm, John Gordon wrote:
> I'm trying to come up with a scheme for organizing exceptions in
> my application.
>
> Currently, I'm using a base class which knows how to look up the text
> of a specific error in a database table, keyed on the error class name.
>
> The base class looks li
Sammy Danso wrote:
Hello Experts,
I am new to python and I have been trying to merge two csv files, and
upon several hours of unsuccessful attempts, I have decided to seek
for help.
the format of the file is as follows. file A has columns a, b, c and
values 1,2,3 for several rows. File B al
Am 09.05.2012 10:36, schrieb lilin Yi:
> //final_1 is a list of Identifier which I need to find corresponding
> files(four lines) in x(x is the file) and write following four lines
> in a new file.
>
> //because the order of the identifier is the same, so after I find the
> same identifier in x ,
Hi Chris
(That's 3 digits and 5 letters) Pretty easy. Do you want to
distinguish between uppercase and lowercase letters?
No i really don't care for that. I just want first three should be numbers
and rest 5 are characters.
"123aAbBc"
Can you give examples ?
-- Forwarded message ---
Emeka wrote:
Hello All,
Could one say that generator expressions and functions are Python way
of introducing Lazy concept?
Regards, \Emeka
--
/Satajanus Nig. Ltd
/
No.
--
http://mail.python.org/mailman/listinfo/python-list
On Tuesday, 8 May 2012 19:16:01 UTC+1, d.p...@gmail.com wrote:
> folks
> hi,
> I am going to learn python for some plot issues. which book or sources, do
> you recommend please?
> Cheers,
> Dave
I started with Dive Into Python. It's getting old now but for me it really
catches the spirit of P
On 09/05/2012 09:36, lilin Yi wrote:
//final_1 is a list of Identifier which I need to find corresponding
files(four lines) in x(x is the file) and write following four lines
in a new file.
//because the order of the identifier is the same, so after I find the
same identifier in x , the next ti
Albert writes:
> I have a small text based python program that I want to make available
> to people who might be behind a firewall or can't install python on
> their office computers, but can access the internet.
What kind of people? I.e. is it something you're doing for work, where
the users
//final_1 is a list of Identifier which I need to find corresponding
files(four lines) in x(x is the file) and write following four lines
in a new file.
//because the order of the identifier is the same, so after I find the
same identifier in x , the next time I want to start from next index
in x
Nikhil Verma wrote:
> Hi All
>
> I want to generate a random number of 8 digits which involve 3 number and
> 5 digits.
> Like this :-
>
> def random_number():
> # do something
>
> random_number()
> "123abcde" # first 3 numbers and 5 letters after the numbers.
>
> I am able to generate the
Am 08.05.2012 22:05, schrieb John Gordon:
[...]
> class QuestionTooShortError(ApplicationException):
> """User entered a security question which is too short."""
> pass
>
> class QuestionTooLongError(ApplicationException):
> """User entered a security question which is too long."""
>
On Wed, May 9, 2012 at 5:01 PM, Nikhil Verma wrote:
> Hi All
>
> I want to generate a random number of 8 digits which involve 3 number and 5
> digits.
(That's 3 digits and 5 letters) Pretty easy. Do you want to
distinguish between uppercase and lowercase letters?
Your current random_number funct
On 09/05/2012 08:01, Nikhil Verma wrote:
Hi All
I want to generate a random number of 8 digits which involve 3 number
and 5 digits.
Like this :-
def random_number():
# do something
random_number()
"123abcde" # first 3 numbers and 5 letters after the numbers.
I am able to generate the ran
Hi All
I want to generate a random number of 8 digits which involve 3 number and 5
digits.
Like this :-
def random_number():
# do something
random_number()
"123abcde" # first 3 numbers and 5 letters after the numbers.
I am able to generate the random number 8 digit like this:-
def random_n
Thanks Arnaud
List comprehension method really works nicely.sorry for late reply.
On Mon, May 7, 2012 at 7:10 PM, Arnaud Delobelle wrote:
> On 7 May 2012 12:31, Nikhil Verma wrote:
> > HI All
> >
> > I was clearing my concepts on dictionary and stuck in this problem.
> > I have a diction
71 matches
Mail list logo