[Python-announce] [Release] Kedro 0.18.11 

2023-07-03 Thread Juan Luis Cano via Python-announce-list
yter notebooks using Kedro ” on YouTube: https://youtu.be/qClSGY6B0r0 Follow us on the Fediverse and join our community in Slack: https://social.lfx.dev/@kedro https://slack.kedro.org/ Happy pipelining! -- Cano Rodríguez, Juan Luis Principal Product Manager & Lead Developer Advocate Quan

[Python-announce] [Release] Kedro 0.18.9

2023-06-01 Thread Juan Luis Cano via Python-announce-list
shop “Refactor your Jupyter notebooks ​using Kedro​” on YouTube: https://youtu.be/qClSGY6B0r0 Follow us on the Fediverse and join our community in Slack: https://social.lfx.dev/@kedro https://slack.kedro.org/ Happy pipelining! -- Cano Rodríguez, Juan Luis Developer Advocate at QuantumBlack Labs Pron

[Python-announce] [Release] Kedro 0.18.8 

2023-05-04 Thread Juan Luis Cano via Python-announce-list
w us on the Fediverse or join our community in Slack: https://youtube.com/@kedro-python https://social.lfx.dev/@kedro https://slack.kedro.org/ Happy pipelining! -- Cano Rodríguez, Juan Luis Developer Advocate at QuantumBlack Labs Pronouns: he/him/his McKinsey & Company M +34 686

[Python-announce] ANN: poliastro 0.17.0 released 

2022-07-11 Thread Juan Luis Cano Rodríguez
welcome to join our community chat on Matrix: http://chat.poliastro.space Per Python ad astra! --- Juan Luis Cano Rodríguez poliastro lead developer  ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to

[Python-announce] ANN: poliastro 0.16.3 released 

2022-05-12 Thread Juan Luis Cano Rodríguez
! --- Juan Luis Cano Rodríguez ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to python-announce-list-le...@python.org https://mail.python.org/mailman3/lists/python-announce-list.python.org/ Member address

[Python-announce] ANN: poliastro 0.16.2 released 

2022-02-10 Thread Juan Luis Cano Rodríguez
://chat.poliastro.space Per Python ad astra! --- Juan Luis Cano Rodríguez ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to python-announce-list-le...@python.org https://mail.python.org/mailman3

[Python-announce] ANN: poliastro 0.16.0 released 

2021-12-08 Thread Juan Luis Cano Rodríguez
Hi all, It fills us with astronomical joy to announce the release of poliastro 0.16.0!  poliastro is an open source (MIT) pure Python library for interactive Astrodynamics and Orbital Mechanics, with a focus on ease of use, speed, and quick visualization. It provides a simple and intuitive API,

ANN: poliastro 0.15.0 released 

2021-06-06 Thread Juan Luis Cano Rodríguez
Hi all, It fills us with astronomical joy to announce the release of poliastro 0.15.0!  poliastro is an open source (MIT) pure Python library for interactive Astrodynamics and Orbital Mechanics, with a focus on ease of use, speed, and quick visualization. It provides a simple and intuitive API,

Fwd: Inconveniente

2021-02-09 Thread Juan Jose Reyna Figuera
*Buenas tardes, le escribo breve y puntualmente para reportar este el siguiente error al cual no le pude dar solución.* *Instalé Python 3.9.1 (64 bits), todo había funcionado bien hasta que necesité usar la librería seaborn. Al ejecutar mi algoritmo obtenía el siguiente error: *

[issue41274] Better way to random.seed()?

2020-07-30 Thread Juan Jimenez
Juan Jimenez added the comment: Pull request https://github.com/python/cpython/pull/21693 created for the demo steven.daprano suggested. -- message_count: 8.0 -> 9.0 pull_requests: +20836 pull_request: https://github.com/python/cpython/pull/21

[issue41446] New demo, using a web api

2020-07-30 Thread Juan Jimenez
Change by Juan Jimenez : -- keywords: +patch pull_requests: +20835 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21693 ___ Python tracker <https://bugs.python.org/issu

[issue41446] New demo, using a web api

2020-07-30 Thread Juan Jimenez
New submission from Juan Jimenez : As per a suggestion in https://bugs.python.org/issue41274 I would like to submit for consideration a new demo program, one that demonstrates how to use a web API to generate a pseudo-random generator seed from high resolution, high cadence images of the sun

[issue41274] Better way to random.seed()?

2020-07-11 Thread Juan Jimenez
Juan Jimenez added the comment: How would I know if my demo is good enough to be included in that repo? Is there a guide for this, or do I just create a pull request, throw it over the fence and wait until the wolves either grunt in approval or throw it back at me in pieces? I ask because I

[issue41274] Better way to random.seed()?

2020-07-10 Thread Juan Jimenez
Juan Jimenez added the comment: Thanks Rémi. :) -- ___ Python tracker <https://bugs.python.org/issue41274> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41274] Better way to random.seed()?

2020-07-10 Thread Juan Jimenez
Juan Jimenez added the comment: I'm not a Python guru, but I was wondering, is it possible to write a new module that overrides the seed() method in the random library in its initialization code and replaces it with this method of seeding the generator

[issue41274] Better way to random.seed()?

2020-07-10 Thread Juan Jimenez
New submission from Juan Jimenez : I have invented a new way to seed the random number generator with about as random a source of seeds as can be found: hashes generated from high cadence, high resolution images of the surface of the Sun. These are captured by the Solar Dynamics

poliastro 0.14.0 released 

2020-05-11 Thread Juan Luis Cano
Per Python ad astra! -- Juan Luis Cano ___ Python-announce-list mailing list -- python-announce-list@python.org To unsubscribe send an email to python-announce-list-le...@python.org https://mail.python.org/mailman3/lists/python-announce-list.pyth

[issue39247] dataclass defaults and property don't work together

2020-04-15 Thread Juan Arrivillaga
Juan Arrivillaga added the comment: But when would you want to have a descriptor as an instance attribute? Descriptors must be in the class dictionary to work: https://docs.python.org/3/reference/datamodel.html#implementing-descriptors I suppose, you could want some container class

[issue39247] dataclass defaults and property don't work together

2020-01-10 Thread Juan Arrivillaga
Juan Arrivillaga added the comment: Actually, couldn't the following be a workaround, just set the property on the class after the class definition: import dataclasses import typing @dataclasses.dataclass class FileObject: uploaded_by:typing.Optional[None]=None def

[issue39247] dataclass defaults and property don't work together

2020-01-10 Thread Juan Arrivillaga
Juan Arrivillaga added the comment: So, after glancing at the source code: https://github.com/python/cpython/blob/ce54519aa09772f4173b8c17410ed77e403f3ebf/Lib/dataclasses.py#L869 During this processing of fields, couldn't you just special case property/descriptor objects? -- nosy

ANN: czml3 0.3.0 released 

2019-10-25 Thread Juan Luis Cano
Hi all, It fills us with astronomical joy to announce the release of czml3 0.3.0!  czml3 is a Python (3.6+) library to write CZML. Copying from the CZML Guide: > CZML is a JSON format for describing a time-dynamic graphical scene, > primarily for display in a web browser running Cesium. It

[issue38052] Include sspipe Module with Core Python

2019-09-14 Thread Juan Telleria
Juan Telleria added the comment: And based on previous example, a more "pythonic" syntax would: MyObj = Class \ .method1() \ .f_function1() \ .method2() \ .f_function2(param1 = "A", param2 = .) So that any function preceded by a dot "." becomes a

[issue38052] Include sspipe Module with Core Python

2019-09-13 Thread Juan Telleria
Juan Telleria added the comment: Even if it is not currently mainstream, piping (tidy and readable code, left to right), should be a foundation, not just a module. -- ___ Python tracker <https://bugs.python.org/issue38

[issue38052] Include sspipe Module with Core Python

2019-09-08 Thread Juan Telleria
Juan Telleria added the comment: There was a positive response from package mantainers for this issue :) See: https://github.com/sspipe/sspipe/issues/4 >> is the module mature and stable? I am using this module in my own projects for a while and it satisfies my own requirements. Howe

[issue38052] Include sspipe Module with Core Python

2019-09-07 Thread Juan Telleria
Change by Juan Telleria : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue38052> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue38052] Include sspipe Module with Core Python

2019-09-07 Thread Juan Telleria
New submission from Juan Telleria : Could sspipe be included as a Core Python module? https://sspipe.github.io/ https://github.com/sspipe/sspipe https://pypi.org/project/sspipe/ sspipe allows to use syntax such as: from sspipe import p, px import numpy as np import pandas as pd

ANN: poliastro 0.13.0 released 

2019-08-05 Thread Juan Luis Cano Rodríguez
Cubesat Worshop held at the European Space Operations Centre in 2017: https://youtu.be/KnoYzqAw_vM?t=1h36m14s Please join our chat on Matrix/Riot and feel free to ask any questions you might have: https://chat.openastronomy.org/#/room/#poliastro:matrix.org Per Python ad astra! -- Juan Luis Cano

ANN: czml3 0.1.0 released 

2019-06-18 Thread Juan Luis Cano Rodríguez
Hi all, It fills us with astronomical joy to announce the release of czml3 0.1.0!  czml3 is a Python (3.6+) library to write CZML. Copying from the CZML Guide: > CZML is a JSON format for describing a time-dynamic graphical scene, > primarily for display in a web browser running Cesium. It

ANN: poliastro 0.12.0 released 

2019-02-25 Thread Juan Luis Cano
to ask any questions you might have: https://chat.openastronomy.org/#/room/#poliastro:matrix.org Per Python ad astra! -- Juan Luis Cano -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

[issue35655] documentation have wrong info about fibo module examples

2019-01-04 Thread Juan
New submission from Juan : The below sections in modules documentation have wrong information about fibo module: 6. Modules 6.1. More on Modules 6.1.1. Executing modules as scripts 6.3. The dir() Function The name of module is Fibo not fibo and the attributes are fab,fab2 not fib,fib2

ANN: poliastro 0.11.1 released 

2019-01-02 Thread Juan Luis Cano
free to ask any questions you might have: https://riot.im/app/#/room/#poliastro:matrix.org Per Python ad astra! -- Juan Luis Cano -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

distribute python interpreter and dependencies

2018-11-12 Thread Juan Cristóbal Quesada
Hello, this is my first mail. I resorted to the list after some prior struggling. Im facing the need to distribute a python installation folder and interpreter in a shared network drive. Im also distributing the application's source code that would lie also in another network drive. For this,

ANN: poliastro 0.11.0 released 

2018-10-02 Thread Juan Luis Cano
Cubesat Worshop held at the European Space Operations Centre last year: https://youtu.be/KnoYzqAw_vM?t=1h36m14s Please join our chat on Matrix/Riot and feel free to ask any questions you might have: https://riot.im/app/#/room/#poliastro:matrix.org Per Python ad astra! -- Juan Luis Cano -- https

ANN: poliastro 0.10.0 released 

2018-07-23 Thread Juan Luis Cano
Please join our chat on Matrix/Riot and feel free to ask any questions you might have: https://riot.im/app/#/room/#poliastro:matrix.org Per Python ad astra! -- Juan Luis Cano -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http

ANN: poliastro 0.9.1 released 

2018-05-14 Thread Juan Luis Cano
org> Per Python ad astra! -- Juan Luis Cano -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

ANN: telluric 0.1 released 

2018-04-27 Thread Juan Luis Cano
://github.com/satellogic/open-impact/ Let us know if you have any questions or feedback! -- *Juan Luis Cano Rodríguez |* Senior Python Developer +34 646 515 050 Carrer d'Àvila 48 1st Floor, Suite 5 Barcelona -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python

ANN: poliastro 0.9 released 

2018-04-27 Thread Juan Luis Cano
questions you might have: https://riot.im/app/#/room/#poliastro:matrix.org Per Python ad astra! -- Juan Luis Cano -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

[issue33360] ALternative recipe for password using secrets

2018-04-26 Thread Juan Postlbauer
Juan Postlbauer <jpc4...@gmail.com> added the comment: Just a clarification: by "infinite potential loop" I meant a loop that *theoretically* could last forever. Of course in practice it won't, but my experiments show that for the conditions in the example in average the

[issue33364] Conditionals not evaluating propertly

2018-04-26 Thread Juan Enrique Segebre Zaghmout
New submission from Juan Enrique Segebre Zaghmout <juansege...@gmail.com>: The following code generates False when it should generate true: True == False < 20 Either way the order of operation is taken should result in True but the answer still results in False. To further confirm t

[issue33360] ALternative recipe for password using secrets

2018-04-25 Thread Juan Postlbauer
New submission from Juan Postlbauer <jpc4...@gmail.com>: Chapter 15.3.4 shows a recipe with an infinite potential loop. An alternative would be: ''.join(sorted([choice(string.ascii_lowercase) for i in range(1)]+[choice(string.ascii_uppercase) for i in range(1)]+[choice(string.digits)

ANN: poliastro 0.8 released 

2017-11-20 Thread Juan Luis Cano
our chat on Matrix: https://riot.im/app/#/room/#poliastro:matrix.org Per Python ad astra! -- Juan Luis Cano -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

ANN: poliastro 0.7 released

2017-09-20 Thread Juan Luis Cano
e read here: http://blog.poliastro.space/2017/09/15/2017-09-15-poliastro-070-released-ready-pycones/ We encourage you to join our chat on Matrix: https://riot.im/app/#/room/#poliastro:matrix.org *Per Python ad Astra! * *---* Juan Luis Cano Rodríguez -- https://mail.python.org/mailman/listinfo/

How to run self-contained Python scripts who don't need Python installation?

2017-06-08 Thread Juan C.
I need to run some Python 3.6.0 scripts on the users' machines (W7 and W10) in an enterprise environment, but I can't install Python on those machines. I tried looking for those "py to exe", but sadly they don't support Python 3.6.0. Then I found out about "Windows x86/x86-64 embeddable zip file"

Re: How to create a Python 3.6 traceroute without SOCK RAW?

2017-02-23 Thread Juan C.
On Thu, Feb 23, 2017 at 7:42 PM, Irmen de Jong wrote: > > import os > os.system("traceroute www.google.com") Indeed, that would work, but it isn't a great approach in my opinion because I would rely on a system command, in this case Windows uses tracert while UNIX uses

How to create a Python 3.6 traceroute without SOCK RAW?

2017-02-23 Thread Juan C.
I need to implement a traceroute inside my script but I can't escalate privileges.  Unix uses UDP for traceroute, but I didn't find any material regarding UDP traceroute in Python. -- https://mail.python.org/mailman/listinfo/python-list

[issue29616] input() after restarting causes bug

2017-02-22 Thread Juan
Juan added the comment: I am using Windows 10 64-bit. >> sometimes whatever you pressed in step 3 disappears, > > When Shell is restarted by whatever means, any pending input, whether in > response to '>>>' or user input(), is cancelled and > *should* disapp

[issue29616] input() after restarting causes bug

2017-02-22 Thread Juan
Juan added the comment: *doesn't respond to commands. I mean something similar to (not equal) "while(1): pass") -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.py

[issue29616] input() after restarting causes bug

2017-02-22 Thread Juan
Juan added the comment: What I meant was: 1. Open a file whose content is "input()" with IDLE 2. F5 3. Type something but without pressing Enter. 4. Come back to the script (with input() still responding to keystrokes on the input line) 5. F5 6. Bug. (Results vary even on the sa

[issue29616] input() after restarting causes bug

2017-02-21 Thread Juan
New submission from Juan: This bug can be recreated by opening a file whose content is "input()" with IDLE, press F5 and the shell opens as expected. Without making the input in the shell stop, press F5 in the script again. In Python 3.5 IDLE only take input until another F5 (

ANN: poliastro 0.6 released

2017-02-14 Thread Juan Luis Cano
roups.io/g/poliastro-dev /Per Python ad Astra! /Juan Luis Cano Rodríguez -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

Re: What library/package to use for parsing XML?

2017-01-30 Thread Juan C.
On Mon, Jan 30, 2017 at 3:58 PM, Chris Green wrote: > I want to parse some XML data, it's the address book data from the > linux program osmo. The file I want to parse is like this:- Just like Irmen said, use the default xml.etree.ElementTree, it's amazing and very simple to use.

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Juan C.
On Sun, Jan 29, 2017 at 1:06 AM, Juan C. <juan0christ...@gmail.com> wrote: > > As you guys might know, .NET Core is up and running, promising a > "cross-platform, unified, fast, lightweight, modern and open source > experience" (source: .NET Core official site).

What are your opinions on .NET Core vs Python?

2017-01-28 Thread Juan C.
As you guys might know, .NET Core is up and running, promising a "cross-platform, unified, fast, lightweight, modern and open source experience" (source: .NET Core official site). What do you guys think about it? Do you think it will be able to compete with and overcome Python in the opensource

Re: Choosing a Python IDE. what is your Pythonish recommendation? I do not know what to choose.

2017-01-02 Thread Juan C.
On Mon, Jan 2, 2017 at 9:38 AM, Antonio Caminero Garcia < tonycam...@gmail.com> wrote: > The thing with the from-the-scratch full featured IDEs (Eclipse, IntelliJ, Pycharm) is that they look like a space craft dashboard and that unwarranted resources consumption and the unnecessary icons. I want

Re: Python constructors have particular semantics, and ‘Foo.__init__’ doesn't qualify (was: The right way to 'call' a class attribute inside the same class)

2016-12-12 Thread Juan C.
I agree with you, I'll post here the same thing I said in there for another member: On Mon, Dec 12, 2016 at 6:59 PM, Thomas 'PointedEars' Lahn wrote: > > Using the Python official doc

Re: The right way to 'call' a class attribute inside the same class

2016-12-12 Thread Juan C.
On Mon, Dec 12, 2016 at 6:59 PM, Thomas 'PointedEars' Lahn wrote: > Using the Python official doc link you provided, it clearly states that `__new__` is the one called to "create a new

Re: The right way to 'call' a class attribute inside the same class

2016-12-12 Thread Juan C.
On Mon, Dec 12, 2016 at 12:34 PM, Thomas 'PointedEars' Lahn wrote: > First of all, the proper term for what you are doing there is _not_ “call”; > you are _accessing_ an attribute instead. Indeed, `accessing` seems better. I was looking for a better word but couldn't find at

Re: The right way to 'call' a class attribute inside the same class

2016-12-12 Thread Juan C.
On Sun, Dec 11, 2016 at 11:34 PM, Steve D'Aprano wrote: > So... in summary: > > > When *assigning* to an attribute: > > - use `self.attribute = ...` when you want an instance attribute; > > - use `Class.attribute = ...` when you want a class attribute in > the same

The right way to 'call' a class attribute inside the same class

2016-12-11 Thread Juan C.
I'm watching a Python course and was presented a topic regarding classes. One of the examples were: box.py class Box: serial = 100 def __init__(self, from_addr, to_addr): self.from_addr = from_addr self.to_addr = to_addr self.serial = Box.serial

Re: How to properly retrieve data using requests + bs4 from multiple pages in a site?

2016-12-03 Thread Juan C.
On Thu, Dec 1, 2016 at 10:07 PM, Juan C. <juan0christ...@gmail.com> wrote: > It works, but it has a big issue: it gets all data from all units/courses/assignments at the same time, and this isn't very useful as I don't care about data from units from 1-2 years ago. How can I change the

How to properly retrieve data using requests + bs4 from multiple pages in a site?

2016-12-01 Thread Juan C.
I'm a student and my university uses Moodle as their learning management system (LMS). They don't have Moodle Web Services enabled and won't be enabling it anytime soon, at least for students. The university programs have the following structure, for example: 1. Bachelor's Degree in Computer

[issue28336] Slicing (operation) is not symmetrical with respect to suffixes and prefixes

2016-10-01 Thread Juan Carlos Pujol Mainegra
New submission from Juan Carlos Pujol Mainegra: Let s be a string or other array-like object, a, b > 0 integers, s[0:b] returns a b-long prefix to s, the same as s[:b], but s[-a:0] returns empty (for len(s) > 0 and a > 1), while it should return the same as s[-a:], an a-long suffi

Re: What's the best way to minimize the need of run time checks?

2016-08-28 Thread Juan Pablo Romero Méndez
2016-08-28 0:04 GMT-07:00 Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info>: > On Sunday 28 August 2016 15:56, Juan Pablo Romero Méndez wrote: > > > 2016-08-27 21:30 GMT-07:00 Steve D'Aprano <steve+pyt...@pearwood.info>: > [...] > >> Now it is true that

Re: What's the best way to minimize the need of run time checks?

2016-08-27 Thread Juan Pablo Romero Méndez
2016-08-27 21:30 GMT-07:00 Steve D'Aprano <steve+pyt...@pearwood.info>: > On Sun, 28 Aug 2016 12:31 pm, Juan Pablo Romero Méndez wrote: > > > 2016-08-14 7:29 GMT-07:00 Steven D'Aprano <steve+pyt...@pearwood.info>: > > > >> On Thu, 11 Aug 2016 0

Re: What's the best way to minimize the need of run time checks?

2016-08-27 Thread Juan Pablo Romero Méndez
2016-08-27 21:30 GMT-07:00 Steve D'Aprano <steve+pyt...@pearwood.info>: > On Sun, 28 Aug 2016 12:31 pm, Juan Pablo Romero Méndez wrote: > > > 2016-08-14 7:29 GMT-07:00 Steven D'Aprano <steve+pyt...@pearwood.info>: > > > >> On Thu, 11 Aug 2016 0

Re: What's the best way to minimize the need of run time checks?

2016-08-27 Thread Juan Pablo Romero Méndez
2016-08-14 7:29 GMT-07:00 Steven D'Aprano <steve+pyt...@pearwood.info>: > On Thu, 11 Aug 2016 06:33 am, Juan Pablo Romero Méndez wrote: > > > I've been trying to find (without success so far) an example of a > > situation where the dynamic features of a language like Pyt

Re: What's the best way to minimize the need of run time checks?

2016-08-12 Thread Juan Pablo Romero Méndez
2016-08-12 1:10 GMT-07:00 Lawrence D’Oliveiro <lawrenced...@gmail.com>: > On Thursday, August 11, 2016 at 8:33:41 AM UTC+12, Juan Pablo Romero > Méndez wrote: > > > I've been trying to find (without success so far) an example of a > situation > > where the dynam

Re: What's the best way to minimize the need of run time checks?

2016-08-10 Thread Juan Pablo Romero Méndez
age are a better solution than static typing. This is of course more useful in languages that support both paradigms. Juan Pablo 2016-08-10 13:50 GMT-07:00 Michael Selik <michael.se...@gmail.com>: > > > On Wed, Aug 10, 2016, 4:34 PM Juan Pablo Romero Méndez < > jpablo.rom...

Re: What's the best way to minimize the need of run time checks?

2016-08-10 Thread Juan Pablo Romero Méndez
2016-08-09 18:28 GMT-07:00 Steven D'Aprano <steve+pyt...@pearwood.info>: > On Wed, 10 Aug 2016 04:29 am, Juan Pablo Romero Méndez wrote: > > > Hello, > > > > In online forums sometimes people complain that they end up having to > test > > constant

Re: What's the best way to minimize the need of run time checks?

2016-08-10 Thread Juan Pablo Romero Méndez
2016-08-09 23:16 GMT-07:00 Gregory Ewing <greg.ew...@canterbury.ac.nz>: > Juan Pablo Romero Méndez wrote: > > This is interesting. You are Ok having runtime errors? >> > > You're going to have runtime errors in any case, whether > they come from code you've put t

Re: What's the best way to minimize the need of run time checks?

2016-08-10 Thread Juan Pablo Romero Méndez
2016-08-09 23:47 GMT-07:00 Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info>: > On Wednesday 10 August 2016 15:20, Juan Pablo Romero Méndez wrote: > > > Ok, so you suggested 1) catching exceptions at the point where you care, > 2) > > preemptively check for

Re: What's the best way to minimize the need of run time checks?

2016-08-09 Thread Juan Pablo Romero Méndez
2016-08-09 18:28 GMT-07:00 Steven D'Aprano <steve+pyt...@pearwood.info>: > On Wed, 10 Aug 2016 04:29 am, Juan Pablo Romero Méndez wrote: > > > Hello, > > > > In online forums sometimes people complain that they end up having to > test > > constant

Re: What's the best way to minimize the need of run time checks?

2016-08-09 Thread Juan Pablo Romero Méndez
2016-08-09 14:01 GMT-07:00 Michael Selik <michael.se...@gmail.com>: > On Tue, Aug 9, 2016 at 3:22 PM Juan Pablo Romero Méndez < > jpablo.rom...@gmail.com> wrote: > >> I'm actually looking for ways to minimize run time errors, so that would >> include TypeError

Re: What's the best way to minimize the need of run time checks?

2016-08-09 Thread Juan Pablo Romero Méndez
2016-08-09 13:18 GMT-07:00 Rob Gaddi <rgaddi@highlandtechnology.invalid>: > Juan Pablo Romero Méndez wrote: > > > 2016-08-09 12:06 GMT-07:00 Paul Rubin <no.email@nospam.invalid>: > > > >> Juan Pablo Romero Méndez <jpablo.rom...@gmail.com> writes: >

Re: What's the best way to minimize the need of run time checks?

2016-08-09 Thread Juan Pablo Romero Méndez
What static checking can actually guarantee varies depending on the specific type system at hand (C# vs Haskell vs Idris for example). But most of them can guarantee simple stuff like: "I'm I allowed to invoke this function at this point?" If you don't have that, well you can rely on tests to

Re: What's the best way to minimize the need of run time checks?

2016-08-09 Thread Juan Pablo Romero Méndez
2016-08-09 12:06 GMT-07:00 Paul Rubin <no.email@nospam.invalid>: > Juan Pablo Romero Méndez <jpablo.rom...@gmail.com> writes: > > In online forums sometimes people complain that they end up having to > > test constantly for None > > That's something of a st

What's the best way to minimize the need of run time checks?

2016-08-09 Thread Juan Pablo Romero Méndez
addresses the following issue: What is the best way to use the dynamic features of Python to avoid having to write a poor's man type system? Thanks! Juan Pablo -- https://mail.python.org/mailman/listinfo/python-list

PLEASE HELP -- TOTALLY NEW TO PYTHON

2016-03-26 Thread Juan Dent
nge(len(subgraphs)-1, -1, -1): TypeError: object of type 'generator' has no len() Please, I know no python and am in a hurry to get this working… Please help Regards, Juan -- https://mail.python.org/mailman/listinfo/python-list

poliastro 0.5, Astrodynamics in Python

2016-03-06 Thread Juan Luis Cano
in progress and the API is subject to change. Contributions, bug reports, suggestions and advice are more than welcome! /Per Python ad Astra! /Juan Luis Cano Rodríguez -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http

poliastro 0.4, Astrodynamics in Python

2015-12-14 Thread Juan Luis Cano
t is still a work in progress and the codebase is subject to change. Contributions, bug reports, suggestions and advice are more than welcome! https://github.com/poliastro/poliastro/issues Best regards, Juan Luis Cano -- https://mail.python.org/mailman/listinfo/python-announce-list Support

[issue25058] Right square bracket argparse metavar

2015-09-10 Thread Juan Jimenez-Anca
New submission from Juan Jimenez-Anca: When trying to assign the metavar in add_argument() method of argparse module I'm unable to include characters after a right square bracket. Trying to set something like this: metavar="[host:database:collection:]field" would raise an Asse

[issue25058] Right square bracket argparse metavar

2015-09-10 Thread Juan Jimenez-Anca
Juan Jimenez-Anca added the comment: My apologies for the formatting of the last line. This is my issue corrected: When trying to assign the metavar in add_argument() method of argparse module I'm unable to include characters after a right square bracket. Trying to set something like

Call for proposals for PyCon Spain is open!

2015-07-14 Thread Juan Luis Cano
://www.ticketea.com/pycones2015/ For further information please don't hesitate to contact us on this email: contacto2...@es.pycon.org mailto:contacto2...@es.pycon.org See you at PyConES this November! Juan Luis Cano PyConES 2015 Team Chair of Python Spain Association -- https://mail.python.org

Re: Best practices for writing jobs run through cron

2015-07-06 Thread Juan Gutierrez
Hi WU, It sounds like you want to add a lot of helpful transparency into your task runner which is awesome, however, have you taken a look at Celery? http://celery.readthedocs.org/en/latest/userguide/periodic-tasks.html Celery also comes with a monitoring tool (Flower -

[ANN] Unicodemoticons 1.0.6

2015-06-29 Thread Juan Carlos
Hello mammals, we are presenting today... UnicodEmoticon version 1.0.6, Its like a Color Picker but for Unicode Emoticons, on Python 3 and Qt 5, simple and minimalist, just 1 file, for Mac Os X and Linux, GUI consist of 1 TrayIcon with Sub-Menus, works on the whole Desktop, on all apps. Whats

poliastro 0.3, Astrodynamics in Python

2015-05-10 Thread Juan Luis Cano
://poliastro.github.io/changelog.html#new-in-poliastro-0-3-0 The project is still a work in progress and the codebase is subject to change. Contributions, bug reports, suggestions and advice are more than welcome! https://github.com/poliastro/poliastro/issues Best regards, Juan Luis Cano -- https

CSS-HTML-JS-Minify 1.0.13

2015-04-19 Thread Juan Carlos
[EN] Hello, theres a new Version of CSS-HTML-JS-Minify, Version 1.0.13, with following Changes: - Better Packaging, with more packaging file formats (while keep waiting PEP-441). - OpenPGP digitally signed packages. Upgrade / Install: $ sudo pip3 install --upgrade css-html-js-minify Whats

Re: Save session Selenium PhantomJS

2015-03-28 Thread Juan C.
Issue resolved. My code was working, the problem was PhantomJS 2.0, used 1.9.8 and now I have the 'cookies.txt' file as expected! -- https://mail.python.org/mailman/listinfo/python-list

Save session Selenium PhantomJS

2015-03-26 Thread Juan C.
Objective: Save the browser session/cookies to share them in multiples script execution. I currently have this working using ChromeDriver: chrome_options = Options() chrome_options.add_argument(user-data-dir= + os.path.dirname(sys.argv[0])) browser =

OpenID + Python 3.4

2015-03-24 Thread Juan C.
I was looking on the Internet regarding the use of OpenID in Python apps but I only found Flask/web related stuff. Is there any module that provides OpenID implementation for desktop level? I currently have a Python desktop script that needs to authenticate in a OpenID server, but I don't know

Re: smtplib not working as expected

2014-12-27 Thread Juan Christian
On Sat Dec 27 2014 at 1:23:12 AM Vincent Vande Vyvre vincent.vande.vy...@telenet.be wrote: Try with the TLS: Many thanks, working like a charm, code: server = smtplib.SMTP('smtp.mail.ru') server.starttls() server.ehlo() server.login('SENDER EMAIL GOES HERE', 'PASSWD GOES HERE')

Re: smtplib not working as expected

2014-12-27 Thread Juan Christian
Denis it was already resolved, check my message above. ^^ -- https://mail.python.org/mailman/listinfo/python-list

smtplib not working as expected

2014-12-26 Thread Juan Christian
I have the following test code: import smtplib fromaddr = 'mksfjnsfji4433j4...@bk.ru' toaddrs = ['mksfjnsfji4433j4...@bk.ru'] msg = (From: %s\r\nTo: %s\r\n\r\n % (fromaddr, , .join(toaddrs))) msg = msg + 'test' print(Message length is + repr(len(msg))) server =

Re: smtplib not working as expected

2014-12-26 Thread Juan Christian
On Fri Dec 26 2014 at 11:07:30 PM MRAB pyt...@mrabarnett.plus.com wrote: According to the docs, if you let the port parameter default to 0, it'll use port 465. I tested with my ISP. Using port 465, it failed. Using the default, it succeeded. So, I changed the code how you said, but still not

Re: Is there a way to schedule my script?

2014-12-18 Thread Juan Christian
On Wed Dec 17 2014 at 11:04:16 PM Juan Christian juan0christ...@gmail.com wrote: Thanks. That was a great answer. I'll redo my code. It's running and will only run in my Docker container (Ubuntu Server 14.04.1) so I'll use cron. Indeed, currently I'm using something like that: while True: if 9

Re: Is there a way to schedule my script?

2014-12-18 Thread Juan Christian
Thanks, using cron here. -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to schedule my script?

2014-12-18 Thread Juan Christian
On Thu Dec 18 2014 at 2:24:46 PM Ian Kelly ian.g.ke...@gmail.com wrote: What kind of random distribution of the time between executions are you looking for? A random sleep lends itself easily to a uniform distribution. The latter approach that you describe would result in a geometric distribution.

Re: Is there a way to schedule my script?

2014-12-18 Thread Juan Christian
On Thu Dec 18 2014 at 11:35:11 PM Chris Angelico ros...@gmail.com wrote: Why does this matter to you? Why am I getting the feeling that I should not be helping you? Because that's what my project is all about, I need to fake some 'human actions' inside the network to do some benchmarks and test

Is there a way to schedule my script?

2014-12-17 Thread Juan Christian
I know about the schedule modules and such but they work in situations like 'run this in a X hours/minutes/seconds interval', I already have my code in a while loop with sleep (it's a bit ugly, I'l change to a scheduler soon). What I really want is, for example: 24/7/365 9:00 AM - Start 11:59 PM

Re: Is there a way to schedule my script?

2014-12-17 Thread Juan Christian
On Wed Dec 17 2014 at 5:45:31 PM John Gordon gor...@panix.com wrote: You could write a separate program whose only job is to send a STOP or CONTINUE signal to your main program, and then run that program from a scheduler. The standard system kill command would probably work for this purpose,

  1   2   3   >