David Aldrich wrote:
> I have setup Sphinx for my Python project. We keep all our code and
> documentation in Subversion. So, following changes to the Python code, I
> need to regenerate and commit the Sphinx generated documentation.
>
> I just wondered how people manage this. I'm thinking of us
Ben Finney wrote:
> David Aldrich writes:
>
>> I have setup Sphinx for my Python project. We keep all our code and
>> documentation in Subversion.
>
> It's a good idea to keep *source* files in VCS.
>
> It's a bad idea to keep automatically-generated files in VCS; it's
> especially bad to do s
On Fri, Sep 18, 2015 at 9:37 AM, Ben Finney wrote:
> David Aldrich writes:
>
>> I have setup Sphinx for my Python project. We keep all our code and
>> documentation in Subversion.
>
> It's a good idea to keep *source* files in VCS.
>
> It's a bad idea to keep automatically-generated files in VCS;
On Friday, September 18, 2015 at 11:06:25 AM UTC+8, Ben Finney wrote:
> Jondy Zhao writes:
>
> > For example, I develop a game by python. What I want to do is that the
> > player or the agent could not simply copy the game to others. For the
> > player or the agent, they needn't research the game
On Friday, September 18, 2015 at 1:02:09 PM UTC+8, Chris Angelico wrote:
> On Fri, Sep 18, 2015 at 12:40 PM, Jondy Zhao wrote:
> > The loader only can see the compiled scripts as ast nodes, even if the load
> > some tools could dump the separated ast node to bytecode and de-compile it,
> > think
On Fri, Sep 18, 2015 at 12:40 PM, Jondy Zhao wrote:
> The loader only can see the compiled scripts as ast nodes, even if the load
> some tools could dump the separated ast node to bytecode and de-compile it,
> think of one script is divided into thousands of pieces, it's not easy to
> assemble
Jondy Zhao writes:
> For example, I develop a game by python. What I want to do is that the
> player or the agent could not simply copy the game to others. For the
> player or the agent, they needn't research the game.
Deciding for the customer what they may not do, on their own computer,
is qui
On Friday, September 18, 2015 at 10:27:35 AM UTC+8, Ben Finney wrote:
> Jondy Zhao writes:
>
> > Think that python developer is manufacturer, and he want to sell his
> > product to the customers who don't know anything about programming.
>
> Are you also assuming those customers have no-one they
On Friday, September 18, 2015 at 10:06:30 AM UTC+8, Chris Angelico wrote:
> On Fri, Sep 18, 2015 at 11:58 AM, Jondy Zhao wrote:
> > Think that python developer is manufacturer, and he want to sell his
> > product to the customers who don't know anything about programming. He
> > don't hope his c
On Tuesday, September 15, 2015 at 5:49:15 PM UTC+8, Chris Angelico wrote:
> On Tue, Sep 15, 2015 at 7:21 PM, Jondy Zhao wrote:
> > Pyarmor is dedicated to users who create their applications, components,
> > scripts or any file with the help of the Python programming language. You
> > may use th
Jondy Zhao writes:
> Think that python developer is manufacturer, and he want to sell his
> product to the customers who don't know anything about programming.
Are you also assuming those customers have no-one they can talk with who
knows programming?
> He don't hope his customers redistribute
On Fri, Sep 18, 2015 at 11:58 AM, Jondy Zhao wrote:
> Think that python developer is manufacturer, and he want to sell his product
> to the customers who don't know anything about programming. He don't hope his
> customers redistribute his product, that's protected by Pyarmor.
>
The trouble wit
On Fri, Sep 18, 2015 at 7:38 AM, Marko Rauhamaa wrote:
> Random832 :
>
>> It being *easier to implement* to have comparison operators be a
>> single class and have chaining apply equally to all of them may be an
>> excuse for the language to allow it, but it's certainly not an excuse
>> for *actua
On Tuesday, September 15, 2015 at 5:36:52 PM UTC+8, Ben Finney wrote:
> Jondy Zhao writes:
>
> > Pyarmor is a simple to use tool which is capable of importing or
> > running encrypted Python script files. Moreover, it can apply encoding
> > algorithms to your Python scripts, in order to help you
On 2015-09-17, Ben Finney wrote:
> The VCS should track only those files that humans edit directly.
While I agree that files automatically generated shouldn't be checked
in to a VCS, I'm in favor of putting key binary files under VCS if
they are required to do the build. We often check deveopme
David Aldrich writes:
> I have setup Sphinx for my Python project. We keep all our code and
> documentation in Subversion.
It's a good idea to keep *source* files in VCS.
It's a bad idea to keep automatically-generated files in VCS; it's
especially bad to do so if they need to be generated agai
On 17.09.2015 23:26, Tim Chase wrote:
On 2015-09-17 22:46, Sven R. Kunze wrote:
Btw. ASCII art is also art. So, why does Python not have ASCII
art to define graphs and diagrams?
Nowadays it would have to support Unicode art. Mustn't
leave out all the world's non-English-speaking artists!
How d
On 17.09.2015 23:38, Marko Rauhamaa wrote:
Random832 :
It being *easier to implement* to have comparison operators be a
single class and have chaining apply equally to all of them may be an
excuse for the language to allow it, but it's certainly not an excuse
for *actually* using it from a stan
Random832 :
> It being *easier to implement* to have comparison operators be a
> single class and have chaining apply equally to all of them may be an
> excuse for the language to allow it, but it's certainly not an excuse
> for *actually* using it from a standpoint of good style and
> readability
On 2015-09-17 22:46, Sven R. Kunze wrote:
> >> Btw. ASCII art is also art. So, why does Python not have ASCII
> >> art to define graphs and diagrams?
> >
> > Nowadays it would have to support Unicode art. Mustn't
> > leave out all the world's non-English-speaking artists!
>
> How do I debug and mo
On Thu, Sep 17, 2015, at 16:24, Jussi Piitulainen wrote:
> And I'm saying 'in', being truth-valued, is more like a comparison than
> a proper binary operation that has its value in the same set as its two
> arguments.
The problem is that except for very specialized cases (strings), the two
argumen
Well, I would be interested in seeing such a module as well.
Most modules and frameworks, I know, providing REST and interacting with
REST are more like traditional SOAP-like web services. You got your
functions which have a 1-to-1 correspondence with some resource URLs and
that's it.
Actual
On 17.09.2015 08:39, Gregory Ewing wrote:
Sven R. Kunze wrote:
Btw. ASCII art is also art. So, why does Python not have ASCII art to
define graphs and diagrams?
Nowadays it would have to support Unicode art. Mustn't
leave out all the world's non-English-speaking artists!
How do I debug and
Chris Angelico writes:
> On Fri, Sep 18, 2015 at 4:49 AM, Ian Kelly wrote:
>> On Thu, Sep 17, 2015 at 1:06 AM, Jussi Piitulainen
>> wrote:
>>> Ordinary binary operators not only combine things of the same type, they
>>> also produce a thing of that same type. So 'in' does not fit among them
>>> eit
Ian Kelly writes:
> On Thu, Sep 17, 2015 at 1:06 AM, Jussi Piitulainen wrote:
>> Ordinary binary operators not only combine things of the same type,
>> they also produce a thing of that same type. So 'in' does not fit
>> among them either.
>>
>> I feel it's _more_ at home among comparison operators
On Fri, Sep 18, 2015 at 4:49 AM, Ian Kelly wrote:
> On Thu, Sep 17, 2015 at 1:06 AM, Jussi Piitulainen
> wrote:
>> Ordinary binary operators not only combine things of the same type, they
>> also produce a thing of that same type. So 'in' does not fit among them
>> either.
>>
>> I feel it's _more
On Thu, Sep 17, 2015 at 1:06 AM, Jussi Piitulainen
wrote:
> Ordinary binary operators not only combine things of the same type, they
> also produce a thing of that same type. So 'in' does not fit among them
> either.
>
> I feel it's _more_ at home among comparison operators. (Hm. That's
> 'operato
On Thu, Sep 17, 2015 at 3:19 AM, wrote:
> This is not true that only two percent of this world can solve this puzzle.
> May be the 2% will solve it by a quick look on the statements.
Are you replying to this thread?
https://mail.python.org/pipermail/python-list/2001-March/063293.html
I had to
> If I understand you:
> http://www.python-requests.org/en/latest/
>
> is an example of what you are looking for?
>
> It's great.
>
> Also check out
> http://cramer.io/2014/05/20/mocking-requests-with-responses/
>
> if you need to mock requests.
Hi Laura,
The twitter samples Jon sent were good
In a message of Thu, 17 Sep 2015 14:44:00 -, "Joseph L. Casale" writes:
>I need to write a module to abstract the RabbitMQ HTTP REST api.
>Before I do this, I would like to see how other projects have done
>similar in the hopes I make something consistent and generic etc.
>
>Does anyone regular
On 2015-09-17, Joseph L. Casale wrote:
>> There is https://pypi.python.org/pypi/librabbitmq ?
>
> Hi Jon,
> That is the AMQP client that utilizes the c extensions, I am writing a
> module to interact with a plugin that exposes a REST API.
>
> So I am not really after anything AMQP specific, just a
> There is https://pypi.python.org/pypi/librabbitmq ?
Hi Jon,
That is the AMQP client that utilizes the c extensions, I am writing a
module to interact with a plugin that exposes a REST API.
So I am not really after anything AMQP specific, just a pointer to
a project that abstracts anything with
On 2015-09-17, Joseph L. Casale wrote:
> I need to write a module to abstract the RabbitMQ HTTP REST api.
> Before I do this, I would like to see how other projects have done
> similar in the hopes I make something consistent and generic etc.
>
> Does anyone regularly work with a library that abst
I need to write a module to abstract the RabbitMQ HTTP REST api.
Before I do this, I would like to see how other projects have done
similar in the hopes I make something consistent and generic etc.
Does anyone regularly work with a library that abstracts a REST API
and can recommend it for review?
On Thu, Sep 17, 2015 at 11:26 PM, pozz wrote:
> How to have a non-blocking write?
>
> Maybe the problem happens when port 1 thread is in .read() (it blocks for 1
> second) and port 2 thread tries to write one byte (that was just received)
> to port 1.
I'm not sure, as I've never worked with seria
Il 17/09/2015 11:42, Chris Angelico ha scritto:
On Thu, Sep 17, 2015 at 7:28 PM, pozz wrote:
At startup I open the ports and create and start a thread to manage the
receiving. When a byte is received, I call the .write() method for all the
other ports.
It works, but sometimes it seems to block
Il 17/09/2015 15:04, Dennis Lee Bieber ha scritto:
On Thu, 17 Sep 2015 12:00:08 + (UTC), alister
declaimed the following:
I can see the data being transmitted snowballing & running away in a +ve
feedback loop very easily.
Especially if a few of the remote devices are configured
Il 17/09/2015 14:00, alister ha scritto:
I would like to know more about how many serial ports are connected
One real serial port and two virtual serial ports, created by com0com
(it's a free virtual serial port for Windows).
what the equipment they are connected to does and expects.
Ra
If you have watchdog installed:
https://pypi.python.org/pypi/watchdog
Jacob Kaplan Moss came up with this very nice one liner to do this.
$ watchmedo shell-command \
--patterns="*.txt" \
--ignore-pattern='_build/*' \
--recursive \
--command='m
On Thu, 17 Sep 2015 02:10:44 -0400, Random832 wrote:
> On Wed, Sep 16, 2015, at 21:25, Steven D'Aprano wrote:
>> So what? The intended purpose of `is` and `==` is not to return True.
>> It is
>> to perform a comparison which may return False, or True.
>
> Yeah, but there's no point in doing a com
On 17/09/2015 13:07, alister wrote:
On Thu, 17 Sep 2015 10:56:07 +0100, Mark Lawrence wrote:
On 17/09/2015 02:33, Steven D'Aprano wrote:
On Thu, 17 Sep 2015 10:06 am, Mark Lawrence wrote:
On 16/09/2015 23:15, Sven R. Kunze wrote:
On 16.09.2015 23:30, Mark Lawrence wrote:
Barry John art is
On Thu, 17 Sep 2015 10:56:07 +0100, Mark Lawrence wrote:
> On 17/09/2015 02:33, Steven D'Aprano wrote:
>> On Thu, 17 Sep 2015 10:06 am, Mark Lawrence wrote:
>>
>>> On 16/09/2015 23:15, Sven R. Kunze wrote:
On 16.09.2015 23:30, Mark Lawrence wrote:
> Barry John art is also art. So, why do
On Thu, 17 Sep 2015 11:28:04 +0200, pozz wrote:
> I'm trying to create a simple program in Python that opens N serial
> ports (through pyserial) and forward every byte received on one of those
> ports to the other ports.
>
> At startup I open the ports and create and start a thread to manage the
Hi Laura;
and first off, thank you very much for your very insightful response.
Some thoughts on that:
Am 17.09.2015 um 11:06 schrieb Laura Creighton:
Mozilla uses a hybrid static and binary build thing.
http://www-archive.mozilla.org/build/static-build.html
and confusingly calls that a stat
Hi
I have setup Sphinx for my Python project. We keep all our code and
documentation in Subversion. So, following changes to the Python code, I need
to regenerate and commit the Sphinx generated documentation.
I just wondered how people manage this. I'm thinking of using Jenkins (a
continuous
W dniu 14.09.2015 o 08:58, Kristian Rink pisze:
[...]
>
> Any pointers, ideas, inspirations on that greatly appreciated - even
> in total different ways if what I am about to do is completely off
> anyone would do it in a Python environment. ;)
Look at https://github.com/jordansissel/fpm/wiki -
On 17/09/2015 02:33, Steven D'Aprano wrote:
On Thu, 17 Sep 2015 10:06 am, Mark Lawrence wrote:
On 16/09/2015 23:15, Sven R. Kunze wrote:
On 16.09.2015 23:30, Mark Lawrence wrote:
Barry John art is also art. So, why does Python not have Barry John
art to define graphs and diagrams?
Too colo
In a message of Thu, 17 Sep 2015 15:41:26 +0800, "chenc...@inhand.com.cn" write
s:
> So, I checked my ctypes source code, I found RTLD_LAZY defined in
>dlfcn.h header file like this:
>/* The MODE argument to `dlopen' contains one of the following: */
>#define RTLD_LAZY 0x1 /* Lazy function c
On Thu, Sep 17, 2015 at 7:28 PM, pozz wrote:
> At startup I open the ports and create and start a thread to manage the
> receiving. When a byte is received, I call the .write() method for all the
> other ports.
>
> It works, but sometimes it seems to block. I think I haven't used correctly
> the t
I'm trying to create a simple program in Python that opens N serial
ports (through pyserial) and forward every byte received on one of those
ports to the other ports.
At startup I open the ports and create and start a thread to manage the
receiving. When a byte is received, I call the .write()
This is not true that only two percent of this world can solve this puzzle. May
be the 2% will solve it by a quick look on the statements.
--
https://mail.python.org/mailman/listinfo/python-list
In a message of Thu, 17 Sep 2015 08:23:52 +0200, Kristian Rink writes:
>Hi Laura;
>
>and first off, thanks bunches for your comment.
>
>Am 17.09.2015 um 00:19 schrieb Laura Creighton:
> >
>> Your problem is likely with the shared library search paths.
>> Different distributions put them in differen
hi:
I use ctypes load multiple C libraries. Code like this:
.
history = CDLL("/usr/lib/libhistory.so", mode=RTLD_GLOBAL|RTLD_LAZY)
ncurses = CDLL("/usr/lib/libncurses.so", mode=RTLD_GLOBAL|RTLD_LAZY)
readline = CDLL("/usr/lib/libreadline.so", mode=RTLD_GLOBAL|RTLD_LAZY)
...
On Thu, Sep 17, 2015 at 5:24 PM, Christian Gollwitzer wrote:
> IMHO this is one of the lacks of CPython. Distributing source is not always
> practical, especially if the project involves modules written in C, or a
> large number of 3rd party libraries. To provide linux binaries as .rpm and
> .deb,
Am 16.09.15 um 21:29 schrieb Kristian Rink:
Thanks, this already is pretty close to what I need. Playing with this
and virtualenv, I figured out that this way it's pretty easily possible
to have isolated Python environments _locally_. However I failed to
package one of these environments and move
Gregory Ewing writes:
> My problem is that I find it difficult to remember that Python
> considers 'in' to be a comparison operator.
>
> To me, comparison is something you do between things of the same kind,
> whereas 'in' is a relationship between things of different
> kinds. Calling it a compari
hello
I would like to have the Sqlite pragma statement "locking_mode" set to
"EXCLUSIVE" by default (RO database). Does this need to be compiled in? How
might this be achieved?
There is some performance to be gained. I have a number of python scripts,
and don't want to alter the pragma statement
Still doesn't work with the default path.
For some reason the script that worked 20 mins ago in IDLE using "import
win32com.client" can't find the module anymore so I messed it up somewhere.
2015-09-17 1:45 GMT+02:00 Frank Huurman :
> Heya, I just uninstalled Python 3.5 so I can reinstall it wit
Heya, I just uninstalled Python 3.5 so I can reinstall it with the default
path.
Took me a day to figure out why my extra modules weren't importing in
py2exe properly and why the Python for windows extensions kept on telling
me I didn't have Python 3.5 installed while in fact I did.
It wasn't a we
Hi Laura;
and first off, thanks bunches for your comment.
Am 17.09.2015 um 00:19 schrieb Laura Creighton:
>
Your problem is likely with the shared library search paths.
Different distributions put them in different places. It's a real
pain, and the reason why docker is getting more popular.
60 matches
Mail list logo