On 21Nov2011 22:18, Roy Smith wrote:
| In article
| <8832ab6d-8def-45d1-92df-baac40e1c...@t36g2000prt.googlegroups.com>,
| alex23 wrote:
| > On Nov 22, 10:25?am, Roy Smith wrote:
| > > Everytime I've worked with SQLAlchemy, I've run away screaming in the
| > > other direction. ?Sure, portabili
On Mon, 21 Nov 2011 14:44:34 +, Andrea Crotti wrote:
> With one colleague I discovered that the decorator code is always
> executed, every time I call a nested function:
"def" is a statement which is executed at runtime. Often people will talk
about "definition time" instead of "compile time
In article
<8832ab6d-8def-45d1-92df-baac40e1c...@t36g2000prt.googlegroups.com>,
alex23 wrote:
> On Nov 22, 10:25 am, Roy Smith wrote:
> > Everytime I've worked with SQLAlchemy, I've run away screaming in the
> > other direction. Sure, portability is a good thing, but at what cost?
>
> I've n
On Nov 21, 5:33 pm, sword wrote:
> My colleague asks me an interesting problem about uuid library in
> python. In multicore system with multiprocessing, is it possible to
> get the duplicated uuid with uuid1?
>
> I just check the RFC 4122, and I can't find anything about multicore
> environment. P
On Nov 20, 12:21 pm, Gelonida N wrote:
> I forgot to mention, that this is at the moment more a thought
> experiment, than a real need.
>
> At the moment I will do exactly what you suggested. I will make sure,
> that always the first import fails.
>
> But I wanted to learn more what is possible an
You may have some issues with disk reading as the drive heads move in
different ways
On Mon, Nov 21, 2011 at 8:15 AM, wrote:
> Hi All,
>
> ** **
>
> Just a question in general. Is it possible that we have opened one file
> in r+ mode ( file1.txt ).
>
> We have 2 threads,
>
> **·
On Nov 21, 10:29 am, GZ wrote:
> Hi,
>
> On Nov 21, 7:42 am, ray wrote:
>
>
>
>
>
> > I don't see how to get my data from the output. I can see the data in
> > the rows but it is mixed in with the field names. That is, the data I
> > get comes out as:
> > fieldname1 : data1 , fieldname2 : data2
"W. eWatson" wrote:
> Comments?
Please don't start multiple threads on the same issue.
--
http://mail.python.org/mailman/listinfo/python-list
Looks good I am going to plug twisted into this.
On Mon, Nov 21, 2011 at 9:49 PM, Bart Thate wrote:
> Hello world !! I released JSONBOT 0.80.3 .. the first in the 0.80 series ;]
>
> about
> ~
>
> JSONBOT is a chatbot that can take commands and react to events on the
> network it is connected
On Nov 22, 10:25 am, Roy Smith wrote:
> Everytime I've worked with SQLAlchemy, I've run away screaming in the
> other direction. Sure, portability is a good thing, but at what cost?
I've never found SQLAlchemy to be anything but sane and approachable.
It's really worth understanding _how_ it wor
Hello world !! I released JSONBOT 0.80.3 .. the first in the 0.80 series ;]
about
~
JSONBOT is a chatbot that can take commands and react to events on the network
it is connected to (IRC, XMPP, WEB
mostely). Push functionality is also provided (think RSS feeds to your IRC
channel or XMPP co
thank you, that makes sense.
I should have posted this on another list (which I have now). and the
change required is:
If your new array is x, you can use:
numpy.ma.masked_array(x, mask=mask.mask)
On Tue, Nov 22, 2011 at 11:48 AM, MRAB wrote:
> On 21/11/2011 21:42, questions anon wrote:
>
>>
On 21/11/2011 21:42, questions anon wrote:
I am trying to mask one array using another array.
I have created a masked array using
mask=MA.masked_equal(myarray,0),
that looks something like:
[1 - - 1,
1 1 - 1,
1 1 1 1,
- 1 - 1]
I have an array of values that I want to mask whe
On Tue, Nov 22, 2011 at 10:09 AM, Grant Edwards wrote:
> On 2011-11-21, Grant Edwards wrote:
>
>> Like the old joke:
>>
>> There are 10 kinds of people in the world: those who understand
>> binary numbers, and those who don't.
>
> OK, it's not _much_ of a joke, but I don't get to use it very
In article ,
Jabba Laci wrote:
> Hi,
>
> I'm reading the Essential SQLAlchemy book from O'Reilly.
Everytime I've worked with SQLAlchemy, I've run away screaming in the
other direction. Sure, portability is a good thing, but at what cost?
--
http://mail.python.org/mailman/listinfo/python-lis
On Nov 21, 12:44 am, Steven D'Aprano wrote:
> On Mon, 21 Nov 2011 13:33:21 +1100, Chris Angelico wrote:
> > What's your language's "special feature"? I like to keep track of
> > languages using a "slug" - a simple one-sentence (or less) statement of
> > when it's right to use this language above o
Oops, forgot the python version etc:
bash $ /usr/bin/env python -V
Python 2.7
On SuSE 11.4
bash $ uname -a
Linux crmartin 2.6.37.6-0.9-desktop #1 SMP PREEMPT 2011-10-19 22:33:27 +0200
x86_64 x86_64 x86_64 GNU/Linux
--
http://mail.python.org/mailman/listinfo/python-list
This is what seems like an odd bug, but in code I'd thing often-enough used it
must be the expected behavior and I just don't understand. Please,
sirs/mesdames, is this a bug?
Example code:
begin code ---
#!/usr/bin/env python
"""
@-character WTF?
"""
import sy
On 2011-11-21, Grant Edwards wrote:
> Like the old joke:
>
> There are 10 kinds of people in the world: those who understand
> binary numbers, and those who don't.
OK, it's not _much_ of a joke, but I don't get to use it very often,
so I couldn't let it go (for one thing, it only works in "p
On 2011-11-21, David Riley wrote:
> On Nov 21, 2011, at 2:29 PM, Matthew Lenz wrote:
>
>> Another thing I noticed is that the & and | appear to give the same result
>> as adding or subtracting 128 from the ordinal value. I'm assuming that
>> isn't coincidence. :)
>
> It's not, though the differ
On 11/21/2011 11:39 AM, W. eWatson wrote:
My criterion for success is that it puts IDLE as a choice for editor on
the menu produced with a right-click on a py file.
Your first criterion for success should be that IDLE runs at all, which
is apparently does not. How you run it is secondary.
R
On 11/17/2011 3:43 PM, Chris Angelico wrote:
...
If you're having issues, grab a spare computer, throw Linux on it (I
recommend Ubuntu or Debian, others will have other preferred distros),
and see if the issues remain. Or if you're having trouble with the
GUI, try things from the command line (Wi
On 11/21/2011 7:09 AM, Mel Wilson wrote:
GZ wrote:
Here is my situation. A parent object owns a list of files (or other
objects with a close() method). The close() method can sometimes fail
and raise an exception. When the parent object's close() method is
called, it needs to close down as many
I am trying to mask one array using another array.
I have created a masked array using
mask=MA.masked_equal(myarray,0),
that looks something like:
[1 - - 1,
1 1 - 1,
1 1 1 1,
- 1 - 1]
I have an array of values that I want to mask whereever my mask has a a '-'.
how do I do this?
I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
As a general rule, feel free to contact youtube-dl developers and users
at https://github.com/rg3/youtube-dl/issues/ . youtube-dl is just one
application, which happens to be written in Python.
l...@mail.python.org wrote:
> I did find my way (throu
On Nov 21, 2011, at 2:29 PM, Matthew Lenz wrote:
> Another thing I noticed is that the & and | appear to give the same result as
> adding or subtracting 128 from the ordinal value. I'm assuming that isn't
> coincidence. :)
It's not, though the difference is important. They're binary ANDs (&)
Dear my friends
I am stucked on a problem: I can't call a function of MDIParentFrame
from MDIChildFrame: myturnonmenu and mystatusbar.SetStatusText()
Anybody would be so nice for telling me my mistakes? Please do me a favor.
Thank you very much in advance.
I created 3 files contain this
On 2011-11-21, Matthew Lenz wrote:
> Another thing I noticed is that the & and | appear to give the same
> result as adding or subtracting 128 from the ordinal value.
Nope, that's only true for some values.
If we're limiting ourselves to byte values, then we're talking
modulo-256 arithmetic, so
Another thing I noticed is that the & and | appear to give the same result as
adding or subtracting 128 from the ordinal value. I'm assuming that isn't
coincidence. :)
--
http://mail.python.org/mailman/listinfo/python-list
On 11/21/11 09:16, ray wrote:
Is there a way to capture the keys outside of the for loop so
when the for loop is entered, only data is extracted?
I frequently do this for things like tweaking headers (stripping
space, normalizing case, etc because clients love to send us
messy data):
def
I released json_diff 0.9.2.
http://pypi.python.org/pypi/json_diff
json_diff is an utility comparing two JSON files and generating diff in
form of another JSON file with differences for each level of the object
in a dict
{
"_append": {},
"_remove": {},
"_update": {}
}
This is the fir
Thanks a million Oleg!
Cheers,
Daniel
On 11/20/11, Oleg Broytman wrote:
> Hello!
>
> I'm pleased to announce version 1.2.0, the first stable release of branch
> 1.2 of SQLObject.
>
>
> What is SQLObject
> =
>
> SQLObject is an object-relational mapper. Your database tables are
On Monday, November 21, 2011 01:28:16 PM David Riley did opine:
> On Nov 21, 2011, at 12:25 PM, gene heskett wrote:
> > And that is 9600 baud 8n1 on both ends. Ascii is normally 7 bit and
> > will have a low 8th bit if fed normal ascii data, so how is the 8th
> > bit getting set other than purpos
On 21/11/2011 16:52, Matthew Lenz wrote:
Ahh. Ok. So how would I go about doing that with python? I think in
perl (sorry for the naughty word) I could use the tr// (translate)
but is there a quick way to do so with python? Is it going to be
necessary to convert commands I SEND to the device or
On Nov 21, 2011, at 12:59 PM, Matthew Lenz wrote:
> Thanks, this will be a great help.
>
> Just wanted to confirm that you meant to use [ .. for x in ord_str] in the
> example conversion? Got a TypeError using the received_str.
Yes, I probably should have double-checked that. ord_str is indee
Thanks, this will be a great help.
Just wanted to confirm that you meant to use [ .. for x in ord_str] in the
example conversion? Got a TypeError using the received_str.
--
http://mail.python.org/mailman/listinfo/python-list
The point of DictReader is that it produces dicts. If you actually want a
sequence, then use an ordinary csv.reader instead.
--
http://mail.python.org/mailman/listinfo/python-list
W. eWatson wrote:
> My criterion for success is that it puts IDLE as a choice for editor
> on the menu produced with a right-click on a py file.
>
> So far no response on this has solved the problem.
>
As an alternative you might consider adding a short-cut to IDLE
to the Send To di
On Nov 21, 2011, at 12:25 PM, gene heskett wrote:
> And that is 9600 baud 8n1 on both ends. Ascii is normally 7 bit and will
> have a low 8th bit if fed normal ascii data, so how is the 8th bit getting
> set other than purposely setting 7M1 on the other end of the cable?
That's what I thought
On Monday, November 21, 2011 11:58:53 AM David Riley did opine:
> On Nov 21, 2011, at 11:28 AM, Matthew Lenz wrote:
> > Using 8N1 under minicom with this device resulted in garbled text when
> > once connected. Connection using 7M1 resulted in the correct text.
> > So there must be something els
On Nov 21, 2011, at 11:52 AM, Matthew Lenz wrote:
> Ahh. Ok. So how would I go about doing that with python? I think in perl
> (sorry for the naughty word) I could use the tr// (translate) but is there a
> quick way to do so with python? Is it going to be necessary to convert
> commands I SE
On 11/21/2011 05:11 PM, Dave Angel wrote:
You didn't mention what version of Python you're running. With Python
2, I got very different results. So I switched to Python 3.2, and I
still don't get exactly what you have.
A closure is needed if there's some non-global data outside the
functi
On 11/21/2011 04:39 PM, W. eWatson wrote:
...
I'm using Win 7 Premium.
So unless some brilliant idea appears, that leaves me with the choice
of not using Python or this suggestion... (Let's not get off into
other variations of other "Pythons" like Active..."):
Someone suggested using the mai
On 11/21/2011 10:35 AM, Andrea Crotti wrote:
On 11/21/2011 03:06 PM, Dave Angel wrote:
Your function 'nested' isn't nested, 'fun' is. What you discovered is
that a decorator is always executed, every time a nested decorated
function is defined.
You've also ust proved that it would be an incompa
In Jabba Laci
writes:
> SAWarning: Unicode column received non-unicode default value.
> Column('display_name', Unicode(255), default=''),
Perhaps it would help to supply the default value as a Unicode string
instead of a plain string?
Column('display_name', Unicode(255), default=u''),
--
Ahh. Ok. So how would I go about doing that with python? I think in perl
(sorry for the naughty word) I could use the tr// (translate) but is there a
quick way to do so with python? Is it going to be necessary to convert
commands I SEND to the device or only convert what I receive?
--
http:/
On Nov 21, 2011, at 11:28 AM, Matthew Lenz wrote:
> Using 8N1 under minicom with this device resulted in garbled text when once
> connected. Connection using 7M1 resulted in the correct text. So there must
> be something else that needs to be done in my python program correct?
Under minicom i
My criterion for success is that it puts IDLE as a choice for editor on
the menu produced with a right-click on a py file. So far no response on
this has solved the problem.
I know it sets up that way on a 2.5 and 2.4 on other PCs I have.
I know at one time it worked on my 64-bit Win 7 PC,
On Tue, Nov 22, 2011 at 3:28 AM, Matthew Lenz wrote:
> Using 8N1 under minicom with this device resulted in garbled text when once
> connected. Connection using 7M1 resulted in the correct text. So there must
> be something else that needs to be done in my python program correct?
Using 8N1 wh
Hi,
On Nov 21, 7:42 am, ray wrote:
> I don't see how to get my data from the output. I can see the data in
> the rows but it is mixed in with the field names. That is, the data I
> get comes out as:
> fieldname1 : data1 , fieldname2 : data2 , etc.
>
> import csv
> linelist=open( "C:/Users/me/li
Using 8N1 under minicom with this device resulted in garbled text when once
connected. Connection using 7M1 resulted in the correct text. So there must
be something else that needs to be done in my python program correct?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm reading the Essential SQLAlchemy book from O'Reilly. It explains
SqlAlch 0.4 but my current version is 0.7 and there are some
differences.
Here is an example from the book:
user_table = Table('tf_user', metadata,
Column('id', Integer, primary_key=True),
Column('user_name'
On 2011-11-21, Neil Cerutti wrote:
> On 2011-11-21, ray wrote:
>> Is there a way to capture the keys outside of the for loop so
>> when the for loop is entered, only data is extracted?
>
> I have sometimes done the following type of thing, since
> DictReader doesn't offer an attribute providing t
On 2011-11-21, ray wrote:
> Is there a way to capture the keys outside of the for loop so
> when the for loop is entered, only data is extracted?
I have sometimes done the following type of thing, since
DictReader doesn't offer an attribute providing the field names.
This is Python 3.3.2 code, so
On 11/21/2011 03:06 PM, Dave Angel wrote:
Your function 'nested' isn't nested, 'fun' is. What you discovered is
that a decorator is always executed, every time a nested decorated
function is defined.
You've also ust proved that it would be an incompatible change.
Doesn't that answer the que
On Nov 21, 7:59 am, Neil Cerutti wrote:
> On 2011-11-21, ray wrote:
>
> > I am trying to get the data from a CSV file into variables. I have
> > used DictReader to get the field names and I can report them. When I
> > attempt to look at the data, every row shows the combination of
> > fieldname
On 11/21/2011 09:44 AM, Andrea Crotti wrote:
With one colleague I discovered that the decorator code is always
executed, every time I call
a nested function:
def dec(fn):
print("In decorator")
def _dec():
fn()
return _dec
def nested():
@dec
def fun():
print
With one colleague I discovered that the decorator code is always
executed, every time I call
a nested function:
def dec(fn):
print("In decorator")
def _dec():
fn()
return _dec
def nested():
@dec
def fun():
print("here")
nested()
nested()
Will give:
In dec
On 11/21/2011 09:27 AM, Dave Angel wrote:
On 11/21/2011 07:13 AM, sl33k wrote:
I am printing the numbers from 1 to 100. In that, I want to display
multiples of 3,5 and of both as mulof3, mul0f5 and mulof3and5
respectively.
I am getting the output I want but I would like to format the output
t
On 11/21/2011 07:13 AM, sl33k wrote:
I am printing the numbers from 1 to 100. In that, I want to display
multiples of 3,5 and of both as mulof3, mul0f5 and mulof3and5
respectively.
I am getting the output I want but I would like to format the output
to print only 10 number per line. How do I g
2011/11/21 :
> I'm working on a project where I need to communicate with some devices via
> modem which have the possibility of using MARK and SPACE parity. These are
> not defined by POSIX and therefore are not directly supported under Linux.
>
> I've found the following discussion on the topi
I should also note that I am aware of the following discussion on the newsgroup:
https://groups.google.com/d/msg/comp.lang.python/1HyCqPSOf50/eQINFrrFKwoJ
However, I believe this refers to implementing the solution for 8M1 and 8S1.
--
http://mail.python.org/mailman/listinfo/python-list
I'm working on a project where I need to communicate with some devices via
modem which have the possibility of using MARK and SPACE parity. These are not
defined by POSIX and therefore are not directly supported under Linux.
I've found the following discussion on the topic:
http://www.lothosof
On 2011-11-21, ray wrote:
> I am trying to get the data from a CSV file into variables. I have
> used DictReader to get the field names and I can report them. When I
> attempt to look at the data, every row shows the combination of
> fieldname:data. How do I get the data out?
> linelist=open( "
I don't see how to get my data from the output. I can see the data in
the rows but it is mixed in with the field names. That is, the data I
get comes out as:
fieldname1 : data1 , fieldname2 : data2 , etc.
import csv
linelist=open( "C:/Users/me/line_list_r0.csv", "rb" )
csvReader= csv.DictReader(
I am trying to get the data from a CSV file into variables. I have
used DictReader to get the field names and I can report them. When I
attempt to look at the data, every row shows the combination of
fieldname:data. How do I get the data out?
linelist=open( "C:/Users/rjoseph/Documents/Projects/B
Good morning,
I'm planning on assembling my django templates onto mobile apps using
a JSON passing protocol, probably tunnels through HTTP.
What's available?
Thanks for all information,
Alec Taylor
--
http://mail.python.org/mailman/listinfo/python-list
Hi guys, I have created a pure python module [1] to work with
memcached in binary protocol with SASL authentication.
I need some contributors or people to discuss some idead about it,
anyone is free to contact me, any help will be appreciated.
Thank You
Jayson Reis
[1] https://github.com/jaysonsan
Hi All,
Just a question in general. Is it possible that we have opened one file in r+
mode ( file1.txt ).
We have 2 threads,
* Thread1 will continuously 'only read' the file in a loop.
* Thread2 will only update the data in the file ( say a number < 100 ).
Now thread2 has ca
Jean-Michel Pichavant wrote:
Gelonida N wrote:
I wondered whether there is any way to un-import a library, such, that
it's occupied memory and the related shared libraries are released.
My usecase is following:
success = False
try:
import lib1_version1 as lib1
import lib2_version1 a
New thread!
On Mon, Nov 21, 2011 at 11:27 PM, wrote:
> Hey Thanks. Will do that.
>
> Just a question in general. Is it possible that we have opened one file in
> r+ mode ( file1.txt ). We have 2 threads, thread1 will continuously only read
> the file in a loop. Thread2 will only update the da
Gelonida N wrote:
I wondered whether there is any way to un-import a library, such, that
it's occupied memory and the related shared libraries are released.
My usecase is following:
success = False
try:
import lib1_version1 as lib1
import lib2_version1 as lib2
success = True
exce
Hey Thanks. Will do that.
Just a question in general. Is it possible that we have opened one file in r+
mode ( file1.txt ). We have 2 threads, thread1 will continuously only read the
file in a loop. Thread2 will only update the data in the file. Now thread2 has
called other script ( written in
I am printing the numbers from 1 to 100. In that, I want to display
multiples of 3,5 and of both as mulof3, mul0f5 and mulof3and5
respectively.
I am getting the output I want but I would like to format the output
to print only 10 number per line. How do I go about doing this?
for i in range(1, 1
GZ wrote:
> Here is my situation. A parent object owns a list of files (or other
> objects with a close() method). The close() method can sometimes
fail
> and raise an exception. When the parent object's close() method is
> called, it needs to close down as many files it owns as possible,
even
>
sword wrote:
On Nov 16, 7:40 pm, Jean-Michel Pichavant
wrote:
sword wrote:
The logging cookbook gives an Filter example, explainning how to add
contextural info to log. I can't figure out how to filter log from it.
Suppose I have 3 file, a.py, b.py and main.py
#file: a.py
impor
Yes I am executing powershell commands into virtual machines.
Will have a look at WiX.
But please, Answer my questions:
>> My questions are:
>>
>> 1. Can I have a better shared mechanism between python and
>> powershell.? As I am using a file here. Reading + writing in python and
>> writi
On Nov 21, 7:15 am, sword wrote:
>
> Thank you! Maybe I should find out another way to manipulate the log,
> like wrap the getLogger function and add the filter at the first
> time :)
If you are using Python 2.7, 3.2 or later, you can use dictionary-
based configuration - it's fairly painless.
h
Just compile your python to C
:]
On Mon, Nov 21, 2011 at 6:41 PM, OKB (not okblacke)
wrote:
> Carl Banks wrote:
>
>> Some people have already made an LLVM-to-Javascript compiler, and
>> have managed to build Python 2.7 with it.
>>
>> The LLVM-to-Javascript project is called emscripten.
>>
>> htt
Le 21/11/11 06:46, GZ a écrit :
Hi,
Here is my situation. A parent object owns a list of files (or other
objects with a close() method). The close() method can sometimes fail
and raise an exception. When the parent object's close() method is
called, it needs to close down as
Hi,
I'm happy to announce the release of LFS 0.6 beta 1.
LFS is an online shop based on Django and jQuery.
If you want to read more information please refer to:
http://www.getlfs.com/released-06-beta-1
Thanks
Kai
--
http://mail.python.org/mailman/listinfo/python-list
81 matches
Mail list logo