On 12.01.2015 23:46, Chris Angelico wrote:
On Tue, Jan 13, 2015 at 9:35 AM, Fabien wrote:
>BUT I'm still asking myself: what does "pip install"*concretely* do on my
>virtual environment?
As far as I know, it's equivalent to three steps:
1) Download the appropriate version of a package (the l
Howdy all,
I am pleased to announce the release of version 2.0.2 of the
‘python-daemon’ library.
The current release is always available at
https://pypi.python.org/pypi/python-daemon/>.
The project's forums and VCS are hosted at Alioth
https://alioth.debian.org/projects/python-daemon/>.
Signif
On Monday, January 12, 2015 at 10:09:03 PM UTC-8, Tim Golden wrote:
> On 12/01/2015 23:12, Andrew Koenig wrote:
> > Fixed it!
> >
> > The aforementioned article is correct. I downloaded the RegDelNull
> > program mentioned in the article
> > (http://technet.microsoft.com/en-us/sysinternals/bb897448
On Mon, 12 Jan 2015 05:24:00 -0800, wxjmfauth wrote:
> To tell you the truth, I'm unable to
> put your product to work.
If you follow the instructions in the README, and it still doesn't work,
that's a bug and I will be happy to fix it.
If you insist on doing things your own way, and breaking
On Mon, 12 Jan 2015 15:47:08 -0800, Rick Johnson wrote:
>> 'Some people, when confronted with a problem, think "I know, I'll use
>> regular expressions." Now they have two problems.' - Jamie Zawinski.
>
> I wonder if Jamie's conclusions are a result of careful study, or
> merely, an attempt to r
On Mon, Jan 12, 2015 at 9:16 PM, Andrew Robinson
wrote:
> Instead of pretending what if -- let's actually REPLACE python's built in
> bool class with an emulation that ALLOWS subclassing and THEN let's TEST my
> hypothesis that the assert statement you gave me can't tell the difference
> between b
On Tue, Jan 13, 2015 at 4:32 PM, Steven D'Aprano wrote:
> Crashing the interpreter from
> pure Python code is *absolutely not allowed*, so anything which would
> allow that is forbidden.
Except when you willingly shoot yourself in the foot.
rosuav@sikorsky:~$ python
Python 2.7.3 (default, Mar 13
On 12/01/2015 23:12, Andrew Koenig wrote:
Fixed it!
The aforementioned article is correct. I downloaded the RegDelNull
program mentioned in the article
(http://technet.microsoft.com/en-us/sysinternals/bb897448.aspx) and
ran it on hkcr, hkcu, hklm, hku, and hkcc (short for
HKEY_CLASSES_ROOT, HKEY
On 01/12/2015 08:49 PM, Steven D'Aprano wrote:
> On Mon, 12 Jan 2015 12:40:13 -0800, Ethan Furman wrote:
>>
>> [...] class name lookup skips nonlocal namespaces.
>
> Actually, no it doesn't.
> [...]
> The "problem" is that *functions* lookup don't include the class body in
> their scope.
Ah, t
On Mon, 12 Jan 2015 17:59:42 -0800, Andrew Robinson wrote:
[...]
> What I am wanting to know is WHY did Guido think it so important to do
> that ? Why was he so focused on a strict inability to have any
> instances of a bool subclass at all -- that he made a very arbitrary
> exception to the gen
On 13/01/2015 02:53, Rick Johnson wrote:
On Monday, January 12, 2015 at 7:55:32 PM UTC-6, Mark Lawrence wrote:
On 12/01/2015 23:47, Rick Johnson wrote:
'Some people, when confronted with a problem, think "I
know, I'll use regular expressions." Now they have two
problems.' - Jamie Zawinski.
On Jan 12, 2015 6:47 AM, "Albert-Jan Roskam" wrote:
> Thanks for your replies. I changed it into a regular decorator (not a class
> decorator). It would have been even nicer if I only needed to specify it once
> per class, but, well, in my case this hardly matters. The code below works as
> int
On Tue, Jan 13, 2015 at 3:57 PM, Steven D'Aprano wrote:
> On Tue, 13 Jan 2015 09:35:43 +1100, Chris Angelico wrote:
>
>> Subclassing bool breaks this invariant, unless you never instantiate the
>> subclass, in which case it's completely useless.
>
> Not necessarily. A class that you never instanti
On Tue, 13 Jan 2015 09:35:43 +1100, Chris Angelico wrote:
> Subclassing bool breaks this invariant, unless you never instantiate the
> subclass, in which case it's completely useless.
Not necessarily. A class that you never instantiate, but use as an object
itself, is another way of implementing
On Mon, 12 Jan 2015 12:40:13 -0800, Ethan Furman wrote:
> On 01/12/2015 12:25 PM, John Ladasky wrote:
>> d = {0:"a", 1:"b", 2:"c", 3:"d"}
>> e = [d[x] for x in (0,2)]
>>
>> class Foo:
>> f = {0:"a", 1:"b", 2:"c", 3:"d"}
>> print(f)
>> g = [f[x] for x in (0,2)]
>
> In Foo 'f' is part
On Mon, 12 Jan 2015 19:48:18 +, Ian wrote:
> My recommendation would be to write a recursive decent parser for your
> files.
>
> That way will be easier to write,
I know that writing parsers is a solved problem in computer science, and
that doing so is allegedly one of the more trivial thin
Hmm
LOL ... no exception was raised... and we know if the assertion Failed, an
exception ought to be raised:
The assertion did not fail. There are three parts, and as long as one
of them is true, the assertion will pass:
1) x isn't an instance of bool
2) x is the object known as True
3) x i
On Monday, January 12, 2015 at 7:55:32 PM UTC-6, Mark Lawrence wrote:
> On 12/01/2015 23:47, Rick Johnson wrote:
> >> 'Some people, when confronted with a problem, think "I
> >> know, I'll use regular expressions." Now they have two
> >> problems.' - Jamie Zawinski.
> >
>
> [snip]
>
> If you wish
> I have a long-running python/CherryPy Web App server process that I am
> running on Mac OS X 10.8.5. Python 2.7.2 running in 32-bit mode (for now, I
> have the code in place to change over to 64 bit, but need to schedule the
> downtime to do it). On the 6th of this month, during normal operation
On Tue, Jan 13, 2015 at 12:59 PM, Andrew Robinson
wrote:
> There is no need to copy data from an initialized superclass instance into a
> subclass instance that has no new data, but only rebind -- or add a
> binding/proxy object -- to bind the superclass instance to the subclass
> methods.
>
> eg:
On 01/12/2015 02:35 PM, Chris Angelico wrote:
On Tue, Jan 13, 2015 at 9:27 AM, Andrew Robinson
wrote:
Huh? I'm not adding any values when I merely subclass bool ; and even if the
subclass could be instantiated -- that's doesn't mean a new value or
instance of the base class (bool) must exist.
On 12/01/2015 23:47, Rick Johnson wrote:
'Some people, when confronted with a problem, think "I
know, I'll use regular expressions." Now they have two
problems.' - Jamie Zawinski.
[normal cobblers snipped]
If you wish to use a hydrogen bomb instead of a tooth pick feel free, I
won't lose a
On Tue, Jan 13, 2015 at 10:47 AM, Rick Johnson
wrote:
> WHO'S LAUGHING NOW? -- YOU MINDLESS ROBOTS!
It's very satisfying when mindless robots laugh.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
> 'Some people, when confronted with a problem, think "I
> know, I'll use regular expressions." Now they have two
> problems.' - Jamie Zawinski.
This statement is one of my favorite examples of "powerful
propaganda", which has scared more folks away from regexps
than even the "Upright Citizens Br
Fixed it!
The aforementioned article is correct. I downloaded the RegDelNull program
mentioned in the article
(http://technet.microsoft.com/en-us/sysinternals/bb897448.aspx) and ran it on
hkcr, hkcu, hklm, hku, and hkcc (short for HKEY_CLASSES_ROOT,
HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, HKEY_
On 1/11/2015 9:27 PM, Sushanth wrote:
urllib2.HTTPError: HTTP Error 302: The HTTP server returned a redirect
error that would lead to an infinite loop.
Looks like the server has a link on this page pointing back to itself or
somesuch.
Does this help?
Emile
--
https://mail.python.org/mai
On Tue, Jan 13, 2015 at 9:35 AM, Fabien wrote:
>
> I've learned a lot today about python packaging and stuff, thanks to a
> couple of good websites. I've learned how to install a package from PyPi
> with pip, choose which version, upgrade it, uninstall it, use virtualenv,
> BUT I'm still asking my
Not sure that would be a good idea: There are 22 such keys, as opposed to only
two keys with Windows ID strings that don't end in nulls. I found this article:
http://www.swarley.me.uk/blog/2014/04/23/python-pip-and-windows-registry-corruption/
with the comment "If you are happy to completely rem
Folks,
I've learned a lot today about python packaging and stuff, thanks to a
couple of good websites. I've learned how to install a package from PyPi
with pip, choose which version, upgrade it, uninstall it, use
virtualenv, BUT I'm still asking myself: what does "pip install"
*concretely* do
On Tue, Jan 13, 2015 at 9:27 AM, Andrew Robinson
wrote:
> Huh? I'm not adding any values when I merely subclass bool ; and even if the
> subclass could be instantiated -- that's doesn't mean a new value or
> instance of the base class (bool) must exist. For I could happily work with
> a new subcl
On 01/07/2015 04:04 PM, Ethan Furman wrote:
On 01/06/2015 07:37 PM, Andrew Robinson wrote:
Explain; How does mere subclassing of bool break the contract that bool has?
eg: What method or data would the superclass have that my subclass would not?
bool's contract is that there are only two valu
- Original Message -
> From: Jason Bailey
> To: python-list@python.org
> Cc:
> Sent: Monday, January 12, 2015 7:20 PM
> Subject: Python 3 regex woes (parsing ISC DHCPD config)
>
> Hi all,
>
> I'm working on a Python _3_ project that will be used to parse ISC DHCPD
> configuration fi
On 12/01/2015 21:45, Andrew Koenig wrote:
It runs and creates a classes.txt file with 803 lines. The first few:
-> '$cpfile12'
-> '$crfile12'
-> '$cxfile12'
-> '*'
-> '.$cp'
-> '.$cr'
-> '.$cx'
-> '.386'
-> '.3ds'
A few lines in the middle that might be relevant:
-> '.py'
-> '.pyc
Thanks Chris. This definitely helps. I will test it and see what happens. In
terms of the previous code, what it was intended to do wasn't actually
happening.
--
https://mail.python.org/mailman/listinfo/python-list
It runs and creates a classes.txt file with 803 lines. The first few:
-> '$cpfile12'
-> '$crfile12'
-> '$cxfile12'
-> '*'
-> '.$cp'
-> '.$cr'
-> '.$cx'
-> '.386'
-> '.3ds'
A few lines in the middle that might be relevant:
-> '.py'
-> '.pyc'
-> '.pyo'
-> '.pys'
-> '.pyw'
And the la
On Tue, Jan 13, 2015 at 8:19 AM, wrote:
> https://bpaste.net/show/93be9e15634b <--- Line 19 through 22
>
> At all times, my program is assigning the object priority of 0, even if one
> already exists in the database with a priority of 0 (it's supposed to be
> assigning it a priority of 1 in tho
https://bpaste.net/show/93be9e15634b <--- Line 19 through 22
At all times, my program is assigning the object priority of 0, even if one
already exists in the database with a priority of 0 (it's supposed to be
assigning it a priority of 1 in those cases).
I'm a non developer trying to fix a fre
python --version reports 3.4.2, which is what I expected. I see no PYTHONPATH
variable, or any environment variable with a name beginning PY (either upper or
lower case).
--
https://mail.python.org/mailman/listinfo/python-list
On 12/01/2015 18:02, Andrew Koenig wrote:
Downloaded and installed 64-bit Python 3.4 and pywin32-219. Both installed
smoothly on my 64-bit Win7 machine. I added C:\Python34 to the search path.
If I launch a Windows command window and run
python -m ensurepip
I get the following:
Ig
On Tue, Jan 13, 2015 at 7:25 AM, John Ladasky
wrote:
> When I am working inside the class namespace, the print function call on line
> 8 recognizes the name f and prints the dictionary bound to that name.
>
> However, the LIST COMPREHENSION defined inside the class namespace generates
> a NameEr
On Monday, January 12, 2015 at 12:41:30 PM UTC-8, Ethan Furman wrote:
> In Foo 'f' is part of an unnamed namespace; the list comp 'g' has its own
> namespace, effectively making be a nonlocal;
> class name lookup skips nonlocal namespaces.
>
> Workaround: use an actual for loop.
Thanks, Ethan.
Following up to myself: I finally did the right keyword search, and found a
relevant article:
http://stackoverflow.com/questions/13905741/accessing-class-variables-from-a-list-comprehension-in-the-class-definition
Maybe I HAVE tried to define a list comprehension inside a class definition
befor
On 01/12/2015 12:25 PM, John Ladasky wrote:
> d = {0:"a", 1:"b", 2:"c", 3:"d"}
> e = [d[x] for x in (0,2)]
>
> class Foo:
> f = {0:"a", 1:"b", 2:"c", 3:"d"}
> print(f)
> g = [f[x] for x in (0,2)]
In Foo 'f' is part of an unnamed namespace; the list comp 'g' has its own
namespace, eff
On Tue, Jan 13, 2015 at 6:48 AM, Ian wrote:
> My recommendation would be to write a recursive decent parser for your
> files.
>
> That way will be easier to write, much easier to modify and almost certainly
> faster that a RE solution - and it can easily give you all the information
> in the file
I've never come across this before. Here's a minimal example (in Python 3.4):
Code:
-
d = {0:"a", 1:"b", 2:"c", 3:"d"}
e = [d[x] for x in (0,2)]
class Foo:
f = {0:"a", 1:"b", 2:"c", 3:"d"}
print(f)
g = [f[x] for x
On 01/12/2015 01:20 PM, Jason Bailey wrote:
Hi all,
What changed between 1:03 and 1:20 that made you post a nearly identical
second message, as a new thread?
Unfortunately, I get no matches. From output on the command line, I can
see that Python is adding extra backslashes to my re.compil
On 12/01/2015 18:03, Jason Bailey wrote:
Hi all,
I'm working on a Python _3_ project that will be used to parse ISC
DHCPD configuration files for statistics and alarming purposes (IP
address pools, etc). Anyway, I'm hung up on this one section and was
hoping someone could provide me with some
On Tue, Jan 13, 2015 at 5:03 AM, Jason Bailey wrote:
> Unfortunately, I get no matches. From output on the command line, I can see
> that Python is adding extra backslashes to my re.compile string. I have
> added the raw 'r' in front of the strings to prevent it, but to no avail.
>
Regexes are no
On Tue, Jan 13, 2015 at 5:02 AM, Andrew Koenig wrote:
> Downloaded and installed 64-bit Python 3.4 and pywin32-219. Both installed
> smoothly on my 64-bit Win7 machine. I added C:\Python34 to the search path.
>
> If I launch a Windows command window and run
>
> python -m ensurepip
Do you
Hi all,
I'm working on a Python _3_ project that will be used to parse ISC DHCPD
configuration files for statistics and alarming purposes (IP address
pools, etc). Anyway, I'm hung up on this one section and was hoping
someone could provide me with some insight.
My script first reads the DHCP
Hi all,
I'm working on a Python _3_ project that will be used to parse ISC DHCPD
configuration files for statistics and alarming purposes (IP address
pools, etc). Anyway, I'm hung up on this one section and was hoping
someone could provide me with some insight.
My script first reads the DHCP
My name is Charles Weitzer. I do recruiting for machine learning teams
worldwide. One of my clients is a startup quantitative hedge
fund located in Northern, California. The founders previous worked together at
one of the most successful quantitative hedge funds
in the world in New York City. No
--
> My recommendation is to use doctest to test the code samples that
> naturally occur in your docstrings, but not to use it as a
> general-purpose testing tool. It has too many limitations and quirks,
> and if you're going to write sepa
Hello,
My name is Charles Weitzer. I do recruiting with a focus on quantitative
sciences. One of my clients is a machine learning startup
located in Northern California. The founders include a successful veteran
entrepreneur with a PhD in CS from Stanford, while the
other founder is on the facul
On Mon, Jan 12, 2015 at 7:00 AM, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> I didn't mean to give the impression that doctest was wrong to be fussy, or
> dumb if you prefer. I think it's exactly the right behaviour.
>
I wasn't actually concerned that Steven might have misund
Downloaded and installed 64-bit Python 3.4 and pywin32-219. Both installed
smoothly on my 64-bit Win7 machine. I added C:\Python34 to the search path.
If I launch a Windows command window and run
python -m ensurepip
I get the following:
Ignoring indexes: https://pypi.python.org/simple/
On 12/01/2015 15:58, Steven D'Aprano wrote:
Mark Lawrence wrote:
If doctest is dumb then that's clearly down to the author. Perhaps we
should refer him or her to the Zen of Python so they don't repeat the
mistake with future design decisions?
o_O
I don't even ...
wait ...
[starts typing]
Mark Lawrence wrote:
> If doctest is dumb then that's clearly down to the author. Perhaps we
> should refer him or her to the Zen of Python so they don't repeat the
> mistake with future design decisions?
o_O
I don't even ...
wait ...
[starts typing]
[stops typing]
... okay.
--
Steven
On 1/11/15 11:20 PM, gordianknot1...@gmail.com wrote:
It failed with an unknown reason that evaluate two expected equal value but got
an unexpected result! I'm struggling with this problem for a long time. Did I
did something wrong? And how do I to fix it?
any help is appreciated. :)
My re
- Original Message -
> From: "Albert-Jan Roskam"
> import functools
> import inspect
> import warnings
>
> warnings.simplefilter("always")
>
> class check_deprecated_args(object):
>
> def __init__(self, deprecated_params, msg=None):
> self.deprecated_params = deprecated_para
On 12/01/2015 13:00, Steven D'Aprano wrote:
Skip Montanaro wrote:
ISTR that when Tim Peters first implemented first, the typical way you
were expected to get tests into a doc string was to copy from an
interactive session, which would not have this problem.
I believe that is still documented
- Original Message -
> From: Ian Kelly
> To: Python
> Cc:
> Sent: Saturday, January 10, 2015 7:30 AM
> Subject: Re: class-based class decorator
>
> On Fri, Jan 9, 2015 at 2:26 PM, Albert-Jan Roskam
>
> wrote:
>>
>>
>> Hi,
>>
>> I am trying to write a class decorator that check
Thanks to all and dear Dave Angel, I got this working :) , using
your valuable inputs .
Here is the final program:
Throttling-1# cat sleep_schedule_file.py
#!/usr/bin/python
import time
import pdb
from datetime import date, time, datetime, timedelta
#'''run these on the remote commmand '''
n
Skip Montanaro wrote:
> ISTR that when Tim Peters first implemented first, the typical way you
> were expected to get tests into a doc string was to copy from an
> interactive session, which would not have this problem.
I believe that is still documented as the way to generate doctests.
> Also,
On Mon, Jan 12, 2015 at 6:15 AM, Skip Montanaro
wrote:
> ... first implemented first ...
s/first/doctest/
Darn auto-correct...
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Along lines of recent queries/questions, which had mostly sorted out, but,
which was still trying to fine tune with regards to text file formats, in terms
of writing as strings, or as binary files, and where was still trying to decide
if wanted to worry about maybe specifically just handling for
ISTR that when Tim Peters first implemented first, the typical way you were
expected to get tests into a doc string was to copy from an interactive
session, which would not have this problem.
Also, to Steven's comment about fussiness, it isn't so much that it's
fussy. It's more that it's dumb. I j
I have a long-running python/CherryPy Web App server process that I am running on Mac OS X 10.8.5. Python 2.7.2 running in 32-bit mode (for now, I have the code in place to change over to 64 bit, but need to schedule the downtime to do it). On the 6th of this month, during normal operation from wha
Traceback (most recent call last):
File "sample.py", line 28, in
scrape_data(row['All Samples'],row['URL'])
File "sample.py", line 13, in scrape_data
html = etree.HTML(urllib2.urlopen(url).read())
File
"C:\Users\sushanth.thangamani\AppData\Local\Continuum\Anaconda\lib\urllib
2.py",
Dear Python Community,
Because the FOSDEM will start at 10:30 AM on Saturday 31st January, the
first talk will be at 10:30 AM.
Thus all the talks will be ajusted. The Schedule on the site of FOSDEM
and on the PythonFOSDEM site have been updated.
https://fosdem.org/2015/schedule/track/python
>Can any one tell me how to create
>graph={
> "nodes": [
> {
> "id": "n0",
> "label": "A node",
> "x": 0,
[ ... elided ... ]
> }
> ]
> }
Taking a guess and guessing that graphviz might be useful for you:
https://code.google.com/p/pydot/.
--
https://mail.pyth
Dear all,
We are very happy to announce a new release of Diffusion Imaging in Python
(Dipy).
Here is a summary of the most important new features and developments.
DIPY 0.8.0 (Released on Tuesday, 6 Jan 2015)
Nonlinear Image-based Registration (SyN)
An implementation of the Symmetric Norm
and u have another below choice
http://docs.python.org/howto/curses.html
http://urwid.org/
On Thu, Jan 8, 2015 at 12:54 AM, Amir Arsalan
wrote:
> Hi adam,
>
> U can use from npyscreen.
>
> Npyscreen.readthedocs.org
> On Jan 8, 2015 12:50 AM, "adam" wrote:
>
>> Is in here maybe someone who sp
Hi adam,
U can use from npyscreen.
Npyscreen.readthedocs.org
On Jan 8, 2015 12:50 AM, "adam" wrote:
> Is in here maybe someone who speak Polish?
>
> I would like to write application witch looks like this
> http://linuxiarze.pl/obrazy/internet1/ceni1.png
>
> I'm looking for some libs, tutorials
On Mon, Jan 12, 2015 at 8:42 AM, Ganesh Pal wrote:
> On Sun, Jan 11, 2015 at 7:57 PM, Dave Angel wrote:
>>>
>>>
>> No idea how that represents "a difference of 5 minutes". So I'll take a
>> totally wild guess that you meant:
>>
>> Sunday 23:50 23:55
>> Monday 00:00 00:05
>> Monday 00:10 00:15
>
75 matches
Mail list logo