Re: What people are using to access this mailing list

2010-11-03 Thread Daniel Kluev
I use gmail with according filters and labels, so each mailing list has its own label and is removed from inbox. -- With best regards, Daniel Kluev -- http://mail.python.org/mailman/listinfo/python-list

Re: cms 4 static pages?

2010-11-04 Thread Daniel Fetchinson
esign! Seriously, you listed a number of features which are not really features but implementation details and you haven't told us what your original goals are which you think are fulfilled by these implementation details. If you would clearly state what your goals are (regardless of how it is im

Re: Silly newbie question - Carrot character (^)

2010-11-05 Thread Daniel Urban
> However, what exactly does ^ do? Bitwise XOR: http://docs.python.org/py3k/reference/expressions.html#binary-bitwise-operations -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: PyGUI 2.3

2010-11-11 Thread Daniel Fetchinson
;m puzzled, because I can't see anything in the setup.py > that could result in things getting split up like this. > I'm wondering whether there is some breakage in distutils. I honestly have no idea :) Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- http://mail.python.org/mailman/listinfo/python-list

Re: Am I The Only One Who Keeps Reading “Numpy” as “Numpty”?

2010-11-12 Thread Daniel Fetchinson
As in Numpty Dumpty? > Sorry... -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- http://mail.python.org/mailman/listinfo/python-list

How to inherit classmethod constructors?

2017-02-18 Thread Daniel Andersson
I have a class "A" below, that have a very simple __init__ method, which only wants a "needle". class A: def __init__(self, needle): self.needle = needle @classmethod def from_haystack(cls, haystack): # ... # Many lines of code (omitted here) # that p

Re: "Best" websocket implementation for Python 2.x?

2017-03-09 Thread Daniel Bastos
Skip Montanaro writes: [...] > These two packages would appear to have stalled. Looking around, I also > found > > ws4py > websockets - Python 3.3 or later > autobahn.websocket > > There are probably others I haven't yet stumbled upon. (I'd continue poking > around PyPI, but it seems the server

Re: Encodign issue in Python 3.3.1 (once again)

2013-06-12 Thread Daniel Gagliardi Ramos
don't ya have something intelligent to say motherfucker? 2013/5/28 rusi > On May 28, 10:55 am, Νίκος Γκρ33κ wrote: > > Ôç Ôñßôç, 28 ÌáÀïõ 2013 1:18:06 ð.ì. UTC+3, ï ÷ñÞóôçò Chris Angelico > Ýãñáøå: > > > > > You're effectively asking people to put in a few minutes' work, > > > sometimes quite

Re: random number

2012-03-25 Thread Daniel da Silva
If you want it as an int: random.randint(10, 99) Or as a string: s = '%06d' % random.randint(0, 99) On Mon, Mar 26, 2012 at 2:08 AM, Nikhil Verma wrote: > Hi All > > How can we generate a 6 digit random number from a given number ? > > eg:- > > def number_generator(id): > rando

complaint

2023-05-30 Thread Daniel Ifechukwude Dibie
i tried to uninstall the python 3.11.3 program from my machine so that i can re-install it is showing successful but it is ligerning on the program and features -- https://mail.python.org/mailman/listinfo/python-list

PEP: add a `no` keyword as an alias for `not`

2019-08-01 Thread Daniel Okey-Okoro
st example. This PEP would make the difference between the two usecases explicit. Thoughts? Best Intentions, Daniel Okey-Okoro. -- https://mail.python.org/mailman/listinfo/python-list

Fwd: PEP: add a `no` keyword as an alias for `not`

2019-08-01 Thread Daniel Okey-Okoro
-- Forwarded message - From: Daniel Okey-Okoro Date: Thu, Aug 1, 2019 at 1:24 PM Subject: Re: PEP: add a `no` keyword as an alias for `not` To: Calvin Spealman Good point Calvin, But in many cases, when people write

Fwd: [Python-ideas] Re: PEP: add a `no` keyword as an alias for `not`

2019-08-01 Thread Daniel Okey-Okoro
-- Forwarded message - From: Daniel Okey-Okoro Date: Thu, Aug 1, 2019 at 1:37 PM Subject: Re: [Python-ideas] Re: PEP: add a `no` keyword as an alias for `not` To: Chris Angelico > not a strong enough justification for breaking any code that uses "no" in any other

MD5 Help Page

2005-10-08 Thread Daniel 'Dang' Griffith
I'm referring to the text in http://www.python.org/doc/2.4.2/lib/module-md5.html, which shows the same thing I see in the Windows version of the help. The two examples show: '\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9' as the output, and that is indeed what I see when I run th

Re: MD5 Help Page

2005-10-08 Thread Daniel 'Dang' Griffith
Nevermind--chr(0x64) is 'd', as in duh. --dang -- http://mail.python.org/mailman/listinfo/python-list

Re: Raw string fu

2005-11-21 Thread 'Dang' Daniel Griffith
On 26 Oct 2005 12:27:53 -0700, "Paul McGuire" <[EMAIL PROTECTED]> wrote: >"Raw string fu"? A new martial art? For the udon-aware. --dang -- http://mail.python.org/mailman/listinfo/python-list

FORTRAN like formatting

2005-07-08 Thread Einstein, Daniel R
lumns 20 spaces long, with 12 digits after the decimal and so on and so forth. What I am really looking for is some general indication of how to do such formatting in Python. Any help? Dan Daniel R Einstein, PhD Biological Monitoring and Modeling Pacific Northwest National Laboratory P.O.

Reading binary with header

2005-07-25 Thread Einstein, Daniel R
array.array('f') s.read(fileobj, size) data = "" typecode=N.Int) fileobj.close() But the header must confuse things because I do get what I expect. Any advice? Best Regards, Dan Daniel R Einstein, PhD Biological Monitoring and Modeling Pacific Northwest National Laboratory P.

Re: pyparsing 1.3.2 released

2005-07-26 Thread 'Dang&#x27; Daniel Griffith
On 24 Jul 2005 17:27:07 -0700, "Paul McGuire" <[EMAIL PROTECTED]> wrote: >Well, here we are, and I'm announcing the 1.3.2 release, with some >changes that I'd like to get released quickly. Here is the excerpt >from the change log: > ...snip... I did a quick check with my Delphi DFM parser, and t

incorect version

2005-08-20 Thread Einstein, Daniel R
that the libpython23.a and libnumeric.a libraries are somehow involved. These may be the culprits as I need to include particular version in my build. Again, any light to be shed? Thanks so much Dan Daniel R Einstein, PhD Biological Monitoring and Modeling Pacific Northwest National Laborator

memoize factorial example (was Re: decorators ?)

2004-12-07 Thread Daniel 'Dang' Griffith
On Tue, 30 Nov 2004 19:38:46 GMT, "Paul McGuire" <[EMAIL PROTECTED]> wrote: >"km" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> Hi all, >> was going thru the new features introduced into python2.4 version. >> i was stuck with 'decorators' - can someone explain me the need of su

Re: Python for Palm OS?

2004-12-08 Thread 'Dang&#x27; Daniel Griffith
On Wed, 08 Dec 2004 04:48:42 GMT, Maurice LING <[EMAIL PROTECTED]> wrote: >As mentioned, since Pippy is pretty old or rather based on rather old >code base, can it be assumed that not much is happening at this front? > >This might be dumb to ask then, does anyone know if Pippy had been used >in

Trouble writing lines into file with line feeds- Python Newb

2013-12-23 Thread daniel . t . healy
Overview: I'm attempting to read strings from a serial port. Each string ends with a carriage return and line feed. I want to write those strings to a file, like a log file. So, if I send P1 and the P2 on a new line, I would expect to open this file and find (line 1) P1 (line 2) P2. Problem: T

Re: Python 3 __bytes__ method

2014-01-11 Thread Daniel da Silva
Where did you read this? I can't find any documentation about __bytes__ on google. Regards, Daniel On Sat, Jan 11, 2014 at 7:24 PM, Ethan Furman wrote: > Python 3 has a new method, __bytes__. The docs say: Called by bytes() to > compute a byte-string representation of an object.

Re: Python 3 __bytes__ method

2014-01-11 Thread Daniel da Silva
wrote: > On 01/11/2014 04:53 PM, Daniel da Silva wrote: > >> >> Where did you read this? I can't find any documentation about __bytes__ >> on google. >> > > http://docs.python.org/3.3/reference/datamodel.html? > highlight=__bytes__#object.__bytes__ >

Re: Python 3 __bytes__ method

2014-01-11 Thread Daniel da Silva
On Sat, Jan 11, 2014 at 9:44 PM, Ethan Furman wrote: > On 01/11/2014 06:19 PM, Daniel da Silva wrote: > >> >> One use case is: >> Suppose you have existing function that accepts a /bytes/ object. If you >> subclass /bytes/ and want it to be guaranteed >>

Re: Chanelling Guido - dict subclasses

2014-01-15 Thread Daniel da Silva
wiki/Liskov_substitution_principle> Since S (TextOnlyDict) is more restrictive, it cannot be replaced for T (dict) because the program may be using non-string keys. Daniel -- https://mail.python.org/mailman/listinfo/python-list

Re: piping with subprocess

2014-02-01 Thread Daniel da Silva
Try this: from subprocess import check_output import sys check_output("textutil -convert html %s -stdout | pandoc -f html -t markdown -o %s" % sys.argv[1:3], shell=True) On Sat, Feb 1, 2014 at 7:19 AM, Rick Dooling wrote: > I spent half a day trying to convert this bash script (on Mac) > > t

Re: Google Maps and Python: creating a map, embedding it, adding images, videos, markers, using python

2014-12-19 Thread Daniel da Silva
Kevin, that client library looks like it is for accessing Google Maps related services, not modifying maps themselves. On Fri, Dec 19, 2014 at 1:02 AM, Kev Dwyer wrote: > Veek M wrote: > > > I'm messing with Google-Maps. Is there a way I can create a map, embed it > > on a page (CSS/HTML/Javas

Re: [Python-Dev] [RELEASED] Python 3.4.0

2014-03-26 Thread Daniel Pimentel (d4n1)
dev >>>> Unsubscribe: https://mail.python.org/mailman/options/python-dev/ >>>> rymg19%40gmail.com >>>> >>> >>> >>> >>> -- >>> Ryan >>> If anybody ever asks me why I prefer C++ to C, my answer will be simple: >>> "It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was >>> nul-terminated." >>> >>> >>> -- >>> https://mail.python.org/mailman/listinfo/python-list >>> >>> >> >> >> -- >> Giampaolo - http://grodola.blogspot.com >> >> >> ___ >> Python-Dev mailing list >> python-...@python.org >> https://mail.python.org/mailman/listinfo/python-dev >> Unsubscribe: >> https://mail.python.org/mailman/options/python-dev/dia.aliounes%40gmail.com >> >> > > ___ > Python-Dev mailing list > python-...@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/d4n1h4ck%40gmail.com > > -- Msc. Daniel Pimentel (d4n1 <http://about.me/d4n1>) -- https://mail.python.org/mailman/listinfo/python-list

Re: comparing alternatives to py2exe

2014-09-06 Thread daniel . e . rossy
I found this: https://pypi.python.org/pypi/py2exe/0.9.2.0 Also, thanks for the spreadsheet, it's very useful. -- https://mail.python.org/mailman/listinfo/python-list

RE: [TIP] Anyone still using Python 2.5?

2011-12-21 Thread Staple, Daniel (BSKYB)
We've a bunch of windows servers stuck on python 2.5 since an API we use on them is shipped to us pyc's only - forcing us to stay with that version. Most of our other machines are on 2.6 or 2.7. -Original Message- From: testing-in-python-boun...@lists.idyll.org [mailto:testing-in-pytho

Re: Productivity and Quality of IDE

2006-01-02 Thread Daniel J. Rubin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I say it entirely depends on what your programming. For instance, if creating a GUI, there is no question that a well developed high quality IDE is a huge help -- from the point of view of stub generation and code completion, as well as the GUI design

Newcomer question wrt variable scope/namespaces

2006-01-13 Thread Florian Daniel Otel
Hello all, As the subject says, I am a newcomer to Python and I have a newcomer question wrt namespaces and variable scope. Obviously, I might be missing smth obvious, so TIA for the patience and/or pointers to relevant resources My problem: I just discovered (by mistake) that attempting to assig

Re: Newcomer question wrt variable scope/namespaces

2006-01-13 Thread Florian Daniel Otel
Gary, First of all, many thanks for the reply. Do I understand it correctly that actually the rule has to be refined as pertaining to the (so called) "immutable" types (like e.g. integers, tuples/strings) whereas lists and dictionaries are "mutable" types and the said scoping rule does not appl

Re: Newcomer question wrt variable scope/namespaces

2006-01-18 Thread Florian Daniel Otel
Mike, Gary, Magnus First of all, thanks to you all for the clarifications. On 1/14/06, Mike Meyer <[EMAIL PROTECTED]> wrote: > Python variables are just names. They refer to (are "bound" to) > objects. An assignment statement doesn't change a value. It rebinds > the variable (or lvalue) to the va

Re: How to check...

2006-02-11 Thread Daniel Marcel Eichler
Lad wrote: >How can I check that a string does NOT contain NON English characters? try: foobar.encode('ascii') except: bla or use string.ascii_letters and enhance it. mfg Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: getting the line just before or after a pattern searched

2006-02-17 Thread Daniel Marcel Eichler
ine above/below) the pattern >12345678 and save to variables? thanks source = file(bla).read().split('\n') for i, line in enumerate(source): if line == '12345678': print '\n'.join( source[i-1:i+1] ) Something like this, for example. Of co

Put a file on an ftp server over ssl

2005-05-10 Thread Daniel Santa Cruz
wish... f = ftps.connect('username', 'password', port) ftps.put(localFilePath) Done! Thanks for any help! Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: Put a file on an ftp server over ssl

2005-05-10 Thread Daniel Santa Cruz
I looked briefly at this option, but it seems to me that I would have to learn a whole architecture just to put a file on an ftp server. Seems like a bit much, don't you think? Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: Put a file on an ftp server over ssl

2005-05-10 Thread Daniel Santa Cruz
hared the little jewel with us. Daniel -- http://mail.python.org/mailman/listinfo/python-list

How do I 'stat' online files?

2007-07-24 Thread DB Daniel Brown
I am working on a program that needs to stat files (gif, swf, xml, dirs, etc) from the web. I know how to stat a local file... import os tplStat = os.stat(path) but I can't figure out how to stat a file that resides on a web server. I am not sure if it makes a difference, but most (maybe all)

Strategy Design Pattern

2006-04-20 Thread Daniel Santa Cruz
avior + fly() Concrete Interface FlyHigh (implements FlyBehavior): + fly() Concrete Class Duck1 (Inherits Duck): + Constructor: _fly = new FlyHigh() Daniel. -- http://mail.python.org/mailman/listinfo/python-list

Re: os system command not found

2009-01-14 Thread Daniel da Silva
On Jan 14, 5:25 am, codicedave wrote: > Hi all! > I installed a external program called infomap using the classical > procedure > > ./configure > make > sudo make install > >  and it works perfectly in Terminal (Os x) using both bash and tcsh > shell > > admins-macbook-pro-2:~ unil$ infomap-build

Re: Plotting libraries recommendations

2008-10-14 Thread Daniel da Silva
Seconded. If you are familiar with Matlab plotting at all, the interface is nearly identical, and the graphics are great. Daniel On Tue, Oct 14, 2008 at 9:19 AM, eliben <[EMAIL PROTECTED]> wrote: > On Oct 14, 1:18 pm, sert <[EMAIL PROTECTED]> wrote: > > I'm devel

Re: default value in __init__

2008-10-14 Thread Daniel da Silva
alternate method that is logically equivalent to the intention. Daniel On Tue, Oct 14, 2008 at 10:25 PM, Dennis Lee Bieber <[EMAIL PROTECTED]>wrote: > On Tue, 14 Oct 2008 20:50:13 +0200, Bruno Desthuilliers > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python

Re: big objects and avoiding deepcopy?

2008-10-28 Thread Daniel da Silva
etimes missing for performance reasons). > > Bye, > bearophile > -- > http://mail.python.org/mailman/listinfo/python-list > -- Daniel da Silva (240) 678 - 4686 GSFC, GES-DISC 610.2 University of Maryland -- http://mail.python.org/mailman/listinfo/python-list

[ANN] pxyser --- python xml serialization (beta release 0.1).

2009-03-15 Thread Daniel Molina Wegener
://projects.coder.cl/pyxser/ the project repository and download: https://sourceforge.net/projects/pyxser/ to install, just get the tarball and: tar xzvf pyxser-1.0-beta.tar.gz cd pyxser python ./setup.py build --force python ./setup.py install best regards, - -- .O. | Daniel Molina Wegener

[ANN] pyxser-0.2rc1, python xml serialization

2009-04-08 Thread Daniel Molina Wegener
file for installing instructions. Well, I need some feedback and testers, I think that I've made just small test, but if I can get some feedback from this group it would be great... thanks in advance and best regards, - -- .O. | Daniel Molina Wegener | FreeBSD & Linux ..O | dmw [at] c

[ANN] pyxser-0.2r --- Python XML Serialization

2009-04-18 Thread Daniel Molina Wegener
//coder.cl/software/pyxser * hosted at: https://sourceforge.net/projects/pyxser/ The current ChangeLog is as follows: 0.2r (2009.04.18): Daniel Molina Wegener * Removed memory leaks concerning libxml2 usage. * Removed memory leaks concerning Python C/API usage.

Re: [ANN] pyxser-0.2r --- Python XML Serialization

2009-04-19 Thread Daniel Molina Wegener
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Stefan Behnel on Sunday 19 April 2009 02:25 wrote in comp.lang.python: > Daniel Molina Wegener wrote: >> * Every serilization is made into unicode objects. > > Hmm, does that mean that when I serialise, I get a unic

Re: [ANN] pyxser-0.2r --- Python XML Serialization

2009-04-19 Thread Daniel Molina Wegener
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Stefan Behnel on Sunday 19 April 2009 15:08 wrote in comp.lang.python: > Daniel Molina Wegener wrote: >> Stefan Behnel >> on Sunday 19 April 2009 02:25 >> wrote in comp.lang.python: >> >> >>> Daniel

Re: [ANN] pyxser-0.2r --- Python XML Serialization

2009-04-19 Thread Daniel Molina Wegener
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Stefan Behnel on Sunday 19 April 2009 15:08 wrote in comp.lang.python: > Daniel Molina Wegener wrote: >> Stefan Behnel >> on Sunday 19 April 2009 02:25 >> wrote in comp.lang.python: >> >> >>> Daniel

Re: [ANN] pyxser-0.2r --- Python XML Serialization

2009-04-20 Thread Daniel Molina Wegener
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan Behnel wrote: > Daniel Molina Wegener wrote: >> Sorry, it appears that I've misunderstand your question. By /unicode >> objects/ I mean /python unicode objects/ aka /python unicode strings/. > > Yes, that's

[ANN] pyxser-1.0rc1 --- python xml serialization

2009-04-26 Thread Daniel Molina Wegener
//coder.cl/software/pyxser * hosted at: https://sourceforge.net/projects/pyxser/ The current ChangeLog is as follows: - -8<--8<--8<--8<- 1.0rc1 (2009.04.26): Daniel Molina Wegener * Added both byte string and unicode r

[ANN] pyxser-1.0R --- python xml serialization

2009-05-09 Thread Daniel Molina Wegener
//coder.cl/software/pyxser * hosted at: https://sourceforge.net/projects/pyxser/ The current ChangeLog is as follows: 1.0rc1 (2009.04.26): Daniel Molina Wegener * Added both byte string and unicode returning and procesing functions. This means that we have

Re: this is simple...

2008-06-27 Thread Daniel da Silva
eturn True ... else: ... return False ... >>> A = filter(test, B) >>> A [1, 2, 3, 4, 5] Daniel On Sat, Jun 28, 2008 at 1:00 AM, ToshiBoy <[EMAIL PROTECTED]> wrote: > On Jun 28, 2:48 pm, Mel <[EMAIL PROTECTED]> wrote: > > ToshiBoy wrote: > &g

Re: You, spare time and SyntaxError

2008-07-10 Thread Daniel da Silva
I applaud your creativity. Very nice. On Wed, Jul 9, 2008 at 10:56 AM, <[EMAIL PROTECTED]> wrote: > def ine(you): >yourself = "what?" >go = list("something"), list("anything") >be = "something" >please = be, yourself >yourself = "great" >for good in yourself: >if y

Re: static variables in Python?

2008-07-29 Thread Daniel da Silva
personStatic = Static() class Person: static = personStatic def __init__(self, name, age): self.name = name self.age= age def setVersion(self, version): self.static.version = version def getVersion(self): return self.static.version -----

Re: iterating "by twos"

2008-07-29 Thread Daniel da Silva
e StopIteration -- >>> for v in enumeratePairs("hello i am daniel"): ... print v ... (0, ('h', 'e')) (1, ('l', 'l')) (2, ('o', ' ')) (3, ('i', ' ')) (4, ('a', 'm')) (5, (&#x

Re: Overloaded Functions

2008-07-29 Thread Daniel da Silva
Info(self, name, age): self.name = name self.age = age def initOnlyName(self, name): self.name = name self.age = 100 With this overload-dictionary approach, it may be possible to elegantly implement the overloading decorator I described at the top of this email. I hoped this

Re: How can I check nbr of cores of computer?

2008-07-30 Thread Daniel da Silva
Single line using /proc/cpuinfo: numprocs = [ int(line.strip()[-1]) for line in open('/proc/cpuinfo', 'r') if \ line.startswith('processor') ][-1] + 1 On Wed, Jul 30, 2008 at 2:16 PM, Dan Upton <[EMAIL PROTECTED]> wrote: > > On Wed, Jul 30, 2008 at 2:22 PM, John Nagle <[EMAIL PROTE

Re: Am I missing something with Python not having interfaces?

2008-05-07 Thread Daniel Marcel Eichler
Am Dienstag 06 Mai 2008 16:07:01 schrieb Mike Driscoll: > If so, then it looks like an Interface is a generic class with method > stubs. You can do that with Python just as easily by creating empty > methods with just the "pass" keyword. Well, no. It's a litte different. Interfaces force to impl

Re: Am I missing something with Python not having interfaces?

2008-05-08 Thread Daniel Marcel Eichler
Am Mittwoch 07 Mai 2008 22:39:30 schrieb Luis Zarrabeitia: > There you have it, interfaces are not enough to ensure that the > implementors actually implement the methods. They are useful for > warning at compile time if there is a missing method, but nothing > more. It's not the fault of the en

Re: Am I missing something with Python not having interfaces?

2008-05-08 Thread Daniel Marcel Eichler
Am Donnerstag 08 Mai 2008 00:12:26 schrieb [EMAIL PROTECTED]: > very often sees do-nothing catch-all try/catch blocks in Java - which > is way worse than just letting the exception propagate. I find all > this totally pointless, because there's just no way for a compiler to > check if your code i

Re: Am I missing something with Python not having interfaces?

2008-05-09 Thread Daniel Marcel Eichler
Am Freitag 09 Mai 2008 10:19:45 schrieb Bruno Desthuilliers: > >> very often sees do-nothing catch-all try/catch blocks in Java - > >> which is way worse than just letting the exception propagate. I > >> find all this totally pointless, because there's just no way for a > >> compiler to check if y

Re: Perl to Python conversion

2009-12-09 Thread Intchanter / Daniel Fackrell
to learn Python and ending up with a useful tool is secondary, I'd recommend rewriting the tool from scratch, possibly keeping the Perl source handy. If the existing tool is command-line based, you might also be able to write a short script through which you can pipe the output of the original

Re: Parsing json where object keys are not quoted?

2009-12-09 Thread Intchanter / Daniel Fackrell
On Dec 9, 3:51 pm, Wells wrote: > Is there some way to finagle the json module to parse JSON (well, > almost JSON) where the object keys are not in quotes? I know it's not > 100% valid JSON, but I'm just curious. > > I don't have control over the data, so I can't make it fit the spec :) Hopefully

Re: Immediate Help with python program!

2009-12-09 Thread Intchanter / Daniel Fackrell
On Dec 9, 5:18 pm, Jon Clements wrote: > Someone's homework assignment is overdue/due very soon? And, I don't > believe for a second this is your code. In fact, just searching for > (the obvious Java based) function names leads me to believe you've > 'butchered' it from Java code (do you not th

Re: accessing gmail

2009-12-15 Thread Intchanter / Daniel Fackrell
http://mail.google.com/support/bin/answer.py?hl=en&answer=77654 -- http://mail.python.org/mailman/listinfo/python-list

Re: Odd json encoding erro

2009-12-15 Thread Intchanter / Daniel Fackrell
: "Johnson, S", "name_first": "Steven", "name_full": "Johnson, Steve", "name_last": "Johnson", "name_matrilineal": "", "name_middle": "David", "name_nick": "", "name_prefix": "", "name_title": "", "name_use": "Steve", "player_id": "489002", "primary_position": "1", "primary_position_txt": "P", "primary_sport_code": "", "pro_debut_date": "", "start_date": "2009-12-10T00:00:00", "status": "Active", "status_code": "A", "status_date": "2009-12-10T00:00:00", "team_abbrev": "SF", "team_code": "sfn", "team_id": "137", "team_name": "San Francisco Giants", "throws": "R", "weight": "200" }, "totalSize": "1" }}}' import json print json.loads(data) (I'm running 2.6.4 on Mac OS X) Intchanter Daniel Fackrell -- http://mail.python.org/mailman/listinfo/python-list

Re: regex help

2009-12-16 Thread Intchanter / Daniel Fackrell
tation for several built-in options, and I'm sure there are many community projects that may fit the bill if none of those happen to. Personally, I consider regular expressions of any substantial length and complexity to be bad practice as it inhibits readability and maintainability. They are a

Re: Aaaargh! "global name 'eggz' is not defined"

2009-10-29 Thread Daniel da Silva
There are several static analysis tools that can check whether a variable name is used before it is defined. At my old workplace we used "pylint", so I can recommend that: http://www.logilab.org/857 --Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: remote control firefox with python

2010-11-29 Thread Daniel Molina Wegener
rvices/library/co-xpcom2.html "XPCOM Part 3: Setting up XPCOM" http://www.ibm.com/developerworks/webservices/library/co-xpcom3.html "Mozilla Reference Documentation" https://developer.mozilla.org/en/XPCOM Best regards, -- Daniel Molina Wegener System Programmer & Web D

Re: Standard module implementation

2010-11-29 Thread Daniel Molina Wegener
n, you can try the lxml extension, which uses the LibXML2 bindings: http://codespeak.net/lxml/ Best regards, -- Daniel Molina Wegener System Programmer & Web Developer Phone: +56 (2) 979-0277 | Blog: http://coder.cl/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling FORTAN dll functions from Python

2010-12-08 Thread Daniel da Silva
I don't know much about fortran+python, but I work with someone who does, and he absolutely loves this tool: http://cens.ioc.ee/projects/f2py2e/ <http://cens.ioc.ee/projects/f2py2e/>Daniel On Tue, Dec 7, 2010 at 10:19 PM, Dennis Lee Bieber wrote: > On Tue, 07 Dec 2010 12:52:54

Funny __future__ imports

2010-12-21 Thread Daniel da Silva
from __future__ import space_shuttle DeprecationWarning: will be removed in next release Post yours! -- http://mail.python.org/mailman/listinfo/python-list

[ANN] pyxser-1.5.2r --- Python Object to XML serializer/deserializer

2011-01-08 Thread Daniel Molina Wegener
using pyxser XML Schema. * C14N based serialization, as optional kind of output. * Model based XML serialization, represented on XML Schema and XML DTD. The ChangeLog for this release is as follows: -8<--8<--8<--8<- 1.5.2r (2011.01.08): Dani

Re: list displays

2011-01-08 Thread Daniel da Silva
They're called "List Comprehensions" http://docs.python.org/tutorial/datastructures.html#list-comprehensions On Sat, Jan 8, 2011 at 4:57 PM, Olive wrote: > I am a newbie to python. Python supports what I thinks it is call

Parsing string for " "

2011-01-11 Thread Daniel da Silva
the right direction, I would be very thankful! Cheers, Daniel -- http://mail.python.org/mailman/listinfo/python-list

Parsing string for " "

2011-01-11 Thread Daniel da Silva
the right direction, I would be very thankful! Cheers, Daniel -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing string for " "

2011-01-12 Thread Daniel da Silva
MRAB, I will check it out. Thanks! Daniel On Tue, Jan 11, 2011 at 10:23 PM, MRAB wrote: > On 12/01/2011 01:50, Daniel da Silva wrote: > >> Hi, >> >> I have come across a task where I would like to scan a short 20-80 >> character line of text for instances of &quo

Best way to administer code updates to server daemon

2011-01-21 Thread Daniel da Silva
if it means I can keep close to continuous uptime. Thanks, Daniel -- http://mail.python.org/mailman/listinfo/python-list

[ANN] pyxser-1.4.4r --- Python Object to XML serializer/deserializer

2010-06-20 Thread Daniel Molina Wegener
Hello Python Community. I'm pleased to announce pyxser-1.4.4r, a python extension which contains functions to serialize and deserialize Python Objects into XML. It is a model based serializer. Here is the ChangeLog entry for this release: ---8<--- 1.4.4r (2010.02.10): Danie

Re: Global variables problem

2010-08-03 Thread Daniel da Silva
Please post approximate code that actually works and displays the problem. On Tue, Aug 3, 2010 at 9:00 PM, Navkirat Singh wrote: > Hey guys, > > I am using a multiprocessing program, where the new process is supposed to > change a variable in the main class that it branches out from. This is > s

Re: simple (I hope!) problem

2010-08-03 Thread Daniel da Silva
Why not just add the google app engine lib subdirectories to your python path? On Tue, Aug 3, 2010 at 3:09 AM, Jean-Michel Pichavant < jeanmic...@sequans.com> wrote: > samwyse wrote: > >> I'm writing for the Google app engine and have stubbed my toe yet >> again on a simple obstacle. Non-trivia

Re: Global variables problem

2010-08-03 Thread Daniel da Silva
I can't really comment on what you're doing wrong, but I hope this points you in the right direction. Sorry I couldn't be of more help, Daniel On Tue, Aug 3, 2010 at 9:48 PM, Navkirat Singh wrote: > > On 04-Aug-2010, at 9:46 AM, Daniel da Silva wrote: > > Please po

Re: newbie problem with str.replace

2010-08-04 Thread Daniel da Silva
Also, for bestandsnaam in dirs and files: is probably not doing what you want. Use + to concatenate lists. Daniel On Wed, Aug 4, 2010 at 6:30 AM, Mike Kent wrote: > On Aug 4, 9:10 am, BobAalsma wrote: > > I'm working on a set of scripts and I can't get a

[ANN] pyxser-1.1r --- python xml serialization

2009-07-27 Thread Daniel Molina Wegener
//coder.cl/software/pyxser * hosted at: http://sourceforge.net/projects/pyxser/ The current ChangeLog is as follows: - -8<--8<--8<--8<- 1.1r (2009.05.09): Daniel Molina Wegener * Removed bugs concerning XML schema declaration for ou

[ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-23 Thread Daniel Molina Wegener
ge:   http://coder.cl/software/pyxser * hosted at:   http://sourceforge.net/projects/pyxser/ * pypi entry:   http://pypi.python.org/pypi?:action=display&name=pyxser&version=1.2r The current ChangeLog is as follows: - -8<--8<--8<--8<- 1.2r (2009.

Re: [ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-24 Thread Daniel Molina Wegener
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Stefan Behnel on Monday 24 August 2009 03:16 wrote in comp.lang.python: > Daniel Molina Wegener wrote: >> * Added encoded serialization of Unicode strings by using >> the user defined encoding as is passed to th

Re: [ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-24 Thread Daniel Molina Wegener
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Stefan Behnel on Monday 24 August 2009 09:00 wrote in comp.lang.python: > Daniel Molina Wegener wrote: >> unicode objects are encoded into the >> encoding that the XML document encoding has, and as you say, the whole >>

Re: [ANN] pyxser-1.2r --- Python-Object to XML serialization module

2009-08-25 Thread Daniel Molina Wegener
nputs with different encodings --- if those byte strings are not readed as Unicode strings. Both sanitizing and base64 encoding are good options, and also, both are readable from other platforms. The problem with later implementations of pyxser was that it was using *RawUnicodeEscape* which is

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Daniel S. Braz
Hi, To create a .deb file you may use checkinstall, it's very simple and work very well. Em 25/09/2009, às 03:15, Olof Bjarnason escreveu: Hi! I write small games in Python/PyGame. I want to find a way to make a downloadable package/installer/script to put on my webpage, especially for Ubu

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Daniel S. Braz
for my -- very -- bad english) Daniel Em 25/09/2009, às 12:54, Olof Bjarnason escreveu: 2009/9/25 Daniel S. Braz : Hi, To create a .deb file you may use checkinstall, it's very simple and work very well. Hi Daniel, From what I gather browsing the web abount checkinstall, it seems to

Re: Man pages and info pages

2010-11-03 Thread Daniel da Silva
Guys, this really has nothing to do with python. On Wednesday, November 3, 2010, Hrvoje Niksic wrote: > Teemu Likonen writes: > >>     Enter   Follow a link (down to node) >>     u       up node level >>     h       help (general how-to) >>     ?       help (commands) >>     s       search > > A

Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread Daniel W. Rouse Jr.
Hi all, I have recently started learning Python (2.7.3) but need a better explanation of how to use tuples and dictionaries. I am currently using "Learning Python" by Mark Lutz and David Ascher, published by O'Reilly (ISBN 1-56592-464-9)--but I find the explanations insufficient and the numb

Re: Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread Daniel W. Rouse Jr.
"Chris Angelico" wrote in message news:mailman.1197.1359515470.2939.python-l...@python.org... On Wed, Jan 30, 2013 at 1:55 PM, Daniel W. Rouse Jr. wrote: I am currently using "Learning Python" by Mark Lutz and David Ascher, published by O'Reilly (ISBN 1-565

Re: Please provide a better explanation of tuples and dictionaries

2013-01-29 Thread Daniel W. Rouse Jr.
"John Gordon" wrote in message news:keaa9v$1ru$1...@reader1.panix.com... In "Daniel W. Rouse Jr." writes: I have recently started learning Python (2.7.3) but need a better explanation of how to use tuples and dictionaries. A tuple is a linear sequence of items, acc

doubt About import machine

2021-11-21 Thread Daniel Eduardo Almeida Correa
Hello, I'm trying to use the machine library in python 3.10 version, but I can't import it with the pip install machine, could you tell me a way to solve it or a python version compatible with the library? Thank you a lot for your answer. -- https://mail.python.org/mailman/listinfo/python-list

<    13   14   15   16   17   18   19   >